Vinny boa tarde onde conseguiu os .jar não encontro.
On Thursday, June 20, 2013 5:02:51 PM UTC-3, Vinny Valente wrote:
-- On Thursday, June 20, 2013 5:02:51 PM UTC-3, Vinny Valente wrote:
Boa Tarde galera,Estou tentando implementar a integração com a ZXinglib, aquela mais limpa que a ZXing original.Estou com um erro e se puderem me ajudar agradeceria muito.Lembrando que estou iniciando em Android agora.Segue Log06-20 16:46:37.225: E/AndroidRuntime(19899): FATAL EXCEPTION: main06-20 16:46:37.225: E/AndroidRuntime(19899): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.leitorqr/com.example.leitorqr. capture}: java.lang. ClassNotFoundException: com.example.leitorqr.capture 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.app.ActivityThread.performLaunchActivity( ActivityThread.java:2024) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.app.ActivityThread.handleLaunchActivity( ActivityThread.java:2125) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.app.ActivityThread.access$600(ActivityThread. java:140) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.app.ActivityThread$H.handleMessage(ActivityThread. java:1227) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.os.Handler.dispatchMessage(Handler.java: 99) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.os.Looper.loop(Looper.java:137) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.app.ActivityThread.main(ActivityThread.java:4898) 06-20 16:46:37.225: E/AndroidRuntime(19899): at java.lang.reflect.Method.invokeNative(Native Method) 06-20 16:46:37.225: E/AndroidRuntime(19899): at java.lang.reflect.Method.invoke(Method.java:511) 06-20 16:46:37.225: E/AndroidRuntime(19899): at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run( ZygoteInit.java:1006) 06-20 16:46:37.225: E/AndroidRuntime(19899): at com.android.internal.os.ZygoteInit.main(ZygoteInit. java:773) 06-20 16:46:37.225: E/AndroidRuntime(19899): at dalvik.system.NativeStart.main(Native Method) 06-20 16:46:37.225: E/AndroidRuntime(19899): Caused by: java.lang.ClassNotFoundException: com.example.leitorqr.capture 06-20 16:46:37.225: E/AndroidRuntime(19899): at dalvik.system.BaseDexClassLoader.findClass( BaseDexClassLoader.java:61) 06-20 16:46:37.225: E/AndroidRuntime(19899): at java.lang.ClassLoader.loadClass(ClassLoader.java: 501) 06-20 16:46:37.225: E/AndroidRuntime(19899): at java.lang.ClassLoader.loadClass(ClassLoader.java: 461) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.app.Instrumentation.newActivity(Instrumentation. java:1057) 06-20 16:46:37.225: E/AndroidRuntime(19899): at android.app.ActivityThread.performLaunchActivity( ActivityThread.java:2015) 06-20 16:46:37.225: E/AndroidRuntime(19899): ... 11 more06-20 16:46:48.010: I/Process(19899): Sending signal. PID: 19899 SIG: 9Segue classepackage com.example.leitorqr;import jim.h.common.android.zxinglib.integrator.IntentIntegrator; import jim.h.common.android.zxinglib.integrator.IntentResult; import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.os.Handler;import android.view.View;import android.widget.TextView;public class ZXingJarDemoActivity extends Activity {private Handler handler = new Handler();private TextView txtScanResult;@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState); setContentView(R.layout.telainicio); }//txtScanResult = (TextView) findViewById(R.id.scan_result); //View btnScan = findViewById(R.id.scan_button); // Scan button//btnScan.setOnClickListener(new OnClickListener() { public void leituraQr (View view) {IntentIntegrator.initiateScan(ZXingJarDemoActivity.this, R.layout.telaqr, R.id.viewfinder_view, R.id.preview_view, true);}/* @Overridepublic void onClick(View v) {// set the last parameter to true to open front light if availableIntentIntegrator.initiateScan(ZXingJarDemoActivity.this, R.layout.capture, R.id.viewfinder_view, R.id.preview_view, true);}});}*/@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) {super.onActivityResult(requestCode, resultCode, data); switch (requestCode) {case IntentIntegrator.REQUEST_CODE:IntentResult scanResult = IntentIntegrator.parseActivityResult( requestCode, resultCode, data);if (scanResult == null) {return;}final String result = scanResult.getContents();if (result != null) {handler.post(new Runnable() {@Overridepublic void run() {txtScanResult.setText(result);}});}break;default:}}}Agradeço desde já.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário