[android-developers] What are some good Automated Unit And System Test Tools for Android?
So I give in. I approached this problem as an oh hey that's not too bad, I can write a bunch of unit tests, and I have been keeping my suite green. However as things get more involved continuous integration and testing is a great great thing to have. And then I saw oh Android has emma integration as well awesome ... and then that's where it get's iffy. So I setup Hudson and have it call the coverage target of the ant build.xml that the android executable in the sdk can generate. And then it hits me. adb -s emulator shell am instrument -w ... will never return a result code that is not 0 ... because adb technically exited cleanly and usually will regardless of how the shell command that executed did. So again I say, Oh that's not too bad, I can just wrap adb with a parser that parses output for errors and return a non 0 resultcode to fail my build if a test fails. Problem is then I also want to see what tests fail. I know eclipse is doing something smarter so I dig deeper and find the extra switches you can pass am instrument including the - r flag. adb -s emulator shell am instrument -r -w ... Now this is starting to get complicated as the output gets more complex and this originally thought simple task is getting more intense. As this SDK is maturing more I have to think, someone has endured this pain and made a kickass way to automate and report on these sdk tools and output. Like something complete with performance test tracking, code coverage reporting etc. These outputs all exit in the SDK but they just have to be adapted to the tools used outside. I have to think after a year or two this adapter(s) has to have been written. However I have only been able to find blackbox testing frameworks and not anything along the lines of regression test suite automation of the whitebox sort. Any suggestions welcome. -- 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
Re: [android-developers] Re: How to unsign the signed apk file?
HI Chris, Also want to know how to know the signature of any apk file? please share commands/procedure/tools for it. Thanks. On Tue, Nov 2, 2010 at 7:20 PM, Chris Stratton cs07...@gmail.com wrote: Open the apk as a zip file and remove the META-INF directory On Nov 2, 4:26 am, Nency Robert avayam...@gmail.com wrote: HI All, I want to know How to unsign the signed apk file? Please help. Thnkx -- 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 -- 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] certification for android developers
is there any certification for android developers provided by Google? please let me know this . I want to do that certification. -- 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: How to unsign the signed apk file?
On Nov 3, 12:29 pm, Nency Robert avayam...@gmail.com wrote: HI Chris, Also want to know how to know the signature of any apk file? please share commands/procedure/tools for it. Thanks. You will need Jarsigner. Get all information here: http://developer.android.com/guide/publishing/app-signing.html Regards Sarwar Erfan -- 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] smack+android+openfire problem
hi android developers I have some doubts in using the resource of smack api from android I implemented the xmpp client send and receive messages from android then how to add groups and delete groups from openfire ? I configured openfire code in local system and how to utilise from android please help me its very necessary to me thanks in advance -- 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: certification for android developers
is there any certification for android developers provided by Google? No. On Nov 3, 11:42 am, Shalini coolcool.shal...@gmail.com wrote: is there any certification for android developers provided by Google? please let me know this . I want to do that certification. -- 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] Read data from database and show it in table layout form
Hi, I want to read data from database and displayed it in table layout form. table will contain n rows and 2 columns. But row size is not fixed then how to show them in table layout format? Thanks in advance. -- 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
Re: [android-developers] Temporary files
The question is, how can I tell when it's no longer needed? 24 hours would seem to be sufficient. When your app starts, check your pseudo-temp directory and nuke all your files that are older than 24 hours. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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] Show Picasa album of a particular user in the app
Hi All, I want to show the picasa album of a user in my android app. I have the username/ password + album id of the album. I have tried implementing via using gdata library. But i am getting a VerifyError Exception as soon as i run my code. Following are the gdata libraries that i included in my project: 1) activation.jar 2) gdata-client-1.0.jar 3) gdata-core-1.0.jar 4) gdata-client-meta-1.0.jar 5) gdata-media-1.0.jar 6) gdata-photos-2.0.jar 7) google-collect-1.0-rc1.jar 8) servlet-api.jar. I am using eclipse 3.4.2 and Google API's[Android 2.2]. I am getting following exception: 11-03 12:00:16.603: WARN/dalvikvm(1702): Unable to resolve superclass of Lcom/google/gdata/data/media/MediaMultipart; (1746) 11-03 12:00:16.613: WARN/dalvikvm(1702): Link of class 'Lcom/google/ gdata/data/media/MediaMultipart;' failed 11-03 12:00:16.623: ERROR/dalvikvm(1702): Could not find class 'com.google.gdata.data.media.MediaMultipart', referenced from method com.google.gdata.client.media.MediaService.insert 11-03 12:00:16.623: WARN/dalvikvm(1702): VFY: unable to resolve new- instance 861 (Lcom/google/gdata/data/media/MediaMultipart;) in Lcom/ google/gdata/client/media/MediaService; 11-03 12:00:16.623: DEBUG/dalvikvm(1702): VFY: replacing opcode 0x22 at 0x0020 11-03 12:00:16.623: DEBUG/dalvikvm(1702): Making a copy of Lcom/google/ gdata/client/media/MediaService;.insert code (256 bytes) 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: unable to resolve exception class 1743 (Ljavax/mail/MessagingException;) 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: unable to find exception handler at addr 0x55 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: rejected Lcom/google/ gdata/client/media/MediaService;.insert (Ljava/net/URL;Lcom/google/ gdata/data/IEntry;)Lcom/google/gdata/data/IEntry; 11-03 12:00:16.643: WARN/dalvikvm(1702): VFY: rejecting opcode 0x0d at 0x0055 11-03 12:00:16.643: WARN/dalvikvm(1702): VFY: rejected Lcom/google/ gdata/client/media/MediaService;.insert (Ljava/net/URL;Lcom/google/ gdata/data/IEntry;)Lcom/google/gdata/data/IEntry; 11-03 12:00:16.643: WARN/dalvikvm(1702): Verifier rejected class Lcom/ google/gdata/client/media/MediaService; 11-03 12:00:16.653: DEBUG/AndroidRuntime(1702): Shutting down VM 11-03 12:00:16.653: WARN/dalvikvm(1702): threadid=3: thread exiting with uncaught exception (group=0x4001b188) 11-03 12:00:16.663: ERROR/AndroidRuntime(1702): Uncaught handler: thread main exiting due to uncaught exception 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): java.lang.VerifyError: com.google.gdata.client.media.MediaService 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at com.agsf.picasa.Welcome.onCreate(Welcome.java:24) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2417) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2470) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.os.Handler.dispatchMessage(Handler.java:99) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.os.Looper.loop(Looper.java:123) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread.main(ActivityThread.java:4310) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at java.lang.reflect.Method.invokeNative(Native Method) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at java.lang.reflect.Method.invoke(Method.java:521) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at dalvik.system.NativeStart.main(Native Method) My question is: is it possible to do this on android? If yes, then how do i do that? Am i missing some library or some other thing. OR if it is not possible, can you guys point to me on these pages? Thanks.. -- 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: Show Picasa album of a particular user in the app
Here is the java code that i am using: PicasawebService myService = new PicasawebService(my app name); try { myService.setUserCredentials(username, password); URL feedUrl; feedUrl = new URL( https://picasaweb.google.com/data/feed/api/user/username/albumid/ albumid); AlbumFeed feed = myService.getFeed(feedUrl, AlbumFeed.class); for (PhotoEntry photo : feed.getPhotoEntries()) { Log.d(, getTitle: + photo.getTitle().getPlainText()); Log.d(, getMediaThumbnails: + photo.getMediaThumbnails().get(0).getUrl()); } } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (AuthenticationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ServiceException e) { // TODO Auto-generated catch block e.printStackTrace(); } On Nov 3, 12:34 pm, mudit mudit.a...@gmail.com wrote: Hi All, I want to show the picasa album of a user in my android app. I have the username/ password + album id of the album. I have tried implementing via using gdata library. But i am getting a VerifyError Exception as soon as i run my code. Following are the gdata libraries that i included in my project: 1) activation.jar 2) gdata-client-1.0.jar 3) gdata-core-1.0.jar 4) gdata-client-meta-1.0.jar 5) gdata-media-1.0.jar 6) gdata-photos-2.0.jar 7) google-collect-1.0-rc1.jar 8) servlet-api.jar. I am using eclipse 3.4.2 and Google API's[Android 2.2]. I am getting following exception: 11-03 12:00:16.603: WARN/dalvikvm(1702): Unable to resolve superclass of Lcom/google/gdata/data/media/MediaMultipart; (1746) 11-03 12:00:16.613: WARN/dalvikvm(1702): Link of class 'Lcom/google/ gdata/data/media/MediaMultipart;' failed 11-03 12:00:16.623: ERROR/dalvikvm(1702): Could not find class 'com.google.gdata.data.media.MediaMultipart', referenced from method com.google.gdata.client.media.MediaService.insert 11-03 12:00:16.623: WARN/dalvikvm(1702): VFY: unable to resolve new- instance 861 (Lcom/google/gdata/data/media/MediaMultipart;) in Lcom/ google/gdata/client/media/MediaService; 11-03 12:00:16.623: DEBUG/dalvikvm(1702): VFY: replacing opcode 0x22 at 0x0020 11-03 12:00:16.623: DEBUG/dalvikvm(1702): Making a copy of Lcom/google/ gdata/client/media/MediaService;.insert code (256 bytes) 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: unable to resolve exception class 1743 (Ljavax/mail/MessagingException;) 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: unable to find exception handler at addr 0x55 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: rejected Lcom/google/ gdata/client/media/MediaService;.insert (Ljava/net/URL;Lcom/google/ gdata/data/IEntry;)Lcom/google/gdata/data/IEntry; 11-03 12:00:16.643: WARN/dalvikvm(1702): VFY: rejecting opcode 0x0d at 0x0055 11-03 12:00:16.643: WARN/dalvikvm(1702): VFY: rejected Lcom/google/ gdata/client/media/MediaService;.insert (Ljava/net/URL;Lcom/google/ gdata/data/IEntry;)Lcom/google/gdata/data/IEntry; 11-03 12:00:16.643: WARN/dalvikvm(1702): Verifier rejected class Lcom/ google/gdata/client/media/MediaService; 11-03 12:00:16.653: DEBUG/AndroidRuntime(1702): Shutting down VM 11-03 12:00:16.653: WARN/dalvikvm(1702): threadid=3: thread exiting with uncaught exception (group=0x4001b188) 11-03 12:00:16.663: ERROR/AndroidRuntime(1702): Uncaught handler: thread main exiting due to uncaught exception 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): java.lang.VerifyError: com.google.gdata.client.media.MediaService 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at com.agsf.picasa.Welcome.onCreate(Welcome.java:24) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2417) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2470) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821) 11-03 12:00:16.693: ERROR/AndroidRuntime(1702): at
[android-developers] SSL Certificate Installation Problem
Hi All, when am accessing a web service am getting Not Trusted Server Certificate error, For this should I install the certificate on the mobile or system, or can I bypass this. Thanks Regards. -- 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
Re: [android-developers] Re: How to unsign the signed apk file?
Let's see - removing the signature from an apk, then signing it with a different key... If this is your own application, I don't see a reason to do this. If this is someone else's application - ! - are you trying to pirate someone else's work? -- Kostya 03.11.2010 9:49, Sarwar Erfan пишет: On Nov 3, 12:29 pm, Nency Robertavayam...@gmail.com wrote: HI Chris, Also want to know how to know the signature of any apk file? please share commands/procedure/tools for it. Thanks. You will need Jarsigner. Get all information here: http://developer.android.com/guide/publishing/app-signing.html Regards Sarwar Erfan -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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
Re: [android-developers] How to pass a Context variable from one Activity to another ?
Not sure what you mean by context variables Activity itself is a context... so while starting an activity you can pass this (wild guess) in the bundle. But why would to want to pass it to another activity? Or do u mean some data of present activity would be required in the next activity. Well then you can use bundle put extras. and then gather extras in the new activity. Or u can use static variables to share data between the two activities or activity and service. And if you are not comfortable with the static variables then data base is always there. Vinay Julme ** On Wed, Nov 3, 2010 at 5:36 AM, Emre A. Yavuz eayl...@hotmail.com wrote: Hi, I have a Tab Layout which has two tabs that correspond to one Activity each (A and B) . When I run my application, let's say by running MainActivity(), I expect it to display the first Tab and thus run Activity A by default and switch to Activity B when the second Tab is selected. Let's assume I'd like to pass a Context variable in my MainActivity to either Activity A or B. How should I do it, what is the most efficient approach ? Any suggestions ? Cheers, Emre -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] SSL Certificate Installation Problem
Hi you can by-pass but if you want to check certificate then use the following code to store certificate in keystore KeyStore trusted = KeyStore.getInstance(BKS); InputStream in = getResources().openRawResource(R.raw.cerrrt); trusted.load(in, ez24get.toCharArray()); SSLSocketFactory SSLSF = new SSLSocketFactory(trusted); schemeRegistry.register(new Scheme(https, SSLSF, 443)); Regards On Wed, Nov 3, 2010 at 1:35 PM, Android Humanoid droid.hu...@gmail.comwrote: Hi All, when am accessing a web service am getting Not Trusted Server Certificate error, For this should I install the certificate on the mobile or system, or can I bypass this. Thanks Regards. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] error with CameraView setParameters
Hi all, I am trying to develop a small camera app. I am getting the following log errors when running the app on my phone 11-02 20:33:44.387: ERROR/AndroidRuntime(18165): Uncaught handler: thread main exiting due to uncaught exception 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): java.lang.RuntimeException: setParameters failed 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.hardware.Camera.native_setParameters(Native Method) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.hardware.Camera.setParameters(Camera.java:627) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at com.pengilleys.fishingsnapz.CameraView $1.surfaceChanged(CameraView.java:95) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.SurfaceView.updateWindow(SurfaceView.java:460) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewGroup.drawChild(ViewGroup.java:1583) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.View.draw(View.java:6538) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.widget.FrameLayout.draw(FrameLayout.java:352) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewGroup.drawChild(ViewGroup.java:1585) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewGroup.drawChild(ViewGroup.java:1583) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.View.draw(View.java:6538) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.widget.FrameLayout.draw(FrameLayout.java:352) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1866) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewRoot.draw(ViewRoot.java:1353) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewRoot.performTraversals(ViewRoot.java:1118) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.view.ViewRoot.handleMessage(ViewRoot.java:1639) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.os.Handler.dispatchMessage(Handler.java:99) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.os.Looper.loop(Looper.java:123) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at android.app.ActivityThread.main(ActivityThread.java:4595) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at java.lang.reflect.Method.invokeNative(Native Method) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at java.lang.reflect.Method.invoke(Method.java:521) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 11-02 20:33:44.656: ERROR/AndroidRuntime(18165): at dalvik.system.NativeStart.main(Native Method) My surfaceChanged code is as followed public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { Camera.Parameters p = mCamera.getParameters(); p.setPreviewSize(width,height); p.setPictureFormat(PixelFormat.JPEG); mCamera.setParameters(p); mCamera.startPreview(); } I also have the stock android example code and mine is almost the same (with the exception of my customisations) and this code DOESN'T error. I just can't see why though... -- 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: Comment calculer les puissances sur Google ?
1) je pense que tu t'es trompé de groupe. Ta question n'a rien à voir avec Android. 2) la langue de ce groupe c'est l'anglais 3) x^n c'est classiquedans les logiciels de calcul. On Oct 22, 10:48 am, karimgomez hammametr...@gmail.com wrote: Bonjour, Je veux savoir comment on calcule les puissances a partir de moteur de recherche Google, au lieu d'ecrie x*x*x.n on mis juste 2 puissance n. ça marche avec x exp(n) mais avec les puissances non. merci pour vos réponses. -- 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: SIGH ... Android SOAP
Hi, Yes, the Android platform is not contains any SOAP client... I've wrote a simple proof-of-concept SOAP client, watch it: http://wiki.javaforum.hu/display/ANDROIDSOAP/Home -- Gábor Auth On nov. 2, 00:30, Darkside Android darksideandr...@gmail.com wrote: This post is directed to those of you who may have been, are or will be FORCED to deal with stone-age SOAP w/s and Android. What has been the best way to consume these 7-layered nightmares? Is there any native (non 3rd-party) support in Android? Library recommendations (which to embrace, which to drop-it-like-its-hot, etc) Thx, D.A. -- 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: Show Picasa album of a particular user in the app
11-03 12:00:16.603: WARN/dalvikvm(1702): Unable to resolve superclass of Lcom/google/gdata/data/media/MediaMultipart; (1746) 11-03 12:00:16.613: WARN/dalvikvm(1702): Link of class 'Lcom/google/ gdata/data/media/MediaMultipart;' failed 11-03 12:00:16.623: ERROR/dalvikvm(1702): Could not find class 'com.google.gdata.data.media.MediaMultipart', referenced from method com.google.gdata.client.media.MediaService.insert 11-03 12:00:16.623: WARN/dalvikvm(1702): VFY: unable to resolve new- instance 861 (Lcom/google/gdata/data/media/MediaMultipart;) in Lcom/ google/gdata/client/media/MediaService; These logs can give you some hints. I guess you are missing out activation.jar and mail.jar They are required to work with these libraries. As an alternative, you can use the new android specific libraries already available. However, they are in alpha. On Nov 3, 12:46 pm, mudit mudit.a...@gmail.com wrote: Here is the java code that i am using: PicasawebService myService = new PicasawebService(my app name); try { myService.setUserCredentials(username, password); URL feedUrl; feedUrl = new URL( https://picasaweb.google.com/data/feed/api/user/username/albumid/ albumid); AlbumFeed feed = myService.getFeed(feedUrl, AlbumFeed.class); for (PhotoEntry photo : feed.getPhotoEntries()) { Log.d(, getTitle: + photo.getTitle().getPlainText()); Log.d(, getMediaThumbnails: + photo.getMediaThumbnails().get(0).getUrl()); } } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (AuthenticationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ServiceException e) { // TODO Auto-generated catch block e.printStackTrace(); } On Nov 3, 12:34 pm, mudit mudit.a...@gmail.com wrote: Hi All, I want to show the picasa album of a user in my android app. I have the username/ password + album id of the album. I have tried implementing via using gdata library. But i am getting a VerifyError Exception as soon as i run my code. Following are the gdata libraries that i included in my project: 1) activation.jar 2) gdata-client-1.0.jar 3) gdata-core-1.0.jar 4) gdata-client-meta-1.0.jar 5) gdata-media-1.0.jar 6) gdata-photos-2.0.jar 7) google-collect-1.0-rc1.jar 8) servlet-api.jar. I am using eclipse 3.4.2 and Google API's[Android 2.2]. I am getting following exception: 11-03 12:00:16.603: WARN/dalvikvm(1702): Unable to resolve superclass of Lcom/google/gdata/data/media/MediaMultipart; (1746) 11-03 12:00:16.613: WARN/dalvikvm(1702): Link of class 'Lcom/google/ gdata/data/media/MediaMultipart;' failed 11-03 12:00:16.623: ERROR/dalvikvm(1702): Could not find class 'com.google.gdata.data.media.MediaMultipart', referenced from method com.google.gdata.client.media.MediaService.insert 11-03 12:00:16.623: WARN/dalvikvm(1702): VFY: unable to resolve new- instance 861 (Lcom/google/gdata/data/media/MediaMultipart;) in Lcom/ google/gdata/client/media/MediaService; 11-03 12:00:16.623: DEBUG/dalvikvm(1702): VFY: replacing opcode 0x22 at 0x0020 11-03 12:00:16.623: DEBUG/dalvikvm(1702): Making a copy of Lcom/google/ gdata/client/media/MediaService;.insert code (256 bytes) 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: unable to resolve exception class 1743 (Ljavax/mail/MessagingException;) 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: unable to find exception handler at addr 0x55 11-03 12:00:16.633: WARN/dalvikvm(1702): VFY: rejected Lcom/google/ gdata/client/media/MediaService;.insert (Ljava/net/URL;Lcom/google/ gdata/data/IEntry;)Lcom/google/gdata/data/IEntry; 11-03 12:00:16.643: WARN/dalvikvm(1702): VFY: rejecting opcode 0x0d at 0x0055 11-03 12:00:16.643: WARN/dalvikvm(1702): VFY: rejected Lcom/google/ gdata/client/media/MediaService;.insert (Ljava/net/URL;Lcom/google/ gdata/data/IEntry;)Lcom/google/gdata/data/IEntry; 11-03 12:00:16.643: WARN/dalvikvm(1702): Verifier rejected class Lcom/ google/gdata/client/media/MediaService; 11-03 12:00:16.653: DEBUG/AndroidRuntime(1702): Shutting down VM 11-03 12:00:16.653: WARN/dalvikvm(1702): threadid=3: thread exiting with uncaught exception (group=0x4001b188) 11-03 12:00:16.663: ERROR/AndroidRuntime(1702): Uncaught
[android-developers] Re: Read data from database and show it in table layout form
I guess, you will be better off using a ListView. On Nov 3, 12:01 pm, pramod.deore deore.pramo...@gmail.com wrote: Hi, I want to read data from database and displayed it in table layout form. table will contain n rows and 2 columns. But row size is not fixed then how to show them in table layout format? Thanks in advance. -- 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: Sound in android web view
I don't think it will work. The WebView will not recognize this file. You can have a thread in the background that does the playing. On Nov 3, 9:35 am, nena joy nenaj...@gmail.com wrote: *My java code is here* package com.customlistview1; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; import android.webkit.WebViewClient; import android.webkit.WebChromeClient; public class Image extends Activity { private WebView webview; �...@override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.web); setupwebwiew(); } private void setupwebwiew() { webview=(WebView)findViewById(R.id.webkit); webview.setWebViewClient(new WebViewClient()); webview.setWebChromeClient(new WebChromeClient()); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); webview.loadUrl(file:///android_asset/buttonsound2.html); webview.loadUrl(file:///android_asset/we.mp3); } } I enabled the javascript. But not play the sound. -- 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: How to open mail link from html file
If you are trying to check this in emulator, it won't work. It works on devices and you don't have to do anything extra for this. On Nov 2, 10:20 pm, Amit Mangal forum.amit.man...@gmail.com wrote: Hi every one, I have a html file local and it is having a link to mail me when i try to open that html file on mozilla firefox it is working fine but when load this html file on web view in android and try to open link of mail it says unsupported action. why is this ? Thank you -- 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: Read data from database and show it in table layout form
Thanks Bibek, But if suppose I am doing this with List then how can I achieve this? On Nov 3, 2:44 pm, Kumar Bibek coomar@gmail.com wrote: I guess, you will be better off using a ListView. On Nov 3, 12:01 pm, pramod.deore deore.pramo...@gmail.com wrote: Hi, I want to read data from database and displayed it in table layout form. table will contain n rows and 2 columns. But row size is not fixed then how to show them in table layout format? Thanks in advance. -- 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: is there a limit for the lenght of a texview's text?
ok I try On 2 Nov, 22:01, TreKing treking...@gmail.com wrote: On Tue, Nov 2, 2010 at 3:43 PM, Paolo brand...@gmail.com wrote: the font color is the default. Change it and the background color just to see what happens. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Changelog in Market!
Got up this morning and went ahead with some planned releases to a couple of my apps. When I got into the app detail page on my Market Developer Console, I found a new section: Recent Changes! I pasted my changelog in, published my upgrade, and it's already appearing in the Market. Text in this box appears to just be appended to your description, under a heading of Recent changes:. More info from Google can be found here: http://market.android.com/support/bin/answer.py?answer=189724 All I can say is, WOO HOO! It's about frackin' time! String -- 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: Changelog in Market!
Thanks for the tip, very good news. But what is it with 325 ? I'm sure that's not a power of 2 is it ? Thanks Big G. Pent -- 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 inject view from a dialog layout xml file when using RoboGuice?
It seems that roboguice can only inject views from the contentView defined in onCreate(...) of the activity, outside onCreate(), for example, if I have my custom dialog, which has also a content view (e.g.dialog.setContentView(R.layout.dialog_layout);), the views inside the dialog_layout.xml can not be injected. How can I inject views from this dialog_layout in my activity when using RoboGuice?? -- 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: Segmented video streaming on Android
Playing Http live Streaming is not Android Developer group question but more Android porting. If I had to do it I will directly manage OMX (OpenMax) component. Each Video segment contain codec configuration metadata and OMX more or less a FIFO for video stream (M4V, h264...). For H264 it will reconfigure automatically when you will feed with SPS ans PPS. The problem will be surface output resolution change between two segments. frameworks/base/media/libstagefright/AwesomePlayer.cpp seems a good starting point If you have development phone you could try Stagefright command line, it could give you idea. frameworks/base/cmds/stagefright/stagefright.cpp Post on this group or Android Porting if you get improvement. On Oct 30, 1:33 am, Kristian kristian.even...@gmail.com wrote: Yes, I agree. Perhaps it is better to see what Gingerbread has to offer before trying to create some platform-dependent native-code solution. Hopefully, the fact that iOS support Live Streaming will server as an extra motivation to add it to Android as well. -Kristian On Oct 29, 8:47 pm, Dana L dana11...@gmail.com wrote: I couldn't find any good documentation on StageFright, and I didn't get much by looking through the code. Supposedly StageFright is pretty buggy, so it makes sense to use OpenCore for the time being (maybe Gingerbread will address some of the problems). I'm sort of surprised that Android doesn't support this stuff out of the box. Maybe they will add support for HTTP Live Streaming or at the very least invent their own live streaming protocol. On Oct 28, 3:11 pm, Kristian kristian.even...@gmail.com wrote: Hi, Thanks, I am working on some possible solutions now. One idea I have is to skip MediaPlayer altogheter and write some native-code that will communicate directly with Stagefright/OpenCore. However, after a quick look through their source, they seem to not allow me the freedom I want either. A possible solution would be to feed the raw h264 bytestream to the media-framework (if possible) and send the frames back up to the GUI through JNI. Btw, do you have any or know of any examples of how to use Stagefright/ Opencore? -Kristian On Oct 27, 9:01 pm, Dana L dana11...@gmail.com wrote: There have been a couple of threads on this topic over the past few weeks. I've been trying to get this working as well, and no matter what I do, there is always a brief pause between segments. I have seen a bunch of other suggested approaches on here that also don't work. I've managed to do POCs of video streaming to Android with both Flash and via RTSP. Unfortunately, performance isn't as good as MP4 playback, even using the same video codec (h264). It seems like the only option that would actually work is to write a custom media player in native code. The following company has a working solution (they implement Apple's HTTP Live Streaming Protocol in a custom player). Performance isn't superb (you aren't going to get 720p playback), but it works at a reasonable resolution.http://www.nextreaming.com/ If you manage to get this working, please let me know. - Dana On Oct 27, 8:32 am, Kristian kristian.even...@gmail.com wrote: Hello, I am working on an porting an application supporting segmented video streaming to Android. For those who are not familiar with segmented streaming, it is when a complete video is divided into multiple segments. Each segment can then, for example, be encoded at different qualities to support different clients. Anyway, my problem is that I am not able to get a smooth transition between segments. Currently, the only way I have gotten segmented streaming working, is to write the segments into independent, temporary files, and then load each file into the MediaPlayer once the previous has finished. This causes an interruption in playback between each segment, probably due to the I/O involved. I have looked around for different solutions, among others, playlists and storing the videos directly in memory. However, none seem to work or be supported by Android. Also, I tried creating two MediaPlayer- objects and do something similar to double-buffering by preparing the next segment well ahead of the previous, but it only made the application unstable. My question is therefore: Does anyone have any hints, tips or examples for how to do smooth transition between video segments? The segments I am working with are independent, so there is no dependency and they can be viewed as X number of independent video files. -Kristian -- 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
RE: [android-developers] How to pass a Context variable from one Activity to another ?
Hi Vinay, Yes, I meant some data of present activity. The trivial method would be using static variables as you have already mentioned in your reply. That's actually what I have been doing so far. Using database on the other hand seems to be an overkill. Anyway, I just wanted to find out whether there is a better alternative or not. Thanks for your comments. TreKing, thanks for your reply as well. Cheers, Emre Date: Wed, 3 Nov 2010 14:44:22 +0530 Subject: Re: [android-developers] How to pass a Context variable from one Activity to another ? From: vinayju...@gmail.com To: android-developers@googlegroups.com Not sure what you mean by context variables Activity itself is a context... so while starting an activity you can pass this (wild guess) in the bundle. But why would to want to pass it to another activity? Or do u mean some data of present activity would be required in the next activity. Well then you can use bundle put extras. and then gather extras in the new activity. Or u can use static variables to share data between the two activities or activity and service. And if you are not comfortable with the static variables then data base is always there. Vinay Julme ** On Wed, Nov 3, 2010 at 5:36 AM, Emre A. Yavuz eayl...@hotmail.com wrote: Hi, I have a Tab Layout which has two tabs that correspond to one Activity each (A and B) . When I run my application, let's say by running MainActivity(), I expect it to display the first Tab and thus run Activity A by default and switch to Activity B when the second Tab is selected. Let's assume I'd like to pass a Context variable in my MainActivity to either Activity A or B. How should I do it, what is the most efficient approach ? Any suggestions ? Cheers, Emre -- 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 -- 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 -- 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] is there a limit for the numebr of markers to show on a MapView?
As the object of this topic...is there a limit for the numebr of markers to show on a MapView at the same time with the Google API? -- 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
Re: [android-developers] How to pass a Context variable from one Activity to another ?
check the addExtra methods on the Intent class On Wed, Nov 3, 2010 at 10:55, Emre A. Yavuz eayl...@hotmail.com wrote: Hi Vinay, Yes, I meant some data of present activity. The trivial method would be using static variables as you have already mentioned in your reply. That's actually what I have been doing so far. Using database on the other hand seems to be an overkill. Anyway, I just wanted to find out whether there is a better alternative or not. Thanks for your comments. TreKing, thanks for your reply as well. Cheers, Emre -- Date: Wed, 3 Nov 2010 14:44:22 +0530 Subject: Re: [android-developers] How to pass a Context variable from one Activity to another ? From: vinayju...@gmail.com To: android-developers@googlegroups.com Not sure what you mean by context variables Activity itself is a context... so while starting an activity you can pass this (wild guess) in the bundle. But why would to want to pass it to another activity? Or do u mean some data of present activity would be required in the next activity. Well then you can use bundle put extras. and then gather extras in the new activity. Or u can use static variables to share data between the two activities or activity and service. And if you are not comfortable with the static variables then data base is always there. Vinay Julme ** On Wed, Nov 3, 2010 at 5:36 AM, Emre A. Yavuz eayl...@hotmail.com wrote: Hi, I have a Tab Layout which has two tabs that correspond to one Activity each (A and B) . When I run my application, let's say by running MainActivity(), I expect it to display the first Tab and thus run Activity A by default and switch to Activity B when the second Tab is selected. Let's assume I'd like to pass a Context variable in my MainActivity to either Activity A or B. How should I do it, what is the most efficient approach ? Any suggestions ? Cheers, Emre -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Android: DeadObjectException for InputMethodService (SoftKeyboard API sample)
I'm playing around with a modified version of the SoftKeyboard sample and sometimes get a `DeadObjectException` when using the fullscreen mode (e.g. when orientation == landscape). I can still enter text, but the `ExtractEditText` doesn't update and I get the logcat output below, whenever I hit a new key. When I switch to portrait (no fullscreen mode) I can see the entered characters. When I then go back to landscape (fullscreen mode) the `ExtractEditText` is updated with the characters. However, when I then try to enter new character the problem repeats. Also, when in fullscreen mode and I change the cursor position it does change it in the `ExtractEditText` but doesn't really change the position for my `InputConnection`. I believe this problem/bug is already in the SoftKeyboard API sample, since I didn't modify anything related to that, however, so far I wasn't able to figure out where. Maybe someone can point me in the right direction? 13349 InputMethodManager W IME died: com.playground.keyboard/.MyInputMethod 13349 InputMethodManager W android.os.DeadObjectException 13349 InputMethodManager W at android.os.BinderProxy.transact(Native Method) 13349 InputMethodManager W at com.android.internal.view.IInputMethodSession$Stub $Proxy.updateSelection(IInputMethodSession.java:227) 13349 InputMethodManager W at android.view.inputmethod.InputMethodManager.updateSelection(InputMethodManager.java: 1190) 13349 InputMethodManager W at android.widget.TextView.onDraw(TextView.java:4064) 13349 InputMethodManager W at android.view.View.draw(View.java:6591) 13349 InputMethodManager W at android.view.ViewGroup.drawChild(ViewGroup.java:1531) 13349 InputMethodManager W at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) 13349 InputMethodManager W at android.view.ViewGroup.drawChild(ViewGroup.java:1529) 13349 InputMethodManager W at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) 13349 InputMethodManager W at android.view.View.draw(View.java:6697) 13349 InputMethodManager W at android.widget.FrameLayout.draw(FrameLayout.java:352) 13349 InputMethodManager W at android.view.ViewGroup.drawChild(ViewGroup.java:1531) 13349 InputMethodManager W at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) 13349 InputMethodManager W at android.view.View.draw(View.java:6594) 13349 InputMethodManager W at android.view.ViewGroup.drawChild(ViewGroup.java:1531) 13349 InputMethodManager W at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) 13349 InputMethodManager W at android.view.View.draw(View.java:6594) 13349 InputMethodManager W at android.widget.FrameLayout.draw(FrameLayout.java:352) 13349 InputMethodManager W at android.view.ViewGroup.drawChild(ViewGroup.java:1531) 13349 InputMethodManager W at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) 13349 InputMethodManager W at android.view.ViewGroup.drawChild(ViewGroup.java:1529) 13349 InputMethodManager W at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) 13349 InputMethodManager W at android.view.View.draw(View.java:6594) 13349 InputMethodManager W at android.widget.FrameLayout.draw(FrameLayout.java:352) 13349 InputMethodManager W at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1884) 13349 InputMethodManager W at android.view.ViewRoot.draw(ViewRoot.java:1349) 13349 InputMethodManager W at android.view.ViewRoot.performTraversals(ViewRoot.java:1114) 13349 InputMethodManager W at android.view.ViewRoot.handleMessage(ViewRoot.java:1633) 13349 InputMethodManager W at android.os.Handler.dispatchMessage(Handler.java:99) 13349 InputMethodManager W at android.os.Looper.loop(Looper.java:123) 13349 InputMethodManager W at android.app.ActivityThread.main(ActivityThread.java:4363) 13349 InputMethodManager W at java.lang.reflect.Method.invokeNative(Native Method) 13349 InputMethodManager W at java.lang.reflect.Method.invoke(Method.java:521) 13349 InputMethodManager W at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:862) 13349 InputMethodManager W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) 13349 InputMethodManager W at dalvik.system.NativeStart.main(Native Method) FYI: I also posted the question on StackOverflow: http://stackoverflow.com/questions/4086415/android-deadobjectexception-for-inputmethodservice-softkeyboard-api-sample -- 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] Can not update app on the Market now
Hi, guys I found that I cannot update my app now, today I found that market start to support Recent Changes feature, but when I want to use that feature, I found that I cannot update my app, the publish button is now a gray button. How about you? What's happened? thanks, -- 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: Android source code (complete)
Ok..Then how do i get to know the complete directory structure,so that i can select one and download the source for the selected directory as i did for /platform/frameworks/base . I am using Git for windows. -Adithya On Nov 3, 4:56 am, Matt Quigley matthew.quig...@gmail.com wrote: There are many more project directories that make up theAndroidsource. /platform/frameworks/base is just one of many onhttp://android.git.kernel.org/. I don't know off hand where ServiceManager.java is, but it's there somewhere. -Matt On Nov 2, 1:25 am, adithya 24adit...@gmail.com wrote: Hi all, I have downloaded some amount ofandroidsourcecode(for Bluetooth API's, wifi API's,etc)..I was just browsing through Bluetoothsource codein eclipse and bumped on this ServiceManager class whosesource codei couldn't read !! When i browsed through theandroid.jar i couldn't see thesourcecodefor few packages like java.nio ,etc.. I have downloaded git for windows and whateversourcecodei have is through the following command : git clone git://source.android.com/platform/frameworks/base and put all the java files into a 'sources' folder which worked.. How can i get thesourcecodefor aforementioned classes ?? Thanks, Adithya. -- 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: Listen/bind a hardwarebutton to a activity/event
Sorry for bumping, is there anyone that knows anything about this? On 1 Nov, 12:55, Rijad Sacirovic rij...@gmail.com wrote: Hey there, this is kind of a wide question that I'll break down for you. In general I'm wondering if its is possible, if so then how, to bind/listen to a hardware-button to my application. * Is it possible to make a hardware-button start my app on shot/ long press? * Is it possible to start/trigger my widget on a longpress of a hardware-button? * Is it possible to (when i have the app in the background) make a hardwarebutton triger this app to the foreground/activate it? * Is it possible to let a servive listen to long-press of a button? * The camera activity on some phones has a camerabutton, can this button be programed to work with my app? What I want to do is that upon a longrpress (hold valume up/home- button for more than 3 seconds) start/execute a activity in my application like the camera-application and its camerabutton. Im searching for any and all information about this right now as I cant find any real answer ;( -- 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
Re: [android-developers] Changelog in Market!
On Wed, Nov 3, 2010 at 3:51 PM, String sterling.ud...@googlemail.comwrote: Got up this morning and went ahead with some planned releases to a couple of my apps. When I got into the app detail page on my Market Developer Console, I found a new section: Recent Changes! I pasted my changelog in, published my upgrade, and it's already appearing in the Market. Text in this box appears to just be appended to your description, under a heading of Recent changes:. More info from Google can be found here: http://market.android.com/support/bin/answer.py?answer=189724 All I can say is, WOO HOO! It's about frackin' time! String -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- 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
Re: [android-developers] Re: How to unsign the signed apk file?
HI Kostya, The baseline is I want to use robotium on android's standard applications (like gallery, alarm etc). I want to automate tests for it. To use robotium, the sign should be same for junit test app and the std android app. So I have to change any one of them. And to change any one of them, I also need to know for any one of them! Let me know if you have any idea regarding this specific scenario? Thanks. On Wed, Nov 3, 2010 at 2:27 PM, Kostya Vasilyev kmans...@gmail.com wrote: Let's see - removing the signature from an apk, then signing it with a different key... If this is your own application, I don't see a reason to do this. If this is someone else's application - ! - are you trying to pirate someone else's work? -- Kostya 03.11.2010 9:49, Sarwar Erfan пишет: On Nov 3, 12:29 pm, Nency Robertavayam...@gmail.com wrote: HI Chris, Also want to know how to know the signature of any apk file? please share commands/procedure/tools for it. Thanks. You will need Jarsigner. Get all information here: http://developer.android.com/guide/publishing/app-signing.html Regards Sarwar Erfan -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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 -- 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] Can we catch android.intent.action.ACTION_UMS_CONNECTED event
Hi I want to show some notification when android phone is connected to system. I implemented BroadcastReceiver for listening to event android.intent.action.ACTION_UMS_CONNECTED in my application But it is not working. Is it possible to capture this event Please help Regards, Karteek -- 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: Changelog in Market!
Weird that it isn't search indexed. If you have an awesome new feature that you think is the sort of thing people search for, you are better off putting it in your main description because of that. Maybe even moving something from your main description that doesn't need to be searched on into this new field so you have the room. Kind of sucks that the best way to use the new field is to ignore its stated purpose... On Nov 3, 6:21 am, String sterling.ud...@googlemail.com wrote: Got up this morning and went ahead with some planned releases to a couple of my apps. When I got into the app detail page on my Market Developer Console, I found a new section: Recent Changes! I pasted my changelog in, published my upgrade, and it's already appearing in the Market. Text in this box appears to just be appended to your description, under a heading of Recent changes:. More info from Google can be found here:http://market.android.com/support/bin/answer.py?answer=189724 All I can say is, WOO HOO! It's about frackin' time! String -- 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: Changelog in Market!
Still, excellent to finally have this - much requested - market feature. On Nov 3, 1:28 pm, Lance Nanek lna...@gmail.com wrote: Weird that it isn't search indexed. If you have an awesome new feature that you think is the sort of thing people search for, you are better off putting it in your main description because of that. Maybe even moving something from your main description that doesn't need to be searched on into this new field so you have the room. Kind of sucks that the best way to use the new field is to ignore its stated purpose... On Nov 3, 6:21 am, String sterling.ud...@googlemail.com wrote: Got up this morning and went ahead with some planned releases to a couple of my apps. When I got into the app detail page on my Market Developer Console, I found a new section: Recent Changes! I pasted my changelog in, published my upgrade, and it's already appearing in the Market. Text in this box appears to just be appended to your description, under a heading of Recent changes:. More info from Google can be found here:http://market.android.com/support/bin/answer.py?answer=189724 All I can say is, WOO HOO! It's about frackin' time! String -- 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: Show Picasa album of a particular user in the app
Hi Kumar, Thanks for your answer.. that really helped. Now i am able to install the app but i am getting a SAXNotRecognizedException. Any idea why? Here is the detailed log of it: 11-03 17:25:14.459: WARN/System.err(308): com.google.gdata.util.ParseException: org.xml.sax.SAXNotRecognizedException: http://xml.org/sax/features/external-parameter-entities 11-03 17:25:14.480: WARN/System.err(308): at com.google.gdata.util.XmlParser.parse(XmlParser.java:708) 11-03 17:25:14.490: WARN/System.err(308): at com.google.gdata.util.XmlParser.parse(XmlParser.java:576) 11-03 17:25:14.499: WARN/System.err(308): at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:867) 11-03 17:25:14.499: WARN/System.err(308): at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 68) 11-03 17:25:14.499: WARN/System.err(308): at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 39) 11-03 17:25:14.519: WARN/System.err(308): at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java: 100) 11-03 17:25:14.529: WARN/System.err(308): at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java: 52) 11-03 17:25:14.541: WARN/System.err(308): at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 66) 11-03 17:25:14.541: WARN/System.err(308): at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 34) 11-03 17:25:14.549: WARN/System.err(308): at com.google.gdata.client.Service.parseResponseData(Service.java:2165) 11-03 17:25:14.559: WARN/System.err(308): at com.google.gdata.client.Service.parseResponseData(Service.java:2098) 11-03 17:25:14.570: WARN/System.err(308): at com.google.gdata.client.Service.getFeed(Service.java:1136) 11-03 17:25:14.570: WARN/System.err(308): at com.google.gdata.client.Service.getFeed(Service.java:998) 11-03 17:25:14.570: WARN/System.err(308): at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631) 11-03 17:25:14.570: WARN/System.err(308): at com.google.gdata.client.Service.getFeed(Service.java:1017) 11-03 17:25:14.570: WARN/System.err(308): at com.agsf.picasa.Welcome.onCreate(Welcome.java:33) 11-03 17:25:14.570: WARN/System.err(308): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 11-03 17:25:14.570: WARN/System.err(308): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) 11-03 17:25:14.570: WARN/System.err(308): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 11-03 17:25:14.609: WARN/System.err(308): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 11-03 17:25:14.619: WARN/System.err(308): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 11-03 17:25:14.619: WARN/System.err(308): at android.os.Handler.dispatchMessage(Handler.java:99) 11-03 17:25:14.619: WARN/System.err(308): at android.os.Looper.loop(Looper.java:123) 11-03 17:25:14.629: WARN/System.err(308): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-03 17:25:14.629: WARN/System.err(308): at java.lang.reflect.Method.invokeNative(Native Method) 11-03 17:25:14.629: WARN/System.err(308): at java.lang.reflect.Method.invoke(Method.java:521) 11-03 17:25:14.629: WARN/System.err(308): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-03 17:25:14.629: WARN/System.err(308): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-03 17:25:14.629: WARN/System.err(308): at dalvik.system.NativeStart.main(Native Method) 11-03 17:25:14.629: WARN/System.err(308): Caused by: javax.xml.parsers.ParserConfigurationException: org.xml.sax.SAXNotRecognizedException: http://xml.org/sax/features/external-parameter-entities 11-03 17:25:14.641: WARN/System.err(308): at org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java: 84) 11-03 17:25:14.671: WARN/System.err(308): at com.google.gdata.util.XmlParser.parse(XmlParser.java:682) 11-03 17:25:14.671: WARN/System.err(308): ... 28 more On Nov 3, 2:43 pm, Kumar Bibek coomar@gmail.com wrote: 11-03 12:00:16.603: WARN/dalvikvm(1702): Unable to resolve superclass of Lcom/google/gdata/data/media/MediaMultipart; (1746) 11-03 12:00:16.613: WARN/dalvikvm(1702): Link of class 'Lcom/google/ gdata/data/media/MediaMultipart;' failed 11-03 12:00:16.623: ERROR/dalvikvm(1702): Could not find class 'com.google.gdata.data.media.MediaMultipart', referenced from method com.google.gdata.client.media.MediaService.insert 11-03 12:00:16.623: WARN/dalvikvm(1702): VFY: unable to resolve new- instance 861 (Lcom/google/gdata/data/media/MediaMultipart;) in Lcom/ google/gdata/client/media/MediaService; These logs can give you some hints. I guess you are missing out activation.jar and mail.jar They are required to work with these libraries.
[android-developers] Re: Activity versus Service threads
On Nov 1, 12:26 pm, jotobjects jotobje...@gmail.com wrote: - The bindService method provides assurance that the Service has started. Further testing shows this statement is NOT accurate. If you call bindService from your Activity onCreate() or onStart() bindService() it will return true indicating your Activity is bound BUT the Service will not have been constructed and the Service onCreate() method will NOT have been called. This is a little non-intuitive since you would think that if you are bound to a service, the service would at least exist. But it might not even exist yet! This result might be because of the guarantee that the onCreate() methods of the Activity and the Service are guaranteed to complete in their lifecycle. So maybe Android only lets one of them run at a 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] background and resize option
Hi all. I am having problems with a layout my designer set for me to do. Here's the idea: +--+ | | +--+--+--+--+ +--+ | || | | | | 1 | | 2 | | || | | | +--+--+--+--+ +--+ +---+ (I'm not sure how this will look since there is no monospace setting in google groups :( ) In short: The screen has two main parts: 1 and 2 Both of them have 6 rows. But part one has 4 columns, and part 2 has only one column. Each cell contains only one image icon. *The problem*: The background of element 1 must be a rounded rectangle while element 2 has no background. Does anyone have in mind how to accomplish this ? Why is it such a problem ? The whole 'table' is stretchable so it fills out the screen. So there is no way for me to grab the 1 and set the background and maintain the alignment between 1 and 2 at the same time. Any hints ? -- 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] myLocationOverlay - customizing the compass position on screen?
Hello, I am using these three lines to add a compass on the MapView: mMyLocationOverlay = new MyLocationOverlay(this,mapView); mMyLocationOverlay.enableCompass(); mapView.getOverlays().add(mMyLocationOverlay); However the default position of the compass showing on the screen is not too good for my apps, and I want to move it to somewhere else. Anyone knows how I can achieve that? Many thanks in advance! ryandroid -- 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: Changelog in Market!
On Nov 3, 12:28 pm, Lance Nanek lna...@gmail.com wrote: Weird that it isn't search indexed. Good observation. Let's hope that, with the Market improvements that are trickling in, this might happen at some point. Care to open an issue on http://b.android.com about it? String -- 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] ADT painstakingly remove my exclusion setting for android library
I have a common library android project being used by several other projects. And I use svn to manage my source code. So I have to exclude svn files from compiling process otherwise eclipse will generate errors saying something already exists bla bla... This setting works very well until recently I switched to mac os (and upgrade to newest version of ADT, I don't know which is really the cause of this problem). Now every time I re-open eclipse, the .classpath file of my project is re-written and the exclusion setting is lost. I have to either manually revert to previous version or re-set the exclusion again. It is really annoying. I would like to ask if this behaviour of ADT can be shut down? -- 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: HTC Development Phone 1
I have a rooted G1 with the engineering SPL installed on it, so it's the same as the original G1 dev phone. I put CyanogenMod on it, and I have Froyo 2.2. The memory is a bit low, but it works. I have a build system set up so I can build everything from source, too. -- 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: Cannot Get to My Application in Market as a Developer
Yeah, definitely try opening a link in incognito mode directly to what you want. I've been unable to open secured Google Docs spreadsheets any other way for over a week now using my Google Apps account. Any other way of opening them gives me the normal no permission to access page, even though I have permission to access them with the exact same account it complains doesn't have it. Clearing all my browser data doesn't work. I use separate browsers for my gmail account and apps account anyway (Firefox vs. Chrome). Something about permissions/ access with google apps accounts is horribly broken right now and maybe that applies to the market console as well. On Oct 31, 11:35 pm, claytan...@sightlyinc.com claytan...@sightlyinc.com wrote: Hey all, Something really strange happened today and I could really use some help figuring it out. I believe its related to Google's SSO infrastructure, and I don't really know how to contact Google to get my application rescued. I have a google apps account I used to create the application, its claytantor at sightlyinc dot com not a f...@gmail.com account but its a Google Apps account, so I used it to upload and distribute my application. Today when I was using blogger my account said do you want to use claytantor at sightlyinc dot com or claytantor at sightlyinc dot com for this account? what kind of choice is that they are both the same? Well my guess is that somehow I chose the one that locks me out of my Android Market account because when I went to try to upload a new version of my app it thinks I don't have an Android Market account. Paying the extra 20 bucks wouldn't bug me but there is a version of my software out there that I cant access or manage now, and that *really* bothers me. If I create a new account I will have two versions of mys software floating around the new one and the old one that has been stranded! Arrg I cant live with that. It also doesn't feel good that I cant figure out how to contact google directly. Scared, Clay -- 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] SimpleExpandableListAdapter sub-class
i've got one of these sub-classes. when i populate it with 1 group entry with zero-children. it crashes when i click on it - expand. i understand there's nothing to expand. but it crashes somewhere in SimpleExpandableListAdapter code with an array index access exception. anyway around 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] Re: Linkify
The value of your href attribute is incorrect. It should start with mailto:;. Adding an intent-filter to your manifest makes no sense. You would only do that if you wanted an activity in your app to get called instead of the email app. The scheme is mailto, not http anyway. On Oct 31, 10:50 pm, Priyank Maiya priyankvma...@gmail.com wrote: Hi, Thanks for the reply.. I am trying to do what you said. I defined a string: string name= support_requestSupport Request: a href= supp...@unl.com?subject=commentssupp...@unl.com/a/string In my .java code, I created a textview and called the setMovementmethod like this: TextView emailLink; emailLink = (TextView) this.findViewById(R.id.support_request); emailLink.setMovementMethod(LinkMovementMethod.getInstance()); I am getting the error below when I run the app and click on the email text: 11-01 02:44:42.431: ERROR/AndroidRuntime(1870): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=supp...@unl.com?subject=comments(has extras) } I think I am missing something in the manifest file. I am not sure what I need to fill there. Whar do I enter in the data field in the intent filter? Here is my intent filter I have defined in the corresponding activity: intent-filter action android:name=android.intent.action.VIEW/ category android:name=android.intent.category.DEFAULT/ category android:name=android.intent.category.BROWSABLE/ data android:scheme=http android:host=supp...@unl.com/ /intent-filter I think I am doing something wrong here. Please Help. Thanks, Priyank On Sat, Oct 30, 2010 at 7:31 PM, Lance Nanek lna...@gmail.com wrote: I haven't gotten autoLink/Linkify to work with subjects, but I have used explicit mailto href values that included the subject parameter in TextView views successfully. The way I did it the string in the strings XML has a literal anchor tag in it with the mailto href including a subject parameter. I set the string via the text attribute on the TextView in XML and the HTML link gets converted properly. Then I also call: setMovementMethod(LinkMovementMethod.getInstance()); On the TextView from code. The amount of HTML a TextView will parse is limited, but apparently it is enough for mailto links with subject parameters, at least. On Oct 30, 5:55 pm, Priyank priyankvma...@gmail.com wrote: Hi, I am stuck at a place when I was using Linkify to create Link an email id to the Android email app. I have a large sentence in a textview which has an email id. On clicking on it, it opens my android email app. But The problem is that, I cannot add any subject or message in the mail. Is there any way of doing this using linkify ? Or do I have to use any other way for doing this. I initially used a textview which had just the email id, from which I could add the subject and message, but i will have to keep the email id in a separate line. I want the entire line in the textview where the email id comes in the middle of the sentence. I am currently doing like this: TextView emailLink; emailLink = (TextView) this.findViewById(R.id.support_request); Linkify.addLinks(emailLink,Linkify.EMAIL_ADDRESSES); Thanks, Priyank -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] SimpleExpandableListAdapter sub-class
Your group should contain atleast one child, else, it will try to render it's children, and since you don't have any, it throws ArrayIndexOutOfBounds exception On Wed, Nov 3, 2010 at 6:56 PM, dashman erjdri...@gmail.com wrote: i've got one of these sub-classes. when i populate it with 1 group entry with zero-children. it crashes when i click on it - expand. i understand there's nothing to expand. but it crashes somewhere in SimpleExpandableListAdapter code with an array index access exception. anyway around 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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: Can we catch android.intent.action.ACTION_UMS_CONNECTED event
I want to show some notification when android phone is connected to system. I implemented BroadcastReceiver for listening to event android.intent.action.ACTION_UMS_CONNECTED in my application But it is not working. Is it possible to capture this event Yes, though if I remember right some users have mentioned it doesn't work on some configurations. If you're using a manifest-declared receiver, maybe try creating one at runtime instead (that's what my app does). Pent -- 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: Rotate bitmap in opengl
Thanks Jason. One month later and I finally got it working. You were correct but it has taken a bit of time me to get my head around what was going on. You suggestion would rotate the texture around the point at which it was drawn but I wanted to rotate it around it's mid-point. I see now that the secret is to: - translate the origin to a draw point plus half the width and height. - rotate - translate back by half the width and height. - draw Here is my code. Note to anyone looking at this that I have just tried it out and I am sure it can be tidied up. Also most importantly I am adjusting the co-ordinate system to match that of canvas where the top left is (0,0). This is because by drawing primitives as set to work in Canvas as well. surface.glMatrixMode(GL10.GL_MODELVIEW); Grid.beginDrawing(surface, true, false); surface.glBindTexture(GL10.GL_TEXTURE_2D, ids[index]); surface.glLoadIdentity(); surface.glPushMatrix(); // Draw using the DrawTexture extension. float drawWidth = texture.getDrawWidth(); float drawHeight = texture.getDrawHeight(); float ypos = screenHeight - drawHeight - y; if (angle0) { float halfWidth = drawWidth/2; float halfHeight = drawHeight/2; surface.glTranslatef(x+halfWidth, ypos+halfHeight, 0); surface.glRotatef(-angle, 0.0f, 0.0f, 1.0f); surface.glTranslatef(-halfWidth, -halfHeight, 0); } else { surface.glTranslatef(x, ypos, 0); } texture.getGrid().draw(surface, true, true); surface.glPopMatrix(); Grid.endDrawing(surface); surface.glDisable(GL10.GL_TEXTURE_2D); Al. On Oct 15, 3:37 pm, Jason jason.poli...@gmail.com wrote: You want to call glLoadIdentity before anything else, and remember that the commands are on a stack, so are processed in reverse order. The glLoadIdentity will reset everything, so your matrix will be at 0,0. This means you draw, rotate, then translate; but you push the commands to do this onto the stack in reverse order. Here's what I do: // Load the identity matrix so we always start from 0,0 gl.glLoadIdentity(); // push a copy of the matrix on the stack to manipulate gl.glPushMatrix(); // translate to target coordinates. gl.glTranslatef(x, y, 0.0f); // Scale if needed // gl.glScalef(scaleX, scaleY, 1.0f); // Rotate (must be in degrees) gl.glRotatef((float)Math.toDegrees(angle), 0, 0, 1.0f); // push the draw command last grid.draw(gl); // finally pop the matrix gl.glPopMatrix(); There is NO need to re-translate back anywhere.. and certainly no need to perform an additional rotation as suggested. On Oct 15, 8:42šam, Kostya Vasilyev kmans...@gmail.com wrote: Add another rotate call before the non-working translate, with the inverse angle (in your case, the value in 'angle' without the '-'). This will reverse the rotation so the translate call can undo the translation. -- Kostya Vasilyev --http://kmansoft.wordpress.com 15.10.2010 1:30 ÐÏÌØÚÏ×ÁÔÅÌØ Alistair. alistair.rutherf...@gmail.com ÎÁÐÉÓÁÌ: Alas, that had no effect. I have _something_ sort of working š š š š š šsurface.glMatrixMode(GL10.GL_MODELVIEW); surface.glEnable(GL10.GL_TEXTURE_2D); surface.glBindTexture(GL10.GL_TEXTUR... š š š š š šGrid.beginDrawing(surface, true, false); š š š š š šsurface.glPushMatrix(); // Draw using the DrawTexture extension. š š š š š šint drawHeight = texture.getDrawHeight(); š š š š š šint drawWidth = texture.getDrawWidth(); š š š š š šfloat ypos = screenHeight - drawHeight- y; š š š š š šsurface.glLoadIdentity(); š š š š š šsurface.glTranslatef(x, ypos, 0); surface.glRotatef(-angle, 0.0f, 0.0f, 1.0f); š š š š š šsurface.glTranslatef(-x, -ypos, 0); // THIS NOT DOING WHAT I THOUGHT WOULD š š š š š štexture.getGrid().draw(surface, true, false); š š š š š šsurface.glPopMatrix(); š š š š š šGrid.endDrawing(surface); surface.glDisable(GL10.GL_TEXTURE_2D); What I can't seem to get working now it the re-translate back to the original point after the rotation. On Oct 12, 6:02 am, Kunal Kant kunalkant2...@gmail.com wrote: remove that line surface.glLoad... alistair.rutherf...@gmail.comwrote: I am trying to rotate a bitmap in OpenGL. I have searched around and come up w... android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en... -- 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
[android-developers] Re: Google analytics install referrer problem
issue solved, problem was in url generator. It generates urls like http://market.android.com/search?q=pname:com.mycompanyreferrer=utm_source%3Dsource%26utm_medium%3Dmedium%26utm_campaign%3Dname but we need, something like this: http://market.android.com/details?id=com.mycompanyreferrer=utm_source%3Dsource%26utm_medium%3Dmedium%26utm_campaign%3Dname i.e.: /search?q=pname: should be /details?id= I hope this will help someone On Nov 1, 4:26 pm, Alex Polyakov alexpolyakov...@googlemail.com wrote: I needed to track install information, so i used com.android.vending.INSTALL_REFERRER intent for google analytics:http://code.google.com/mobile/analytics/docs/android/ I have put that intent into manifest as following: receiver android:name=com.mycompany.MyReceiver android:exported=true intent-filter action android:name=com.android.vending.INSTALL_REFERRER / /intent-filter /receiver Inside MyReceiver class, i've implemented: public void onReceive(Context context, Intent intent) { String referrer = URLDecoder.decode(intent.getStringExtra(referrer)); Log.d(TAG, referrer); com.google.android.apps.analytics.AnalyticsReceiver receiver = new com.google.android.apps.analytics.AnalyticsReceiver(); receiver.onReceive(context, intent); } Then i installed app using generated athttp://code.google.com/mobile/analytics/docs/android/#android-market-... url, and got this in log: DEBUG/TestApplication(31977): utm_source=androidmarketutm_medium=deviceutm_campaign=searchutm_term=pna me:com.mycompany.test.marketrowindex=0hl=encorrectedQuery= WARN/googleanalytics(31532): Badly formatted referrer missing campaign, name or source WARN/googleanalytics(31532): Badly formatted referrer, ignored So, instead of referral data that was given at url generation, i've got data which looks like i was searching for my app at Market Does anyone have this kind of trouble, or knows how to 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
[android-developers] Align Custom Dialog at the bottom of the screen
Hey how can arrange the custom dialog at the bottom of the screen by default it displays at the center of the screen. I used to android:gravity=bottom to change the position. But it not change the position. -- 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
Re: [android-developers] Re: Changelog in Market!
On Wed, Nov 3, 2010 at 7:46 AM, String sterling.ud...@googlemail.comwrote: Weird that it isn't search indexed. Good observation. Let's hope that, with the Market improvements that are trickling in, this might happen at some point. Care to open an issue on http://b.android.com about it? If it were searchable, people would just use it as an extension to their app description to add more stuff people might search for to find their app. I'm pretty sure this is deliberate so people use it as intended - add a description of what changed for the people that care: your current users that don't need to find your app. On Wed, Nov 3, 2010 at 5:42 AM, Pent tas...@dinglisch.net wrote: But what is it with 325 ? I'm sure that's not a power of 2 is it ? My guess: they hardcoded 325 in several thousand different place and now, if they use ANYTHING else, the world will implode. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Off market sales and LVL
If I sell a copy of a LVL controlled app outside of the market, is there a way I can authorize it so that it checks out as licensed? -- 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
Re: [android-developers] Creating Sliding Drawer in new look
On Wed, Nov 3, 2010 at 12:32 AM, Rocky rkjhaw1...@gmail.com wrote: I tried, but i'm not getting exactly what i want, What did you try? What are you getting that you don't want? Pictures and sample layout files would be highly useful in getting you help. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] is there a limit for the numebr of markers to show on a MapView?
On Wed, Nov 3, 2010 at 5:58 AM, Paolo brand...@gmail.com wrote: As the object of this topic...is there a limit for the numebr of markers to show on a MapView at the same time with the Google API? Officially? I don't think so, but at some point you're going to run out of memory, so there's SOME limit. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] myLocationOverlay - customizing the compass position on screen?
On Wed, Nov 3, 2010 at 7:45 AM, ryandroid ryn...@gmail.com wrote: Anyone knows how I can achieve that? Derive your own class from MyLocationOverlay. Override drawCompass(); Manipulate the Canvas object you're handed as necessary. Call super.drawCompass() to draw the compass at your new location. Restore the Canvas to how you found it. Profit. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Rotate bitmap in opengl
Hmm ok.. I think I may have overlooked a key piece of data here.. namely the structure of the matrix being rotated. I use a simple grid to represent most of my 2D shapes, but I assign the coordinates of the grid such that when it is positioned at 0,0 it is the center of the grid that is at these coordinates. This means I don't need to translate to the half-values you mention. I'm guessing that your grid (matrix) has all positive values for its coordinates, whereas I have half the values as negatives which means my grid is already center aligned. You may want to try the same as it will save the extra GL calls and if you have a lot of objects this could become meaningful. On Nov 4, 12:37 am, Alistair. alistair.rutherf...@gmail.com wrote: Thanks Jason. One month later and I finally got it working. You were correct but it has taken a bit of time me to get my head around what was going on. You suggestion wouldrotatethe texture around the point at which it was drawn but I wanted torotateit around it's mid-point. I see now that the secret is to: - translate the origin to a draw point plus half the width and height. -rotate - translate back by half the width and height. - draw Here is my code. Note to anyone looking at this that I have just tried it out and I am sure it can be tidied up. Also most importantly I am adjusting the co-ordinate system to match that of canvas where the top left is (0,0). This is because by drawing primitives as set to work in Canvas as well. surface.glMatrixMode(GL10.GL_MODELVIEW); Grid.beginDrawing(surface, true, false); surface.glBindTexture(GL10.GL_TEXTURE_2D, ids[index]); surface.glLoadIdentity(); surface.glPushMatrix(); // Draw using the DrawTexture extension. float drawWidth = texture.getDrawWidth(); float drawHeight = texture.getDrawHeight(); float ypos = screenHeight - drawHeight - y; if (angle0) { float halfWidth = drawWidth/2; float halfHeight = drawHeight/2; surface.glTranslatef(x+halfWidth, ypos+halfHeight, 0); surface.glRotatef(-angle, 0.0f, 0.0f, 1.0f); surface.glTranslatef(-halfWidth, -halfHeight, 0); } else { surface.glTranslatef(x, ypos, 0); } texture.getGrid().draw(surface, true, true); surface.glPopMatrix(); Grid.endDrawing(surface); surface.glDisable(GL10.GL_TEXTURE_2D); Al. On Oct 15, 3:37 pm, Jason jason.poli...@gmail.com wrote: You want to call glLoadIdentity before anything else, and remember that the commands are on a stack, so are processed in reverse order. The glLoadIdentity will reset everything, so your matrix will be at 0,0. This means you draw,rotate, then translate; but you push the commands to do this onto the stack in reverse order. Here's what I do: // Load the identity matrix so we always start from 0,0 gl.glLoadIdentity(); // push a copy of the matrix on the stack to manipulate gl.glPushMatrix(); // translate to target coordinates. gl.glTranslatef(x, y, 0.0f); // Scale if needed // gl.glScalef(scaleX, scaleY, 1.0f); //Rotate(must be in degrees) gl.glRotatef((float)Math.toDegrees(angle), 0, 0, 1.0f); // push the draw command last grid.draw(gl); // finally pop the matrix gl.glPopMatrix(); There is NO need to re-translate back anywhere.. and certainly no need to perform an additional rotation as suggested. On Oct 15, 8:42šam, Kostya Vasilyev kmans...@gmail.com wrote: Add anotherrotatecall before the non-working translate, with the inverse angle (in your case, the value in 'angle' without the '-'). This will reverse the rotation so the translate call can undo the translation. -- Kostya Vasilyev --http://kmansoft.wordpress.com 15.10.2010 1:30 ÐÏÌØÚÏ×ÁÔÅÌØ Alistair. alistair.rutherf...@gmail.com ÎÁÐÉÓÁÌ: Alas, that had no effect. I have _something_ sort of working š š š š š šsurface.glMatrixMode(GL10.GL_MODELVIEW); surface.glEnable(GL10.GL_TEXTURE_2D); surface.glBindTexture(GL10.GL_TEXTUR... š š š š š šGrid.beginDrawing(surface, true, false); š š š š š šsurface.glPushMatrix(); // Draw using the DrawTexture extension. š š š š š šint drawHeight = texture.getDrawHeight(); š š š š š šint drawWidth = texture.getDrawWidth(); š š š š š šfloat ypos = screenHeight - drawHeight- y; š š š š š šsurface.glLoadIdentity(); š š š š š šsurface.glTranslatef(x, ypos, 0); surface.glRotatef(-angle, 0.0f, 0.0f, 1.0f); š š š š š šsurface.glTranslatef(-x, -ypos, 0); // THIS NOT DOING WHAT I THOUGHT WOULD š š š š š štexture.getGrid().draw(surface, true, false); š š š š š šsurface.glPopMatrix(); š š š š š šGrid.endDrawing(surface);
Re: [android-developers] ADT painstakingly remove my exclusion setting for android library
On 3 November 2010 14:11, mianwo mia...@gmail.com wrote: I have a common library android project being used by several other projects. And I use svn to manage my source code. So I have to exclude svn files from compiling process otherwise eclipse will generate errors saying something already exists bla bla... I never had to exclude any SVN folders here nor seen Eclipse complaining about these folders. That would be silly as Eclipse got nothing to say here. I also got lot of other folders in project tree and it's not a problem at all. -- 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
Re: [android-developers] Re: Overriding Back Button Action in Activity
On Wed, Nov 3, 2010 at 12:44 AM, tanmay@gmail.com tanmay@gmail.comwrote: What I need to do so that I can know that the keyboard is open close it and not close the application See what values you get from super.onKeyUp() when the keyboard is and isn't open. Maybe that will tell you something. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Android source code (complete)
ServiceManager.java is in frameworks/base/core/java/android/os. If in Unix, use the find command: find frameworks/base/core -name 'ServiceManager.java' On Nov 1, 10:25 pm, adithya 24adit...@gmail.com wrote: Hi all, I have downloaded some amount of android source code (for Bluetooth API's, wifi API's,etc)..I was just browsing through Bluetooth source code in eclipse and bumped on this ServiceManager class whose source code i couldn't read !! When i browsed through the android.jar i couldn't see the source code for few packages like java.nio ,etc.. I have downloaded git for windows and whatever source code i have is through the following command : git clone git://source.android.com/platform/frameworks/base and put all the java files into a 'sources' folder which worked.. How can i get the source code for aforementioned classes ?? Thanks, Adithya. -- 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] GPS NET Position
Ok .. i Understand the Main location Function of Android but i want implementing a complete function for Device Positioning estimate with the event showed in Figure 1 of Android Dev Documentation : http://developer.android.com/guide/topics/location/obtaining-user-loc... : 1_Application Start 2_Listen for GPS and Net Update ecc with Testing on Emulator is so hard because i don't receive network's Localization parameter and the same for GPS( from shell GPS signal haven't delay and accuracy ecc ). Someone has already stand up to this Problem, and have an algorithm to do this ?? -- 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: problem with Search suggestions
Bump :( Here is my error. E/AndroidRuntime(19424): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.achie.gs1/com.achie.gs1.AnimalActivity}: java.lang.IllegalArgumentException: selectionArgs must be provided for the uri for searching animals at a: E/AndroidRuntime(19424): content://com.achie.gs1.SampleProvider/animals E/AndroidRuntime(19424):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2787) E/AndroidRuntime(19424):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2803) E/AndroidRuntime(19424):at android.app.ActivityThread.access $2300(ActivityThread.java:135) E/AndroidRuntime(19424):at android.app.ActivityThread $H.handleMessage(ActivityThread.java:2136) E/AndroidRuntime(19424):at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(19424):at android.os.Looper.loop(Looper.java:144) E/AndroidRuntime(19424):at android.app.ActivityThread.main(ActivityThread.java:4937) E/AndroidRuntime(19424):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(19424):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime(19424):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) E/AndroidRuntime(19424):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) E/AndroidRuntime(19424):at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(19424): Caused by: java.lang.IllegalArgumentException: selectionArgs must be provided for the uri for searching animals at a: E/AndroidRuntime(19424): content://com.achie.gs1.SampleProvider/animals E/AndroidRuntime(19424):at com.achie.gs1.SampleProvider.query(SampleProvider.java:61) E/AndroidRuntime(19424):at android.content.ContentProvider $Transport.query(ContentProvider.java:169) E/AndroidRuntime(19424):at android.content.ContentResolver.query(ContentResolver.java:245) E/AndroidRuntime(19424):at android.app.Activity.managedQuery(Activity.java:1527) E/AndroidRuntime(19424):at com.achie.gs1.AnimalActivity.onCreate(AnimalActivity.java:16) E/AndroidRuntime(19424):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1069) E/AndroidRuntime(19424):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2751) E/AndroidRuntime(19424):... 11 more W/ActivityManager( 108): Force finishing activity com.achie.gs1/.AnimalActivity -- 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: Scrollable Menu Bar like Fox news app
I found one way by that we can have scroll menu for our app.. we can add scrollmenu above the tab widget we can also remove tabwidget by set its visiblity to gone. HorizontalScrollView android:id=@+id/scroll_tab android:layout_width=fill_parent android:layout_height=wrap_content android:scrollbars=@null LinearLayout android:id=@+id/lay_tab_scrollmenu_inside android:layout_width=fill_parent android:layout_height=30dip android:background=#F4C900 android:fadingEdgeLength=30dip android:orientation=horizontal android:gravity=center_vertical android:layout_alignParentTop=true /LinearLayout /HorizontalScrollView -- 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
Re: [android-developers] SimpleExpandableListAdapter sub-class
On Wed, Nov 3, 2010 at 8:26 AM, dashman erjdri...@gmail.com wrote: but it crashes somewhere in SimpleExpandableListAdapter code with an array index access exception. Would you like to post the full stack trace? That would help. On Wed, Nov 3, 2010 at 8:29 AM, Kumar Bibek coomar@gmail.com wrote: Your group should contain atleast one child, else, it will try to render it's children, and since you don't have any, it throws ArrayIndexOutOfBounds exception A group most certainly can contain zero children - I do this all the time when I have nothing to display. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to unsign the signed apk file?
In what way would changing the signature and _only_ the signature be an aid to piracy? On Nov 3, 4:57 am, Kostya Vasilyev kmans...@gmail.com wrote: Let's see - removing the signature from an apk, then signing it with a different key... If this is your own application, I don't see a reason to do this. If this is someone else's application - ! - are you trying to pirate someone else's work? -- Kostya 03.11.2010 9:49, Sarwar Erfan пишет: On Nov 3, 12:29 pm, Nency Robertavayam...@gmail.com wrote: HI Chris, Also want to know how to know the signature of any apk file? please share commands/procedure/tools for it. Thanks. You will need Jarsigner. Get all information here: http://developer.android.com/guide/publishing/app-signing.html Regards Sarwar Erfan -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: SSLContext.getInstance(SSL) throws java.security.NosuchAlgorithmException: SSLContext SSL implementation not found
yep! you are right DanH , I'm using TLS not TSL. Any way the net.ssl.SSLException: Not Trusted server certificate Excepetion stiil there thank you for your help. On Nov 2, 6:48 pm, DanH danhi...@ieee.org wrote: Was just wondering because you were doing a getInstance on TSL, not TLS. On Nov 1, 2:04 pm, gato chlr dany...@gmail.com wrote: DanH , thanks for the answer, i have read about TLS, and now i know it is a SSLv3. I have tried with TLS , and it works! but, then i get a javax.net.ssl.SSLException: Not Trusted server certificate. So it seems that my know my dummy trustManager is not working :S. the exception occurs in the instruction : HttpResponse response = httpclient.execute(targetHost, httpget, localcontext); I have changed the value SSL to TLS in my desktop (not for android) and it work fine. But in my android application (this one) it throws that exception. Maybe my trustManager does not works in Android, if anybody has a code or solution to fix this problem i will really appreciate thank for the answers On 1 November 2010 14:37, DanH danhi...@ieee.org wrote: Have you tried TLS? On Nov 1, 9:29 am, gato chlr dany...@gmail.com wrote: Hi list, i want to implement a client for https, all in my localhost (in my apache, it is configured to ask authentication), with a resource https://localhost:443/resources/resource1.xml; the server works fine. I have a client for desktop, and it works fine, the resources are consumed using httpcomponents-client-4.0.3), i have readed that Android uses that version. This is the code of my client in Android (practically is the same of desktop mapped to android) , in the line of SSLContext sc = SSLContext.getInstance(TSL); the next exception is thrown : java.security.NosuchAlgorithmException: SSLContext SSL implementation not found Please does anybody know how to solve this issue? i have tried with TSL and the exception continue. import java.io.IOException; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import org.apache.http.HttpEntity; import org.apache.http.HttpException; import org.apache.http.HttpHost; import org.apache.http.HttpRequest; import org.apache.http.HttpRequestInterceptor; import org.apache.http.HttpResponse; import org.apache.http.auth.AuthScheme; import org.apache.http.auth.AuthScope; import org.apache.http.auth.AuthState; import org.apache.http.auth.Credentials; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.CredentialsProvider; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.protocol.ClientContext; import org.apache.http.impl.auth.BasicScheme; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.protocol.BasicHttpContext; import org.apache.http.protocol.ExecutionContext; import org.apache.http.protocol.HttpContext; import org.apache.http.util.EntityUtils; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class androidNativeRest extends Activity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); String res=nada; DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getCredentialsProvider().setCredentials( new AuthScope(10.0.2.2, 443), new UsernamePasswordCredentials(user, pass)); BasicHttpContext localcontext = new BasicHttpContext(); // Generate BASIC scheme object and stick it to the local // execution context BasicScheme basicAuth = new BasicScheme(); localcontext.setAttribute(preemptive-auth, basicAuth); // Add as the first request interceptor httpclient.addRequestInterceptor(new PreemptiveAuth(), 0); HttpHost targetHost = new HttpHost(10.0.2.2, 443, https); HttpGet httpget = new HttpGet(/resources/resource1.xml); res+=executing request: + httpget.getRequestLine()+/ln; res+=to target: + targetHost+/ln; //--TRUST MANAGER--- //Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[]{ new X509TrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } public void
[android-developers] First Market Experiences
Now that I've released my first app on Android Market, I can see some of the good and bad features that I've seen discussed here. I was mainly surprised by a number of low ratings by people who had obviously hardly used the program, or at least not for what it was intended for. Especially for free apps, there seem to be a number out there who download anything new free, try things until they find something they don't like, then rate it 1 star with a comments like Doesn't do X. Uninstalling. Too bad there's not a way to respond to some of these. The big surprise to me, however, was the error reporting capabilities. I had no idea that AM would provide details on errors right down to the stack trace! Yes, I did have some dreaded NullPointer situations hanging around, but was able to immediately get fixes into the next update to take care of them. I am mightily impressed with this feature! Doug Gordon -- 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
Re: [android-developers] WISH YOU HAPPY DIWALI
Thanks, Wish You too Happy Diwali..! On Tue, Nov 2, 2010 at 11:27 PM, peeyush varshney varshney.peey...@gmail.com wrote: Dear All, I am trying to install ubuntu inside window but i am facing some difficulties. 1) if i install ubuntu by just clicking on webu. it is showing some error at last. 2) if i install using boot devices.. i am not able to proceed after selecting the partition info.(I select exist partition). Regards, Peeyush On Tue, Nov 2, 2010 at 9:08 PM, subrat kumar panda evergreen.sub...@gmail.com wrote: Thank You , Wish u Diwali 2 u also. On Tue, Nov 2, 2010 at 2:55 PM, narasimha rao knarasimha@gmail.com wrote: hi, WISH YOU HAPPY DIWALI ALL MOBILE DEVELOPERS -- Thanks Regards, KVL Narasimha Rao. Contact No: +91 9912656178 -- 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 -- 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 -- Thank Regards Peeyush Varshney -- 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 -- 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: SSLContext.getInstance(SSL) throws java.security.NosuchAlgorithmException: SSLContext SSL implementation not found
i will try on lower versions. On Nov 2, 3:09 pm, Kumar Bibek coomar@gmail.com wrote: SSL context is not implemented on Android. And as far as certificate exception issue, there seems to be a problem on 2.2 where some TrustManagers do not work as expected, which do work on lower versions. Even I am stuck with this issue. Seems like a 2.2 issue. I had read about this somehwere. http://stackoverflow.com/questions/2899079/custom-ssl-handling-stoppe... On Tue, Nov 2, 2010 at 12:34 AM, gato chlr dany...@gmail.com wrote: DanH , thanks for the answer, i have read about TLS, and now i know it is a SSLv3. I have tried with TLS , and it works! but, then i get a javax.net.ssl.SSLException: Not Trusted server certificate. So it seems that my know my dummy trustManager is not working :S. the exception occurs in the instruction : HttpResponse response = httpclient.execute(targetHost, httpget, localcontext); I have changed the value SSL to TLS in my desktop (not for android) and it work fine. But in my android application (this one) it throws that exception. Maybe my trustManager does not works in Android, if anybody has a code or solution to fix this problem i will really appreciate thank for the answers On 1 November 2010 14:37, DanH danhi...@ieee.org wrote: Have you tried TLS? On Nov 1, 9:29 am, gato chlr dany...@gmail.com wrote: Hi list, i want to implement a client for https, all in my localhost (in my apache, it is configured to ask authentication), with a resource https://localhost:443/resources/resource1.xml; the server works fine. I have a client for desktop, and it works fine, the resources are consumed using httpcomponents-client-4.0.3), i have readed that Android uses that version. This is the code of my client in Android (practically is the same of desktop mapped to android) , in the line of SSLContext sc = SSLContext.getInstance(TSL); the next exception is thrown : java.security.NosuchAlgorithmException: SSLContext SSL implementation not found Please does anybody know how to solve this issue? i have tried with TSL and the exception continue. import java.io.IOException; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import org.apache.http.HttpEntity; import org.apache.http.HttpException; import org.apache.http.HttpHost; import org.apache.http.HttpRequest; import org.apache.http.HttpRequestInterceptor; import org.apache.http.HttpResponse; import org.apache.http.auth.AuthScheme; import org.apache.http.auth.AuthScope; import org.apache.http.auth.AuthState; import org.apache.http.auth.Credentials; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.CredentialsProvider; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.protocol.ClientContext; import org.apache.http.impl.auth.BasicScheme; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.protocol.BasicHttpContext; import org.apache.http.protocol.ExecutionContext; import org.apache.http.protocol.HttpContext; import org.apache.http.util.EntityUtils; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class androidNativeRest extends Activity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); String res=nada; DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getCredentialsProvider().setCredentials( new AuthScope(10.0.2.2, 443), new UsernamePasswordCredentials(user, pass)); BasicHttpContext localcontext = new BasicHttpContext(); // Generate BASIC scheme object and stick it to the local // execution context BasicScheme basicAuth = new BasicScheme(); localcontext.setAttribute(preemptive-auth, basicAuth); // Add as the first request interceptor httpclient.addRequestInterceptor(new PreemptiveAuth(), 0); HttpHost targetHost = new HttpHost(10.0.2.2, 443, https); HttpGet httpget = new HttpGet(/resources/resource1.xml); res+=executing request: + httpget.getRequestLine()+/ln; res+=to target: + targetHost+/ln; //--TRUST MANAGER--- //Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[]{ new X509TrustManager() { public java.security.cert.X509Certificate[] getAcceptedIssuers() {
Re: [android-developers] SimpleExpandableListAdapter sub-class
I mean't to say that you have to manage the different methods, like getChildId and getChildView and handle exceptions there, when it queries for the children for the group which contains no child. Anyway, stack trace would definitely help. On Wed, Nov 3, 2010 at 9:11 PM, TreKing treking...@gmail.com wrote: On Wed, Nov 3, 2010 at 8:26 AM, dashman erjdri...@gmail.com wrote: but it crashes somewhere in SimpleExpandableListAdapter code with an array index access exception. Would you like to post the full stack trace? That would help. On Wed, Nov 3, 2010 at 8:29 AM, Kumar Bibek coomar@gmail.com wrote: Your group should contain atleast one child, else, it will try to render it's children, and since you don't have any, it throws ArrayIndexOutOfBounds exception A group most certainly can contain zero children - I do this all the time when I have nothing to display. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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] best reasonable practice for locally storing a password?
I am considering adding a means by which my app can perform functions over Google Voice, and the functionality would make little sense if I required the user to type in a password. I'd like a reasonable plan for storing the password locally and sending it (through google-voice-java) when demanded by Google Voice. Clearly, I'd like to properly represent the risks of the chosen scheme honestly to the user. I'd like the storage to be based atop writing it into a SharedPreferences created with flags=0 What form of obfuscation is suitable, and with what available salting ingredients and such should I customize it? tone -- 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: First Market Experiences
On Nov 3, 12:05 pm, Doug Gordon gordo...@gmail.com wrote: The big surprise to me, however, was the error reporting capabilities. I had no idea that AM would provide details on errors right down to the stack trace! Yes, I did have some dreaded NullPointer situations hanging around, but was able to immediately get fixes into the next update to take care of them. I am mightily impressed with this feature! Sadly, these all appeared after I implemented a customized stack-trace reporting system. On your first point... I do wish that a developer could publicly reply to Market ratings. The penalty for uncivil behavior would be obvious, and the dev could clear up a misperception or demonstrate his ability to incorporate negative feedback constructively. tone -- 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] wrong line numbers in crash console tracebacks
Does anyone else have a problem of wrong line numbers in the crash report traceback. They seem to be off about 2-3 lines. Sometimes it's difficult to figure out what exactly caused an exception. -- 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
Re: [android-developers] wrong line numbers in crash console tracebacks
Are you sure you are checking the line numbers with the version that you had uploaded to the market? They are always accurate. This can only happen, if you have changed your code after you have uploaded a version of your app. On Wed, Nov 3, 2010 at 10:00 PM, DraganA dand...@gmail.com wrote: Does anyone else have a problem of wrong line numbers in the crash report traceback. They seem to be off about 2-3 lines. Sometimes it's difficult to figure out what exactly caused an exception. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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
Re: [android-developers] Re: Collecting my Market installation statistics
David, I came up with an interesting thought about this last night (yeah... about 2 in the morning... :), and that is that I could program an Android app to pull the data from the market. That way you could store the login credentials on your own phone. The app could have a daily notification to download the page, parse the data and send it to my webserver (without the login info), and then either display it on a webpage when you wanted to see it/download it, or optionally just email you a spreadsheet after it gets it. I think that would solve all the privacy issues because any Android dev could watch the outgoing data with Wireshark or any packet sniffer to know what it's sending. Let me know if that would interest you... and I'll give it some more thought this morning... (after I get a gallon or two of coffee in me). Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.comhttp://nocrappyapps.com http://bistroblurb.com http://forcethetruth.com http://ihottonight.com --- Everything in moderation, including abstinence (paraphrased) Every person is born with a brain... Those who use it well are the successful happy ones - Brad Gies Adversity can make or break you... It's your choice... Choose wisely - Brad Gies Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- 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: wrong line numbers in crash console tracebacks
I'm sure about the right version, I use CVS for versioning. This has actually happened for every error I got. Until now I kind of guessed which line it was, but today I got one which is difficult to guess ;( On Nov 3, 4:32 pm, Kumar Bibek coomar@gmail.com wrote: Are you sure you are checking the line numbers with the version that you had uploaded to the market? They are always accurate. This can only happen, if you have changed your code after you have uploaded a version of your app. On Wed, Nov 3, 2010 at 10:00 PM, DraganA dand...@gmail.com wrote: Does anyone else have a problem of wrong line numbers in the crash report traceback. They seem to be off about 2-3 lines. Sometimes it's difficult to figure out what exactly caused an exception. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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] listview selector based on item-type
Hi, In my application I have a list with 2 types of items. For the first type I can use the default selector drawn behind the content, but for the second type I would need another selector that is drawn in front of the content. Can this be done in android? The reason why I need another selector, is because the second type is an image that fills the whole cell. Therefore the default selector is not visible. When I draw the selector in front of the image, the images is not visible. Therefor I would like a transparent selector for those items, and keeping the default one for the other ones. Other suggestions are also welcome! -- 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
Re: [android-developers] listview selector based on item-type
Yes you can. Look for examples where ListViews can show multiple view types. On Wed, Nov 3, 2010 at 10:10 PM, Johannes De Smedt johannes.desm...@gmail.com wrote: Hi, In my application I have a list with 2 types of items. For the first type I can use the default selector drawn behind the content, but for the second type I would need another selector that is drawn in front of the content. Can this be done in android? The reason why I need another selector, is because the second type is an image that fills the whole cell. Therefore the default selector is not visible. When I draw the selector in front of the image, the images is not visible. Therefor I would like a transparent selector for those items, and keeping the default one for the other ones. Other suggestions are also welcome! -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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: is there a limit for the numebr of markers to show on a MapView?
ok. At this point i think it's better to show only the markers actually visible in the area... because i can have over 1000 markers to show in the map at the same time. On 3 Nov, 15:30, TreKing treking...@gmail.com wrote: On Wed, Nov 3, 2010 at 5:58 AM, Paolo brand...@gmail.com wrote: As the object of this topic...is there a limit for the numebr of markers to show on a MapView at the same time with the Google API? Officially? I don't think so, but at some point you're going to run out of memory, so there's SOME limit. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: wrong line numbers in crash console tracebacks
Strange. Never happened to me. On Wed, Nov 3, 2010 at 10:08 PM, DraganA dand...@gmail.com wrote: I'm sure about the right version, I use CVS for versioning. This has actually happened for every error I got. Until now I kind of guessed which line it was, but today I got one which is difficult to guess ;( On Nov 3, 4:32 pm, Kumar Bibek coomar@gmail.com wrote: Are you sure you are checking the line numbers with the version that you had uploaded to the market? They are always accurate. This can only happen, if you have changed your code after you have uploaded a version of your app. On Wed, Nov 3, 2010 at 10:00 PM, DraganA dand...@gmail.com wrote: Does anyone else have a problem of wrong line numbers in the crash report traceback. They seem to be off about 2-3 lines. Sometimes it's difficult to figure out what exactly caused an exception. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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: Off market sales and LVL
Solving this very problem is going to be really important for Android Devs. With multiple viable markets, each with their own DRM solutions, managing the builds for a smallish Android app is getting a bit ridiculous. There's room for innovation here in the form of a layer above all of the different DRM offerings associated with the various markets. Been down that road though, and it is a thankless job worth approximately $0. :) On Nov 3, 10:20 am, Alex maroeb...@gmail.com wrote: If I sell a copy of a LVL controlled app outside of the market, is there a way I can authorize it so that it checks out as licensed? -- 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: Monkey usage with Scripts/Network Control not working
try that: adb forward tcp:1080 tcp:1080 telnet 127.0.0.1 1080 tap 160 200 On Oct 26, 12:19 am, sdphil phil.pellouch...@gmail.com wrote: okay, i'm trying to get the same thing working. i am doing this and I see -- C:\testadb shell monkey -p com.test --setup scriptfile -v -f /sdcard/ test.txt 1 :Monkey: seed=0 count=1 :AllowPackage: com.slacker.radio :IncludeCategory: android.intent.category.LAUNCHER :IncludeCategory: android.intent.category.MONKEY Replaying 0 events with speed 1.0 C:\test My test.txt file looks like this -- # sample tap 160 200 # quit quit And my scriptfile looks like this -- # Script to start monkey on the device, which has a very rudimentary # shell. # base=/system export CLASSPATH=$base/framework/monkey.jar exec app_process $base/bin com.android.commands.monkey.Monkey $* But nothing happens. Any ideas? tia. On Sep 12, 11:19 pm, Tez earlencefe...@gmail.com wrote: Monkey network control working correctly. Must be careful about scaling co-ordinates while using it. I hope this post helps others when they have problems. Cheers, Earlence On Sep 12, 11:21 pm, Tez earlencefe...@gmail.com wrote: count= number of events speed= in ms start data DispatchPointer(long downTime, long eventTime, int action, float x, float y, float pressure, float size, int metaState, float xPrecision, float yPrecision, int device, int edgeFlags) DispatchTrackball same as DispatchPointer DispatchKey(long downTime, long eventTime, int action, int code, int repeat, int metaState, int device, int scancode) DispatchFlip(boolean keyboardOpen) DispatchPress(int keyCode) LaunchActivity(String pkg_name, String cl_name) UserWait(long sleeptime) LongPress() This is the format. You should be careful to ensure that the co-ordinates are correct. What you specify here are raw co-ords i.e before any window adjustments etc take place. You must take this into account while calculating co-ords. I am yet to try the network control - Lets see what happens. Cheers, Earlence On Sep 12, 10:20 pm, Tez earlencefe...@gmail.com wrote: An update: I was using an incorrect script file. The correct version is as described here http://android.git.kernel.org/?p=platform/development.git;a=blob;f=cm... I am trying to figure out what device code I need to use. Events are being sent, but I cannot see output. Will posts here once I get things working. (I think the Network Control/scriptfile docs are confusing) Cheers, Earlence On Sep 12, 9:34 pm, Tez earlencefe...@gmail.com wrote: Hi, I am trying to do 2 things with monkey 1. Execute a script with a command like adb shell monkey -p MY_PACKAGE --setup scriptfile -f /sdcard/ mon_script1.txt 1 where mon_script.txt contains a few touch commands. After I execute this, I see nothing happening on the screen. It even does not give me the Number of events injected message. I have verified that my touch co-ordinates fall over actual UI elements. This is the script file I am using tap 79 29 tap 100 100 tap 200 200 tap 300 300 quit 2. Execute Monkey Network control to type commands individually. I start up monkey to listen to a port and use PuTTY to send commands. I get OK return messages, but nothing happens on the screen. Whenever I use monkey in the random mode, I see interaction on the screen. But I need to get one of the above 2 methods to work. I have seen the sources of monkey and nothing seems to be wrong. Has anyone used monkey in the above described way? If so, please tell me what I am doing wrong. Cheers, Earlence -- 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
Re: [android-developers] Re: Can anyone recommend a good OpenGL ES book?
If it were OpenGL ES 1.x, the opengl redbook would have been a very good one. However the OpenGL ES 2.x is a different animal requiring a knowledge of the shading programming language. I recently bouth OpenGL Super Bible as it promised it covered a lot of the new opengl apis. I am a bit dissapointed as it hides a lot of detail behind libraries. This doesnt give a lot of opportunity to learn. So my search for a good opengl book is still on. I couldn't find decent online references either. They all assume a ton of stuff. However the one book I promised myself to buy and read is OpenGL Shading Language by Randi Rost. I don't know if it will turn out to be a good one. But one will need atleast one book that is just dedicated to thsi new animal. I have been planning on documenting what I find on these books here: http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURLreportId=3173ownerUserId=satya Check in once in a while I will post what I find. In short I am dissapointed with ** Mobile 3D Graphics Kari Pulli OpenGL Super Bible OpenGL programming guide (for ES 2.0) I would like to consider OpenGL programming guide (Core OpenGL concepts0 Shading programming language - Randi Rost I am not sure off * OpenGL ES 2.0 Programming Guide Meanwhile if you find a reasonable book do tell. Thanks Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Tue, Nov 2, 2010 at 11:02 PM, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: The Red Book is pretty good for OpenGL but it's not ES. Here is a free link. http://fly.cc.fer.hr/~unreal/theredbook/ Other than that you're likely best off with getting an iphone book about 3d game dev. On 11/2/2010 10:47 PM, Matt Quigley wrote: A little. I took a 3D graphics class in college. I've actually been drawing lines, squares, and textures on Android already. The thing is, I'd like to know how to start from scratch, instead of starting from a tutorial. Basically, I'd like to KNOW why I'm writing the code I write. It's just a yucky feeling (to me, at least) to not know why a line of code is there. On Nov 2, 7:53 pm, Leigh McRaeleigh.mc...@lonedwarfgames.com wrote: Do you have any 3d experience? On 11/2/2010 7:28 PM, Matt Quigley wrote: I'm looking for a good book to buy to help me with OpenGL ES. This is obviously going to be for Android, but I suppose the benefits will spill over to iPhone development too. Although I'm not specifically opposed to a general OpenGL book, I'm not going to be using it on my desktop (at least not professionally). Wouldn't hurt to throw a few good online references too, although what I've found with online tutorials is that they teach a code snippet but not the whole picture. Or, they don't target ES (embedded systems, like Android). Thanks, -Matt -- Leigh McRaewww.lonedwarfgames.com -- Leigh McRae www.lonedwarfgames.com -- 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 -- 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] Obtaining Name of Object Reference
Object getThisObjName= new Object(); I'd like to get the name of an object reference. Is this possible via reflection in Android? -- 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: What are some good Automated Unit And System Test Tools for Android?
The open source SDK now has a tool called monkeyrunner, with an API for starting instrumentation from within a Python script. The call (in essence) returns a string containing the test results, as if you had intercepted the output from am instrument. One of the API methods prints out some help, and a little birdie has told me that more docs will be made available. Elk On Nov 2, 11:20 pm, Greg Giacovelli miyamo...@gmail.com wro So I give in. I approached this problem as an oh hey that's not too bad, I can write a bunch of unit tests, and I have been keeping my suite green. However as things get more involved continuous integration and testing is a great great thing to have. And then I saw oh Android has emma integration as well awesome ... and then that's where it get's iffy. So I setup Hudson and have it call the coverage target of the ant build.xml that the android executable in the sdk can generate. And then it hits me. adb -s emulator shell am instrument -w ... will never return a result code that is not 0 ... because adb technically exited cleanly and usually will regardless of how the shell command that executed did. So again I say, Oh that's not too bad, I can just wrap adb with a parser that parses output for errors and return a non 0 resultcode to fail my build if a test fails. Problem is then I also want to see what tests fail. I know eclipse is doing something smarter so I dig deeper and find the extra switches you can pass am instrument including the - r flag. adb -s emulator shell am instrument -r -w ... Now this is starting to get complicated as the output gets more complex and this originally thought simple task is getting more intense. As this SDK is maturing more I have to think, someone has endured this pain and made a kickass way to automate and report on these sdk tools and output. Like something complete with performance test tracking, code coverage reporting etc. These outputs all exit in the SDK but they just have to be adapted to the tools used outside. I have to think after a year or two this adapter(s) has to have been written. However I have only been able to find blackbox testing frameworks and not anything along the lines of regression test suite automation of the whitebox sort. Any suggestions welcome. -- 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
Re: [android-developers] Re: Registering Sync Service Programmatically
On Thu, Dec 17, 2009 at 2:04 AM, Keean Schupke keean.schu...@googlemail.com wrote: Is this something that might get fixed? Is there a reason why this is specifically not allowed? The fact that it needs to be in your manifest? Because it keeps applications self-describing rather than relying on runtime behavior that can introduce lots of unintended broken behavior. For example I can get to the meta-data via the PackageManager, and getting the info associated with the service. This appears to be a public Bundle, which I can put new values in. I can create a BroadcastReceiver at runtime with the correct IntentFilter, so why can I not use these two techinques together to do this? Because for anything it will launch in your app the system needs to have it published in your manifest. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Obtaining Name of Object Reference
name of an object reference? On Wed, Nov 3, 2010 at 10:37 PM, Darkside Android darksideandr...@gmail.com wrote: Object getThisObjName= new Object(); I'd like to get the name of an object reference. Is this possible via reflection in Android? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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
Re: [android-developers] Re: Overriding Back Button Action in Activity
There is more to this story than we know yet. The standard IME receives key events from the application *before* they get dispatched through the normal facility. You won't see the back key if the IME in onKeyDown()/onKeyUp() if it was actually going to use it to hide itself. There are a number of standard platform applications that intercept the back key like this and work fine with the IME. On Tue, Nov 2, 2010 at 10:44 PM, tanmay@gmail.com tanmay@gmail.comwrote: Yes. I thought that as I am overriding the the back button it would not effect on my keyboard . but when the keyboard is open and I press back button it is closing application but it is not closing the open keyboard as expected.. What I need to do so that I can know that the keyboard is open close it and not close the application Thanks, Tanmay -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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: SimpleExpandableListAdapter sub-class
here you - this is a list with 1 group parent and no children. i click on the group and i get the following: FATAL EXCEPTION: main java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) at java.util.ArrayList.get(ArrayList.java:311) at android.widget.SimpleExpandableListAdapter.getChildrenCount(SimpleExpandableListAdapter.java: 255) at android.widget.ExpandableListConnector.refreshExpGroupMetadataList(ExpandableListConnector.java: 561) at android.widget.ExpandableListConnector.expandGroup(ExpandableListConnector.java: 682) at android.widget.ExpandableListView.handleItemClick(ExpandableListView.java: 567) at android.widget.ExpandableListView.performItemClick(ExpandableListView.java: 527) at android.widget.AbsListView$PerformClick.run(AbsListView.java: 1696) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) -- 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
Re: [android-developers] Re: SimpleExpandableListAdapter sub-class
Well, getChildrenCount method is the one which is throwing this exception. You are requesting an index 0 of an array which doesn't have any elements. Can you post some code? On Wed, Nov 3, 2010 at 10:53 PM, dashman erjdri...@gmail.com wrote: here you - this is a list with 1 group parent and no children. i click on the group and i get the following: FATAL EXCEPTION: main java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) at java.util.ArrayList.get(ArrayList.java:311) at android.widget.SimpleExpandableListAdapter.getChildrenCount(SimpleExpandableListAdapter.java: 255) at android.widget.ExpandableListConnector.refreshExpGroupMetadataList(ExpandableListConnector.java: 561) at android.widget.ExpandableListConnector.expandGroup(ExpandableListConnector.java: 682) at android.widget.ExpandableListView.handleItemClick(ExpandableListView.java: 567) at android.widget.ExpandableListView.performItemClick(ExpandableListView.java: 527) at android.widget.AbsListView$PerformClick.run(AbsListView.java: 1696) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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 include external files into apk
I need to attach several text files with the apk so that these text files can be stored at SD card when APK is installed. How can I do it? Thanks, -- 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
Re: [android-developers] How to include external files into apk
Not possible. Once you package your app with files, you cannot delete those files. It's better, you put your files on a server, and then download these files on first run. On Wed, Nov 3, 2010 at 11:02 PM, Eric yafe...@gmail.com wrote: I need to attach several text files with the apk so that these text files can be stored at SD card when APK is installed. How can I do it? Thanks, -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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: What are some good Automated Unit And System Test Tools for Android?
Sadly after looking over monkey runner, it's a java program running a python interpretter doing the same thing as what I have been writing but with a GUI. Sorry this is not what I am looking for. I guess I was hoping for at least an object model for the raw output interpreter of a test or suite of tests so that we can write tools to get useful information into dash boards. I would like to Create junit reports, dashboards etc. -Greg On Nov 3, 10:08 am, A. Elk lancaster.dambust...@gmail.com wrote: The open source SDK now has a tool called monkeyrunner, with an API for starting instrumentation from within a Python script. The call (in essence) returns a string containing the test results, as if you had intercepted the output from am instrument. One of the API methods prints out some help, and a little birdie has told me that more docs will be made available. Elk On Nov 2, 11:20 pm, Greg Giacovelli miyamo...@gmail.com wro So I give in. I approached this problem as an oh hey that's not too bad, I can write a bunch of unit tests, and I have been keeping my suite green. However as things get more involved continuous integration and testing is a great great thing to have. And then I saw oh Android has emma integration as well awesome ... and then that's where it get's iffy. So I setup Hudson and have it call the coverage target of the ant build.xml that the android executable in the sdk can generate. And then it hits me. adb -s emulator shell am instrument -w ... will never return a result code that is not 0 ... because adb technically exited cleanly and usually will regardless of how the shell command that executed did. So again I say, Oh that's not too bad, I can just wrap adb with a parser that parses output for errors and return a non 0 resultcode to fail my build if a test fails. Problem is then I also want to see what tests fail. I know eclipse is doing something smarter so I dig deeper and find the extra switches you can pass am instrument including the - r flag. adb -s emulator shell am instrument -r -w ... Now this is starting to get complicated as the output gets more complex and this originally thought simple task is getting more intense. As this SDK is maturing more I have to think, someone has endured this pain and made a kickass way to automate and report on these sdk tools and output. Like something complete with performance test tracking, code coverage reporting etc. These outputs all exit in the SDK but they just have to be adapted to the tools used outside. I have to think after a year or two this adapter(s) has to have been written. However I have only been able to find blackbox testing frameworks and not anything along the lines of regression test suite automation of the whitebox sort. Any suggestions welcome. -- 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: best reasonable practice for locally storing a password?
Obfuscation is for code. I guess, you are looking for encryption. There are several ways of achieving that. On Nov 3, 9:23 pm, DulcetTone dulcett...@gmail.com wrote: I am considering adding a means by which my app can perform functions over Google Voice, and the functionality would make little sense if I required the user to type in a password. I'd like a reasonable plan for storing the password locally and sending it (through google-voice-java) when demanded by Google Voice. Clearly, I'd like to properly represent the risks of the chosen scheme honestly to the user. I'd like the storage to be based atop writing it into a SharedPreferences created with flags=0 What form of obfuscation is suitable, and with what available salting ingredients and such should I customize it? tone -- 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: SimpleExpandableListAdapter sub-class
if you look at the stack trace - it's all google code. i'm just clicking on the group button. i believe my code does not figure in this stack dump. On Nov 3, 1:25 pm, Kumar Bibek coomar@gmail.com wrote: Well, getChildrenCount method is the one which is throwing this exception. You are requesting an index 0 of an array which doesn't have any elements. Can you post some code? On Wed, Nov 3, 2010 at 10:53 PM, dashman erjdri...@gmail.com wrote: here you - this is a list with 1 group parent and no children. i click on the group and i get the following: FATAL EXCEPTION: main java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) at java.util.ArrayList.get(ArrayList.java:311) at android.widget.SimpleExpandableListAdapter.getChildrenCount(SimpleExpandableListAdapter.java: 255) at android.widget.ExpandableListConnector.refreshExpGroupMetadataList(ExpandableListConnector.java: 561) at android.widget.ExpandableListConnector.expandGroup(ExpandableListConnector.java: 682) at android.widget.ExpandableListView.handleItemClick(ExpandableListView.java: 567) at android.widget.ExpandableListView.performItemClick(ExpandableListView.java: 527) at android.widget.AbsListView$PerformClick.run(AbsListView.java: 1696) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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
Re: [android-developers] Re: SimpleExpandableListAdapter sub-class
On Wed, Nov 3, 2010 at 12:40 PM, dashman erjdri...@gmail.com wrote: if you look at the stack trace - it's all google code. i'm just clicking on the group button. i believe my code does not figure in this stack dump. Well then, how are you setting up your data and populating the adapter? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: SimpleExpandableListAdapter sub-class
Oops, sorry, I missed that. I was of the impression that you are using a custom adapter. I now think there must be something wrong with the adapter initialization. Will check and get back in some time. On Wed, Nov 3, 2010 at 11:10 PM, dashman erjdri...@gmail.com wrote: if you look at the stack trace - it's all google code. i'm just clicking on the group button. i believe my code does not figure in this stack dump. On Nov 3, 1:25 pm, Kumar Bibek coomar@gmail.com wrote: Well, getChildrenCount method is the one which is throwing this exception. You are requesting an index 0 of an array which doesn't have any elements. Can you post some code? On Wed, Nov 3, 2010 at 10:53 PM, dashman erjdri...@gmail.com wrote: here you - this is a list with 1 group parent and no children. i click on the group and i get the following: FATAL EXCEPTION: main java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) at java.util.ArrayList.get(ArrayList.java:311) at android.widget.SimpleExpandableListAdapter.getChildrenCount(SimpleExpandableListAdapter.java: 255) at android.widget.ExpandableListConnector.refreshExpGroupMetadataList(ExpandableListConnector.java: 561) at android.widget.ExpandableListConnector.expandGroup(ExpandableListConnector.java: 682) at android.widget.ExpandableListView.handleItemClick(ExpandableListView.java: 567) at android.widget.ExpandableListView.performItemClick(ExpandableListView.java: 527) at android.widget.AbsListView$PerformClick.run(AbsListView.java: 1696) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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