[android-developers] ADB interface is too slow to install
I am using Windows 7. When I connect phones through USB port, adb devices command lists the device. I can run any adb command like uninstall, shell, etc. It works fine. But, when I install an apk, it takes a long time. I used to get adb time out and I increased the time out period. Now it takes a long time. Also, I notice that adb logcat lists the log very slow. This is happening on HTC, Motorola, and Samsung devices. It does not happen on Nexus One. Has any one faced this problem? Any solutions/work around? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Orientation change and setRender
the problem was with cleaning up the textures upon orientation change. After I added that, it is working fine. On May 20, 12:37 am, qwesthead qwesth...@gmail.com wrote: I've a region on an activity that uses GLSurfaceView. When the Activity is resumed, I call the setRenderer and then the content of the screen. They work fine. But, the problem arise when I change orientation (configurationChange.) Upon orientation change, I need to change the layout. After orientation change, surfaceChanged is getting called. However, even when I call GLSurfaceview.requestrender, Renderer.onDrawFrame is not getting called. What are all the things I need to do when there is an orientation change. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Orientation change and setRender
I've a region on an activity that uses GLSurfaceView. When the Activity is resumed, I call the setRenderer and then the content of the screen. They work fine. But, the problem arise when I change orientation (configurationChange.) Upon orientation change, I need to change the layout. After orientation change, surfaceChanged is getting called. However, even when I call GLSurfaceview.requestrender, Renderer.onDrawFrame is not getting called. What are all the things I need to do when there is an orientation change. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Downloading other applications from a stub
We develop and publish several Android applications. Some of them are dependent on others. For ex: App3 is dependent on App2 (which is a service) is already installed and running. In App3 we would like to check if App2 is not available for binding, download and install it. Since App2 is also published by us, we know the market URL. Is this possible? how? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Listening to HFP events
We've a bluetooth application which uses SPP protocol. For better connection manageability, in our app we would like to listen to HFP related events like Bluetooth connected/disconnected. Is that possible? Is there a list of Bluetooth events that we can listen to? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] capturing last n lines of logcat
I would like to capture last 100 lines of logs that are entered in Android logs programmatically. The following command captures logs in the chronological order. Process logcatProc = Runtime.getRuntime().exec( new String[] { logcat, -v, tag, -b, main, MYLOG:V }); I would like to do that in the reverse chronological order. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] logcat is failing
I would like to have a simplified form of aLogcat. So, I am trying to use the logic in http://code.google.com/p/android-random/source/browse/trunk/Logcat/src/org/devtcg/tools/logcat/LogcatProcessor.java. however, when I run the same command: logcatProc = Runtime.getRuntime().exec( new String[] { logcat, -v, time, *:V }); The inputStreamReader always gets 0 lines.There are no errors logged. app uses_permission ReadLogs is specified in the manifest. Why do I get 0 lines all the time? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] adb devices cannot see Motorola
I used to develop on Motorola Droid when it was on Android 2.0 using Lenovo WIndows 7. I could list the device, launch app, debug, etc. Later I moved to Nexus One. I did all the same normal development activities. Now, when I want to switch back to Droid. adb does not see Droid which is connected through USB. I can see the SD Card through Explorer, if USB Debugging is not turned on. Once USB Debugging is turned on, adb cannot see the device. Nor the Eclipse DDMS. I tried installing the newest driver from Motorola, rebooted both the device and the laptop several times, killed adb server and restarted many times. Still the same issue. Can Motorola Droid and Nexus One drivers live together? Am I missing any steps? How do I uninstall Nexus One and reinstall it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to capture game screens on device
We write a game application where we load bitmaps continuously. I would like to capture the content as video. I know through DDMS, I can capture the screen shot, but how do I capture series of bitmaps loaded? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to manage connection to a socket?
I would like to know what is the recommendation for socket connection management in Android? In our App we would like to be connected to a TCP/IP server when our app is in the foreground or paused. So, create a connection to a TCP/ IP server when the App starts --basically, On Create of the launcher activity. However, we do not want to create a new connection and close connection every time an activity is created, paused, destroyed or orientation changed. So, we save the connection object in the App class and the activities will reuse the same connection. Question is when do I close it? I would like to close the socket when the App is paused, stopped or destroyed. The problem is these messages are not sent in the App context. How can I figure out if the App is in foreground or not? Even the Terminated event for an App is not guaranteed to be delivered. So, in that case how do I know when to disconnect? is there any recommendation on how to manage socket connection in Android? it is very weird that Android does not allow apps to 'exit or be notified when the app exits. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth issue on HTC Incredible
Our application reads data from the headset through SPP channel. It works fine with Nexus One and Droid. However, on Incredible, it does not read from the bluetooth fast enough. The logcat keep posting the following message. Are there any changes between Nexus One and Incredible as far as BT is considered? I/BLZ20_WRAPPER( 994): blz20_wrp_poll: nfds 2, timeout -1 ms D/BLZ20_WRAPPER( 994): blz20_wrp_poll: transp poll : (fd 41) returned r_ev [POL LIN ] (0x1) D/BLZ20_WRAPPER( 994): blz20_wrp_poll: return 1 D/BLZ20_WRAPPER( 994): blz20_wrp_read: read 467 bytes out of 54245 on fd 41 D/( 322): jw_if_rfcomm_cl_cback: jw_if_rfcomm_cl_cback event=BTA_JV_RFC OMM_DATA_IND_EVT D/( 322): jv_forward_data_to_jni: BTA_JV_RFCOMM_DATA_IND_EVT bta hdl 0 D/ASOCKWRP( 994): asocket_read I/BLZ20_WRAPPER( 994): blz20_wrp_poll: nfds 2, timeout -1 ms D/BLZ20_WRAPPER( 994): blz20_wrp_poll: transp poll : (fd 41) returned r_ev [POL LIN ] (0x1) D/BLZ20_WRAPPER( 994): blz20_wrp_poll: return 1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating streams for in memory data
We've a stream of data that gets created in byte array continuosly, that gets generated in our code and that should be consumed from another module that uses a third party library. The third party library apis takes only Inputstream as a parameter in the API. Is there a way I can write the bytes into inputstream? Is something like UNIX named pipes is supported in Android? If so, is there a code sample? Thanks, Qwest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to display a fadeaway controls
I've a requirement to display controls when the user taps on the screen and fade away kinda what you would see in Media player. I don't even know where to start. Any pointers would help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en