[android-developers] Re: How to Lock the phone by application
According to a previous thread: http://groups.google.com/group/android-developers/browse_thread/thread/94312b8093042beb/ae00cf5ad4d176e7?#ae00cf5ad4d176e7 The permission DEVICE_POWER is not available for applications. On Feb 3, 6:46 pm, shahzad ahmad shahzad.s.ah...@gmail.com wrote: Hi, I'm trying to lock the phone through my application .I'm using following code PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); pm.goToSleep(16); I've added following permission to AndroiManifest.xml file uses-permission android:name=android.permission.DEVICE_POWER/ But the application crashes by throwing following exception *E/AndroidRuntime( 436): Caused by: java.lang.SecurityException: Neither user 10032 nor current process has android.permission.DEVICE_POWER.* Please help me to avoid the above mentioned exception or tell me some other way to lock the screen thanks, shahzad --~--~-~--~~~---~--~~ 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: I am getting SICK of 1 star ratings for charging!
Will this update also be available for the Android Dev Phone? On 4 feb, 20:52, mathiastck mathias...@gmail.com wrote: A new firmware is in the process of being sent to G1's, and the new version of Marketplace has a mark as spam feature for application comments. On Feb 4, 1:18 am, DouglasN raphael.and...@gmail.com wrote: On Feb 3, 7:59 pm, Beshoy Girgis odsl...@gmail.com wrote: I think some cool additions to the market would be to be able to rate a comment with a thumbs up or down... then from there, show the top ten rated comments or what not.. no need to show all 1000 of them. I think that would be workable. A button for anyone to report spam for review would be expensive, but would work as well. Easiest would be that you, the owner of the app, can delete comments. That would kind of defeat the purpose of sincere communcation and would essentially make the comments your ad. I absolutely disagree that you should be able to block certain users from getting your app, however stupid they are. --~--~-~--~~~---~--~~ 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.app.Application global application variable store
I have now sorted my problem. I used an ExpandableListView so globals were not needed. On Feb 3, 10:55 am, MB marcus.mm.bur...@googlemail.com wrote: How would you useglobalvariables? That is what I would like to do. I have different files for each Activity so I was not sure how to have globals across them. I need the LinkedList to be shared over various Activities so I can use data from it without replication. On Feb 2, 6:02 pm, Dianne Hackborn hack...@android.com wrote: Just make a subclass, put its name in the application tag in your manifest, and retrieve it from the activity and cast it to your class. Though personally I would just useglobalvariables for this kind of stuff. On Sun, Feb 1, 2009 at 5:29 AM, MB marcus.mm.bur...@googlemail.com wrote: I want to create aglobalvariablestorefor a list of user defined objects. I have a LinkedList of Feed (a user defined object) that I need to be made available to a new Activity that is created. This list is displayed using a ListView and so when an item of the ListView is clicked, I need the correct Feed index to be 'passed' to the new Activity. I have no problem doing this as I create an Intent and then pass the id of the selected row. I need the new Activity to have access to the LinkedList of Feed objects. There are different ways to do this (explained here - http://code.google.com/android/kb/framework.html). I want to use the option (quoted from link above): The android.app.Applicationclass The android.app.Applicationis a base class for those who need to maintainglobalapplicationstate. It can be accessed via getApplication() from any Activity or Service. It has a couple of life- cycle methods and will be instantiated by Android automatically if your register it in AndroidManifest.xml. I want to use the above method as I could then fill the LinkedList at applicationstart and then use it throughout without any duplicates etc. Does anyone know how the android.app.Applicationclass can be used as aglobalvariablestorethat can be accessed from other classes? I cannot find any more information on this method of passing information between Activities within a singleapplication. Any information regarding passing user defined objects would be useful and specifically how to get the above idea to work. Cheers, MB. -- 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. 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: problem with playing sounds using media player
hi, My program is a 3d game . And i m creating 6 to 7 media player in my game .. so is this y the warning is flashed ? On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks davidspa...@android.com wrote: The message could be a clue, it's trying to tell you that the CPU is overloaded, i.e. you're trying to do too much. Have you tried running top to check the CPU load? On Feb 4, 10:32 pm, suhas suhas.ga...@gmail.com wrote: Hi all, I m using mp3 sound in my game (used wav format also) while playing sound i get problem as obtainBuffer timeout (is the CPU pegged) and then sound gets played after some time i.e it is not syncronized with the game play ... plz help me with this issue Thnxs Suhas --~--~-~--~~~---~--~~ 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] custom cleanup on application uninstall
Is there any mechanism in android to perform post uninstall functions ? Are there any functions which an application can override to perform custom cleanup when it is being uninstalled ? Actually i want to delete some application specific files on uninstall thanks, shahzad --~--~-~--~~~---~--~~ 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 any setStyle method?
Dianne, I believe you can pass in null for it. No. That doesn't seem to work. If I do 'new TextView( context, null, myStyleId )' the label appears but the style is not applied. If I do 'new EditView( context, null, myStyleId )' the textbox doesn't appear at all (maybe it has zero width?). The documentation seems to suggest the 'new View( context, AttributeSet, defStyle )' constructor is intended for subclasses, and doesn't really go into how to call it externally. So I think I do need to pass it an AttributeSet. The question is, where can I get such an AttributeSet? Richard. --~--~-~--~~~---~--~~ 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: Not able to open a website using WebView
Please provide inputs as I am stuck at this. Give some pointers in the right direction On Feb 4, 11:58 am, Pratap ajit@gmail.com wrote: Hi I am trying to open a website using WebView. I am behind a proxy, but have already configured the settings database with the proxy values. When i try to open any internal website like a Tomcat running on my desktop, it opens up properly. The problem comes up when i try to open any external website likewww.yahoo.com. The screen goes white for sometime and then I get message Web Page not available. Also, the native Android browser is able to open all websites sucessfully. This seems to be an issue because of proxy, but I am not able to find any solution. Please help me as Ihave been stuck on this for quite some time now. --~--~-~--~~~---~--~~ 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: Touch screen Issue with Android + i.MX31- Help
Hi Jun'ichi, kudos It is *working* fine, finally touchscreen is enabled, thanks a lot...!! after patching u r file, touschscreen is working fine, but I see the co-ordinates r mapped wrongly, pressing extreme left icon will enable extreme right icon, I think co-ordinates r not set properly, I would like to know how this problem can be overcome.. Best Regards, Rajesh N On Wed, Feb 4, 2009 at 9:35 PM, Jun'ichi Hirayama hiraya...@gmail.comwrote: Hi Rajesh Lastyear I was porting Android on IMX31 platform , (kernel ver 2.6.22 ) I adapted mxc_ts.c ,diff -ur linux-2.6.22/drivers/input/touchscreen/mxc_ts.c linux-2.6.22/drivers/input/touchscreen/mxc_ts.c --- linux-2.6.22/drivers/input/touchscreen/mxc_ts.c 2008-06-02 20:40:12.0 +0900 +++ linux-2.6.22.android/drivers/input/touchscreen/mxc_ts.c 2008-06-17 18:49:28.0 +0900 @@ -38,6 +38,15 @@ #define MXC_TS_NAME mxc_ts +#define X_AXIS_MAX 1000 +#define X_AXIS_MIN 80 +#define Y_AXIS_MAX 1000 +#define Y_AXIS_MIN 80 +#define PRESSURE_MAX 1 +#define PRESSURE_MIN 0 static struct input_dev *mxc_inputdev = NULL; static u32 input_ts_installed; @@ -50,15 +59,39 @@ try_to_freeze(); memset(ts_sample, 0, sizeof(t_touch_screen)); pmic_adc_get_touch_sample(ts_sample, !wait); - +#if 1 + if((ts_sample.x_position = X_AXIS_MIN) + (ts_sample.x_position = X_AXIS_MAX) + (ts_sample.y_position = Y_AXIS_MIN) + (ts_sample.y_position = Y_AXIS_MAX)) { + + input_report_abs(mxc_inputdev, ABS_X, ts_sample.x_position); + input_report_abs(mxc_inputdev, ABS_Y, ts_sample.y_position); + input_report_abs(mxc_inputdev, ABS_PRESSURE, + ts_sample.contact_resistance); + + input_report_key(mxc_inputdev,BTN_TOUCH,1); + } + else { + input_report_key(mxc_inputdev,BTN_TOUCH,0); + } + input_sync(mxc_inputdev); + + wait = ts_sample.contact_resistance; + msleep(20); +#else input_report_abs(mxc_inputdev, ABS_X, ts_sample.x_position); input_report_abs(mxc_inputdev, ABS_Y, ts_sample.y_position); input_report_abs(mxc_inputdev, ABS_PRESSURE, ts_sample.contact_resistance); + input_sync(mxc_inputdev); wait = ts_sample.contact_resistance; msleep(20); +#endif } return 0; @@ -77,6 +110,12 @@ mxc_inputdev-evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); mxc_inputdev-keybit[LONG(BTN_TOUCH)] |= BIT(BTN_TOUCH); mxc_inputdev-absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE); + input_set_abs_params(mxc_inputdev,ABS_X,X_AXIS_MIN,X_AXIS_MAX,0,0); + input_set_abs_params(mxc_inputdev,ABS_Y,Y_AXIS_MIN,Y_AXIS_MAX,0,0); + input_set_abs_params(mxc_inputdev,ABS_PRESSURE,PRESSURE_MIN,PRESSURE_MAX,0,0); input_register_device(mxc_inputdev); input_ts_installed = 1; === BTW I found ipu had some problem.following image is fix image. diff -ur linux-2.6.22/drivers/mxc/ipu/ipu_common.c linux-2.6.22/drivers/mxc/ipu/ipu_common.c --- linux-2.6.22/drivers/mxc/ipu/ipu_common.c 2008-06-02 20:40:13.0 +0900 +++ linux-2.6.22.android/drivers/mxc/ipu/ipu_common.c 2008-06-17 18:49:40.0 +0900 @@ -588,23 +587,28 @@ if (dma_chan == IDMA_CHAN_INVALID) return -EINVAL; - spin_lock_irqsave(ipu_lock, lock_flags); if (bufNum == 0) { reg = __raw_readl(IPU_CHA_BUF0_RDY); +#if 0 if (reg (1UL dma_chan)) { spin_unlock_irqrestore(ipu_lock, lock_flags); return -EACCES; } +#endif __raw_writel(DMAParamAddr(dma_chan) + 0x0008UL, IPU_IMA_ADDR); __raw_writel(phyaddr, IPU_IMA_DATA); } else { reg = __raw_readl(IPU_CHA_BUF1_RDY); +#if 0 if (reg (1UL dma_chan)) { spin_unlock_irqrestore(ipu_lock, lock_flags); return -EACCES; } +#endif __raw_writel(DMAParamAddr(dma_chan) + 0x0009UL, IPU_IMA_ADDR); __raw_writel(phyaddr, IPU_IMA_DATA); } @@ -1139,7 +1143,15 @@ if (wait_for_stop channel != MEM_SDC_FG channel != MEM_SDC_BG) { timeout = 40; while ((__raw_readl(IDMAC_CHA_BUSY) chan_mask) || +#if 0 (_ipu_channel_status(channel) == TASK_STAT_ACTIVE)) { +#else +(_ipu_channel_status(channel) ==
[android-developers] Re: Application storage data growing
Not sure if you can do this, but check out http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware to understand the tools and limitations --~--~-~--~~~---~--~~ 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] Hiding toasts of volume keys in Android Emulator
Hi, I am trying to develop a custom zoom control widget. On clicking the Emulator VolumeUp keys my widget should zoom out and vice - versa for the Volume down keys. But one problem that I face, is that when I click on the Vol Up keys a toast pops up with the volume progress bar in it. Is there any way to hide the toast without disabling the Vol up/ down keys. Because I need to simulate them for my widget. Thanks in advance, Sush --~--~-~--~~~---~--~~ 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: Usage of MediaScanner while boot up
I got the answer to this. MediaScanner.java is under \android\mydroid \frameworks\base\media\java\android\media and its hidden to the user and is Used from MediaScannerService. Native calls like processDirectory,processFile,.. are used from MediaScanner.java -Rishi Kaura On Feb 5, 4:17 pm, Rishi kaurari...@gmail.com wrote: Hi, In the media store code of android, The file MediaScannerService has a code : MediaScanner scanner = new MediaScanner(this); scanner.scanDirectories(directories, volumeName); I am unable to figure out where is this function scanDirectories is and what it does. My intention here is to know how android fills in the content provider from the sdcard data after bootup. -Rishi Kaura --~--~-~--~~~---~--~~ 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: ACTION_CALL Permission Problem
Hi, Are you executing this is device or emulator... If emulator there is no need of any permission. If you do the same in the mobile you need to use the permission CALL_PHONE. With out this you can't diala number. Regards, Raj On Jan 22, 4:33 pm, Massimo Carli ca...@massimocarli.it wrote: Hi all, I'm makeing some test about Androidpermissionwith a very simple application. I'm launching this Intent Uri callUri = Uri.parse(tel://12345678); Intent callIntent = new Intent(Intent.ACTION_CALL,callUri); callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(callIntent); and using this configuration file ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; android:versionCode=1 android:versionName=1.0.0 package=it.libroandroid.cap03.call application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.CallActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest without anypermission. The problem is the phone dial the number but I didn't set anypermission. I know something has changed in last release but. Where's the trouble? Thankx Max --~--~-~--~~~---~--~~ 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: String Enter problem
1. Save as unix file/format 2. use dos2unix trick is to remove the carriage return character. On Feb 5, 7:44 am, Neo mobi.liub...@gmail.com wrote: i had a problem about read the file, in the inputstream, the string have a lot or Enter but the Enter display like this 口 i tried used the android edit tools and UltraEdit modify the string Enter, but failed http://www.anddev.org/viewtopic.php?p=17564#17564 --~--~-~--~~~---~--~~ 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: Custom dialog in PreferenceActivity loaded from addPreferencesFromResource()?
DialogPreference android:key=yourdialogkey . .../DialogPreference In your PreferenceActivity class, just call Preference dialogPref = findPreference(yourdialogkey); Get the dialog Layout if you are using a custom View or call one of the SetMessage methods. --~--~-~--~~~---~--~~ 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] Not able to open a website using WebView
Hi I am trying to open a website using WebView. I am behind a proxy, but have already configured the settings database with the proxy values. When i try to open any internal website like a Tomcat running on my desktop, it opens up properly. The problem comes up when i try to open any external website like www.yahoo.com. The screen goes white for sometime and then I get message Web Page not available. Also, the native Android browser is able to open all websites sucessfully. This seems to be an issue because of proxy, but I am not able to find any solution. Please help me as Ihave been stuck on this for quite some time now. --~--~-~--~~~---~--~~ 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: Storing data in the APK after creating it
thanks for all your replies! I think using metadata on the manifest file is the only way of doing this: I have tried to get the metadata stored in the AndroidManifest.xml My manifest file is the one below: *XML:* ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.android.androidapp android:versionCode=1 android:versionName=1.0.0 uses-permission android:name=android.permission.INTERNET/ application android:icon=@drawable/icon android:label= @string/app_name meta-data android:name=org.android.androidapp.webURL android:value=http://www.google.com/ activity android:name=.App android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest and the code in my onCreate() is the one below: *Java:*ComponentInfo ci = new ComponentInfo(); PackageManager pm = getPackageManager(); XmlResourceParser myParser = ci.loadXmlMetaData(pm, org.android.androidapp.webURL); Unfortunately, the myParser value gets a null value... Does anyone know what I am doing wrong? Please help, this is urgent.. I also tried the following: *Java:* Bundle b = ci.metaData; but this also returns null... Whats the correct syntax of things for me to get the metadata value (the webUrl stored in my metadata) any help would be highly appreciated!! On Wed, Feb 4, 2009 at 7:59 PM, Dianne Hackborn hack...@android.com wrote: An .apk is really just a zip file (and a jar file too), so in theory you can use any zip tools you want on it, you just need to make sure that you correctly re-sign it after making changes. There is a caveat, however, that aapt does a few special things to make sure to not compress certain files and enforce alignment of uncompressed files for more efficient access at runtime; you'll want to make sure you don't lose these things if using normal zip tools. The aapt command also has some zip-like options to add and remove files. On Wed, Feb 4, 2009 at 9:49 AM, Georgios Galyfos yorg...@gmail.comwrote: thanks for the reply, however I am trying to do this without needing to rebuild the APK.. On Wed, Feb 4, 2009 at 7:46 PM, Mark Murphy mmur...@commonsware.comwrote: Yorgos wrote: Do you have any other ideas of how I can store/alter information into the APK? Simple answer: Just re-run Ant to rebuild/resign your APK after modifying the XML. More complicated answer: Tease out the specific steps from Ant that will achieve those ends. I think you will need aapt and apkbuilder at minimum. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php -- 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. 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] Usage of MediaScanner while boot up
Hi, In the media store code of android, The file MediaScannerService has a code : MediaScanner scanner = new MediaScanner(this); scanner.scanDirectories(directories, volumeName); I am unable to figure out where is this function scanDirectories is and what it does. My intention here is to know how android fills in the content provider from the sdcard data after bootup. -Rishi Kaura --~--~-~--~~~---~--~~ 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: ImageButton resizes within TableLayout -- How do i fix?
yeah, its a hack, the other options don't seem to work. its really the job of the parent layout to take care of laying the children, so there must be some option in TableRow/TableLayout. --~--~-~--~~~---~--~~ 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: ListView with the CheckBoxPreference look
Thanks a lot you both for the help. It works really nice. Dan On Jan 30, 9:34 pm, James Yum j...@google.com wrote: Hi Dan, android.R.layout.simple_list_item_multiple_choice and android.R.layout.simple_list_item_1 actually refer to built-in android layouts, so for example: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... Note that for this particular layout, there is only a text1. I think what you want to do, is define your own layout under res/layout. You could base it off of preference.xml: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... You'll have to modify it to include a checkbox inside widget_frame. Also the ids would be android.R.id.title and android.R.id.summary. Cheers, James On Fri, Jan 30, 2009 at 3:31 AM, Dan Dromereschi dandromeres...@gmail.com wrote: Hi James, Sure, the code snippet is below: mList.setItemsCanFocus(false); mList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); mListAdapter = new SimpleAdapter(this, mListValues, android.R.layout.simple_list_item_multiple_choice, new String[] {name, desc}, new int[] {android.R.id.text1, android.R.id.text2}); mList.setAdapter(mListAdapter); Considering text1 as the item text, text2 as the item summary (the smaller text below the item text), when running the code above, only text1 and the checkbox are displayed. If in the code above I replace the resource that currently has the android.R.layout.simple_list_item_multiple_choice value with android.R.layout.simple_list_item_2, I can see both text1 and text2. If I try to OR the 3 values: android.R.layout.simple_list_item_multiple_choice | android.R.layout.simple_list_item_1 | android.R.layout.simple_list_item_2, as I was used to when writing SWT based applications, nothing is displayed. So, I am not sure how to make all the 3 things displaying. Thanks, Dan On Jan 29, 8:17 pm, James Yum j...@google.com wrote: Hi Dan, Can you post some code? Cheers, James On Thu, Jan 29, 2009 at 6:31 AM, Dan Dromereschi dandromeres...@gmail.comwrote: Hello, I am trying to build a ListView that contains items that look exactly like theCheckBoxPreference, an android.R.id.text1, an android.R.id.text2 and a checkbox. I am using a SimpleAdapter and I manage to either have only text1 and the checkbox, or text1 and text2, but never all the 3 of them. Is there something I am missing? Thanks, Dan --~--~-~--~~~---~--~~ 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] Not able to open a website using WebView
Hi I am trying to open a website using WebView. I am behind a proxy, but have already configured the settings database with the proxy values. When i try to open any internal website like a Tomcat running on my desktop, it opens up properly. The problem comes up when i try to open any external website like www.yahoo.com. The screen goes white for sometime and then I get message Web Page not available. Also, the native Android browser is able to open all websites sucessfully. This seems to be an issue because of proxy, but I am not able to find any solution. Please help me as Ihave been stuck on this for quite some time now. --~--~-~--~~~---~--~~ 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 prevent my application being closed on clicking the back button on emulator
Hi, I have an application with main view having a search button. On clicking the search button, search results are displayed in a text view. When I hit the back button at this view, instead of navigating to the previous screen, application itself gets closed. Could anybody please let me know how to go back to previous screen. Thanks in andvance, Naina --~--~-~--~~~---~--~~ 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: RTSP Streaming on g1 phone
If you can provide me access to the RTSP server, I could try to be of some help. On Feb 5, 12:14 am, Jeff Oh jeff.o...@gmail.com wrote: Every H.264 video files are played well from SD card. This happens only when playing H.264 with streaming. On 2월5일, 오후12시16분, Jerry Yang jer...@intertrust.com wrote: Can you try to play a same video file from local SD card? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Jeff Oh Sent: Thursday, February 05, 2009 9:54 AM To: Android Developers Subject: [android-developers] Re:RTSPStreamingon g1 phone Only H.264 is played by QDSP. Not the mpeg4. Thanks for the info. That might be one of the possible cause. I'm suspecting H.264 video codec because audio runs very well even when video freezes and MPEG4 video works fine withstreaming. Regards, Jeff. --~--~-~--~~~---~--~~ 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 add a calendar entry?
Hi, this is an issue for me too. I tried with the general (Java) Calendar API, and i managed to log in but the 'insert' method always throws an IOException (its message says 'unknown error'). Below is the code i am using: private static CalendarService mCalendarService; private static URL mAllCalendarsFeedUrl=null; private static final String ALLCALENDARS_FEED_URL_SUFFIX = /private/full; private static final String METAFEED_URL_BASE = http://www.google.com/calendar/feeds/;; public final static boolean createEvent(String title) { authenticate(*,*); CalendarEventEntry myEntry = new CalendarEventEntry(); myEntry.setTitle(new PlainTextConstruct (title)); myEntry.setContent(new PlainTextConstruct (Content)); DateTime startTime = new DateTime(new Date()); When eventTimes = new When(); eventTimes.setStartTime(startTime); myEntry.addTime(eventTimes); // Send the request and receive the response: try { CalendarEventEntry insertedEntry = mCalendarService.insert (mAllCalendarsFeedUrl, myEntry); } catch (IOException e) { // it throws this exception every time, dunno what i'm doing wrong // TODO Auto-generated catch block e.printStackTrace(); } catch (ServiceException e) { // TODO Auto-generated catch block e.printStackTrace(); } return true; } public final static boolean authenticate(String userName, String userPassword){ // Create necessary URL objects try { mAllCalendarsFeedUrl = new URL(METAFEED_URL_BASE + userName + ALLCALENDARS_FEED_URL_SUFFIX); } catch (MalformedURLException e) { // Bad URL System.err.println(Uh oh - you've got an invalid URL.); e.printStackTrace(); return false; } // Create CalendarService and authenticate using ClientLogin mCalendarService = new CalendarService(MyApp); try { mCalendarService.setUserCredentials(userName, userPassword); } catch (Exception e) { // Invalid credentials e.printStackTrace(); } return true; } If anyone managed event insertion with Google Calendar on Android please help us :) Thanks, Teo On Jan 27, 10:51 pm, Markus Junginger mar...@junginger.biz wrote: I would like to insert a new event (start time, end time, and event name) in the user'scalendar. How can I do that? I have the impression, that the SDK does not have the API for it (yet), but the G1 has the APIs. Would the CalendarProvider class the way to go? See also:http://code.google.com/p/android/issues/detail?id=1389 Did anyone succeed in adding an event to thecalendar? Thanks! Markus --http://jars.de --~--~-~--~~~---~--~~ 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] Event to know about drag. Not dragging of object
Hello Android, I want to get drag event(s) when user holds finger on screen and drags it in any direction. The event need to repeatedly provide new touch position until finger is released in the form of callbacks. This is not related to dragging objects. I could see this drag feature working on home screen of the phone to move the home screen left and right. But couldn't figure out how it works. Please provide information on which class and methods to be referred for this Regards, Shaddu --~--~-~--~~~---~--~~ 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: Custom dialog in PreferenceActivity loaded from addPreferencesFromResource()?
Gotcha. I'm trying to do this in onSharedPreferenceChanged(), but I can't seem to get it to hit. public class Settings extends PreferenceActivity implements OnSharedPreferenceChangeListener { public static final String PREFS_NAME = com.myapp.app_preferences; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); settings = getSharedPreferences(PREFS_NAME, 0); addPreferencesFromResource(R.layout.settings); } public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Log.v(changed, key); } Why am I not seeing this hit when I change the preference? Thanks again! On Feb 5, 3:56 am, Chander Pechetty cspeche...@gmail.com wrote: DialogPreference android:key=yourdialogkey . .../DialogPreference In your PreferenceActivity class, just call Preference dialogPref = findPreference(yourdialogkey); Get the dialog Layout if you are using a custom View or call one of the SetMessage methods. --~--~-~--~~~---~--~~ 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 get text from EditText filed which is showing in alert Dialog
I encountered the same problem. This is how I solved it: Declare a field private AlertDialog myDialog; Then when creating your dialog myDialog = new AlertDialog.. . public void onClick(DialogInterface dialog, int whichButton) { DoSomethingWithDialogContent(); } . private void DoSomethingWithDialogContent() { EditText usernameEdit = (EditText) myDialog.findViewById (R.id.dialog_username_edit); Log.d(TAG,Username: + usernameEdit.getText().toString()); } } On Feb 3, 11:32 am, Gulfam gulfa...@gmail.com wrote: Hi all, I m facing a problem for getting text from EditText field which is on alert dialog same like ApiDemo text entry Dialog public void enterNumberView(Activity activity){ LayoutInflater factory = LayoutInflater.from(_activity); final View textEntryView = factory.inflate (R.layout.invite_friend_enternumber, null); new AlertDialog.Builder(_activity) .setIcon(R.drawable.invite_friends_icon) .setTitle(Enter Numbers) .setView(textEntryView) .setPositiveButton(Invite, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { EditText enterNumberField = (EditText) findViewById(R.id.username_edit); String numbers = enterNumberField.getText ().toString(); Log.i(Enter Number Field Text, +numbers); } }) .setNegativeButton(Cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked cancel so do some stuff */ } }) .show(); } *xml is under* EditText android:id=@+id/username_edit android:layout_height=wrap_content android:layout_width=fill_parent android:layout_marginLeft=20dip android:layout_marginRight=20dip android:scrollHorizontally=true android:numeric=integer android:digits=0123456789, android:autoText=false android:capitalize=none android:gravity=fill_horizontal android:textAppearance=?android:attr/textAppearanceMedium / i have also found the an answer of this post as under You are doing the findViewById() on the *activity*, not the dialog. Call findViewById() on the dialog's content instead. BY (Romain Guy) any one can help How Call findViewById() on the dialog's content please modify in my code where i am wrong i dont know the exact syntex to Call findViewById() on the dialog's content. Thanks and Regards, Gulfam --~--~-~--~~~---~--~~ 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] Problem with focus
Hi. When I try to type text in EditText, focus shifts to upper control. Details can be founded here. http://groups.google.com/group/android-developers/browse_thread/thread/8752958166842f11 --~--~-~--~~~---~--~~ 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: Trackball Event
Bump - Not sure how to ensure that my view has input focus. If it accepts touch events, doesn't that mean it IS in focus? It seems to not accept keyboard events either. Any input? Thanks, Ayan On Feb 2, 1:01 pm, Dianne Hackborn hack...@android.com wrote: Trackball events are dispatched to the focused view, make sure your view has input focus. On Sun, Feb 1, 2009 at 4:38 PM, Ikon ayanafr...@gmail.com wrote: Hi, I have an activity which then set's a custom View class. Most of my app's functionality is coded into the View. I detect motion events from this class. However, when I overrided onTrackballEvent, it never gets called. I then inserted this same method into my Activity class, and the trackball event got processed. However, I need to process this event in my View class (where my main update loop is). I tried returning false from my Activity class onTrackballEvent function, to see if it would then pass the Event to the View's event function, but this did not work. I also tried implementing a onKeyUp event in the View, to see if it got called if i returned false from the Activity class, but it did not work. Any help appreciated! Thanks, Ayan -- 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. 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: Event to know about drag. Not dragging of object
I haven't done this directly myself, but if investigating the home screen might help you, then you can do that from the source. I believe that Launcher is the home screen package, and it uses a DragLayer/DragController/etc setup that is therein: http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=commit;h=c8f00b61c600927ab404c84686d4472e9b527976 http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=blob;f=src/com/android/launcher/Launcher.java; On Feb 5, 9:10 am, Shadakshari Hiremath shad...@gmail.com wrote: Hello Android, I want to get drag event(s) when user holds finger on screen and drags it in any direction. The event need to repeatedly provide new touch position until finger is released in the form of callbacks. This is not related to dragging objects. I could see this drag feature working on home screen of the phone to move the home screen left and right. But couldn't figure out how it works. Please provide information on which class and methods to be referred for this Regards, Shaddu --~--~-~--~~~---~--~~ 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: Notification and PendingIntent
Hi! I had the same problem. It works if you set an Action. hilight.setAction(DUMMY); Then the extras are transmitted to the receiving Activity. HTH! Regards, Dirk --~--~-~--~~~---~--~~ 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] WebView responding to touch events
I have an Activity that has a WebView that contains some simple html that allows me to display a Terms Conditions link that if touched or clicked calls another activity. My problem is unless the link in the WebView has focus (ie, the text is wrapped with that little orange focus) I cannot touch the link and have it work. If any other view on the activity has focus, touching the WebView with the link does nothing. The other Views that had focus loose focus, but the WebView does not receive focus. I have tried calling setFocusable(true) and setFocusableInTouchMode(true) but that does not do any good... I would really like to know what you have to do to get a WebView to respond to touch events without using the trackball to scroll to the view before touching it. thank you, Mark --~--~-~--~~~---~--~~ 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: WebView responding to touch events
I just tried adding an OnTouchListener to the webview and I get ALL the touch events. However, the links in the webview to not appear selected/focused... This seems really weird to me. Anyone have an idea why I would receive an OnTouch event for the view but the view itself does not seem to respond to those events? On Feb 5, 9:36 am, Mark Nuetzmann mark.nuetzm...@gmail.com wrote: I have an Activity that has a WebView that contains some simple html that allows me to display a Terms Conditions link that if touched or clicked calls another activity. My problem is unless the link in the WebView has focus (ie, the text is wrapped with that little orange focus) I cannot touch the link and have it work. If any other view on the activity has focus, touching the WebView with the link does nothing. The other Views that had focus loose focus, but the WebView does not receive focus. I have tried calling setFocusable(true) and setFocusableInTouchMode(true) but that does not do any good... I would really like to know what you have to do to get a WebView to respond to touch events without using the trackball to scroll to the view before touching it. thank you, Mark --~--~-~--~~~---~--~~ 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 it possible to have 2 launcher Activity in a single apk?
On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy romain...@google.com wrote: Yes :) Just put two activities in your manifest, both with the LAUNCHER category. I tried that but it seems I'm still doing something wrong (see code at the end of the message). The results I get are: * Two launcher entries (Ativity A and Activity B) are placed in the activity list in Home * Clicking first on Activity A will start Activity A. * Going back and clicking on Activity B will start Activity A again. * If I click on Activity B the first time after install, B is started and going back - clicking on A, starts B again Any hints on what I'm doing wrong? LogCat: INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={test.activity/test.activity.ActivityA} } INFO/ActivityManager(55): Start proc test.activity for activity test.activity/.ActivityA: pid=13716 uid=10036 gids={} INFO/jdwp(13716): received file descriptor 10 from ADB INFO/ActivityManager(55): Displayed activity test.activity/.ActivityA: 872 ms INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x1020 comp={com.android.launcher/com.android.launcher.Launcher} } INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={test.activity/test.activity.ActivityB} } Code: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.activity android:versionCode=1 android:versionName=1.0.0 application activity android:name=.ActivityA android:label=Activity A intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.ActivityB android:label=Activity B intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest public class ActivityA extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(ActivityA); setContentView(tv); } } public class ActivityB extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(ActivityB); setContentView(tv); } } --~--~-~--~~~---~--~~ 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] NO DISTINCT NO GROUP BY in ContentResolver's query
hi~ i just wanna find the rencent contacts in the call log . but what disappointed me is i couldn't do that with the ContentResolver. no rawQuery() method and even no distinct group by parameters in query... i hope they can fix it in the next sdk. or anyone can tell me how to do this with present SDK. Thx~ --~--~-~--~~~---~--~~ 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] Text format in TextView
Hi, Two questions here: 1) newline is after space, could it be possible that newline comes after the suitable character, not only space? For example: a string X_X_ (X means a character. _ means space) is set to textView, and suppose there is at most 5 characters per line in TextView. line 1 X_X__(line end) line 2 _(line end) What I expect is line 1 X_X_X(line end) line 2 XXX__(line end) How to achieve that? 2) I am using TextView#setText(CharSequence text) and SpannableString to set the value. Also the SpannableString#setSpan(Object what, int start, int end, int flags) and imageSpan are used to set insert some image to the correct position. But I find that the text and the image don't align nicely. For example, it comes out actually: line 1 line 2 line 3 --- Text line 4 | | line 5 --- (image) As you can see above, the text is appear in the middle(line 3) but don't align to the buttom as the image does. I expect it can be: a) align to the buttom line 1 line 2 line 3 --- line 4 | | line 5 --- Text (image) OR b) align to the center. line 1 line 2 --- line 3 | | Text line 4 --- line 5 (image) How to control such layout? Thanks a lot for any 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] Problem loading using JNI if C++ class has virtual function (vtable)
I've been expanding on the example given here: http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/ (thanks for that example!) and have am getting Unresolved symbols when I have a class with a virtual function. I am using the java code given in the above example. Here's the C++ code I am using: #include com_hp_CamDemo_Native.h class jj { virtual int func() {return 0;};// this line causes a failure // int func() {return 0;};// this line works }; JNIEXPORT jlong JNICALL Java_com_hp_CamDemo_Native_add (JNIEnv * env, jclass c, jlong a, jlong b) { jj *j = new jj; return a * b * 4; } There are two function definitions in the class jj. The one with the virtual keyword (which forces the class to have a vtable) results in the UnsatisifiedLinkError exception being thrown, while the non- virtual function works fine. Here are the compile and link command lines I am using arm-none-linux-gnueabi-g++ -MD -c -fpic -I/usr/java/jdk1.6.0_11/ include/ -I/usr/java/jdk1.6.0_11/include/linux -o obj/jini.o jini.cpp arm-none-linux-gnueabi-ld -T armelf_linux_eabi.xsc --error-unresolved- symbols -static -shared -o libNative.so obj/jini.o Is there a command line switch I'm missing that will allow this to be used in android? FWIW, I'm building the .so on Fedora Core 8 with the arm-2007q3 toolset and I'm running the android emulator on windowsXP. Thanks for any insight or suggestions on how to find a solution for this! jim anderson --~--~-~--~~~---~--~~ 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] why the onion option in the emulator?
There is an option to the emulator, -onion filename.png, which allows you to pass in a png file and that png file is layered on top of the emulator's display window with 50% opacity. Why? I tried it. It works. I am stumped for an example of why this exists. -- Frank --~--~-~--~~~---~--~~ 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] Wikitude Source
Hi everybody. Does anywone knows where the Wikitude application get it's content from? It says in the Marketplace description 'Wikipedia' and 'Panoramio'. I'd like to know what wikipedia pages are used as a source. Cheers Bart --~--~-~--~~~---~--~~ 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] Processing audio
I would like to be able to extract frequency/amplitude info from incoming mic audio. From looking at previous posts, it looks like the way to do this with the current sdk is to write to a file, then tail that file. This means I need to be able to extract frequency/ amplitude information from .mp4 or 3gpp files, since these are the audio formats supported by MediaRecorder. Now, I'd really prefer not to have to decode this data by hand. :) MediaPlayer is obviously decoding the .mp4 files, so I was wondering if there is any way to tap into this functionality, or some other way to get my .mp4 files decoded? 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] Stopping HTTP client from another thread
I'm writing a multi-threaded app in which multiple threads will use HttpClient to send client requests. In my situation, it's possible a request might be outstanding for a very long time as my server might take as long as several minutes before responding. (Don't ask.) My problem: If my app needs to shut down, how can my main thread cleanly shut down one of the threads blocked on an outstanding request? Specifically: I see that the HttpConnection:shutdown() looks exactly like what I need, but I haven't been able to figure out how to expose the HttpConnection object associated with an HttpClient request. The best I can come up with is using ThreadSafeClientConnManager:requestConnection() to first fetch an HttpClientConnection object and then using HttpRequestExecutor:execute (passing in the HttpRequest and HttpClientConnection), but that seems a bit clunky and I was hoping there was a cleaner way. Any suggestions? As a follow-on question, could I use ThreadSafeClientConnManager:shutdown() from the main thread to shut down any outstanding HTTP requests in other threads? 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] Native code is not supported in the current SDK.
I keep seeing this quote everywhere whenever anybody asks a question about about C code. However I don't understand it, nor another quote which is used to futher explain it The SDK does not include support for native ARM code. I was under the impression it is possible to download the java source code AND the C source code and build them all. Is this therefore incorrect, you cannot build the existing C code for a target platform and therefore make changes to it? I want to know if it is possible to write some C code in, for example, the Library layer, and then write some Java code in the Apllication/ Application framework that accesses that C code via JNI. If this is not possible will it be possible in the future, and if so at what point? If its not possible does it just mean its not possible for 3rd party developers to do but it is possible for device manufacturers to do? Otherwise I don't understand how a device manufacturer can create a device containing proprietary functionality if there is no ability to write and access C code. Is Android forcing manufacturers to write *everything* in Java? --~--~-~--~~~---~--~~ 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] Limit emulator CPU clock
I don't have a G1 but I want the emulator to perform as similiar as a real device. I'm working on a game and want to have a real sense of the FPS i'll get. after 'adb shell' and 'cat /proc/cpuinfo' I get different values (670 MIPS last time) on different emulator instances. So, is there any way I could make the emulator run as close to a G1 but not faster at least? 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] Online Iphone Mobile Programming Courses
Hi, If you're interested in learning how to develop top class games and applications for the iPhone, HTC Touch (Android), Instinct, WinMobile, or any other mobile device or platforms - then you should definitely have a look at what they offer... http://EDUmobile.org The classes are taught as a combination of various online modules and you get the ability to work on live industry projects, alongwith an opportunity to be placed in top mobile gaming and mobile application development software companies. http://EDUmobile.org Let me know how it goes, and if you need anything else. Thanks DushyEDU --~--~-~--~~~---~--~~ 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] n810 running android is not accessible as a removable drive
Hello. I installed Android on the Nokia n810 and when I connect it via usb to my laptop, the sound of a new device attached is played, and two new removable disks, F: and G: appear in My Computer. When I try to access them, Windows tells me to insert a disk on those drives. I have all the usb drivers, and the phone appears in device manager as a nokia usb phone and as working properly. I need to access them so that I can run adb from the SDK and install new stuff on the phone, is pretty bare... Thanks for any 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] Testing Sync Application - Contacts and Calendar
We are debugging the Sync application which we have got from the android sources. We are able to understand and trace till SyncManager. SyncManager is failing to get the account details. How it is getting the account details ? Where these details are stored ? Please do the needful.. --~--~-~--~~~---~--~~ 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] Testing Sync Application - Contacts and Calendar
We are debugging the Sync application which we have got from the android sources. We are able to understand and trace till SyncManager. SyncManager is failing to get the account details. How it is getting the account details ? Where these details are stored ? Please do the needful.. --~--~-~--~~~---~--~~ 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] Data syncronization-- Contacts and Calendar
Trying to do the sync operation for contact and calendar using emulator ? Where and how to configure the account details. --~--~-~--~~~---~--~~ 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] OpenGL-ES 2.0 support
Hi. Is there any plan to support OpenGL-ES 2.0 in Android? Is it possible to write a renderer youself based on OpenGL-ES 2.0? In that case, where to start :) --~--~-~--~~~---~--~~ 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: customize tab indicator
hi check below posting for Customized Android Tabs. http://ezmobile.wordpress.com/2009/02/02/customized-android-tabs/ hope it helps On Jan 12, 11:04 am, skink psk...@gmail.com wrote: hi, Is there any way to customize tab indicators, by for ex. setting own bitmap drawables? pskink --~--~-~--~~~---~--~~ 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 can I get the mms in my program?
I want to backup all messages including SMS and MMS to the SD card, but I don't know how to fetch the MMS.How can 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] Android PC connectivity
How Android supports PC connectivity. Can android phone be seen as modem from PC via USB? What will be the requirements for this? The connection is through AT commands is there any Android Application on PC side? Thanks, Hvr --~--~-~--~~~---~--~~ 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 add app calendar on the G1 emulator?
When I push app calendar button in emulator button by android 1.5, it can't display anything. Does anyone knows how to install the google calendar on the G1 emulator? 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: ListView: Disable Focus Highlight
I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can make it not clickable, it should make sense that it is also not possible to select cells. Thanks for your help! BoD On Feb 2, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: fahad wrote: Hi, I've set the row (view) being used in a ListView as non-focusable along with non-clickable and have set the listview's focusable flag to false as well. However, I still get the yellow highlight when I use the scroll-ball on my device. How can I disable the yellow highlight and use my own special view/color instead upon focus? Any help would be much appreciated. android:listSelector in your ListView XML will allow you to change the color/drawable used for the highlight. You can also set it to be fully transparent (#) and roll your own highlighting, if you feel the need. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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] a receiver for outgoing sms and email?
i figured out how to listen for outgoing calls. however, i can't find any docs or code samples for making a Receiver that catches outgoing sms or email. is that possible? thanks! -dietrich --~--~-~--~~~---~--~~ 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] Question about linking to Android camera libraries from C++
I tried posting this question to the Android Internals mailing list, but that list seems to be inactive... Goal: I am trying to gain access to raw camera data on the G1 from native code (JNI C++) so that I can do real time image processing on camera frames at 15 fps. This will not work in the Java API because it takes too long for the camera preview callback to load the data. Setup: I am using the CodeSourcery C++ cross-compilation toolchain for ARM development on Windows. I include the relevant header files from the Android source code and create a shared library object using the following commands (my project name is flow): arm-none-linux-gnueabi-g++ -IC:\Program Files\Java\jdk1.6.0_11\include -IC:\Program Files\Java\jdk1.6.0_11\include\linux -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\core\include -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\base\include -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\msm7k -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\base\camera\libcameraservice -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\common\include -fpic -c flow.c arm-none-linux-gnueabi-ld --dynamic-linker /system/bin/linker -nostdlib -I /system/bin/linker -rpath-link /system/lib -LC:\Program Files\CodeSourcery\Sourcery G++ Lite\arm-none-linux-gnueabi\lib\ldscripts -L. -shared -o libflow.so flow.o -z now @minlibs.inc where minlibs.inc contains: -lcameraservice -lcamera -lui -lpixelflinger -lhardware -lgps -lcorecg -lOmxH264Dec -lutils -lqcamera -lwpa_client -lnetutils -lcutils -lrpc -llog -lz -lstdc++ -lm -lc -ldl In order to link, I pulled copies of all the libraries in the /system/lib folder on the device to my computer. Then I take this shared library object and copy it to the resource directory of my Java Android project in Eclipse. This Android activity uses System.load() to load my shared object and then I call the functions in the shared object from Java by standard JNI. What works: I am able to run activities on the phone that call JNI functions which contain calls to Android functions. For example, I was able to write a message to the log and call android::CameraService::instantiate() and see the log messages in the ddms debugger. Problem: The camera libraries that I would like to interface with are using a template class sp. A function I want to use returns type: android::spandroid::CameraHardwareInterface. As soon as I declare a variable of this type, the constructor and destructor are required. Despite lengthy efforts, I have not been able to get a program to run that contains this type declaration. The code builds and links fine on my computer, without warnings, but the Activity crashes immediately upon execution and the ddms debugger just says that my shared object is not found whenever this type declaration is present. I do not know how to get any more detailed debug messages from the dynamic linker. What I've tried: I made a batch file that scans through all the libraries using arm-none-linux-gnueabi-nm -C -D to find the symbols needed to declare this type. I believe that my minlibs.inc file contains all necessary libraries, however I am not sure. The code for the constructor and destructor of sp is directly in the header files that I have included and the only functions they reference are incStrong and decStrong, which are found in libutils.so, which I have linked to. I also sorted the relevant libraries based on dependencies obtained using arm-none-linux-gnueabi-objdump -p as can be seen in the minlibs.inc file above. I also tried using an alternate constructor by passing in a null pointer: android::QualcommCameraHardware *qcam = NULL; android::spandroid::CameraHardwareInterface cam(qcam); //android::spandroid::CameraHardwareInterface cam; My C++ function really only contains these lines, a call to __android_log_write, and return. Question: Any ideas on how to get this to run without crashing? --~--~-~--~~~---~--~~ 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 use camera application without sd card detect?
Hi, All, There is a question I need for help. When I was using the camera application, the ERROR: Please insert SD card before using camera jumped out because the driver of sd card haven't been porting properly. Is there anyway to use android camera application without sd card? --~--~-~--~~~---~--~~ 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: customize tab indicator
hi check below posting for Customized Android Tabs. http://ezmobile.wordpress.com/2009/02/02/customized-android-tabs/ hope it helps On Jan 12, 11:04 am, skink psk...@gmail.com wrote: hi, Is there any way to customize tab indicators, by for ex. setting own bitmap drawables? pskink --~--~-~--~~~---~--~~ 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: ListView: Disable Focus Highlight
I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can make it not clickable, it should make sense that it is also not possible to select cells. Thanks for your help! BoD On Feb 2, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: fahad wrote: Hi, I've set the row (view) being used in a ListView as non-focusable along with non-clickable and have set the listview's focusable flag to false as well. However, I still get the yellow highlight when I use the scroll-ball on my device. How can I disable the yellow highlight and use my own special view/color instead upon focus? Any help would be much appreciated. android:listSelector in your ListView XML will allow you to change the color/drawable used for the highlight. You can also set it to be fully transparent (#) and roll your own highlighting, if you feel the need. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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: Error: Read and parse xml file
Have you given your application the permission to open network sockets? If not, add the following line to your manifest file and then try running your application. uses-permission android:name=android.permission.INTERNET/uses- permission On Jan 21, 7:06 am, zxhwo...@gmail.com zxhwo...@gmail.com wrote: public void characters(char ch[], int start, int length) { if(this.in_mytag){ myParsedExampleDataSet.setExtractedString(new String(ch, start, length)); } } changecodeto: public void characters(char ch[], int start, int length) { if(this.in_mytag(new String(ch,start, length)! =null||!.equals(new String(ch,start, length{ myParsedExampleDataSet.setExtractedString(new String (ch,start, length)); } } ok? On Jan 19, 12:14 pm, Sabi sarabjit.so...@gmail.com wrote: Hi Moto, Thecodeof my ExampleHandler.java file as: package s.s; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; public class ExampleHandler extends DefaultHandler{ // === // Fields // === private boolean in_outertag = false; private boolean in_innertag = false; private boolean in_mytag = false; private ParsedExampleDataSet myParsedExampleDataSet = new ParsedExampleDataSet(); // === // Getter Setter // === public ParsedExampleDataSet getParsedData() { return this.myParsedExampleDataSet; } // === // Methods // === �...@override public void startDocument() throws SAXException { this.myParsedExampleDataSet = new ParsedExampleDataSet(); } �...@override public void endDocument() throws SAXException { // Nothing to do } /** Gets be called on opening tags like: * tag * Can provide attribute(s), whenxmlwas like: * tag attribute=attributeValue*/ �...@override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { if (localName.equals(outertag)) { this.in_outertag = true; }else if (localName.equals(innertag)) { this.in_innertag = true; }else if (localName.equals(mytag)) { this.in_mytag = true; }else if (localName.equals(tagwithnumber)) { // Extract an Attribute String attrValue = atts.getValue(thenumber); int i = Integer.parseInt(attrValue); myParsedExampleDataSet.setExtractedInt(i); } } /** Gets be called on closing tags like: * /tag */ �...@override public void endElement(String namespaceURI, String localName, String qName) throws SAXException { if (localName.equals(outertag)) { this.in_outertag = false; }else if (localName.equals(innertag)) { this.in_innertag = false; }else if (localName.equals(mytag)) { this.in_mytag = false; }else if (localName.equals(tagwithnumber)) { // Nothing to do here } } /** Gets be called on the following structure: * tagcharacters/tag */ �...@override public void characters(char ch[], int start, int length) { if(this.in_mytag){ myParsedExampleDataSet.setExtractedString(new String(ch, start, length)); } } } Please check thiscodeand help me. Thanks, Dinesh Sharma --~--~-~--~~~---~--~~ 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: fileobserver
what if I have to observe 2 or more folders (or paths)? even then threads are not required? how to register callbacks? On Feb 4, 11:03 pm, Dianne Hackborn hack...@android.com wrote: You don't need to create any threads to use FileObserver -- it is callback-based. On Tue, Feb 3, 2009 at 11:27 PM, pradeep pradeep...@gmail.com wrote: i need to observe a sdcard i.e all the folders inside. i am creating fileobservers for each folder in saparate threads, but i don't think it is efficient. is there any other method for do so? -- 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. 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: fileobserver
thanks solved it. instead of creating in separate threads i did it in single thread by creating an instance of fileobserver for each directory and calling startwatching(); in a loop. On Feb 4, 11:03 pm, Dianne Hackborn hack...@android.com wrote: You don't need to create any threads to use FileObserver -- it is callback-based. On Tue, Feb 3, 2009 at 11:27 PM, pradeep pradeep...@gmail.com wrote: i need to observe a sdcard i.e all the folders inside. i am creating fileobservers for each folder in saparate threads, but i don't think it is efficient. is there any other method for do so? -- 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. 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: Question about linking to Android camera libraries from C++
This kind of discussion should be on android-platform or android-frameworks. You are way way way outside the bounds of the SDK. :) On Wed, Feb 4, 2009 at 8:03 PM, Chris Clark clark...@gmail.com wrote: I tried posting this question to the Android Internals mailing list, but that list seems to be inactive... Goal: I am trying to gain access to raw camera data on the G1 from native code (JNI C++) so that I can do real time image processing on camera frames at 15 fps. This will not work in the Java API because it takes too long for the camera preview callback to load the data. Setup: I am using the CodeSourcery C++ cross-compilation toolchain for ARM development on Windows. I include the relevant header files from the Android source code and create a shared library object using the following commands (my project name is flow): arm-none-linux-gnueabi-g++ -IC:\Program Files\Java\jdk1.6.0_11\include -IC:\Program Files\Java\jdk1.6.0_11\include\linux -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\core\include -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\base\include -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\msm7k -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\base\camera\libcameraservice -IC:\Program Files\Eclipse\SDK\android-sdk-windows-1.0_r2\source\common\include -fpic -c flow.c arm-none-linux-gnueabi-ld --dynamic-linker /system/bin/linker -nostdlib -I /system/bin/linker -rpath-link /system/lib -LC:\Program Files\CodeSourcery\Sourcery G++ Lite\arm-none-linux-gnueabi\lib\ldscripts -L. -shared -o libflow.so flow.o -z now @minlibs.inc where minlibs.inc contains: -lcameraservice -lcamera -lui -lpixelflinger -lhardware -lgps -lcorecg -lOmxH264Dec -lutils -lqcamera -lwpa_client -lnetutils -lcutils -lrpc -llog -lz -lstdc++ -lm -lc -ldl In order to link, I pulled copies of all the libraries in the /system/lib folder on the device to my computer. Then I take this shared library object and copy it to the resource directory of my Java Android project in Eclipse. This Android activity uses System.load() to load my shared object and then I call the functions in the shared object from Java by standard JNI. What works: I am able to run activities on the phone that call JNI functions which contain calls to Android functions. For example, I was able to write a message to the log and call android::CameraService::instantiate() and see the log messages in the ddms debugger. Problem: The camera libraries that I would like to interface with are using a template class sp. A function I want to use returns type: android::spandroid::CameraHardwareInterface. As soon as I declare a variable of this type, the constructor and destructor are required. Despite lengthy efforts, I have not been able to get a program to run that contains this type declaration. The code builds and links fine on my computer, without warnings, but the Activity crashes immediately upon execution and the ddms debugger just says that my shared object is not found whenever this type declaration is present. I do not know how to get any more detailed debug messages from the dynamic linker. What I've tried: I made a batch file that scans through all the libraries using arm-none-linux-gnueabi-nm -C -D to find the symbols needed to declare this type. I believe that my minlibs.inc file contains all necessary libraries, however I am not sure. The code for the constructor and destructor of sp is directly in the header files that I have included and the only functions they reference are incStrong and decStrong, which are found in libutils.so, which I have linked to. I also sorted the relevant libraries based on dependencies obtained using arm-none-linux-gnueabi-objdump -p as can be seen in the minlibs.inc file above. I also tried using an alternate constructor by passing in a null pointer: android::QualcommCameraHardware *qcam = NULL; android::spandroid::CameraHardwareInterface cam(qcam); //android::spandroid::CameraHardwareInterface cam; My C++ function really only contains these lines, a call to __android_log_write, and return. Question: Any ideas on how to get this to run without crashing? -- 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. 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: Is it possible to have 2 launcher Activity in a single apk?
If you want two fully distinct apps, you need to give them different task affinities. Please read this before you go farther: http://code.google.com/android/intro/appmodel.html On Thu, Feb 5, 2009 at 7:56 AM, tauntz tau...@gmail.com wrote: On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy romain...@google.com wrote: Yes :) Just put two activities in your manifest, both with the LAUNCHER category. I tried that but it seems I'm still doing something wrong (see code at the end of the message). The results I get are: * Two launcher entries (Ativity A and Activity B) are placed in the activity list in Home * Clicking first on Activity A will start Activity A. * Going back and clicking on Activity B will start Activity A again. * If I click on Activity B the first time after install, B is started and going back - clicking on A, starts B again Any hints on what I'm doing wrong? LogCat: INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={test.activity/test.activity.ActivityA} } INFO/ActivityManager(55): Start proc test.activity for activity test.activity/.ActivityA: pid=13716 uid=10036 gids={} INFO/jdwp(13716): received file descriptor 10 from ADB INFO/ActivityManager(55): Displayed activity test.activity/.ActivityA: 872 ms INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x1020 comp={com.android.launcher/com.android.launcher.Launcher} } INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={test.activity/test.activity.ActivityB} } Code: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.activity android:versionCode=1 android:versionName=1.0.0 application activity android:name=.ActivityA android:label=Activity A intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.ActivityB android:label=Activity B intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest public class ActivityA extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(ActivityA); setContentView(tv); } } public class ActivityB extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(ActivityB); setContentView(tv); } } -- 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. 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: Problem loading using JNI if C++ class has virtual function (vtable)
Please move this to one of the open-source list, this is not SDK discussion. On Wed, Feb 4, 2009 at 2:14 PM, jima jima80...@gmail.com wrote: I've been expanding on the example given here: http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/ (thanks for that example!) and have am getting Unresolved symbols when I have a class with a virtual function. I am using the java code given in the above example. Here's the C++ code I am using: #include com_hp_CamDemo_Native.h class jj { virtual int func() {return 0;};// this line causes a failure // int func() {return 0;};// this line works }; JNIEXPORT jlong JNICALL Java_com_hp_CamDemo_Native_add (JNIEnv * env, jclass c, jlong a, jlong b) { jj *j = new jj; return a * b * 4; } There are two function definitions in the class jj. The one with the virtual keyword (which forces the class to have a vtable) results in the UnsatisifiedLinkError exception being thrown, while the non- virtual function works fine. Here are the compile and link command lines I am using arm-none-linux-gnueabi-g++ -MD -c -fpic -I/usr/java/jdk1.6.0_11/ include/ -I/usr/java/jdk1.6.0_11/include/linux -o obj/jini.o jini.cpp arm-none-linux-gnueabi-ld -T armelf_linux_eabi.xsc --error-unresolved- symbols -static -shared -o libNative.so obj/jini.o Is there a command line switch I'm missing that will allow this to be used in android? FWIW, I'm building the .so on Fedora Core 8 with the arm-2007q3 toolset and I'm running the android emulator on windowsXP. Thanks for any insight or suggestions on how to find a solution for this! jim anderson -- 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. 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: how to use camera application without sd card detect?
No, sorry. On Wed, Feb 4, 2009 at 10:55 PM, FlyCry flycry...@gmail.com wrote: Hi, All, There is a question I need for help. When I was using the camera application, the ERROR: Please insert SD card before using camera jumped out because the driver of sd card haven't been porting properly. Is there anyway to use android camera application without sd card? -- 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. 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: How to use findViewById() in a dialog
setPositiveButton() is for setting the button text and listener. To use findViewById, you need to set your own custom layout, but this won't work with AlertDialog.Builder (iirc), you need to use the Dialog class. Here is some code I use for this in my application: mDialog = new Dialog(this); mDialog.setCancelable(true); mDialog.setContentView(R.layout.dialoginput); //set the custom layout mBtn_DialogOK = (Button) mDialog.findViewById(R.id.btn_ok); //From our custom layout mBtn_DialogOK.setTag(BUTTON_OK_ID); mBtn_DialogOK.setOnClickListener(this); Also, findViewById is for R.id.id of view, not for Strings. On Feb 5, 7:35 am, Lucius Fox lucius.fo...@gmail.com wrote: Hi, I create a dialog using this: Dialog d = new AlertDialog.Builder(MyActivity.this) .setPositiveButton(R.string.btn_yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dummy(); } }) Then I try to get the 'yes' button using this: Button yesButton = (Button)d.findViewById(R.string.btn_yes); But I get null for my 'yesButton'. Any idea why findViewById does not work? And if not, how can I get a reference to yes button of the dialog? 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: How to add a calendar entry?
For my purpose, I resolved it partly using a different approach. There seems to be an undocumented Intent to bring up the Calendar UI and fill start and end time in advance. I found out that the ZXing Apps does it like this. Maybe this helps: Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType(vnd.android.cursor.item/event); intent.putExtra(beginTime, start.getTime()); intent.putExtra(endTime, end.getTime()); intent.putExtra(summary, summary); context.startActivity(intent); One thing I did not find out was how to prepare the event name. Setting the summary like in the code had no effect on my G1. If somebody finds out, I would be happy to know... Markus -- http://jars.de --~--~-~--~~~---~--~~ 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: ImageButton resizes within TableLayout -- How do i fix?
You could try wrapping the button with another layout. Cheers, James On Thu, Feb 5, 2009 at 2:48 AM, Chander Pechetty cspeche...@gmail.comwrote: yeah, its a hack, the other options don't seem to work. its really the job of the parent layout to take care of laying the children, so there must be some option in TableRow/TableLayout. --~--~-~--~~~---~--~~ 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: Memory leak in BitmapFactory/Gallery?
Ah yes, perfect! Works like a charm now - I had not been aware of the need to use su. Thanks! On Feb 5, 2:05 am, fadden fad...@android.com wrote: The adb daemon still runs as a regular user on the ADP1. You need to run su to become root, then issue the chmod. --~--~-~--~~~---~--~~ 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 it possible to have 2 launcher Activity in a single apk?
Thanks Dianne. Just for the record (if someone else needs the solution and finds this thread): If you want to have two different applications in one .apk then you need to have both launcher Activities with the LAUNCHER category as Romain said. You also need to add different task affinities to these activities. Otherwise you might bump into the problems that I described (and as far as I understand, this is designed to behave like that :) ) One more note - don't believe http://code.google.com/android/intro/appmodel.html entirely - you can't have task affinities in the form append your .apk's package name with a colon separated string - colons are not supported characters there. Also replace the words you will probably want to with you have to in your head when reading this :) Tauno On Thu, Feb 5, 2009 at 8:02 PM, Dianne Hackborn hack...@android.com wrote: If you want two fully distinct apps, you need to give them different task affinities. Please read this before you go farther: http://code.google.com/android/intro/appmodel.html On Thu, Feb 5, 2009 at 7:56 AM, tauntz tau...@gmail.com wrote: On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy romain...@google.com wrote: Yes :) Just put two activities in your manifest, both with the LAUNCHER category. I tried that but it seems I'm still doing something wrong (see code at the end of the message). The results I get are: * Two launcher entries (Ativity A and Activity B) are placed in the activity list in Home * Clicking first on Activity A will start Activity A. * Going back and clicking on Activity B will start Activity A again. * If I click on Activity B the first time after install, B is started and going back - clicking on A, starts B again Any hints on what I'm doing wrong? LogCat: INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={test.activity/test.activity.ActivityA} } INFO/ActivityManager(55): Start proc test.activity for activity test.activity/.ActivityA: pid=13716 uid=10036 gids={} INFO/jdwp(13716): received file descriptor 10 from ADB INFO/ActivityManager(55): Displayed activity test.activity/.ActivityA: 872 ms INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x1020 comp={com.android.launcher/com.android.launcher.Launcher} } INFO/ActivityManager(55): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={test.activity/test.activity.ActivityB} } Code: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.activity android:versionCode=1 android:versionName=1.0.0 application activity android:name=.ActivityA android:label=Activity A intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.ActivityB android:label=Activity B intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest public class ActivityA extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(ActivityA); setContentView(tv); } } public class ActivityB extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(ActivityB); setContentView(tv); } } -- 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. 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] Application did not load to market place now the app is gone, please help
I tried to upload an update to my app but I got the following now my app has disappeared from my interface and i cannot load an app with the same name, You have another published application on Market with the same package name (com.x.x). Go to that other application, and click upgrade. I cannot update or re-publish my app, please help does anybody know how to fix 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: How to use findViewById() in a dialog
R.string.btn_yes is the string that appear on your button. Not the id ! findVienwById wants an id ! Emmanuel http://androidblogger.blogspot.com/ On Feb 5, 8:35 am, Lucius Fox lucius.fo...@gmail.com wrote: Hi, I create a dialog using this: Dialog d = new AlertDialog.Builder(MyActivity.this) .setPositiveButton(R.string.btn_yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dummy(); } }) Then I try to get the 'yes' button using this: Button yesButton = (Button)d.findViewById(R.string.btn_yes); But I get null for my 'yesButton'. Any idea why findViewById does not work? And if not, how can I get a reference to yes button of the dialog? 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: Market statistics for apps targeting The Netherlands are not correct
At this moment the developer console is still showing 0 downloads after the app has been available for a week. I really suspect that something is wrong with the download count for applications targeted to the Netherlands (or even downloads from the Netherlands in general). I have checked several apps in the market that are targeted to the Netherlands, and all of them show a download count of 50. I cannot imagine that apps that received a lot of publicity around the launch have not been downloaded more than 50 times. This leads me to believe that the developers of these applications also will see 0 downloads in their developer console. Do any of the developers targeting apps to other new regions (Germany, Poland, etc) experiencing the same? Kind regards, Ronald On Feb 3, 7:43 pm, Justin (Google Employee) j...@google.com wrote: Ronald, I've talked with the Market team and there may be a delay in statistics gathering. My recommendation is to wait a day or two and see what your results are then. Either way, please post back with your results in a day or two. Cheers, Justin Android Team @ Google On Feb 3, 9:51 am, Ronald van der Lingen lin...@jsource.nl wrote: The name of my application is PimPam. Thank you, Ronald On Feb 3, 5:07 pm, Justin (Google Employee) j...@google.com wrote: What is the name of your application? If you're not comfortable sharing this publicly, please message me privately. Cheers, Justin Android Team @ Google On Feb 3, 1:58 am, Ronald van der Lingen lin...@jsource.nl wrote: Last week I published our first app to the Market, which is a game targeted to users in The Netherlands. Now that the G1 has been available over here for a couple of days, we have received feedback from several of our users. When I look at the developers console in the market however, the download count still shows 0. Also on the device it is listed as 50. When looking around in the Market, I see that all applications targeted to The Netherlands are listed as having 50 downloads, even an application that received a lot of publicity. Have other developers noticed the same? Kind regards, Ronald --~--~-~--~~~---~--~~ 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 G1 without network
Is it possible to use the G1 without a sim card if we only intend to use the wifi/usb interfaces? Thanks, Rob --~--~-~--~~~---~--~~ 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: using G1 without network
You can use it without a SIM card once you have the phone initially setup, but it does seem like you need a SIM card to do the initial boot, and Google registration. Mark On Feb 5, 12:44 pm, Rob Ruff rr...@scires.com wrote: Is it possible to use the G1 without a sim card if we only intend to use the wifi/usb interfaces? Thanks, Rob --~--~-~--~~~---~--~~ 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: Radio Off
You can use android.provider.Settings, see the SDK docs. Mark On Feb 4, 2:14 am, Kamal Hasan kamal.hasa...@gmail.com wrote: Hi, Programatically how to switch off Radio, bluetooth and wifi in android ? Can I enable airplane mode ? Kamal --~--~-~--~~~---~--~~ 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] What is the difference between managedQuery() and getContentREsolver().query()
I have read: http://code.google.com/android/devel/data/contentproviders.html But I don't understand what is the difference between managedQuery() and getContentREsolver().query()? Seems to me both take a Uri and query parameters and then return a Cursor. I appreciate if anyone can tell me the difference. 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: What is the difference between managedQuery() and getContentREsolver().query()
managedQuery() will use ContentResolver's query(). The difference is that with managedQuery() the activity will keep a reference to your Cursor and close it whenever needed (in onDestroy() for instance.) If you do query() yourself, you *will* have to manage the Cursor as a sensitive resource. If you forget, for instance, to close() it in onDestroy(), you will leak underlying resources (logcat will warn you about it.) On Thu, Feb 5, 2009 at 1:32 PM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: I have read: http://code.google.com/android/devel/data/contentproviders.html But I don't understand what is the difference between managedQuery() and getContentREsolver().query()? Seems to me both take a Uri and query parameters and then return a Cursor. I appreciate if anyone can tell me the difference. Thank you. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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] Current orientation of the device
Hi, 1. How do i find the current orientation of the phone (portrait or landscape) ? 2. How do i find the slider position ? Thanks, Layeeq --~--~-~--~~~---~--~~ 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] BitmapShader performance
I'm experimenting with tiling a fullscreen image (480x320px ARGB bitmap) with a square image (160x160px ARGB bitmap). My initial implementation was naive: public void render(Canvas canvas) { final int size = tile.getWidth(); final int w = canvas.getWidth(); final int h = canvas.getHeight(); for (int y = 0; y h; y += size) { for (int x = 0; x w; x += size) { canvas.drawBitmap(tile, x, y, null); } } } Then I remembered that Paint supports a Shader, so I swapped this implementation for something much more satisfying: public void render(Canvas canvas) { canvas.drawPaint(paint); } Where paint is initialized outside this method with: paint = new Paint(); paint.setShader(new BitmapShader(tile, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); I expected that using a BitmapShader would be competitive with the first implementation and probably slightly faster. But initial benchmarking indicates that the first method is more than twice as fast (almost 3x as fast if PorterDuff.Mode.SRC is used for both). I found that surprising. Is there a good reason that the BitmapShader is necessarily much slower, or does it point to a deficiency in its implementation? --~--~-~--~~~---~--~~ 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 hang up outgoing call?
Can you please provide more details? For me it doesn't seem to be possible for now. On Feb 3, 9:58 am, Kamal Hasan kamal.hasa...@gmail.com wrote: You can abort a call using BroadcastReceiver in your application. Kamal On Feb 3, 1:31 am, Tilekus tile...@gmail.com wrote: Hi everyone, We are new to Android and creating an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application. For now we tried using Intent.ACTION_CALL to use existing activity: Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse (tel: + phoneNumber)); startActivity(callIntent); But we can't figure out whether it's possible to stop launched by this default Call activity. Is it possible? If yes, how? If not, what should we use to write our own Call activity to make a very simple call? We would want this activity only to be used by our application, not for all outgoing calls. Million thanks in advance, Tilek --~--~-~--~~~---~--~~ 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: Current orientation of the device
Context.getResources().getConfiguration() On Thu, Feb 5, 2009 at 1:57 PM, Layeeq nlah...@gmail.com wrote: Hi, 1. How do i find the current orientation of the phone (portrait or landscape) ? 2. How do i find the slider position ? Thanks, Layeeq -- 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. 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] How to improve browser performance in Emulator?
Hi I am running Emulator on XP. I find webkit browser on emulator to be very sluggish even though same page from IE on the desktop loads 10x faster. Is there any emulator/qemu startup parameter that can make it faster? I appreciate any pointers. Thanks Puri --~--~-~--~~~---~--~~ 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: BitmapShader performance
Tom, A shader is a per-pixel operation, which lets you apply it to any shape, respecting alpha blending as well. As such it is not surprising that your first method is faster. On Thu, Feb 5, 2009 at 2:08 PM, tomgibara m...@tomgibara.com wrote: I'm experimenting with tiling a fullscreen image (480x320px ARGB bitmap) with a square image (160x160px ARGB bitmap). My initial implementation was naive: public void render(Canvas canvas) { final int size = tile.getWidth(); final int w = canvas.getWidth(); final int h = canvas.getHeight(); for (int y = 0; y h; y += size) { for (int x = 0; x w; x += size) { canvas.drawBitmap(tile, x, y, null); } } } Then I remembered that Paint supports a Shader, so I swapped this implementation for something much more satisfying: public void render(Canvas canvas) { canvas.drawPaint(paint); } Where paint is initialized outside this method with: paint = new Paint(); paint.setShader(new BitmapShader(tile, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); I expected that using a BitmapShader would be competitive with the first implementation and probably slightly faster. But initial benchmarking indicates that the first method is more than twice as fast (almost 3x as fast if PorterDuff.Mode.SRC is used for both). I found that surprising. Is there a good reason that the BitmapShader is necessarily much slower, or does it point to a deficiency in its implementation? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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: BitmapShader performance
Romain, Thanks for the explanation. On Feb 5, 10:26 pm, Romain Guy romain...@google.com wrote: Tom, A shader is a per-pixel operation, which lets you apply it to any shape, respecting alpha blending as well. As such it is not surprising that your first method is faster. On Thu, Feb 5, 2009 at 2:08 PM, tomgibara m...@tomgibara.com wrote: I'm experimenting with tiling a fullscreen image (480x320px ARGB bitmap) with a square image (160x160px ARGB bitmap). My initial implementation was naive: public void render(Canvas canvas) { final int size = tile.getWidth(); final int w = canvas.getWidth(); final int h = canvas.getHeight(); for (int y = 0; y h; y += size) { for (int x = 0; x w; x += size) { canvas.drawBitmap(tile, x, y, null); } } } Then I remembered that Paint supports a Shader, so I swapped this implementation for something much more satisfying: public void render(Canvas canvas) { canvas.drawPaint(paint); } Where paint is initialized outside this method with: paint = new Paint(); paint.setShader(new BitmapShader(tile, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); I expected that using a BitmapShader would be competitive with the first implementation and probably slightly faster. But initial benchmarking indicates that the first method is more than twice as fast (almost 3x as fast if PorterDuff.Mode.SRC is used for both). I found that surprising. Is there a good reason that the BitmapShader is necessarily much slower, or does it point to a deficiency in its implementation? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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: How to use findViewById() in a dialog
On last note : I finally found the Id of this button : android.R.id.button1. here's my try (succesfull ): public void onClick(DialogInterface dialog, int whichButton) { Dialog curDialog = (Dialog) dialog; Button curButton = (Button) curDialog.findViewById ( android.R.id.button1 ); curButton.setText(Coucou); } Emmanuel http://androidblogger.blogspot.com/ On Feb 5, 9:09 pm, Emmanuel emmanuel.ast...@gmail.com wrote: R.string.btn_yes is the string that appear on your button. Not the id ! findVienwById wants an id ! Emmanuelhttp://androidblogger.blogspot.com/ On Feb 5, 8:35 am, Lucius Fox lucius.fo...@gmail.com wrote: Hi, I create a dialog using this: Dialog d = new AlertDialog.Builder(MyActivity.this) .setPositiveButton(R.string.btn_yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dummy(); } }) Then I try to get the 'yes' button using this: Button yesButton = (Button)d.findViewById(R.string.btn_yes); But I get null for my 'yesButton'. Any idea why findViewById does not work? And if not, how can I get a reference to yes button of the dialog? 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: How get text from EditText filed which is showing in alert Dialog
As Romain said you're getting the content from your activity ( that don't possess a username_edit item ). you should do : ... Dialog curDialog = (Dialog) dialog; EditText enterNumberField = (EditText) curDialog.findViewById (R.id.username_edit); ... It works for me... Emmanuel http://androidblogger.blogspot.com/ On Feb 3, 12:32 pm, Gulfam gulfa...@gmail.com wrote: Hi all, I m facing a problem for getting text from EditText field which is on alert dialog same like ApiDemo text entry Dialog public void enterNumberView(Activity activity){ LayoutInflater factory = LayoutInflater.from(_activity); final View textEntryView = factory.inflate (R.layout.invite_friend_enternumber, null); new AlertDialog.Builder(_activity) .setIcon(R.drawable.invite_friends_icon) .setTitle(Enter Numbers) .setView(textEntryView) .setPositiveButton(Invite, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { EditText enterNumberField = (EditText) findViewById(R.id.username_edit); String numbers = enterNumberField.getText ().toString(); Log.i(Enter Number Field Text, +numbers); } }) .setNegativeButton(Cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked cancel so do some stuff */ } }) .show(); } *xml is under* EditText android:id=@+id/username_edit android:layout_height=wrap_content android:layout_width=fill_parent android:layout_marginLeft=20dip android:layout_marginRight=20dip android:scrollHorizontally=true android:numeric=integer android:digits=0123456789, android:autoText=false android:capitalize=none android:gravity=fill_horizontal android:textAppearance=?android:attr/textAppearanceMedium / *** * i have also found the an answer of this post as under You are doing the findViewById() on the *activity*, not the dialog. Call findViewById() on the dialog's content instead. BY (Romain Guy) *** * any one can help How Call findViewById() on the dialog's content please modify in my code where i am wrong i dont know the exact syntex to Call findViewById() on the dialog's content. Thanks and Regards, Gulfam --~--~-~--~~~---~--~~ 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: ListView: Disable Focus Highlight
In order not to have the items selectable, I disable them by code ( but it is perhaps doable in the xml files ), in the adapter definition : ListAdapter adapter = new SimpleCursorAdapter(MyList, Layout, c, new String[] { Name, Score }, to) { public boolean areAllItemsEnabled() { return false; } public boolean isEnabled(int position) { return false; } }; and it's ok... Emmanuel http://androidblogger.blogspot.com/ On Feb 5, 12:08 am, BoD bodl...@gmail.com wrote: I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can make it not clickable, it should make sense that it is also not possible to select cells. Thanks for your help! BoD On Feb 2, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: fahad wrote: Hi, I've set the row (view) being used in a ListView as non-focusable along with non-clickable and have set the listview's focusable flag to false as well. However, I still get the yellow highlight when I use the scroll-ball on my device. How can I disable the yellow highlight and use my own special view/color instead upon focus? Any help would be much appreciated. android:listSelector in your ListView XML will allow you to change the color/drawable used for the highlight. You can also set it to be fully transparent (#) and roll your own highlighting, if you feel the need. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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 use findViewById() in a dialog
Thanks for sharing this info. On Thu, Feb 5, 2009 at 2:57 PM, Emmanuel emmanuel.ast...@gmail.com wrote: On last note : I finally found the Id of this button : android.R.id.button1. here's my try (succesfull ): public void onClick(DialogInterface dialog, int whichButton) { Dialog curDialog = (Dialog) dialog; Button curButton = (Button) curDialog.findViewById ( android.R.id.button1 ); curButton.setText(Coucou); } Emmanuel http://androidblogger.blogspot.com/ On Feb 5, 9:09 pm, Emmanuel emmanuel.ast...@gmail.com wrote: R.string.btn_yes is the string that appear on your button. Not the id ! findVienwById wants an id ! Emmanuelhttp://androidblogger.blogspot.com/ On Feb 5, 8:35 am, Lucius Fox lucius.fo...@gmail.com wrote: Hi, I create a dialog using this: Dialog d = new AlertDialog.Builder(MyActivity.this) .setPositiveButton(R.string.btn_yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dummy(); } }) Then I try to get the 'yes' button using this: Button yesButton = (Button)d.findViewById(R.string.btn_yes); But I get null for my 'yesButton'. Any idea why findViewById does not work? And if not, how can I get a reference to yes button of the dialog? 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] Merging spannables?
Is it possible to merge spannables? like Spannable spa = null; spa = Html.fromHtml(text text b asds/b); spa = spa + Html.fromHtml(asdasdasd); 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] Android Instrumentation for unit testing
Hi, I understand that Android has an Instrumentation for unit testing. In my android activity, I have a ListView and when user clicks on it, it pops up an dialog which 2 choices. And when user clicks one of the choices, it will pop up another form which allow users to enter move information and finally user clicks 'Save' to save the content. Can you please tell me if Android Instrumentation allow me to unit test this automatically. e.g. programmablly click one row of the 'ListView' e.g. click the selection of the pop up dialog e.g. fill in the form value. Thank you 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] RC33 for Dev Phone
Hello, can someone help me understand how I can get the latest RC33 release for the dev phone? --~--~-~--~~~---~--~~ 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: Merging spannables?
TextUtils.concat(). On Thu, Feb 5, 2009 at 4:20 PM, Ivan Soto ivanso...@gmail.com wrote: Is it possible to merge spannables? like Spannable spa = null; spa = Html.fromHtml(text text b asds/b); spa = spa + Html.fromHtml(asdasdasd); Thanks -- 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. 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: RC33 for Dev Phone
On Thu, Feb 5, 2009 at 4:56 PM, Timothy DeWees whtdrgn...@gmail.com wrote: Hello, can someone help me understand how I can get the latest RC33 release for the dev phone? I'd like to know too. I saw this: http://www.mobilecrunch.com/2009/02/05/how-to-get-rc33-on-your-g1-without-the-wait/ But, I don't know if this is correct or not for the dev phone. -- Brad Fuller --~--~-~--~~~---~--~~ 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] debugging integrated Java and native code
Hi, I am trying to figure out what is the best way to debug a mix of Java and native code? Please notice, that I am NOT trying to develop a native app. The app will be written entirely in Java, using Android SDK. However, I noticed that some pieces of the SDK use native methods (e.g. AssetManager, WebKit, etc). I wonder which tools Google developers use if/when they need to debug a mix of Java and C/C++ code? Eclipse/gdb or there are commercial tools which make the debugging experience less painful? I googled on this topic and the results returned do not look very encouraging. Thanks, Sergey --~--~-~--~~~---~--~~ 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: String Enter problem
Thank you very much , i resolved it On 2月5日, 下午7时01分, Chander Pechetty cspeche...@gmail.com wrote: 1. Save as unix file/format 2. use dos2unix trick is to remove the carriage return character. On Feb 5, 7:44 am, Neo mobi.liub...@gmail.com wrote: i had aproblemabout read the file, in the inputstream, the string have a lot or Enter but the Enter display like this 口 i tried used the android edit tools and UltraEdit modify the string Enter, but failed http://www.anddev.org/viewtopic.php?p=17564#17564- 隐藏被引用文字 - - 显示引用的文字 - --~--~-~--~~~---~--~~ 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: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
I've tried the unbind method and it doesnt seem to help my case :( It is a good thing to know and keep in mind. Rohit On Jan 23, 2:07 pm, JP joachim.pfeif...@gmail.com wrote: There's a bunch of discussions about this issue in this forum, just dig a little and you will find what you need to know. Also, Romain Guy posted a write-up about un-binding views (and bitmaps) from activities.http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks Admittedly, a lot to read up on. On Jan 23, 3:48 am, ad avra...@gmail.com wrote: I've problem with memory of the bitmaps, I'm creating a lot of bitmaps and then releasing them by recycle() and after many retries I get: java.lang.OutOfMemoryError: bitmap size exceeds VM budget How to get rid of this??? The problem is that even if i close the activity (call onDestroy()), in next program run the bitmap memory is still allocated (I've also android:clearTaskOnLaunch=true in my manifest). This is horrible. Can anybody help me with that? I suspect that every application using BitmapFactory.decodeResource must get this exception in some call! Do you have any idea what's going on? --~--~-~--~~~---~--~~ 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: RC33 for Dev Phone
This one doesn't seem to work for me. It fails at the verifying package stating that it's not signed. On Feb 5, 8:20 pm, Brad Fuller bradallenful...@gmail.com wrote: On Thu, Feb 5, 2009 at 4:56 PM, Timothy DeWees whtdrgn...@gmail.com wrote: Hello, can someone help me understand how I can get the latest RC33 release for the dev phone? I'd like to know too. I saw this: http://www.mobilecrunch.com/2009/02/05/how-to-get-rc33-on-your-g1-wit... But, I don't know if this is correct or not for the dev phone. -- Brad Fuller --~--~-~--~~~---~--~~ 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 can i find out what is the top 'view' of my activity?
Hi, Is it possible for me to find out what is the 'view' of my activity? e.g. if my activity pops up a 'dialog', can I get a reference of that dialog? 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] Android on HTC P3600 Samsung SC32442A CPU
Hi! I need some informations.. I want to know if is possible to run android on HTC P3600. It have a Samsung SC32442A cpu inside... Thanx for your 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 -~--~~~~--~~--~--~---