2017-04-03 8 views
0

Android Studio에서 Zbar 스캐너 라이브러리 (https://github.com/dm77/barcodescanner)를 사용하는 앱을 구현하려고합니다. 필자는 그것을 IDE에 가져 왔으며 여러 버전의 라이브러리 호환성을 재구성하려는 출혈 시도가 길어지면서 Zbar 라이브러리를 사용하는 기존 예제를 수정했습니다.Android ZBar 스캐너 라이브러리 이상한 동작

이상한 동작이 발생합니다. 새로운 활동 (원래 예제에서는 이미 존재하지 않음)을 얻으려면 오류 또는 예외없이 응용 프로그램이 중단됩니다.

04-03 16:22:42.381 2513-2513/? E/Thermal-daemon: [ap] temp_new :33 temp_old :34 
04-03 16:22:42.382 2513-2513/? E/Thermal-daemon: Report temperature: [ap] temp :33 report_threshold:1 
04-03 16:22:43.644 3085-3520/? E/InputReader: QEEXO fs_classify_touch NULL, not calling FingerSense 
04-03 16:22:43.702 3085-3520/? E/InputReader: QEEXO fs_touch_up NULL, not calling FingerSense 
04-03 16:22:43.728 3085-3520/? E/InputReader: QEEXO fs_classify_touch NULL, not calling FingerSense 
04-03 16:22:43.730 3085-3085/? E/QosMonitor: query:IPQos is not initial!! 
04-03 16:22:43.757 3085-3103/? E/ReportTools: This is not beta user build 
04-03 16:22:43.790 2484-2484/? E/lowmemorykiller: Error writing /proc/1360/oom_score_adj; errno=22 
04-03 16:22:43.820 3085-3520/? E/InputReader: QEEXO fs_touch_up NULL, not calling FingerSense 
04-03 16:22:43.828 3713-4443/? E/HwSystemManager: LeisureTrafficSetting:result is empty 
04-03 16:22:43.865 3085-3519/? E/InputDispatcher: channel '8304ce5 me.dm7.barcodescanner.zbar.sample/me.dm7.barcodescanner.zbar.sample.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 
04-03 16:22:43.867 3085-3095/? E/HsmCoreServiceImpl: onTransact in code is: 102 
04-03 16:22:43.896 583-595/? E/TotemWeather: WidgetUtils getWidgetShowCityInfo return myLocation 
04-03 16:22:43.899 4135-4207/? E/HwLauncher: SettingsEx , no such field. 
04-03 16:22:43.963 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc 
04-03 16:22:44.012 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc 
04-03 16:22:44.146 2486-2486/? E/hwcomposer: setGpuBoost:228: Can't open /sys/class/devfreq/gpufreq/max_freq: Permission denied 
04-03 16:22:44.494 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc 
+0

코드를 게시 할 수 있습니까? – Johny

+0

여기 내 코드입니다 : https://github.com/alessandroargentieri/ZbarExample 원래 것과 비교, 내가 만든 새로운 활동 인 SplashActivity.class에서 앱을 시작하고 싶습니다. –

답변

2

하는 당신은 발사로 SplashActivity.classAndroidManifest.xml에 가서 설정해야합니다 :

나는이 응용 프로그램 충돌이있을 때 볼 수 있습니다 내 IDE의 로그에 대한 "어떤 필터", 및 로그를 앉아 없습니다 이와 같은 활동 :

<activity android:name=".SplashActivity" 
      android:theme="@style/FullScreenTheme" 
      android:screenOrientation="portrait"> 

     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 

</activity> 
+0

고맙지 만 github 코드에서 볼 수 있듯이 이미 의도 된 필터가 있습니다. –