Intellij Idea dont allow to run app on real device - android

I have Idea 12 with configured Oracle SDK 1.6, and with Android SDK,
$ ./adb devices
List of devices attached
S5830c10eb068 device
Also, Eclipse allows me to run project directly on physical device, but Idea is just able to see that device - S5830c10eb068(Samsung gt-s5830, android 2.3.6) in some windows:
but even when I choose 'USB device' in 'Run Configuration' - nothing happens:
What should I do?
Also, there is errors in logcat after device plugged in:
02-20 03:59:35.419: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 03:59:35.419: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 03:59:35.439: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 03:59:35.439: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 03:59:35.539: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = false
02-20 03:59:35.549: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 03:59:38.609: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = true
02-20 03:59:38.619: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 03:59:39.639: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/42
02-20 03:59:39.639: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/42
02-20 03:59:39.919: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/42
02-20 03:59:39.919: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/42
02-20 03:59:40.219: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/42
02-20 03:59:40.219: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/42
02-20 04:00:12.689: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:00:12.689: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 04:00:12.699: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:00:12.699: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 04:00:12.809: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = false
02-20 04:00:12.819: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:00:22.859: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = true
02-20 04:00:22.889: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:03:52.719: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = false
02-20 04:03:52.729: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:04:25.659: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = true
02-20 04:04:25.669: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:59:09.369: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:59:09.369: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 04:59:09.389: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:59:09.399: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
Also, if I chose 'Show chooser dialog' and then select 'run' from 'Run' menu - there is the same window as on the second picture opens.

You are trying to edit Defaults, but you need to create a new run configuration instead.
Refer to this documentation section for details.
Once configuration is created, you will be able to select it in the drop-down on the toolbar and Run/Debug buttons will become available.

Run --> Edit Configurations... --> General --> Show Chooser Dialog --> OK
Then run it again.

Select "show choice dialog" and you show dialog with device ID

On idea 13,in run configuration -> General -> target device -> USB devices

Maybe related to seeing the device in the chooser: On my machine the device is only in the list after I killed the ADB process manually (Task Manager -> "adb.exe *32"). Before that, there were no device in list or OK button grayed out.
(IntelliJ IDEA 13.0.2 Community)

Related

How to detect Bluetooth RFCOM channel crash from application android

I have an application where sometimes Bluetooth channels are crashing from OS layer and then Bluetooth channel not start working again until phone rebooted. As its a OS layer crash I can't detect/handle it from my application. Here is the crash:
02-20 05:32:45.751: I/BluetoothServiceJni(20779): SOCK FLAG = 3 ***********************
02-20 05:32:45.751: E/BluetoothServiceJni(20779): Socket listen failed: 2
02-20 05:32:45.751: E/BluetoothAdapterService(1918354448)(20779): Failed to create socket channel
02-20 05:32:45.751: E/BluetoothSocketThread(762): Failed to listen for Bluetooth server socket connect.
02-20 05:32:45.751: E/BluetoothSocketThread(762): java.io.IOException: Error: -1
02-20 05:32:45.751: E/BluetoothSocketThread(762): at android.bluetooth.BluetoothAdapter.createNewRfcommSocketAndRecord(BluetoothAdapter.java:1245)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at android.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:1161)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at com.google.glass.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:148)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at com.google.glass.bluetooth.companion.BluetoothSocketThread.runInternally(BluetoothSocketThread.java:67)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at com.google.glass.bluetooth.companion.CompanionServerThread.run(CompanionServerThread.java:61)
02-20 05:32:45.761: W/BluetoothAdapter(762): getBluetoothService() called with no BluetoothManagerCallback
My question, is there any way to detect Bluetooth channel OS related crash from my applicaiton.
Is it possible to detect the crash using fabric crashlytics native support or anything else?

Failed to find DRM Plugin

I'm trying to run my app with Gmail Login on genymotion emulator. But I keep getting a Failed to find DRM plugin error. I have added the ARM translation zip to the emulator and gApps for the given device. The app runs perfectly on real devices(HTC desire 500 and a Nexus 5). The emulator is a Nexus 5 with Lollipop 5.1.
02-20 05:27:13.292 1693-2186/? E/Drm: Failed to find drm plugin
02-20 05:27:13.292 3684-3868/? W/DG.WV: Widevine DRM not supported on this device
02-20 05:27:13.292 3684-3868/? W/DG.WV: android.media.UnsupportedSchemeException: Failed to instantiate drm object.
02-20 05:27:13.292 3684-3868/? W/DG.WV: at android.media.MediaDrm.native_setup(Native Method)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at android.media.MediaDrm.<init>(MediaDrm.java:180)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at com.google.android.gms.droidguard.q.run(SourceFile:99)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at java.lang.Thread.run(Thread.java:818)
02-20 05:27:13.300 2686-3863/? V/BaseAuthAsyncOperation: access token request successful
02-20 05:27:13.301 3684-3735/? I/GoogleURLConnFactory: Using platform SSLCertificateSocketFactory
02-20 05:27:13.742 3471-3471/? I/adfjksf: Status{statusCode=INTERNAL_ERROR, resolution=null}
02-20 05:27:13.814 3471-3492/? W/EGL_emulation: eglSurfaceAttrib not implemented
02-20 05:27:13.814 3471-3492/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xf3ee7840, error=EGL_SUCCESS
02-20 05:27:14.837 2279-3867/? W/GLSUser: [AppCertManager] IOException while requesting key:
DRM is not supported in emulators as the hardware is not capable of that . You can check the availability of drm by installing Drm info application and run it in the emulator. Please find the link https://play.google.com/store/apps/details?id=com.androidfung.drminfo

Android Web View Crash

My app was working fine. I had to format my computer and phone. Now the keep app crashing. I'm using a web view to display youtube everything works fine until I try to switch to full screen then I get the errors. I don't know how to solve with this problem.
08-10 21:41:27.005 31363-31363/? E/Zygote﹕ MountEmulatedStorage()
08-10 21:41:27.005 31363-31363/? E/Zygote﹕ v2
08-10 21:41:27.045 31363-31363/? E/SELinux﹕ [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
08-10 21:41:36.865 31363-31959/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ onConfigureComponent mime.c_str() = audio/mp4a-latm
08-10 21:41:36.915 31363-31977/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ onConfigureComponent mime.c_str() = video/x-vnd.on2.vp9
08-10 21:41:36.915 31363-31977/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ [OMX.google.vp9.decoder] storeMetaDataInBuffers failed w/ err -2147483648
08-10 21:41:45.915 31363-31363/com.videowebviewtest.unknown.webview_video_test A/chromium﹕ [FATAL:jni_android.cc(271)] Check failed: false.
08-10 21:41:45.915 31363-31363/com.videowebviewtest.unknown.webview_video_test A/libc﹕ Fatal signal 6 (SIGABRT), code -6 in tid 31363 (view_video_test)

app engine connected android project not working

I've followed the wizard to produce an 'app engine connected android project' and using instructions from https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae.
The only additions I have made to what is auto-generated are setting the api key, setting process number, setting LOCAL_ANDROID_RUN to true.
Appengine dev server starts fine and all as it should be on localhost:8888
Android app deploys fine to emulator (running google apis as target).
But when I click to register I get
'Sorry! The application VillageTest (process com.villagetest) has
stopped unexpectedly. Please try again.'
with a button to 'force close'.
Logcat is as follows:
03-27 16:19:02.098: D/dalvikvm(422): GC_FOR_MALLOC freed 5074 objects / 389216 bytes in 75ms
03-27 16:19:02.288: V/GCMBaseIntentService(422): Releasing wakelock
03-27 16:19:02.288: W/dalvikvm(422): threadid=9: thread exiting with uncaught exception (group=0x4001d800)
03-27 16:19:02.298: E/AndroidRuntime(422): FATAL EXCEPTION: IntentService[GCMIntentService-405986951973-1]
03-27 16:19:02.298: E/AndroidRuntime(422): java.lang.NullPointerException
03-27 16:19:02.298: E/AndroidRuntime(422): at com.villagetest.GCMIntentService.onRegistered(GCMIntentService.java:144)
03-27 16:19:02.298: E/AndroidRuntime(422): at com.google.android.gcm.GCMBaseIntentService.handleRegistration(GCMBaseIntentService.java:251)
03-27 16:19:02.298: E/AndroidRuntime(422): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:153)
03-27 16:19:02.298: E/AndroidRuntime(422): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
03-27 16:19:02.298: E/AndroidRuntime(422): at android.os.Handler.dispatchMessage(Handler.java:99)
03-27 16:19:02.298: E/AndroidRuntime(422): at android.os.Looper.loop(Looper.java:123)
03-27 16:19:02.298: E/AndroidRuntime(422): at android.os.HandlerThread.run(HandlerThread.java:60)
Please help. It's driving me crazy!!
The problem appears to be in your implementation of GCMIntentService (at GCMIntentService.java line 144). I suggest you post or look at that line in your code.
Have you followed the instructions for implementing GCM in your app:
http://developer.android.com/google/gcm/gs.html
Most specifically, Step 3?
Also, note that someone else posted almost exactly the same question yesterday...
app engine(eclipse): can't register device from android emulator to endpoint
You appear to be experiencing the exact same problem and he has now posted his line 144. I'm going to follow up there.
This is fixed in the latest version of GPE (3.2.2) released today. The problem had to do with a missing null check in the case where you'd never registered your device with the endpoint before.

My activity don't show map but a black background

I'm trying to write my first android application. I've this problem
When i try to show this activity
setContentView(R.layout.activity_poi_map);
This is the file xml of the activity
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment"/>
The application show a black background empty and black and the log file is this:
02-20 21:33:45.113: D/libEGL(19145): loaded /system/lib/egl/libEGL_mali.so
02-20 21:33:45.113: D/libEGL(19145): loaded /system/lib/egl/libGLESv1_CM_mali.so
02-20 21:33:45.123: D/libEGL(19145): loaded /system/lib/egl/libGLESv2_mali.so
02-20 21:33:45.153: D/OpenGLRenderer(19145): Enabling debug mode 0
02-20 21:33:45.223: E/SensorManager(19145): thread start
02-20 21:33:45.233: D/SensorManager(19145): registerListener :: handle = 0 name= MPU- 6050 Accelerometer delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl#419da6c0
02-20 21:33:59.237: W/dalvikvm(19145): VFY: unable to resolve static field 849 (MapAttrs) in Lcom/google/android/gms/R$styleable;
02-20 21:33:59.237: D/dalvikvm(19145): VFY: replacing opcode 0x62 at 0x000e
This activity only have to show the map, why don't works?
Thanks in advance for your answer.
unable to resolve static field
That sort of error probably means that you are trying to run mismatched versions of your code together. Clean your build and rebuild everything, and try again.

Categories

Resources