[android-developers] Re: Message get disappeared when add SingleChoiceItems to alert dialog
I think your problem is (was) caused by the fact that you use -1 as the index for the initially chosen item. Try using 0.. your last index. On Thursday, 12 May 2011 13:11:35 UTC+3, ABS wrote: Hi I am working on android app. but i stuck at one point when i tried to add SingleChoiceItems to alert dialog the alert message gets disapear.,i dont know why this happens here is my code snippet. //builder.setMessage(alertMessage).setCancelable(false); builder.setSingleChoiceItems(alertChoices , -1, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub } }); builder.setPositiveButton(Continue, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialogRunning = false; dialog.cancel(); } }); I want to add both message and singlechoiceitems to alert dialog thanks in advance 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
[android-developers] Which component for image/* mimetype
Hi I use this code to view/play different files: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File(my file); intent.setDataAndType(Uri.fromFile(file), mimetype); startActivity(intent); Using mp3 and audio/* mimetype it works OK for jpg and image/* I get: E/AndroidRuntime( 414): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.camera/ com.android.camera.View Image}: java.lang.IllegalAccessException: access to class not allowed E/AndroidRuntime( 414):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2068) ... I guess I need to know which applications are assigned to each mimetype and how can I change their permission. --~--~-~--~~~---~--~~ 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 start the standard MusicBrowserActivity?
Ok I found out how to do so: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File(your mp3); intent.setDataAndType(Uri.fromFile(file), audio/*); startActivity(intent); On Dec 23 2008, 1:16 am, geoff.stromb...@gmail.com wrote: Hello, From within my application, I'd like to start the standard MusicBrowserActivity (found in Music.apk) which is built into Android. I want to start it programmatically, just as if the user had picked Music from the application launcher. The class for this Activity is: com.android.music.MusicBrowserActivity However, I can't create an Intent explicitly referencing this class because I can't import the package com.android.music (at least not with the default ADT eclipse setup). Any ideas on how I can programmatically start MusicBrowserActivity? Thanks for any pointers! --~--~-~--~~~---~--~~ 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] https://dl-ssl.google.com/android/eclipse/
Hi What happened to the ecipse plugin download site? https://dl-ssl.google.com/android/eclipse/ --~--~-~--~~~---~--~~ 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 start the standard MusicBrowserActivity?
It is probably similar to this in some way: String url = http://www.msn.com;; Intent i = new Intent(); ComponentName comp = new ComponentName (com.android.browser, com.android.browser.BrowserActivity); i.setComponent(comp); i.setAction(android.intent.action.VIEW); i.addCategory(android.intent.category.BROWSABLE); Uri uri = Uri.parse(url); i.setData(uri); this.startActivity(i); and you dont need to import it On Dec 23 2008, 1:16 am, geoff.stromb...@gmail.com wrote: Hello, From within my application, I'd like to start the standard MusicBrowserActivity (found in Music.apk) which is built into Android. I want to start it programmatically, just as if the user had picked Music from the application launcher. The class for this Activity is: com.android.music.MusicBrowserActivity However, I can't create an Intent explicitly referencing this class because I can't import the package com.android.music (at least not with the default ADT eclipse setup). Any ideas on how I can programmatically start MusicBrowserActivity? Thanks for any pointers! --~--~-~--~~~---~--~~ 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] using Music application
Hi I am looking for a way to open generic Android apps for different files. For example, if I need to play a mp3 I would like to open the Music app and make it play it. I am doing something similar with the browser: Intent i = new Intent(); ComponentName comp = new ComponentName(com.android.browser, com.android.browser.BrowserActivity); i.setComponent(comp); i.setAction(android.intent.action.VIEW); i.addCategory(android.intent.category.BROWSABLE); Uri uri = Uri.parse(url); i.setData(uri); this.startActivity(i); --~--~-~--~~~---~--~~ 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] ActivityThread( 200): Failed to find provider info for data
Hi I am trying to start the ViewImage activity from my code I am getting the error above in the log and the image appears empty This is my code: String url = content://data/app/example.jpg; Uri uri = Uri.parse(url); Intent i = new Intent(Intent.ACTION_VIEW, uri); ComponentName comp = new ComponentName(com.android.camera, com.android.camera.ViewImage); i.setComponent(comp); this.startActivity(i); --~--~-~--~~~---~--~~ 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: Dialog box
anyone? still looking for an idea how to do this... On 30 דצמבר, 17:17, AlexG alex.shpindov...@gmail.com wrote: Hi I am trying to implement something like: userResponse = showMessageBox(buttons, messages, etc) So far I have started a new activity that presents themessageand the button and returns through onActivityResult(). Meaning my activity launches a sub-Activity that shows an AlertDialog with 2 buttons. What the user clicked returns through onActivityResult (). I would prefer to use the one call way instead waiting for the onActivityResult callback. Is there any way to do this? 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] Dialog box
Hi I am trying to implement something like: userResponse = showMessageBox(buttons, messages, etc) So far I have started a new activity that presents the message and the button and returns through onActivityResult(). Meaning my activity launches a sub-Activity that shows an AlertDialog with 2 buttons. What the user clicked returns through onActivityResult (). I would prefer to use the one call way instead waiting for the onActivityResult callback. Is there any way to do this? 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: native c/c++ hello world _ problem
Hi A good way to start is running: ./adb shell ls / So you can see all the fs structure which is a bit different then Unix. you can do something like: ./adb push myapp /data/app/ ./adb shell chmod 777 /data/app/myapp ./adb shell /data/app/myapp On Dec 30, 12:40 pm, soumyaranjan soumyasi...@gmail.com wrote: hi everybody i am trying to follow Aaron's documentation regarding the running of a c/c++ program on android emulator. but while i am not able to write onto the emulator disk or the file system path /system/sbin because sbin subfolder is not present inside /system folder. but i have a xbin subfolder but if i try to write onto it it doe'nt do, precisely this is what is the problem adb push prog /system/xbin failed to copy 'prog' to '/system/xbin/prog': Read-only file system also an attempt to modify the mode bits is failing adb shell chmod 777 /sbin Unable to chmod /sbin: Read-only file system pleazz help me out thanks and regards to 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 -~--~~~~--~~--~--~---