[android-developers] Re: EditText Tabhost problem
Added to the Android bug list here: http://code.google.com/p/android/issues/detail?id=2516 On Apr 27, 12:57 am, SR stan.r...@gmail.com wrote: Confirmed as a problem in 1.5pre, in my own code on the emulator. Non-toplevelTabHost(meaning: embedded in another layout) willstealthe focus from an EditText elsewhere in the layout. Upon a keypress, but before the letter for the depressed key shows up in the EditText -- the focus jumps back to the first tab. SR --~--~-~--~~~---~--~~ 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: Resetting checkboxes in a dialog with .setMultiChoiceItems()
You can override onPrepareDialog to reset the checkboxes. On Apr 9, 7:16 am, DavidG dgu...@gmail.com wrote: I'd like to have a dialog box which prompts the user to select from various checkboxes, then confirm Ok or Cancel. I have this working, but my only issue is the dialog always retains the previous checkbox selection state from the last time the dialog was shown. I'd like to always force the checkboxes to be unchecked (false) every time. Is there a way to accomplish this? protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_OPTION: return new AlertDialog.Builder(MyApp.this) .setTitle(R.string.select_option_title) .setMultiChoiceItems(R.array.select_option, null, new DialogInterface.OnMultiChoiceClickListener() { public void onClick(DialogInterface dialog, int whichButton, boolean isChecked) { /* Do whatever with checked buttons */ } }) .setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked Yes so do some stuff */ /* Is there a way to reset the checked buttons state to false from here? */ } }) .setNegativeButton(Cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked No so do some stuff */ /* Is there a way to reset the checked buttons state to false from here? */ } }) .create(); } return null; } --~--~-~--~~~---~--~~ 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 v. 1.5 = FAIL #2: Directly Manipulating Settings
Public (shaming) listing of the offending applications. What about the book deal now? I accept paypal payments under the sender's address ;-) On Mon, Apr 27, 2009 at 7:29 AM, Al Sutton a...@funkyandroid.com wrote: Show me a way of forcing a developer of an app to fix poorly written code that doesn't stop the app running and I'll show you a management technique that will earn you hundreds of thousands of dollars in book sales.. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Raphael Sent: 27 April 2009 06:05 To: android-developers@googlegroups.com Subject: [android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings On Fri, Apr 24, 2009 at 10:37 AM, chrispix chris...@gmail.com wrote: Dianne, thank you for the response. The issue is, that if an application uses GPS and it is NOT turned off, it can drain the battery quite quickly if the app continues to ping the location. Which is why you disabled this. By saying the user can just leave the GPS on, and it won't get powered up until data is requested is still fine. But does not solve the underlying issue of applications still draining the battery from being poorly written, So why not focus all this ranting on having the said developers fix their poorly written apps and make sure that comment be properly propagated in market? R/ --~--~-~--~~~---~--~~ 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: Disable XSL transforms in HTTPClient
Not sure if there are any other references. I experienced the problem and googled on it. Like Mark wrote it seemed like some other people had the problem but they hadn't found a solution. The client side XSL transformations are, as far that I have understood it, supported by currently known browsers. So when the browser is presented with an XML file with a valid reference to a XSL transform side it will automatically transform it and present the (in most cases) resulting HTML. But why the apache HTTPclient does it per default l can not understand. Oh, and I did try to ask http://hc.apache.org but surprise surprise.. no response :) I guess I can try to get hold of another 3rd party http client but it would be nice if I could use the build in. /M On 25 Apr, 21:36, Mike Hearn mh.in.engl...@gmail.com wrote: Is there a reference for that behavior? Can it really be true that an HTTP library includes an XSL transformer? That's some serious scope creep if so! --~--~-~--~~~---~--~~ 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: Activity finish() question ??
public static MyApplication getApplication(Activity activity) { // TODO should this be synchronized? if (app == null) { initialize(activity); } mActivity = activity; return app; } I means if i finish the Activity B, The Activity B object(mActivity) is not null --~--~-~--~~~---~--~~ 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] Gadget
Hello, it is possible with the new Android SDK 1.5 too create a Applikation like the google searchbar on the second desktop? --~--~-~--~~~---~--~~ 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] I am unable to use the 1.5 sdk
Hi friends, Currently, I am using the 1.0 android sdk (android-sdk- windows-1.0_r2). Now I want to move to new sdk 1.5. I have done the following steps to install the new sdk. 1. downloaded the android-sdk-windows-1.5_pre.zip 2. unzip and ran the following command: emulator -wipe-data 3. Updated PATH variable. 4. Since I am currently using 1.0 sdk, I just tried to change the Update Eclipse SDK Preferences when I tried to update the Eclipse preferences, I got the error: Could not find E:\android-sdk-windows-1.5_pre \android.jar! 5. what should I do now? what wrong I am doing. Can any one please suggest me to solve this issue. Thanks, Manoj. --~--~-~--~~~---~--~~ 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: Gadget
Answers are not needed anymore. On 27 Apr., 09:12, Mr.No f.hi...@arcor.de wrote: Hello, it is possible with the new Android SDK 1.5 too create a Applikation like the google searchbar on the second desktop? --~--~-~--~~~---~--~~ 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: Resetting checkboxes in a dialog with .setMultiChoiceItems()
Hi, Actually, dialog remembers previous state is good but it always does even though you press OK button or CANCEL button. When creating a dialog, i use an array to store checkbutton's states. So when user presses CANCEL, i do not update this state array. Ex: At first time, when i create dialog, i initial new_state_array ={true,true,true}. After that user unchecked first and second checkbox item, then pressing CANCEL. It is great if dialog still displays 3 checkbox item in checked state on next time but it only display third checkbox item in checked state. Please see my code below and give me advices to solve that problem. ** .setMultiChoiceItems(R.array.select_map_mod, new_state_array,* /*--- So when recreate Dialog,it must update state but it seems to me that it doesnot work except the first time**/ new DialogInterface.OnMultiChoiceClickListener() { public void onClick(DialogInterface dialog, int whichButton, boolean isChecked) { new_state_array[whichButton] = isChecked; /* User clicked on a check box do some stuff */ } }) .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked Yes so do some stuff */ for(int i=0;i3;i++) old_state_array[i] = new_state_array[i]; } }) .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked No so do some stuff */ for(int i=0;i3;i++) new_state_array[i] = old_state_array[i]; } }) ** On Mon, Apr 27, 2009 at 1:22 PM, Glen Humphrey glendon.humphr...@gmail.comwrote: You can override onPrepareDialog to reset the checkboxes. On Apr 9, 7:16 am, DavidG dgu...@gmail.com wrote: I'd like to have a dialog box which prompts the user to select from various checkboxes, then confirm Ok or Cancel. I have this working, but my only issue is the dialog always retains the previous checkbox selection state from the last time the dialog was shown. I'd like to always force the checkboxes to be unchecked (false) every time. Is there a way to accomplish this? protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_OPTION: return new AlertDialog.Builder(MyApp.this) .setTitle(R.string.select_option_title) .setMultiChoiceItems(R.array.select_option, null, new DialogInterface.OnMultiChoiceClickListener() { public void onClick(DialogInterface dialog, int whichButton, boolean isChecked) { /* Do whatever with checked buttons */ } }) .setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked Yes so do some stuff */ /* Is there a way to reset the checked buttons state to false from here? */ } }) .setNegativeButton(Cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /* User clicked No so do some stuff */ /* Is there a way to reset the checked buttons state to false from here? */ } }) .create(); } return null; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] creating a widget
Somebody knows a tutorial that shows how to create a widget? --~--~-~--~~~---~--~~ 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] amr codec only output zero data.
dear: I am trying play an amr file on android emulate, but nothing here, only see the progressbar froward. so farther, I fond the amr codec only out all zero data. I also go www.3gpp.org dondord the amr code 26073-800.zip, and user it doecde the same amr file, it works good. now, what coule do, to make amr file play good. i am sorry for my bad english. 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: creating a widget
Hi, you may want to check out the Android Developers blog: http://android-developers.blogspot.com/search/label/Widgets Jeff Sharkey posted a very useful info about widgets. Cheers, Marc On Mon, Apr 27, 2009 at 3:39 PM, Mr.No f.hi...@arcor.de wrote: Somebody knows a tutorial that shows how to create a widget? --~--~-~--~~~---~--~~ 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: Activity finish() question ??
You aren't supplying enough code to understand what you are doing (who is calling getApplication()?). But I'll see again -- if you don't see the pointer to null, then yes, you will never get a null back. On Sun, Apr 26, 2009 at 11:32 PM, Neo mobi.liub...@gmail.com wrote: public static MyApplication getApplication(Activity activity) { // TODO should this be synchronized? if (app == null) { initialize(activity); } mActivity = activity; return app; } I means if i finish the Activity B, The Activity B object(mActivity) is not null -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Saving battery with MyLocationOverlay
Hi When we manage Location using a Location Manager we can limit updates to save battery by changing MINIMUM_TIME_BETWEEN_UPDATE, and/or MINIMUM_DISTANCECHANGE_FOR_UPDATE : myLocationManager.requestUpdates(provider, MINIMUM_TIME_BETWEEN_UPDATE, MINIMUM_DISTANCECHANGE_FOR_UPDATE, new Intent(MY_LOCATION_CHANGED_ACTION)); Can we change Time and distance for updates when using MyLocationOverlay ? Regards Andre --~--~-~--~~~---~--~~ 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 switch the view from horizontal to Vertical ?
Thanks a lot. I've done with it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] animated GIF support
please help me to resolve this error --~--~-~--~~~---~--~~ 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: Information about required permissions
Check the Run Configurations-target-(setting the sdcard path:-sdcard d: \sdcard.img) On Apr 24, 12:16 am, thiagofj2...@gmail.com wrote: Hi all, I would like to know if there's documentation about what are the required permissions for each activity, intent, broadcastReceiver, etc. Or maybe there is a file with this info in the SDK? 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] How to change RadioButton size?
How to change RadioButton size? It's too large. --~--~-~--~~~---~--~~ 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] Help! market uploading problem!!
I completed my apk, and about to publish my apk up to the market. when I load my apk, this stuff just pops up : Market requires the minSdkVersion to be set in AndroidManifest.xml. The server could not process your apk. Try again. I have no idea,what is it talking about. I'm pretty sure I did set minSDKversion 2 right now I'm stuck... could some one please tell me what I should do??? --~--~-~--~~~---~--~~ 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] Surfaceflinger not clearing application controls with video overlay ( hardware )
Hi Play a full screen video using gallery applications or any , the graphics controls appear ( progress bar ) on top of video. After a few seconds the application controls is expected to disappear but it does not. It remains sticky on the video overlayed region. The same is true with any application controls ( graphics plane ) overlayed on top of video Environment : The video and the graphics plane ( application controls ) get overlayed in the hardware unlike the default software implementation We use a transparency color key value of 0 . So if the graphics buffer has anything 0 ( black ) it will not be displayed on top of video Rest of the colors will be displayed on top of video I have validated that overlay functions work fine using standalone utilities. Guess: The surface flinger is not clearing the last buffer ( or the relevant graphics controls ) to 0. I feel the surface flinger compositor sees the video being played and does not clear the areas on top of video when it is supposed to happen I am looking at the threadloop() Questions : 1. How can identify where I must modify to surfaceflinger code to set 0? 2. Can someone explain what is meant by opaque region,translucent and transparent regions in surface flinger.cpp ? 3. What could be the problem ? Appreciate your help thanks Venky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dialog containing a ListView with ContextMenuListener
I have the same problem: a dialog with a list view on which I attach a context menu. When long-clicking the menu gets displayed, but clicking any option doesn't do anything - the onContextItemSelected method never gets executed. Any ideas? Is this a bug? On Mar 13, 10:29 pm, Tim H. timho...@gmail.com wrote: Setting the activity content view directly to a ListView, the code below works as expected. However, if you change the code (by uncommenting the dialog lines, and commenting the setContentView line), the context menu no longer works. public class AndroidTest extends Activity { protected static final int ENTRY_ADD = Menu.FIRST; protected static final int ENTRY_REMOVE = Menu.FIRST + 1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(android.R.style.Theme_Dialog); ListView lv = new ListView(this); ArrayAdapterCharSequence adapter = ArrayAdapter.createFromResource( this, R.array.test, android.R.layout.simple_list_item_1); lv.setAdapter(adapter); lv.setCacheColorHint(0); lv.setOnCreateContextMenuListener(new OnCreateContextMenuListener () { public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { menu.add(0, ENTRY_ADD, 1, Add); menu.add(0, ENTRY_REMOVE , 2,Remove); }}); //Dialog d = new Dialog(this); //d.setContentView(lv); //d.show(); setContentView(lv); } @Override public boolean onContextItemSelected(MenuItem item) { AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); Log.d(Test, Selected item + info.position); switch(item.getItemId()) { case ENTRY_ADD: Log.d(Test, Add was clicked); break; case ENTRY_REMOVE: Log.d(Test, Remove was clicked); break; default: return super.onContextItemSelected(item); } return true; } } My workaround may be using an activity composed of only a listview, with the dialog theme - which should work fine. But that seems like some additional work for something that should work as described above. --~--~-~--~~~---~--~~ 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] Directory to store files
Hello, can anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images. If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to? 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] Error type 1
Hi I create simple application: public class Hello extends Activity { protected void onCreate(Bundle bundle) { super.onCreate(bundle); TextView tv = new TextView(this); tv.setText(Hello, Android, from IntelliJ IDEA!); setContentView(tv); } } manifest xmlns:android=http://schemas.android.com/apk/res/android; package=a.b. application android:icon=@drawable/icon activity android:name=Hello android:label=xx intent-filter action android:name=android.intent.action.MAIN/ category android:name=android.intent.category.LAUNCHER/ /intent-filter /activity /application /manifest But can't start it with Idea Plugin Android Support v 0.3... :( Logs: Device connected. Device is online. Uploading file local path: D:\projects\work\android.test.5\out\production \android.test.5\android.test.5.apk remote path: /data/local/tmp/a.b. Installing application. Device is not ready. Waiting for 5 sec. Device is not ready. Waiting for 5 sec. Device is not ready. Waiting for 5 sec. Device is not ready. Waiting for 5 sec. Device is not ready. Waiting for 5 sec. Error Type 1: Could not access the Package Manager! usage: What can be wrong? --~--~-~--~~~---~--~~ 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] Vibration class - ClassCastException
Hi there, in my code I use (class Activity) follow contruct Vibrator vibrator = (Vibrator) getSystemService(context.VIBRATOR_SERVICE); but after start application is crashed with classcastexception. Can anybody help how I can create instance of Vibration class ? many thx r^ --~--~-~--~~~---~--~~ 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] Behavior of overlay_queuebuffer
Hi, all I wonder the behavior of overlay_queuebuffer. Does it block the application? Our display hardware swap buffers on per vetical retrace. So during queueBuffer, there can be 2 implementation here: 1. Record the buffer, and return immediately. Driver will post it in the next vertical retrace interrupt. 2. Block the application, and return until the next vertical retrace. Item 1 will save more time. But it seems that Android has no interface to define MAX queue number. For example, if user press Pause bottom of the application, there may be still quite many commands queued to display. So that application can't stop overlay display in time. Regards, Jill --~--~-~--~~~---~--~~ 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] xattr for yaffs2 to use SELinux on Android
Hi. To port SELinux to Android on emulator, we are working xattr support for yaffs2. We have primitive code for xattr for yaffs2, as shown at the last of this message. xattr is implemented as hidden files like reiserfs. For example, selinux's xattr for a file is stored in following file. ...xattr/Oid of a file/security.selinux I think there are many limitations and bugs, so I want to improve this patch. Do you have any comments, suggestions? Or, anyone working for better implementation? Following is a patch, it is based on yaffs2 in Android qemu kernel. diff --git a/fs/yaffs2/Makefile b/fs/yaffs2/Makefile index 382ee61..8ad7879 100644 --- a/fs/yaffs2/Makefile +++ b/fs/yaffs2/Makefile @@ -7,4 +7,4 @@ obj-$(CONFIG_YAFFS_FS) += yaffs.o yaffs-y := yaffs_ecc.o yaffs_fs.o yaffs_guts.o yaffs_checkptrw.o yaffs-y += yaffs_packedtags1.o yaffs_packedtags2.o yaffs_nand.o yaffs_qsort.o yaffs-y += yaffs_tagscompat.o yaffs_tagsvalidity.o -yaffs-y += yaffs_mtdif.o yaffs_mtdif1.o yaffs_mtdif2.o +yaffs-y += yaffs_mtdif.o yaffs_mtdif1.o yaffs_mtdif2.o yaffs_xattr.o diff --git a/fs/yaffs2/yaffs_fs.c b/fs/yaffs2/yaffs_fs.c index e81a3db..00ae796 100644 --- a/fs/yaffs2/yaffs_fs.c +++ b/fs/yaffs2/yaffs_fs.c @@ -13,6 +13,8 @@ * Michael Fischer for finding the problem with inode inconsistency. * Some code bodily lifted from JFFS * + * xattr Support: Hitachi Software Engineering Co., Ltd. + *Yuichi Nakamura yna...@hitachisoft.jp * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. @@ -51,6 +53,8 @@ extern const char *yaffs_guts_c_version; #include linux/interrupt.h #include linux/string.h #include linux/ctype.h +#include linux/mount.h +#include linux/security.h #include asm/div64.h @@ -100,6 +104,7 @@ extern const char *yaffs_guts_c_version; #include yaffs_mtdif.h #include yaffs_mtdif1.h #include yaffs_mtdif2.h +#include yaffs_xattr.h unsigned int yaffs_traceMask = YAFFS_TRACE_BAD_BLOCKS; unsigned int yaffs_wr_attempts = YAFFS_WR_ATTEMPTS; @@ -231,6 +236,8 @@ static void *yaffs_follow_link(struct dentry *dentry, struct nameidata *nd); static int yaffs_follow_link(struct dentry *dentry, struct nameidata *nd); #endif +static void yaffs_kill_sb(struct super_block *sb); + static struct address_space_operations yaffs_file_address_operations = { .readpage = yaffs_readpage, .writepage = yaffs_writepage, @@ -279,13 +286,17 @@ static struct file_operations yaffs_file_operations = { #endif static struct inode_operations yaffs_file_inode_operations = { - .setattr = yaffs_setattr, + .getxattr = yaffs_getxattr, + .setxattr = yaffs_setxattr, +.setattr = yaffs_setattr, }; static struct inode_operations yaffs_symlink_inode_operations = { .readlink = yaffs_readlink, .follow_link = yaffs_follow_link, .setattr = yaffs_setattr, + .getxattr = yaffs_getxattr, + .setxattr = yaffs_setxattr, }; static struct inode_operations yaffs_dir_inode_operations = { @@ -299,6 +310,8 @@ static struct inode_operations yaffs_dir_inode_operations = { .mknod = yaffs_mknod, .rename = yaffs_rename, .setattr = yaffs_setattr, + .getxattr = yaffs_getxattr, + .setxattr = yaffs_setxattr, }; static struct file_operations yaffs_dir_operations = { @@ -1012,16 +1025,29 @@ static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir) } ylist_for_each(i, obj-variant.directoryVariant.children) { + struct super_block *sb; curoffs++; if (curoffs = offset) { l = ylist_entry(i, yaffs_Object, siblings); - + /*hide ...xattr dir*/ + if (l) { + sb = (struct super_block *) (l-myDev-superBlock); + if (l-objectId == + yaffs_DentryToObject(yaffs_SuperToDevice(sb)-xaroot)-objectId) { + + offset++; + f-f_pos++; + continue; + } + } yaffs_GetObjectName(l, name, YAFFS_MAX_NAME_LENGTH + 1); T(YAFFS_TRACE_OS, (KERN_DEBUG yaffs_readdir: %s inode %d\n, name, yaffs_GetObjectInode(l))); + + if (filldir(dirent, name, strlen(name), @@ -1045,6 +1071,8 @@ static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir) return 0; } + + /* * File creation. Allocate an inode, and we're done.. */ @@ -1127,7 +1155,7 @@ static int yaffs_mknod(struct inode *dir,
[android-developers] When I slide screen, after entering gmail from my app, force close
When I cause e-mail to be spawned from my application, and user slides the screen, when they complete the e-mail (send or discard), there is a force close that occurs. It doesn't actually affect the running of my application, and I handle the slide while inside my app (while on my screens only, no problem with slide), but when I have popped over to the gmail, then slide, I get the force close. Please 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] Re: SDK1.5 AudioRecord sample rate problem
Hi, The documentation for AudioRecord specifies that the constructor may fail based on what the hardware supports. The format of the data will depend on if the hardware supports it. Since the current android emulator is like a G1 type phone, and phone systems are usually 8000hz, the hardware probably only supports that frequency. On Apr 24, 5:25 am, szabolcs szabolcs.vr...@gmail.com wrote: Steven, Thank you for your reply. I know AudioRecord works with a sample frequency of 8000Hz. In my initial post I was asking why this frequency is the ONLY frequency that works?! BTW, there is no exception thrown when the initialization of AudioRecord fails. I figured you are supposed to check that yourself by something like: if(mRecord.getState()==AudioRecord.STATE_INITIALIZED), not a try-catch block. So again: the question is, why does the initialization fail, if I supply the constructor with AUDIO_SAMPLE_FREQ= 11025 || 22050 || 44100? Thank you, -Szabolcs --~--~-~--~~~---~--~~ 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] Clickable Location In Calendar App
I always like to put the Destination or Location in my calendar events. It's great for going to inspect a new house, going to a party somewhere you've never been before or many other reasons. There is always the option to enter in the location, however on my HTC Dream I can never click on it. If there is a phone number in the description or something I can call that person directly from the Calendar app, but if there's an address in it I have to: 1. Edit the calendar event 2. Scroll down to the destination 3. Long press and copy it 4. Go into the Maps application 5. Press Search 6. Long press again to paste it in 7. Click search. I think that when you enter in a destination into a calendar event, Android should recognise it, and you should just be able to click on it, and it opens up in Google Maps all automagically like for you. I can't imagine this would be a huge thing to code but it would really be handy. Please do this Google PLLLEASSSEEE :D --~--~-~--~~~---~--~~ 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: Accessing System Brightness
So I tried the 'correct' way to do it: Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 255); And it doesnt work. It seems to change the brightness value on the Display Settings Screen but not the actual display brightness. I tried with putString too, no game. I also tried to use the IHardware approach (described by joby some messages ago), but it seems to doesn't even exist on SDK 1.1 (at least eclipse could not resolve it). But there must be one way working because the Flashlight app on the Market does that perfectly. So, if anyone can provide a different approach I will be very thankful. --~--~-~--~~~---~--~~ 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 add fields to DB_Table?
There are a lot of SQLite examples on the Internet, but most of all has only two fields in table(title body). I want to add some other fields to the table, like position, E-mail and so on Show me an example is better to understand. --~--~-~--~~~---~--~~ 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 1.5: How do we use the AudioTrack class?
Hi, the buffer won't play in stream mode until you have filled it all the way the first time. So make sure you are writing at least 256K of data in the first write call. You can actually create the AudioTrack object, then say Play() and write data to it after it's playing (in stream mode). Once the buffer reaches the buffer size, it will start to play. Then just keep the buffer full. -niko On Apr 23, 12:24 pm, Moto medicalsou...@gmail.com wrote: I'm currently initiating the AudioTrack() for MODE_STREAM. I load some bytes using the write() and I see that it is working but once hit the play() call nothing happens... what is the matter? should I do something else that is not obvious?? Any tips Google friends? My settings: streamType - STREAM_MUSIC sampleRateInHz - 44100 channelConfig - CHANNEL_CONFIGURATION_STEREO audioFormat - ENCODING_PCM_16BIT bufferSizeInBytes - 256K the total size (in bytes) of the buffer where audio data is read from for playback. mode - MODE_STREAM thanks! -Moto! --~--~-~--~~~---~--~~ 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 testing: Emulator vs G1
Add debugging to the life cycle methods, this should help you see exactly what is going on and at least analyse a time line of events. On Apr 23, 2:44 pm, HowlettAndroid johnhowlet...@googlemail.com wrote: Hello, Hope you lot can help. I'm currently testing my application in the SDK emulator, Great everything works perfectly. The next step was to try the same application loaded on to the G1. After loading the app, I'm getting some strange behaviour. Some Activities seem to be called by intents multiple times, when in the emulator they only appear once. Looking at the code I can't see what could be wrong. Any help would be great. Thanks HowlettAndroid --~--~-~--~~~---~--~~ 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 programatically launch Browser in my android application
Hi, How can I programatically launch Browser in my android application? And how can I do that with it opens an URL instead of home page? 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] build JNI C code fail ???
Why build error? build and Error Message: .../mydroid$ make libmax target thumb C: libmax = development/max/max.c development/max/max.c: In function 'Java_testdll_set': development/max/max.c:7: error: parameter name omitted development/max/max.c:7: error: parameter name omitted make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/ libmax_intermediates/max.o] Error 1 code as follows: max.c === #include jni.h JNIEXPORT void JNICALL Java_testdll_set (JNIEnv *, jclass, jint); int i = 0; JNIEXPORT void JNICALL Java_testdll_set (JNIEnv *, jclass, jint j) { i = j; } === Android.mk LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ max.c LOCAL_C_INCLUDES := \ $(JNI_H_INCLUDE) LOCAL_SHARED_LIBRARIES := \ libutils LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libmax include $(BUILD_SHARED_LIBRARY) == --~--~-~--~~~---~--~~ 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: Q. Stack trace gives Hex values not function names when core library crashes
I've heard of an Android tool called stack which helps analyze crashes seen in logs. Supposedly, this tool is located in root/android/tools/stack but I don't see it. I believe its used as follows: cd root/android adb logcat -d log.txt tools/stack log.txt results.txt I'm guessing the stack tool uses addr2line as described by Jorge below but it goes through the logcat output, finds the crash log entries, and does the addr2line conversion. Does stack exist or is it an Android myth??? Joe On Apr 2, 11:47 am, Jorge sirsol...@gmail.com wrote: To figure out this crash, you will need to use the addr2line tool manually. 1) Find the path to the addr2line enter this command in the build env: ~/mydroid$ find . -name *addr2line 2) Find the location of the symbol directory enter this command in the build env: ~/mydroid$ find . -name libopencorehw.so 3) Combine the two to manually parse this crash: path_to_addr2line_tool\addr2line_tool_name -f -e path_to_symbol_directory\shared_lib_you_are_interested_in 0xAddressFromTheStackTrace From thestacktrace: I/DEBUG ( 705): #00 pc 4390 /system/lib/libopencorehw.so I/DEBUG ( 705): #01 pc 000dc942 /system/lib/libopencore_player.so I/DEBUG ( 705): #02 pc 000dc95a /system/lib/libopencore_player.so I/DEBUG ( 705): #03 pc 000dc9f8 /system/lib/libopencore_player.so I/DEBUG ( 705): #04 pc 000b9b66 /system/lib/libopencore_common.so You form the addr2line commands manually. This line: I/DEBUG ( 705): #00 pc 4390 /system/lib/libopencorehw.so Would be turned into this line: path_to_addr2line_tool\arm-eabi-addr2line -f -e path_to_symbol_directory\libopencorehw.so 0x4390 And so on ... I/DEBUG ( 705): #01 pc 000dc942 /system/lib/libopencore_player.so path_to_addr2line_tool\arm-eabi-addr2line -f -e path_to_symbol_directory\libopencore_player.so 0x000dc942 I/DEBUG ( 705): #02 pc 000dc95a /system/lib/libopencore_player.so path_to_addr2line_tool\arm-eabi-addr2line -f -e path_to_symbol_directory\libopencore_player.so 0x000dc95a I/DEBUG ( 705): #03 pc 000dc9f8 /system/lib/libopencore_player.so path_to_addr2line_tool\arm-eabi-addr2line -f -e path_to_symbol_directory\libopencore_player.so 0x000dc9f8 I/DEBUG ( 705): #04 pc 000b9b66 /system/lib/libopencore_common.so path_to_addr2line_tool\arm-eabi-addr2line -f -e path_to_symbol_directory\libopencore_player.so 0x000dc9f8 ... ETC ETC until you have the entire list. Example for a crash I've seen: #00 pc e234 /system/lib/libc.so Corresponds to this: ./prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-addr2line - f -e ./out/target/product/generic/symbols/system/lib/libc.so 0xe234 Returns: strlen bionic/libc/arch-arm/bionic/strlen.c:62 Then you look in the files/line numbers indicated and debug it further. I hope this could help... Jorge On Mar 25, 10:25 am, rajat rajat.n...@gmail.com wrote: Hi While trying to debug native C libraries, upon receiving a SIGSEGV, the core dump thrown does not map address values to symbols as seen in DDMS. As mentioned above this is happening due to stripping of binaries. How can we prevent such stripping in Android or obtain detailedstack tracedespite stripping ? Are there any changes we need to make to the Makefiles ? Thanks in advance On Feb 13, 1:47 am, fadden fad...@android.com wrote: On Feb 12, 1:59 am, click...@gmail.com click...@gmail.com wrote: I am looking for little more informations rather than Hex values. Like the backtrace feature where thestackhex values is mapped to the function names and function names are visible. The device can't show these, because the symbols are stripped out of the libraries before they are installed on the device. They do exist in the build tree; since you're doing your own builds, you can find them in the appropriate symbols directory under out/. Given that, you can use arm-eabi-addr2line to convert the symbols, or use gdb/gdbserver to do debugging directly on the device. Make sure you're using the out directory that corresponds to the binaries installed on the device. In any event, discussions about debugging native libraries might be more appropriate for android-porting or android-platform at this time.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Building different versions of an app -- best practice?
Maybe you can build your app using Maven or Ant? I think it should be possible to configure building both a free app and a paid app based on the same source. Even package renaming and all that can be handled. On Apr 21, 11:34 am, jarkman jark...@gmail.com wrote: For what it is worth, the 1.5 SDK does move the R.java out into a different directory (myProject/gen/com.needle.noo), which may solve one of your problems. But I don't see how you'd get round having the package name in all the source files (or, at least, in all the activities so on) without introducing a preprocessor. The new SDK also has something in the Android section of the project properties called 'Project APK configurations', which is clearly about some kind of multiple-build-configuration mechanism, but I have not worked out what it does yet. Perhaps it is the answer to all our hopes and dreams... R. On Apr 21, 9:56 am, Jon Colverson jjc1...@gmail.com wrote: On Apr 20, 1:23 pm, Mariano Kamp mariano.k...@gmail.com wrote: But isn't the real problem that you would need a totally different package name to upload it to the Android Market? I'd love to hear if anyone has an elegant solution for this. Mine is very ugly: I have one manifest file for my full version and one of the demo version. The demo manifest has a different package name (just demo appended to the main package name). When I want to build the demo for release I replace the manifest with the demo version and then I have to use Eclipse to rename my main Java package to match. Anyone have a better way? I spent a day trying different ways of doing this, with different projects using a common source directory, but the insurmountable problem was that the R.java resource file was always put in the package matching the manifest's package name. -- Jon --~--~-~--~~~---~--~~ 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] Caching views and activities
Hello, I've post this message in the beginners section but I think this section is more suitable, for sorry for the desagreement. The message Hello everyone, there is a question that's been annoying me and I don't find a clear answer in the documentation. I've got a activity showing the user a list of songs to play, and when he opens a song I launch an activity which embed a player. My problem is that when i finish playing i call this.finish(), but when the user reopen the player, the onCreate is launched and it seems that the GUI is building itself again. I've tried to not call this.finish() and call the Activity.startActivity on the father, but with this way, when I clic on the back button on the emulator, I get all the players playing in the same time (they still exist). So my question, is there a way to make an activity a singleton or to freeze it to be retrieved later (It can't be able to retrieve it with back button) or a way to cache all the constructions so to not have to do it again ? Thanks in advance. Your sincerly. --~--~-~--~~~---~--~~ 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: Early Look Android 1.5 SDK
Hi..I was very excited to see that 1.5 has come and also started using that too. I have updated my old applications of 1.1 and then when i try to run the emulator its taking forever to bootup and start. I have been using the new SDK since yesterday but till now not been successful in starting the emulator as shown in the documentation, also tried creating the new Virtual device as stated, then also not able to. How can i implement the new touch keyboard with apps of 1.1. Need your advice..where i am going wrong Thanks On Apr 13, 9:01 pm, Xavier Ducrohet x...@android.com wrote: On Mon, Apr 13, 2009 at 8:53 PM, JP joachim.pfeif...@gmail.com wrote: Hey, thanks Xavier! I've read the blog but I am not clear re: backwards compatibility: Will apps currently built against 1.0 or 1.1 run on handsets released w/ 1.5, say the new keyboard-less devices? Or do we need to account for the changes in 1.5 and re-release? (This would be hell) As long as you don't use private APIs you *should* be good (except for some minor permission changes.) That said, we fixed some bugs that may have some minor side effects. For instance, we changed the minimum size of some widgets in 1.5 that may impact on your layouts. This SDK contains both 1.1 and 1.5, so you should keep compiling your applications against Android 1.1 but test them on both 1.1 and 1.5 emulators. Xav -- Xavier Ducrohet Android Engineer, Google. --~--~-~--~~~---~--~~ 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: Ubuntu Jaunty and adb not playing well together
Hi, I had the same problem. I was very skeptical about renaming the file to 51-android.rules, because as you said, there are no other files with a name starting with 50-... but well, I tried, thinking that maybe, in some other directories, or whatever... And it solved my problem ! Hope it will work for you as well ! Best. On Apr 15, 4:36 pm, Zigurd zigurd.medni...@gmail.com wrote: My not-very-elegant solution indicates this is a permission issue. The udev rule appears to set permissions, so it probably isn't being run. It would be nice to verify the udev rule match, but I'm a udev n00b and can't find what the ATTRS (formerly SYSFS) rule is supposed to match. --~--~-~--~~~---~--~~ 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] Does Android Messaging support EMS ?
Hi All : I'm studying Android and will start to develop some message related AP after I familiar with Android , but when I play G1, I don't know how to send a EMS , I do read 3GPP TS 23.040 and really understand about SMS and EMS but still don't know how to send a EMS to other MS , Does that mean Android phone don't support EMS ? Your suggestion will be appreciated. B.R Light --~--~-~--~~~---~--~~ 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] Audio FFT and Spectrum View
Has anyone seen a G1 phone be used as a spectrum analyzer. Input would come from Mic Input, bandwidth up to 3kHz. Specifically the audio input would consist of multiple PSK signals of about 30Hz bandwidth. The idea would be to display the signal vs time (Vertical dimension) and decode the PSK digital stream at specific signal within the 3kHz bandwidth. --~--~-~--~~~---~--~~ 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: SurfaceFlinger and permitions
nobody can help? On 24 avr, 17:24, Guian guiandou...@gmail.com wrote: I'm porting my app on the t-mobile G1. this app uses OpenGL (using the glSurfaceView from API demo ) my app works fine on the emulator with these minor errors : 04-24 16:57:04.957: ERROR/GLLogger(213): couldn't load libhgl.so library (Cannot find library) 04-24 16:57:05.147: DEBUG/SurfaceFlinger(45): pid 213 requesting gpu surface (current owner = -1) 04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/ pmem_gpu1: No such file or directory 04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/ pmem_gpu0: No such file or directory 04-24 16:57:05.157: DEBUG/SurfaceFlinger(45): pid 213 requesting gpu surface (current owner = -2) 04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/ pmem_gpu1: No such file or directory 04-24 16:57:05.157: ERROR/MemoryHeapBase(45): error opening /dev/ pmem_gpu0: No such file or directory when lauching it on the G1 errors become : and the app simply close. D/SurfaceFlinger(18083): pid 18620 requesting gpu core (owner = -1) D/SurfaceFlinger(18083): pid 18620 requesting gpu surface (current owner = -1) D/SurfaceFlinger(18083): gpu surface granted to pid 18620 D/SurfaceFlinger(18083): pid 18620 requesting gpu surface (current owner = 18620) D/SurfaceFlinger(18083): gpu surface granted to pid 18620 I/ActivityManager(18083): Displayed activity com.mypackage.package/.Test: 11906 ms D/EGL.oem (18620): SMI region at virtual=0x45648000, physical=0x0, size=7340032 offset=0 D/EGL.oem (18620): EBI1 region at virtual=0x45d48000, physical=0x1650, size=8388608 offset=1228800 D/EGL.oem (18620): REGS region at virtual=0x44c44000, physical=0xa000, size=1048576, offset=0 D/dalvikvm(18620): GC freed 1754 objects / 95936 bytes in 108ms D/dalvikvm(18620): GC freed 309 objects / 15832 bytes in 92ms D/dalvikvm(18620): GC freed 63 objects / 2152 bytes in 93ms D/dalvikvm(18620): GC freed 70 objects / 2592 bytes in 91ms I/ActivityManager(18083): Process com.navigaia.android (pid 18319) has died. D/dalvikvm(18620): GC freed 44 objects / 1576 bytes in 118ms D/dalvikvm(18620): GC freed 52 objects / 1856 bytes in 93ms D/dalvikvm(18620): GC freed 50 objects / 1784 bytes in 92ms D/dalvikvm(18620): GC freed 52 objects / 1840 bytes in 91ms D/dalvikvm(18620): GC freed 50 objects / 1784 bytes in 94ms D/dalvikvm(18620): GC freed 44 objects / 1560 bytes in 95ms D/dalvikvm(18620): GC freed 52 objects / 1840 bytes in 120ms D/dalvikvm(18620): GC freed 50 objects / 1784 bytes in 92ms D/dalvikvm(18620): GC freed 44 objects / 1568 bytes in 91ms D/dalvikvm(18620): GC freed 44 objects / 1576 bytes in 92ms D/dalvikvm(18620): GC freed 52 objects / 2576 bytes in 93ms I/ActivityManager(18083): Process com.smartcapsules.cooking.android.taster (pid 18288) has died. I/DEBUG ( 29): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 29): Build fingerprint: 'android-devphone1/dream_devphone/ dream/trout:1.1/UNLOCKED/142608:userdebug/test-keys' I/DEBUG ( 29): pid: 18620, tid: 18636 com.myPackage.package I/DEBUG ( 29): signal 11 (SIGSEGV), fault addr 00c0 I/DEBUG ( 29): r0 0018 r1 001a94d8 r2 0001 r3 I/DEBUG ( 29): r4 001aa4d8 r5 001a94d8 r6 ad31a3fc r7 I/DEBUG ( 29): r8 fffe r9 10 0001 fp deadbeef I/DEBUG ( 29): ip sp 44c43d78 lr 8012eaac pc 80123250 cpsr 0010 I/DEBUG ( 29): #00 pc 80123250 /system/lib/libhgl.so I/DEBUG ( 29): #01 lr 8012eaac /system/lib/libhgl.so I/DEBUG ( 29): stack: I/DEBUG ( 29): 44c43d38 0320 I/DEBUG ( 29): 44c43d3c afe35d78 I/DEBUG ( 29): 44c43d40 001e62d0 [heap] I/DEBUG ( 29): 44c43d44 001aac70 [heap] I/DEBUG ( 29): 44c43d48 ffcf I/DEBUG ( 29): 44c43d4c I/DEBUG ( 29): 44c43d50 ffe0 I/DEBUG ( 29): 44c43d54 8012eaac /system/lib/libhgl.so I/DEBUG ( 29): 44c43d58 001aac70 [heap] I/DEBUG ( 29): 44c43d5c 8012ea00 /system/lib/libhgl.so I/DEBUG ( 29): 44c43d60 001aa4d8 [heap] I/DEBUG ( 29): 44c43d64 001a94d8 [heap] I/DEBUG ( 29): 44c43d68 ad31a3fc /system/lib/libandroid_runtime.so I/DEBUG ( 29): 44c43d6c I/DEBUG ( 29): 44c43d70 df002777 I/DEBUG ( 29): 44c43d74 e3a070ad I/DEBUG ( 29): #00 44c43d78 44c43dc0 I/DEBUG ( 29): 44c43d7c I/DEBUG ( 29): 44c43d80 ad31a3fc /system/lib/libandroid_runtime.so I/DEBUG ( 29): 44c43d84 41016eb4 I/DEBUG ( 29): 44c43d88 44c43da0 I/DEBUG ( 29): 44c43d8c 41016eac I/DEBUG ( 29): 44c43d90 41016e98 I/DEBUG ( 29): 44c43d94 0001 I/DEBUG ( 29): 44c43d98 acb15524 I/DEBUG ( 29): 44c43d9c ad00d9f8 /system/lib/libdvm.so I/DEBUG ( 29): 44c43da0 41092718 I/DEBUG ( 29): 44c43da4 001e0ee8 [heap] I/DEBUG ( 29): 44c43da8 ad31a3fc /system/lib/libandroid_runtime.so I/DEBUG ( 29): 44c43dac I/DEBUG ( 29): 44c43db0 3072 I/DEBUG ( 29): 44c43db4 001e0ee8 [heap] I/DEBUG ( 29): 44c43db8 44c43dc0 I/DEBUG ( 29): 44c43dbc ad041211 /system/lib/libdvm.so
[android-developers] Htc Touch Viva
Hi there! I want to buy the Htc Touch Viva, but before that, I want to know if it's possible to install the Google Android. Anybody can tell me if it's possible? I don't want to use Window$... you understand me... Htc Touch Viva http://www.htc.com/uk/product/touchviva/overview.html --~--~-~--~~~---~--~~ 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] Caching views and activities
Hello, I've tried The web Interface to post that message but the message is not appearing, so here it goes by mail. The message Hello everyone, there is a question that's been annoying me and I don't find a clear answer in the documentation. I've got a activity showing the user a list of songs to play, and when he opens a song I launch an activity which embed a player. My problem is that when i finish playing i call this.finish(), but when the user reopen the player, the onCreate is launched and it seems that the GUI is building itself again. I've tried to not call this.finish() and call the Activity.startActivity on the father, but with this way, when I clic on the back button on the emulator, I get all the players playing in the same time (they still exist). So my question, is there a way to make an activity a singleton or to freeze it to be retrieved later (It can't be able to retrieve it with back button) or a way to cache all the constructions so to not have to do it again ? Thanks in advance. Your sincerly. --~--~-~--~~~---~--~~ 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 correct way to refresh UI when I use android:configChanges=keyboardHidden|orientation
1. I don't want to recreate the activity when switching at Land Port, many runtime data I don't want to save and reload; 2. So I use onConfigurationChanged() facility, but I have UI for Land Port, What I do now is: public void onConfigurationChanged(Configuration newConfig) { setContentView() again as onCreate(); run findViewById()s as handlers will lost after setContentView(); setListeners for UI widgets as they will lost also; } 3. Is the way right I did in 2? BRs He On Apr 27, 11:14 am, Dianne Hackborn hack...@android.com wrote: If you actually have resources that change due to these states, you really should consider letting the normal destroy/recreate behavior execute. Otherwise, you will just need to poke through your UI, reloading and resetting resources that may have changed. There is no simple answer that can be given about what to do, because it depends entirely on what you need to have change (and you haven't said anything here about what you actually need to change). On Sun, Apr 26, 2009 at 7:56 PM, Wang He iptvph...@gmail.com wrote: Is here anybody knows the right way? Still waiting ... BRs He On Apr 24, 4:53 pm, Wang He iptvph...@gmail.com wrote: Hi all when I use android:configChanges=keyboardHidden|orientation in my code, the activity will not destroy and recreate when I change from portrait to landscape, only onConfigurationChanged(newConfig) will be called by framework. The issue is: My UI cannot refresh by default, what is the correct way in onConfigurationChanged() to refresh my UI? BTW, my UI is write with mylayout.xml and added to my Widget by addView (inflator(mylayout.xml),null). Thanks in advance!! BRs Wang He -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Looking for 2 android developers for Real Estate App
Hello All, I want to transform my website for the iphone. Please review my site and give me a proposal on how much http://www.nhadatvina.vn Sincerely, Vnguyen --~--~-~--~~~---~--~~ 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: URGENT!!!!! Can't update apps in android market!!!
I was have that same problem and I resolved it with uses-sdk minSdkVersion=2 / ... its located as first element in manifest r^ 2009/4/24 Yan Shi shiyansu...@gmail.com: When I upload an apk update for one of my apps(Hello Yahoo), I was told that Market requires the minSdkVersion to be set in AndroidManifest.xml.. So I can't do the update! I already set this attribute in AndroidManifest.xml. What's wrong?? I even set it to uses-sdk minSdkVersion=3 /, but still I can't do the update. Has anyone met this problem? BTW, when I go to http://market.android.com/publish/Home today, I have accepted Term and Service again. I think already accepted it the first time I registered for it. Why should I accept it again? Could any google stuff look into this please? Thanks very much --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ListView checked state wrongly shared between 2 views when reorienting screen
Hi, I have TabActivity that uses 2 other ListActivities for the tabs. Both underlying ListViews are set to CHOICE_MODE_MULTIPLE. When I run the following sequence of events, I get a strange result: 1) Setup one activity (tab) and its ListView using a CursorAdapter, including checking some items on the list 2) Reorient the screen (open the keyboard) 3) Setup the second activity (tab) and its ListView using a CursorAdapter, including checking some items on the list 4) Switch back to the first tab At this point, I can see in Eclipse that although (of course) each ListView is a distinct object, the internal variable used to store the checked state of items, called mCheckStates, is the SAME OBJECT REFERENCE in each of the ListViews. Clearly this is an issue, since the two views should not share the checked state of items between them. If I skip step #2, this does not occur Here is a bit more detail: After Step 1: ListView1 is object reference @1, ListView1.mCheckStates is object reference @2 After Step 2: ListView1 is object reference @3, ListView1.mCheckStates is object reference @4 (the reorientation recreates the views) After Step 3: ListView2 is object reference @5, ListView1.mCheckStates is object reference @2 -- note the reuse of this reference from step #1, not sure how/why After Step 4: ListView1 is object reference @3 (unchanged), ListView1.mCheckStates is object reference @2 (changed) -- same as ListView2.mCheckStates Please help 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] Coding of FileReader
Hi all..can anyone help me with coding filereader? Below is the text file i would like to read. Thank you! Sample of my text file: John;S1234567A;male;19 Mary;S8901234B;female;18 --~--~-~--~~~---~--~~ 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] Changing between multiple views
In my program I want to have a main menu with buttons that lead to other views like settings and the main game window, and then have buttons on those that switch back to the main menu view. I know how to go from the main menu to a different view, but I tried calling the activity's setContentView from a view and I couldn't. My main game view doesn't have any xml, is there a way to mix xml and java in a view so I could have a button that I can add a listener to in my game view? --~--~-~--~~~---~--~~ 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 Device Management
I can see the huge potential of the OS and what could be done but apart from funambol (which only serves the PIM data via an a la mobile update) server I can't find much in the way of management software to handle this number of devices. I've found several providers redbend being one and some others but they sell software directly to the likes of t-mobile. How about NEC or mFormations? http://www.nec.co.jp/press/en/0902/1202.html http://www.mformation.com/ Best Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to mix 2D graphics with layouts
I'd like to build an activity that is mixing layouts with 2D graphics. So for example, would like to introduce an edittext with an integer value and based on that value the size of a circle is dynamically adjusted and drawn. Any idea how to do this? For plain graphics I am using this approach here - but how can it be expanded to cover Android layouts (buttons, editboxes, textviews, radiobuttons, etc.)? public class DrawTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new GraphicsView(this)); } static public class GraphicsView extends View { public GraphicsView(Context context) { super(context); } @Override protected void onDraw(Canvas canvas) { --~--~-~--~~~---~--~~ 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] www.29usd.com sell ugg boot,tshirt,handbag,nike shoe,jordan shoe,dunk shoe,puma shoe,and so on for free shipping from
Get Nike Shoes at Super Cheap Prices Discount Nike air jordans (www.29usd.com) Discount Nike Air Max 90 Sneakers (www.29usd.com) Discount Nike Air Max 91 Supplier (www.29usd.com) Discount Nike Air Max 95 Shoes Supplier (www.29usd.com) Discount Nike Air Max 97 Trainers (www.29usd.com) Discount Nike Air Max 2003 Wholesale (www.29usd.com) Discount Nike Air Max 2004 Shoes Wholesale (www.29usd.com) Discount Nike Air Max 2005 Shop (www.29usd.com) Discount Nike Air Max 2006 Shoes Shop (www.29usd.com) Discount Nike Air Max 360 Catalogs (www.29usd.com) Discount Nike Air Max Ltd Shoes Catalogs (www.29usd.com) Discount Nike Air Max Tn Men's Shoes (www.29usd.com) Discount Nike Air Max Tn 2 Women's Shoes (www.29usd.com) Discount Nike Air Max Tn 3 Customize (www.29usd.com) Discount Nike Air Max Tn 4 Shoes Customize ( www.29usd.com) Discount Nike Air Max Tn 6 Supply (www.29usd.com) Discount Nike Shox NZ Shoes Supply (www.29usd.com) Discount Nike Shox OZ Sale (www.29usd.com) Discount Nike Shox TL Store (www.29usd.com) Discount Nike Shox TL 2 Shoes Store (www.29usd.com) Discount Nike Shox TL 3 Distributor (www.29usd.com) Discount Nike Shox Bmw Shoes Distributor (www.29usd.com) Discount Nike Shox Elite Shoes Manufacturer (www.29usd.com) Discount Nike Shox Monster Manufacturer (www.29usd.com) Discount Nike Shox R4 Running Shoes (www.29usd.com) Discount Nike Shox R5 Mens Shoes (www.29usd.com) Discount Nike Shox Ride Womens Shoes (www.29usd.com) Discount Nike Shox Rival Shoes Wholesaler (www.29usd.com) Discount Nike Shox Energia Wholesaler (www.29usd.com) Discount Nike Shox LV Sneaker (www.29usd.com) Discount Nike Shox Turbo Suppliers (www.29usd.com) Discount Nike Shox Classic Shoes Suppliers (www.29usd.com) Discount Nike Shox Dendara Trainer (www.29usd.com) Discount Nike Air Jordan 1 Seller (www.29usd.com) Discount Nike Air Jordan 2 Shoes Seller (www.29usd.com) Discount Nike Air Jordan 3 Collection (www.29usd.com) Discount Nike Air Jordan 4 Shoes Collection (www.29usd.com) Discount Nike Air Jordan 5 Chaussure Shoes (www.29usd.com) Discount Nike Air Jordan 6 Catalog (www.29usd.com) Discount Nike Air Jordan 7 Shoes Catalog (www.29usd.com) Discount Nike Air Jordan 8 Customized (www.29usd.com) Discount Nike Air Jordan 9 Shoes Customized (www.29usd.com) Discount Nike Air Jordan 10 Wholesalers (www.29usd.com) Discount Nike Jordan 11 Shoes Wholesalers (www.29usd.com) Discount Nike Air Jordan 12 Factory (www.29usd.com) Discount Nike Air Jordan 13 Shoes Factory (www.29usd.com) Discount Nike Air Jordan 14 Shoes Sell (www.29usd.com) Discount Nike Air Jordan 16 Exporter (www.29usd.com) Discount Nike Air Jordan 17 Shoes Exporter (www.29usd.com) Discount Nike Air Jordan 18 Offer (www.29usd.com) Discount Nike Air Jordan 19 Shoes Offer (www.29usd.com) Discount Nike Air Jordan 20 Manufacture (www.29usd.com) Discount Nike Jordan 21 Shoes Manufacture (www.29usd.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Capturing ACTION_MOVE events over multiple OnTouchListener
Hello Folks! I am developing an application where at one point the user is presented with six identical images each placed side by side. The user can then select any of the six images, one after another, by swiping his finger over the desired images he wishes to select. I have used a table layout to place the images side by side within image views for each of the images. Then I set OnTouchListener for each ImageView. The OnTouchListener listens for an ACTION_MOVE MotionEvent whereby a textbox is set to display the view on which the motion event was captured on. My problem lies in coding the part where the user makes the selection by swiping his finger over the images. The OnTouchListener captures the motion event on the first image the user swipes his finger on but it doesn’t “transfer” the listener to the other images while the user keeps swiping his finger over the other images. This results in the motion being captured on just one image all the time even while the user continues swiping his finger over other images. How should I code this so that the program detects the user swiping his finger over multiple images one by one? This has been bugging me for two days now. Any help will be appreciated! Here's my code: package com.blah.myRun import android.app.Activity; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; public class sticks extends Activity implements View.OnTouchListener { /** Called when the activity is first created. */ ImageView img1, img2, img3, img4, img5, img6 TextView myText; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); /** Create instances to the individual images */ img1 = (ImageView) findViewById(R.id.button1); img2 = (ImageView) findViewById(R.id.button2); img3 = (ImageView) findViewById(R.id.button3); img4 = (ImageView) findViewById(R.id.button4); img5 = (ImageView) findViewById(R.id.button5); img6 = (ImageView) findViewById(R.id.button6); myText = (TextView)findViewById(R.id.myText); /** Bind instances to listeners */ img1.setOnTouchListener(this); img2.setOnTouchListener(this); img3.setOnTouchListener(this); img4.setOnTouchListener(this); img5.setOnTouchListener(this); img6.setOnTouchListener(this); } @Override public boolean onTouch(View v, MotionEvent event) { /** On move, figure out which button the movement is on*/ switch (event.getAction()) { case MotionEvent.ACTION_MOVE: { myText.setText(v.toString()); break; } return true; } } --~--~-~--~~~---~--~~ 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 know which file the user selected on another application?
Hello everyone, I would like to create a Service that is put in the notification bar. And whenever i push on the notification bar icon I can get the path of the currently selected item. For example if I am playing a song called song.mp3 from the music player and I push on the notification bar I can get the path of the song e.g. \sdcard\song.mp3. Any idea how to do that? I was thinking about using Intent.ACTION_PICK wasn't sure however how to do that. --~--~-~--~~~---~--~~ 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 and neighbour cells
Hello, i'm a student in telecommunications and i have to developp a mobile application that gathers information (cell id rx level) on the active cell and the neighbour cells. i have no restriction on the platform i have to use so i was wondering if the program i have to developp is possible on android! even if the libraries needed are not public. I'd be interested in knowing their price. thanks for your time and best regards sebastien bischof --~--~-~--~~~---~--~~ 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] IOException on SAX parsing
Hi, I'm trying to parse an XML file from res/raw or assets/ using the javax SAX parser. When the file is too large (~ 1MB), the parse(...) method throws an IOException without further information, such as message or inner exception. When I reduce file size to e. g. 600 kB, it's working again. Did anyone else run across this issue? Any suggestions? Thanks, Andreas --~--~-~--~~~---~--~~ 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] Optional API - What happen if there is no ...
Hello, i want to know, what happen if i use location-based service (gps) on a phone without gps. I can t find anything in the api-documentation. If i understand the api correctly there is a basic api which run on every phone and there are the optional apis (location, audio, 3d...). The question is, what happen if i use an optional api-call on a device without this api/hardware? Is there a emulator-image where without gps/ wifi... implementation? I hope that somebody can answer my questions. regards oakmonk --~--~-~--~~~---~--~~ 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] Installing APK files to your g1 mobile using Vista
Installing APK files to your g1 mobile using Windows Vista After an intense search on how to install apk files through Vista, I have finally found a way to install APK files. I'm not a computer guru and don't know diddly-squat about programming so if there is a better and faster way to install apk files through your desktop, please revise: 1) Disconnect your G1 mobile from your computer 2) Create a folder in your Documents folder for both files you will need to download 3) Download Google Android SDk for Windows http://code.google.com/android/intro/installing.html and save to the folder you created. 4) Download the USB Driver http://dl.google.com/android/android_usb_windows.zip and save to the folder you created. 5) Unzip both files into the folder and install the android program. 6) Open the Androids-sdk-windows that was unpacked, open the tools folder, and on your windows explorer, first left click on the address then right click and copy the full address. 7) Click on start menu, right click on Computer, click on Properties. Click on Advanced system settings 8) On the Advanced tab, click on Environmental Variables Under user variable... click New. 9) For variable name type: sdk_root 10) For variable value: just right click and paste. click ok 11) On your G1, go to settings, applications, and check unknown sources 11) Connect your G1 mobile and update your usb driver with the file you downloaded in step 4. If your usb driver will not update, use your device manager (start menu, right click computer, click on properties, device manager) to update driver. 12) Be sure to mount your phone. 13) Move your .apk files to the tools folder you located in step 6 14) On the tools folder, mouse over a blank spot, hit shift+right click and click Open command Windows here. 15) On the command screen, type: adb install filename.apk Enjoy. --~--~-~--~~~---~--~~ 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] java.lang.OutOfMemoryError: bitmap size exceeds VM budget
Hello ! While I'm trying to resize a photo (originally on a sd card), grabbed using : InputStream openInputStream = contentResolver.openInputStream (photoUri); I got the following stack trace when calling : Bitmap bitmap = BitmapFactory.decodeStream(openInputStream); 04-26 14:57:57.213: ERROR/dalvikvm-heap(349): 6291456-byte external allocation too large for this process. 04-26 14:57:57.224: ERROR/(349): VM won't let us allocate 6291456 bytes 04-26 14:57:57.234: DEBUG/skia(349): allocPixelRef failed 04-26 14:58:58.005: WARN/dalvikvm(349): threadid=15: thread exiting with uncaught exception (group=0x4000fe68) 04-26 14:58:58.014: ERROR/AndroidRuntime(349): Uncaught handler: thread Thread-19 exiting due to uncaught exception 04-26 14:58:58.153: ERROR/AndroidRuntime(349): java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-26 14:58:58.153: ERROR/AndroidRuntime(349): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 04-26 14:58:58.153: ERROR/AndroidRuntime(349): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:304) 04-26 14:58:58.153: ERROR/AndroidRuntime(349): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:149) 04-26 14:58:58.153: ERROR/AndroidRuntime(349): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:174) Do you know an alternative way to resize a picture ? without calling BitmapFactory ? and without getting such an exception ? Thanks in advance for your help Anthony --~--~-~--~~~---~--~~ 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] Regarding Device level APIs
Hi All, I am new to Android. Please clear my doubts. I could see there are many APIs available in Android. If I have to create some device driver do I need to use Java(Android) for that also. Or that will be in C? 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] ListView checked state wrongly shared between 2 views when reorienting screen
Hi, I have TabActivity that uses 2 other ListActivities for the tabs. Both underlying ListViews are set to CHOICE_MODE_MULTIPLE. When I run the following sequence of events, I get a strange result: 1) Setup one activity (tab) and its ListView using a CursorAdapter, including checking some items on the list 2) Reorient the screen (open the keyboard) 3) Setup the second activity (tab) and its ListView using a CursorAdapter, including checking some items on the list 4) Switch back to the first tab At this point, I can see in Eclipse that although (of course) each ListView is a distinct object, the internal variable used to store the checked state of items, called mCheckStates, is the SAME OBJECT REFERENCE in each of the ListViews. Clearly this is an issue, since the two views should not share the checked state of items between them. If I skip step #2, this does not occur Here is a bit more detail: After Step 1: ListView1 is object reference @1, ListView1.mCheckStates is object reference @2 After Step 2: ListView1 is object reference @3, ListView1.mCheckStates is object reference @4 (the reorientation recreates the views) After Step 3: ListView2 is object reference @5, ListView1.mCheckStates is object reference @2 -- note the reuse of this reference from step #1, not sure how/why After Step 4: ListView1 is object reference @3 (unchanged), ListView1.mCheckStates is object reference @2 (changed) -- same as ListView2.mCheckStates Please help 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: URGENT!!!!! Can't update apps in android market!!!
After adding minSdkVersion as above market complained that there was already an application with the same package name. Weird On Apr 24, 9:40 pm, s...@zooropa.com s...@zooropa.com wrote: I'm still having the same problem as below when I insert the: uses- sdk android:minSdkVersion=1/uses-sdk right after the manifest. There must be a trick to where it's put?? On Apr 24, 3:10 pm, Hw3699 hw3...@gmail.com wrote: What's your solution? I got the same issure. manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.innersocial.planner android:versionCode=1 android:versionName=1.1.1 uses-sdk android:minSdkVersion=1/uses-sdk It doesn't work. On Apr 24, 1:14 pm, havexz bali.param...@gmail.com wrote: This is the right solution.but why such a wierd but Google only knows..:) I also faced the same problem and tried different combination and then it worked fine finally. On Apr 24, 10:38 am, yhfudev yhfu...@gmail.com wrote: You may move the uses-sdk android:minSdkVersion=1/uses-sdk to the first line, after the manifest On Apr 24, 6:04 am, s...@zooropa.com s...@zooropa.com wrote: Okay I just sent a message to Google we'll see what they say. On Apr 24, 6:17 am, Al Sutton a...@funkyandroid.com wrote: There's little the people on this list can do to help you with the inner workings of Market. Your best option would be to try and contact Google. Al. --- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Yan Shi Sent: 24 April 2009 09:15 To: Android Developers Subject: [android-developers] Re: URGENT! Can't update apps in android market!!! Anyone please? On Apr 24, 2:16 pm, Yan Shi shiyansu...@gmail.com wrote: When I upload an apk update for one of my apps(Hello Yahoo), I was told that Market requires the minSdkVersion to be set in AndroidManifest.xml.. So I can't do the update! I already set this attribute in AndroidManifest.xml. What's wrong?? I even set it to uses-sdk minSdkVersion=3 /, but still I can't do the update. Has anyone met this problem? BTW, when I go tohttp://market.android.com/publish/Hometoday, I have accepted Term and Service again. I think already accepted it the first time I registered for it. Why should I accept it again? Could any google stuff look into this please? Thanks very much- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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] Problems trying to play RTSP stream from VLC
For the last few days I've been trying to play an RTSP stream on the physical device (dev phone) from an instance of VLC (0.9.9) running on my machine, but I've had no success. I started with some mp4 video files that I verified will play off the SD card on the device. I took one of these files and published an RTSP stream from an instance of a VLC server running on my laptop. Here's the output string in VLC that is used to create the stream from the base mp4: :sout=#transcode {vcodec=mp4v,vb=200,scale=1,acodec=mp4a,ab=16,channels=2}:duplicate {dst=display,dst=rtp{dst=,mux=ts,port=1234,sdp=rtsp:// 192.168.1.100:1234/stream.sdp}} Which corresponds to: Video codec - MPEG-4 Audio codec - AAC Video bitrate - 200 kbps Audio bitrate - 16 kbps Resolution - 320x240 I can publish this stream in the VLC server and consume it from a VLC player (running on the same machine as the server or from another machine on the network) without any problems by simply telling it to play the stream at this address: rtsp://192.168.1.100:1234/stream.sdp The problem I'm having is trying to play this same stream from the device. I'm using the 1.1 release of the SDK, and the project I'm using to test this is the ApiDemos project (MediaPlayerDemo_Video.java). All I'm doing is setting the path variable in code to the rtsp:// link above. When this line executes: mMediaPlayer.prepare(); This exception is thrown: java.io.IOException: Prepare failed.: status=0x So it's not clear to me what exactly the failure is. I've tried tinkering with the VLC output a million different ways, but I can't get around this error. I've tried using several different mp4 source files and even some wmv's. I'm by no means an expert in streaming video protocols, but it seems that VLC may not be able to produce an RTSP stream that Android is able to recognize, and that's really what I'm looking for an answer to. I'm hoping someone has been able to take an mp4 file (or a source file of any video format, really) and, in VLC, transcode it and make it available in an RTSP stream that the device is able to play back. I've read some other posts that are semi-related to the RTSP issues I'm seeing here, but I don't think I've seen anything yet where someone confirmed outright that they were able to play an RTSP stream from VLC to Android. I'm going to post this in the VideoLAN forums as well. Any help is appreciated. 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] c++ on android
Hi, right now, all app development are based on java and sdk, anyone tried to use c++, i.e. compiled into so, and modify jni to access it? is there a way to using c++ in current Android Market App? 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] Non blocking io with LocalSocket
Hi, Is it possible to do non blocking IO with LocalSocket? -- Mike Cardwell (https://secure.grepular.com/) (http://perlcv.com/) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.
I tried android:minSdkVersion=2 inside uses-sdk, doesn't work also tried put it as attribute of manifest, doesn't work too On 4月25日, 上午8时33分, Dan Morrill morri...@google.com wrote: Hello! You probably need to use android:minSdkVersion rather than minSdkVersion. - Dan On Fri, Apr 24, 2009 at 1:16 PM, 6real xirgon...@gmail.com wrote: Dear all, since today I have the following clear message : Market requires the minSdkVersion to be set in AndroidManifest.xml. but my manifest has the line : uses-sdk minSdkVersion=2 / and I also tried even uses-sdk minsdkversion=2 /... I try to put this line : as the first child of manifest, as the last child and also right after application.. Can you please help me ? Is there a hidden rule I don't know ... 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: Recording Audio in a call
I think it would be illegal since you could record someone else without their knowlege. On Apr 25, 2:59 pm, John Doe halila...@gmail.com wrote: Is it going to be possible somehow? in g2 ? cupcake ? i wonder whether it is because of software limitations or hardware limitations... On Apr 25, 5:33 am, Mark Murphy mmur...@commonsware.com wrote: John Doe wrote: Hi guys. I have a question and i am looking for an answer for a very long time. I am trying to record audio when i call someone and when someone calls me.I am using phonestatelisteners and i am able to record audio from outside (my voice) when i call someone. however when somebody calls me it doesnt record my voice at all . I am trying to record my voice. Even if somebody calls me. But it works only in one direction :( If i call it records my voice if somebody calls it doesnt record my voice. Do you know if this is possible ? No, it is not possible, as I understand it. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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] Framerate killed by onTouchEvent spam
I've got a problem with a flood of touch events destroying my game's framerate while there is a touch active. Basically onTouchEvent is called (with getAction = ACTION_MOVE, x = 0 and y = 0) about a hundred times a second for as long as the finger is touching the screen. I've tried returning from onTouchEvent straight away, and even removing its implementation at all, but it doesn't help - the app slows to a crawl as soon as a finger is down. I asked on the IRC channel and Romain Guy advised me that they're aware of the problem but didn't have time to fix it for Cupcake, so I'm not expecting a full solution! I was just wondering if anyone else has encountered this and figured out a way around it. Cheers, Tom --~--~-~--~~~---~--~~ 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 know whether SIP(Soft Input Panel - Keyboard view) is showing or not
Hi I wonder it is possible to know whether SIP is showing to user or not. A user application(Activity) can show or hide the Soft Input through the Input Method Manager. There is some APIs to handle the SIP. But I can't find API to know status of SIP(it is on showing or hiding). When SIP is showing to user. It disturbs the UI of the Activity. So Activity should know about the information related with upper case. How can I know that? --~--~-~--~~~---~--~~ 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] build JNI C code fail ???
build JNI C code fail ??? Why build error? build and Error Message: .../mydroid$ make libmax target thumb C: libmax = development/max/max.c development/max/max.c: In function 'Java_testdll_set': development/max/max.c:7: error: parameter name omitted development/max/max.c:7: error: parameter name omitted make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/ libmax_intermediates/max.o] Error 1 code as follows: max.c === #include jni.h JNIEXPORT void JNICALL Java_testdll_set (JNIEnv *, jclass, jint); int i = 0; JNIEXPORT void JNICALL Java_testdll_set (JNIEnv *, jclass, jint j) { i = j; } === Android.mk LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ max.c LOCAL_C_INCLUDES := \ $(JNI_H_INCLUDE) LOCAL_SHARED_LIBRARIES := \ libutils LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libmax include $(BUILD_SHARED_LIBRARY) == --~--~-~--~~~---~--~~ 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's the proper way to share data between lite and pro versions of the same app?
Suppose you have an app with a lite version and a full version. The app stores some user data in SharedPreferences, and some data in a SQL database. If a user tests the app for a few days, generating data all the time, and then decides to switch to the paid version, how do you copy or share the data between the two? Some code examples would be appreciated - but for some reason I have a feeling this is much, much more complex than I hope. --~--~-~--~~~---~--~~ 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 Physics Engine
The http://www.filedropper.com/apedroid link is down. Any other place I can download the code? Has anybody else had any luck optimizing Phys2D or Box2D with fixed numbers and less memory allocation? Kyle On Apr 3, 8:24 am, mscwd01 mscw...@gmail.com wrote: I have thrown together a quick example of theAPEPhysics engine (www.cove.org/ape/) running on Android. As you can see, simulating 30 or so circles results in a solid 15fps, which looks acceptable. The bad news, which I didn't realise before porting it to Android, isAPE'slack of simulating rotation of bodies. I.e. if you simulate boxes their x,y positions are calculated but they never rotate. I'm pretty sure I haven't overlooked this feature but i'd be surprised if it wasn't part of theAPEengine, maybe someone else could confirm this? Anyway,APEis a lot nicer to use than JBox2D and is on a par with Phys2D for ease of use. I just wish Phys2D performed well on Android then all my problems would be solved! With all the attention this topic has brought I hope we can find a solution in the not-to-distant future... Here's the Eclipse Project:http://www.filedropper.com/apedroid When running 20 initial circles are created, you can create more by clicking the down button. Also you will find lots of commented out code, you can experiment with this if you wish... On Apr 3, 12:35 pm, Stoyan Damov stoyan.da...@gmail.com wrote: + googol On Fri, Apr 3, 2009 at 1:43 PM, Mariano Kamp mariano.k...@gmail.com wrote: Romain, I am sure you are, but as with the Cupcake issue from the other thread with Al, it is not transparent at all. The road map (http://source.android.com/roadmap) doesn't contain much and doesn't seem up to date. And don't get me started on the lack of transparency and predictability regarding *all* things Android Market. Don't get me wrong though. This is not meant in any way as a personal attack against you or in me laying the blame onto you. My point is that the communications sucks and that your, Dianne's and JBQ's life would be easier as well when someone offical from Google would put more effort into proper communications. Cheers, Mariano On Fri, Apr 3, 2009 at 10:29 AM, Romain Guy romain...@google.com wrote: We're aware of the shortcomings of the current garbage collector and believe me, it's one of the things we'd really love to see improved as soon as possible :) On Fri, Apr 3, 2009 at 2:04 AM, Mariano Kamp mariano.k...@gmail.com wrote: Anton, thanks. Very interesting. On Fri, Apr 3, 2009 at 2:24 AM, Anton socialhac...@gmail.com wrote: Check out http://android-developers.blogspot.com/2009/02/track-memory-allocatio... Romain Guy points out in this post that the android garbage collector cannot optimize small short lived objects. These are exactly the sort of objects that could be created in a physics engine when it needs to generate dynamic collision constraints. A good solution in this case is to use a pool of constraint objects because they are all going to be the same size/object. The best solution in my mind would be for the compiler to do escape analysis on the objects and stack allocate them when it sees that they will never escape the function. I have been told that the Java byte code can't reference an object on the stack. It's possible that the Dalvik byte code can, I don't know. I don't have a reference for this, but I assume that Dalvik's inability to optimize small short lived object comes from the fact that it uses a mark and sweep GC. On all of my profiling, I see the GC take at least 100ms to run. For a game that means you miss from three to 10 frames of animation and it makes for a pretty noticeable hick up. And I don't think it's my application that is causing the garbage collector to fire. Unless the OpenGL ES calls do some memory allocation, which is entirely possible. I realize that any background task could move to the run queue and take some time away from my engine, it just happens to be the garbage collector most of the time. :) So the result is that the Garbage collector is problematic for me in two ways. First, it's not optimized to deal with the sort of small objects that tend to make for good encapsulations of mathematical types (like Fixed point number classes or Vector or Matrix classes). And secondly it takes a long time to run when it does garbage collect, resulting in dropped frames. -Anton On Apr 2, 3:32 pm, Mariano Kamp mariano.k...@gmail.com wrote: It's maybe a bit off topic, but how do you know that Android's gc is rudimentary? Have you got a link handy? I only found this:http://developer.android.com/guide/practices/design/performance.html On Thu, Apr 2, 2009 at 11:59 PM, Anton socialhac...@gmail.com
[android-developers] Weird animation behavior after orientation change
Hello, I found a weird behavior here. At least, weird for me. The problem is mainly this: * My app is created and is running, I go to a menu and choose an option that starts function X(), that assembles a 2 frame animation and shows it on an ImageView. It works ok. * On the onResume I have a check and another call for this same function to continue the animation. It works ok if I go to the preferences screen and go back, it even changes the animation behavior based on the new settings. * When I rotate my phone/emulator, the animation stops. If I go to the menu and start it again, it works ok, but changing the orientation makes the animation stops again. I monitored my variables and function calls and the only difference is that android calls only my onResume when exiting the preferences, and the onCreate - onResume when changing orientation (as expected). The thing is, the menu item and the onResume calls the same function! And I dont see anything at onCreate that could be that drastic. Also, it works with non-animation Drawables, if I set the view to image X and rotate it will set it again and it will work ok. Is this a bug or something mistical that I am doing wrong? -- José de Paula Eufrásio Júnior (coredump) MCSO, GRC Professional http://core.eti.br --~--~-~--~~~---~--~~ 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] Passing Clicked URL in WebView to an activity
Hello Every1... I have implemented a webview which will show few URLS, Once the user clicks any of these URL's, the URL will be passed to new Activity I have implemented this using shouldOverrideUrlLoading() and TRYING to get this url within it, and then passing to to new activity as intent!!! Now somehow the URL is not geting caught, may be since all the URL's are of type http:// domain/folder/filename.mp3 or any other file, which cannot be loaded by the webview; I tried giving a go to HitTestResult but was unsuccessfull... It would be really great if someone could come up with a solution for me... or show me some snippets to implement HitTestResult... Looking forward for replies; Regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Error playing YouTube video in my application
I'm trying to play streaming video(*.3gp) with android SDK 1.5 pre. I have customized the APIDemo - VideoViewDemo.java. Specify the path to the URL of rtsp. I got the URL from the following URL. --http://gdata.youtube.com/feeds/api/videos?vq=8ZsML4uWoiw I used the following URL(*.3gp) -- path = rtsp://rtsp2.youtube.com/ CiILENy73wIaGQksopaLLwyb8RMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp But following error has occur. Please help me what is happen. 04-27 07:10:24.238: WARN/ActivityManager(587): Launch timeout has expired, giving up wake lock! 04-27 07:10:24.265: WARN/ActivityManager(587): Activity idle timeout for HistoryRecord{43603ba0 {com.example.android.apis/ com.example.android.apis.media.VideoViewDemo}} 04-27 07:10:27.975: ERROR/PlayerDriver(972): HandleInformationalEvent: type=28 UNHANDLED 04-27 07:10:28.584: WARN/PlayerDriver(972): Using generic video MIO 04-27 07:10:44.975: ERROR/PlayerDriver(972): Command PLAYER_PREPARE completed with an error or info PVMFFailure 04-27 07:10:44.985: ERROR/MediaPlayer(1095): error (1, -1) 04-27 07:10:44.995: ERROR/MediaPlayer(1095): Error (1,-1) 04-27 07:10:45.515: WARN/PlayerDriver(972): PVMFInfoErrorHandlingComplete I have confirmed the local *.3gp file is enable to play with this code. path = /sdcard/747.3gp --~--~-~--~~~---~--~~ 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 v. 1.5 = FAIL #2: Directly Manipulating Settings
My 2c regarding permissions... I find Vista's UAC prompts next-to-useless at times, because it doesn't tell you anything about why the elevation is required. How can I make an informed decision as a user about whether to allow an app to elevate if I don't know what it is going to do? Is it simply going to upgrade itself and write some new files into Program Files, or is it going to install some well hidden trojan inside a svchost.exe that the casual observer is never going to find? In the same respect I find, for example, the internet permissions on android useless. What's the app going to do? Check once a week for upgrades, or send a constant stream of detailed usage statistics to a server? I would much prefer to have the option to deny an app internet access on install, but then grant it on a case-by-case basis, having been provided with some information about what it wants to do (in this example, show the url). I understand the importance of making things easy on the average user, but the current method of click and forget on installation is comparable to having no security at all. I'd like to see the stats on the number of people who don't install an app because of the permissions it asks for. I'd venture a guess that it's very low. --~--~-~--~~~---~--~~ 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] xattr for yaffs2 to use SELinux on Android
Hi. To port SELinux to Android on emulator, we are working xattr support for yaffs2. We have primitive code for xattr for yaffs2, as shown at the last of this message. xattr is implemented as hidden files like reiserfs. For example, selinux's xattr for a file is stored in following file. ...xattr/Oid of a file/security.selinux I think there are many limitations and bugs, so I want to improve this patch. Do you have any comments, suggestions? Or, anyone working for better implementation? Following is a patch, it is based on yaffs2 in Android qemu kernel. http://www.aleph1.co.uk/lurker/message/20090424.003253.a5e3c4ac.en.html Regards, -- Yuichi Nakamura Hitachi Software Engineering Co., Ltd. SELinux Policy Editor: http://seedit.sourceforge.net --~--~-~--~~~---~--~~ 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 parse and analyze the call stack of native code? any tools?
Hi, I have the same problem. I want to find out the function name, but I do not know how to do. ex. I/DEBUG ( 543): #02 pc d41a /system/lib/lib.so May I know the the function name within the pc = d41a in / system/lib/lib.so? thanks a lot. On 4月19日, 下午1時45分, Paranoia zheny...@gmail.com wrote: Thanks! the following is the log fromnativecode. I/DEBUG ( 543): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 543): Build fingerprint: 'generic/generic/generic/:1.5/ CUPCAKE/eng.xx.20090418.095237:eng/test-keys' I/DEBUG ( 543): pid: 644, tid: 644 com.xxx..xxx I/DEBUG ( 543): signal 7 (SIGBUS), fault addr I/DEBUG ( 543): r0 0019a890 r1 054c r2 r3 00198aa0 I/DEBUG ( 543): r4 016a0002 r5 44d1b338 r6 0005 r7 0013f4f8 I/DEBUG ( 543): r8 beb81550 r9 41049ba8 10 41049b94 fp I/DEBUG ( 543): ip 00ce sp beb813d0 lr afc1d698 pc 804216fc cpsr 2030 I/DEBUG ( 543): #00 pc 000216fc /system/lib/lib.so I/DEBUG ( 543): #01 pc 0001279c /system/lib/lib.so I/DEBUG ( 543): #02 pc d41a /system/lib/lib.so I/DEBUG ( 543): #03 pc c59e /system/lib/lib.so I/DEBUG ( 543): #04 pc b486 /system/lib/lib.so I/DEBUG ( 543): #05 pc c252 /system/lib/lib.so I/DEBUG ( 543): #06 pc 8a7a /system/lib/lib.so I/DEBUG ( 543): #07 pc e3b4 /system/lib/libdvm.so --~--~-~--~~~---~--~~ 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] System Requirements
Hi there! Do you know what are the System Requirements for install Android? I want to install the Android in the HTC Touch Vivahttp://www.htc.com/uk/product/touchviva/specification.html, the specification are: Processor: TI's OMAP™ 850, 201 MHz Operating System: Windows Mobile® 6.1 Professional Memory ROM: 256 MB Memory RAM: 128 MB *¡Thanks!* -- Saludos NB. MSN: nbul...@gmail.com GTalk: nbul...@gmail.com Antes de imprimir, pensá en el medio ambiente. Before printing, think about the environment. Avant d'imprimer, pensez à l'environnement. --~--~-~--~~~---~--~~ 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: simple demo multiple alarms
Hi,Try using am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+(delay * 1000) , sender); This will set the alarms according to the delay that you specify. On Sun, Apr 26, 2009 at 3:42 PM, guruk ilovesi...@gmail.com wrote: Hi, i like to create multiple alarms, but i does not work. how to set and how to request in my receiver what alarm intent came activated in my alarm.java i call this function like: setalarm(5); setalarm(10) (it works but only remember the last) public void setalarm(int delay) { Intent intent = new Intent(alarm.this, alarmreceiver.class); PendingIntent sender = PendingIntent.getBroadcast(alarm.this, 0, intent, 0); intent.setData((Uri.parse(custom://+delay))); i heared about this would make individual alarms.. but does not work Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(System.currentTimeMillis()); calendar.add(Calendar.SECOND, delay); intent.putExtra(avr, +delay); //i tried to set my data here to read later, but also does not work AlarmManager am = (AlarmManager)getSystemService (ALARM_SERVICE); am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender); //Toast.makeText(this, Alarm set, Toast.LENGTH_LONG).show (); } my alarmreceiver.java public class alarmreceiver extends BroadcastReceiver { NotificationManager mNM; @Override public void onReceive(Context context, Intent intent) { Uri ursistr = intent.getData(); String intentstr = intent.getStringExtra(avr); //does not get the saved intentextra?! Toast.makeText(context, GOT IT :+intentstr+ +ursistr, Toast.LENGTH_SHORT).show(); } greets chris --~--~-~--~~~---~--~~ 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] MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)
Hi, I have a requirement to play several sounds many times in my game so instead of creating the MediaPlayer again and again I have called mp.seekTo(0) in onCompletion(mp) so that it will restart. Sometimes the sound is not audible from the device when I call mp.start () after setting mp.seekTo(0); but the player calls onCompletion() without playing any sound, this is observed randomly on most of the sounds FYI: - My sounds are of short duration mostly less than a second. - I am using a separate MediaPlayer for each sound (as I need this) - There are almost 28 sounds in my game so i will be creating 28 MediaPlayers. - Below is the attached code for player Also If I try to play many sounds one after the other in a short period of time i get an error saying no more track names available. can u tell Why this is happening...? check the below code: public boolean isPlayingSound; //class member MediaPlayer mp = null; String last_req = ; public void playSound(final String res) { if (isPlayingSound){ return; } try { if (last_req.equals(res)) { System.out.println(starting again: +res); // Sudhaker mp.start(); isPlayingSound = true; return; } last_req = res; mp = new MediaPlayer(); FileInputStream fIn = Utils.getContext().openFileInput(res); if (fIn != null) { //we tell the mediaplayer which file he needs to play. notice we don't tell him if this is a MIDI, WAV, MP3 or even AVI for that matter. //why? he is smart enough to recognize them!! we don't even have to use valid extensions like say .mid, .mp3, .wav!!! ... WOAH!! =D mp.setDataSource(fIn.getFD()); fIn.close(); } mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { public void onPrepared(MediaPlayer mp) { mp.start(); isPlayingSound = true; } }); mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { public void onCompletion(MediaPlayer mp) { System.out.println(sound playing finished : +res + and seek to start); //Sudhaker //mp.release(); mp.seekTo(0); isPlayingSound = false; } }); mp.setOnErrorListener(new MediaPlayer.OnErrorListener() { public boolean onError(MediaPlayer mp, int what, int extra) { mp.release(); mp = null; deleteSoundFile(res); isPlayingSound = false; last_req=; return false; } }); // mp.prepareAsync(); if (isLooping()) { mp.setLooping(true); } mp.prepare(); } catch (Exception e) { mp.release(); deleteSoundFile(res); isPlayingSound = false; mp = null; new PlayerImpl(fileName,fileInputStream); last_req=; playSound(fileName); } } please reply asap... --~--~-~--~~~---~--~~ 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] http connection failed via a proxy
hi guys, I have set up proxy in the sdk emulaotor and can access internet via the proxy in the browser. but this does not work for my http connection application, it gives Unknown host exception i have used -dns-server option when launch the app. Can you help pls Thanks Hr --~--~-~--~~~---~--~~ 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: Trying to understand TabHost source code
Swell, this has been reported as a bug : http://code.google.com/p/android/issues/detail?id=2516 On Apr 24, 1:28 pm, e-satis info.ksam...@googlemail.com wrote: Hello, I manage to find this post right after trying to solve something like this : http://groups.google.com/group/android-developers/browse_thread/threa... Apparently,tabsseems to still thefocusof TextView that are not part of them. Any idea of a workaround ? For the moment I just can think of overriding mTabKeyListener, but it's probably private... On Mar 6, 4:45 am, Dianne Hackborn hack...@android.com wrote: I don't believe the tab host is doing anything special for this, it is just letting the normalfocusnavigation take place. On Thu, Mar 5, 2009 at 4:00 PM, ying lcs ying...@gmail.com wrote: Thank you Dianne. I have another related question. I appreciate if you can help me with that. Let's say the a button in a tab content currently hasfocus. When I click the UP button, the tab-widget has thefocus. My question is how can the Tabhost knows that The tab-content reaches the end of its focusable control and decide to give tab-widget the focus? Thank you. On Thu, Mar 5, 2009 at 12:06 PM, Dianne Hackborn hack...@android.com wrote: The comment says is re-directs non-navigation keys to the content. It isn't intercepting the other keys, it is ignoring them (returning false). On Thu, Mar 5, 2009 at 11:42 AM, ying lcs ying...@gmail.com wrote: Hi, I am trying to understand TabHost source code. In the setup() , it has: // KeyListener to attach to alltabs. Detects non-navigation keys // and relays them to the tab content. mTabKeyListener = new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_DPAD_CENTER: case KeyEvent.KEYCODE_DPAD_LEFT: case KeyEvent.KEYCODE_DPAD_RIGHT: case KeyEvent.KEYCODE_DPAD_UP: case KeyEvent.KEYCODE_DPAD_DOWN: case KeyEvent.KEYCODE_ENTER: return false; } mTabContent.requestFocus(View.FOCUS_FORWARD); return mTabContent.dispatchKeyEvent(event); } }; My question is why it intersects all LEFT/RIGHT/UP/DOWN key event? If that is the case, can i still use LEFT/RIGHT/UP/DOWN to navigate within the TabContent (let say I have a row of buttons in the TabContent. Can I use LEFT/RIGHT/UP/DOWN to move from 1 button to another in the TabContent)? Thank you. -- 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. -- 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: EditText Tabhost problem
OK, great, I wasn't sure it would be. Sometimes, it's just you missing a point. Sadly, I strongly needed that kind of layout, but I guess I will have to way the next update. Is there a way to force compatibility check while installing an apk (like with the firefox extension) so i can make 2 versions off my app ? On Apr 27, 8:17 am, SR stan.r...@gmail.com wrote: Added to the Android bug list here: http://code.google.com/p/android/issues/detail?id=2516 On Apr 27, 12:57 am, SR stan.r...@gmail.com wrote: Confirmed as a problem in 1.5pre, in my own code on the emulator. Non-toplevelTabHost(meaning: embedded in another layout) willstealthefocusfrom an EditText elsewhere in the layout. Upon a keypress, but before the letter for the depressed key shows up in the EditText -- thefocus jumps back to the firsttab. SR --~--~-~--~~~---~--~~ 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] http connection error
Hi I am using a proxy, and set up the proxy in sdk emulator, the browser works fine, but my http code does not, it gave Unknownhost exception how to resolve this? Thanks Hr --~--~-~--~~~---~--~~ 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: IOException on SAX parsing
What are you doing with the SAX events? Build up a model in memory (or let DOM do that). You might just hit the 16 MB max memory barrier. Check it with DDMS during execution. Btw. a stacktrace and code would be nice. On Sat, Apr 25, 2009 at 1:21 PM, andreas.walt...@googlemail.com andreas.walt...@googlemail.com wrote: Hi, I'm trying to parse an XML file from res/raw or assets/ using the javax SAX parser. When the file is too large (~ 1MB), the parse(...) method throws an IOException without further information, such as message or inner exception. When I reduce file size to e. g. 600 kB, it's working again. Did anyone else run across this issue? Any suggestions? Thanks, Andreas --~--~-~--~~~---~--~~ 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 can I programatically launch Browser in my android application
its done using intent: new Intent(android.intent.action.VIEW, new ContentURI(http://www.google.com;)); I googled 10 sec and found this: http://www.ciol.com/developer/languages/tutorial/android-its-anatomy-and-features/20308104622/0/ greetings, darolla 2009/4/23 nathan.charles.sum...@gmail.com nathan.charles.sum...@gmail.com: Hi, How can I programatically launch Browser in my android application? And how can I do that with it opens an URL instead of home page? 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's the proper way to share data between lite and pro versions of the same app?
I don't know if this is the *proper* way, exactly. We copy the SQL data, with the Pro using the provider in the Lite to read the data across and upgrade it. And, we've built a cheap little scheme using broadcast intents to allow the Pro to request the SharedPreferences from the Lite. Hope that helps, Richard On Apr 27, 8:14 am, Just Checking eld...@gmail.com wrote: Suppose you have an app with a lite version and a full version. The app stores some user data in SharedPreferences, and some data in a SQL database. If a user tests the app for a few days, generating data all the time, and then decides to switch to the paid version, how do you copy or share the data between the two? Some code examples would be appreciated - but for some reason I have a feeling this is much, much more complex than I hope. --~--~-~--~~~---~--~~ 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: Installing APK files to your g1 mobile using Vista
Unfortunately it didn't work for me. I'm getting a This device cannot start. (Code 10) error on Vista SP2 RC. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of CueBallaG Sent: 25 April 2009 10:25 To: Android Developers Subject: [android-developers] Installing APK files to your g1 mobile using Vista Installing APK files to your g1 mobile using Windows Vista After an intense search on how to install apk files through Vista, I have finally found a way to install APK files. I'm not a computer guru and don't know diddly-squat about programming so if there is a better and faster way to install apk files through your desktop, please revise: 1) Disconnect your G1 mobile from your computer 2) Create a folder in your Documents folder for both files you will need to download 3) Download Google Android SDk for Windows http://code.google.com/android/intro/installing.html and save to the folder you created. 4) Download the USB Driver http://dl.google.com/android/android_usb_windows.zip and save to the folder you created. 5) Unzip both files into the folder and install the android program. 6) Open the Androids-sdk-windows that was unpacked, open the tools folder, and on your windows explorer, first left click on the address then right click and copy the full address. 7) Click on start menu, right click on Computer, click on Properties. Click on Advanced system settings 8) On the Advanced tab, click on Environmental Variables Under user variable... click New. 9) For variable name type: sdk_root 10) For variable value: just right click and paste. click ok 11) On your G1, go to settings, applications, and check unknown sources 11) Connect your G1 mobile and update your usb driver with the file you downloaded in step 4. If your usb driver will not update, use your device manager (start menu, right click computer, click on properties, device manager) to update driver. 12) Be sure to mount your phone. 13) Move your .apk files to the tools folder you located in step 6 14) On the tools folder, mouse over a blank spot, hit shift+right click and click Open command Windows here. 15) On the command screen, type: adb install filename.apk Enjoy. --~--~-~--~~~---~--~~ 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] NullPointerException on setBackgroundResource
Hi, I am attempting to animate an ImageView using frame-by-frame animation. I am using the following code: ImageView pacImageV = (ImageView) findViewById(R.id.pacAnim); pacImageV.setBackgroundResource(R.anim.pacanim); pacManCharAnim = (AnimationDrawable) pacImageV.getBackground(); * ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android.pacman.com.PacManMainView android:id=@+id/pacman_main_view android:layout_width=fill_parent android:layout_height=fill_parent/ RelativeLayout android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/gamescreen_txt android:text=@string/hello android:visibility=visible android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerInParent=true android:gravity=center_horizontal android:textColor=#88ff android:textSize=24sp android:paddingTop=400px/ /RelativeLayout ImageView android:id=@+id/pacAnim android:layout_width=20px android:layout_height=20px android:scaleType=center android:src=@drawable/pac01/ /FrameLayout * animation-list xmlns:android=http://schemas.android.com/apk/res/ android android:oneshot=true item android:drawable=@drawable/pac01 android:duration=200 / item android:drawable=@drawable/pac02 android:duration=200 / /animation-list * Logcat shows a null pointer exception for the pacImageV.setBackgroundResource(R.anim.pacanim) line. Perhaps I am following the example incorrectly. I am using the 1.5 sdk. Can anyone assist with this? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to Import Android Package Default Projects to Eclipse
Hi All, Can anyone tell me how to import the Android Default projects into our Eclipse. E.g androidsourceroot\packages\apps\AlarmClock I want to import this project to my eclipse work space, I tried with import projects and open excisting Android Projects. But that two are not working. So please can some one tell me is it possible to do this? thanks in Advance for pointers and solutions. regards raj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to display RGB 565 byte array on the screen
Hi, Can please anyone let me know how to display a raw RGB 565 byte array on the screen 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: What is the correct way to refresh UI when I use android:configChanges=keyboardHidden|orientation
Hi, There are various options mentioned here. http://www.devx.com/wireless/Article/40792/0/page/1 see if this helps... On Mon, Apr 27, 2009 at 1:55 PM, Wang He iptvph...@gmail.com wrote: 1. I don't want to recreate the activity when switching at Land Port, many runtime data I don't want to save and reload; 2. So I use onConfigurationChanged() facility, but I have UI for Land Port, What I do now is: public void onConfigurationChanged(Configuration newConfig) { setContentView() again as onCreate(); run findViewById()s as handlers will lost after setContentView(); setListeners for UI widgets as they will lost also; } 3. Is the way right I did in 2? BRs He On Apr 27, 11:14 am, Dianne Hackborn hack...@android.com wrote: If you actually have resources that change due to these states, you really should consider letting the normal destroy/recreate behavior execute. Otherwise, you will just need to poke through your UI, reloading and resetting resources that may have changed. There is no simple answer that can be given about what to do, because it depends entirely on what you need to have change (and you haven't said anything here about what you actually need to change). On Sun, Apr 26, 2009 at 7:56 PM, Wang He iptvph...@gmail.com wrote: Is here anybody knows the right way? Still waiting ... BRs He On Apr 24, 4:53 pm, Wang He iptvph...@gmail.com wrote: Hi all when I use android:configChanges=keyboardHidden|orientation in my code, the activity will not destroy and recreate when I change from portrait to landscape, only onConfigurationChanged(newConfig) will be called by framework. The issue is: My UI cannot refresh by default, what is the correct way in onConfigurationChanged() to refresh my UI? BTW, my UI is write with mylayout.xml and added to my Widget by addView (inflator(mylayout.xml),null). Thanks in advance!! BRs Wang He -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] HTTP Unnkown socket error
Hi All, Whenever I am tring to do the HTTP connection I an getting the following error: 04-27 16:38:59.296: ERROR/OSNetworkSystem(326): unknown socket error -1 I have Also given the appropiate the permission in the Android manifest file i.e uses-permission android:name=android.permission.INTERNET / I have seen all the tropic related to this bui in vain Please help me out Thanks in Advance Deepak Kumar Singh --~--~-~--~~~---~--~~ 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 Import Android Package Default Projects to Eclipse
You should use 'New' - 'Android Project' and select 'Create project from exist source', then choose the directory that contains AndroidManifest.xml, like the one you gave. On 4月27日, 下午6時05分, raj.10788 raj.10...@gmail.com wrote: Hi All, Can anyone tell me how to import the Android Default projects into our Eclipse. E.g androidsourceroot\packages\apps\AlarmClock I want to import this project to my eclipse work space, I tried with import projects and open excisting Android Projects. But that two are not working. So please can some one tell me is it possible to do this? thanks in Advance for pointers and solutions. regards raj --~--~-~--~~~---~--~~ 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] System application upgrade and system app versions?
Hi, I am having a scenario where I want to upgrade a preinstalled application (let's say version 1.0). AFAIK, the new version (1.1) will be installed on /data and will shadow the one in the system image. However, if a new system image upgrade woudl contain a newer version again (2.0), would Android run the 1.1 from /data or the 2.0 from the new system image? Another question - is there a uses-sdk android:maxSdkVersion=integer / tag that lets me specify that I do not want to run on newer versions of the SDK, in case these wil introduce unwanted behaviour and incompatible changes? Cheers /peter GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - New Energy for Data - The Graph Database. http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. --~--~-~--~~~---~--~~ 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 correct way to refresh UI when I use android:configChanges=keyboardHidden|orientation
You don't have to load and save that stuff, you can put references to your runtime data in a custom class and return that in Activity.onRetainNonConfigurationInstance() (http:// developer.android.com/reference/android/app/ Activity.html#onRetainNonConfigurationInstance()) and get it in Activity.getLastNonConfigurationInstance(). On 27 apr, 10:25, Wang He iptvph...@gmail.com wrote: 1. I don't want to recreate the activity when switching at Land Port, many runtime data I don't want to save and reload; 2. So I use onConfigurationChanged() facility, but I have UI for Land Port, What I do now is: public void onConfigurationChanged(Configuration newConfig) { setContentView() again as onCreate(); run findViewById()s as handlers will lost after setContentView(); setListeners for UI widgets as they will lost also; } 3. Is the way right I did in 2? BRs He On Apr 27, 11:14 am, Dianne Hackborn hack...@android.com wrote: If you actually have resources that change due to these states, you really should consider letting the normal destroy/recreate behavior execute. Otherwise, you will just need to poke through your UI, reloading and resetting resources that may have changed. There is no simple answer that can be given about what to do, because it depends entirely on what you need to have change (and you haven't said anything here about what you actually need to change). On Sun, Apr 26, 2009 at 7:56 PM, Wang He iptvph...@gmail.com wrote: Is here anybody knows the right way? Still waiting ... BRs He On Apr 24, 4:53 pm, Wang He iptvph...@gmail.com wrote: Hi all when I use android:configChanges=keyboardHidden|orientation in my code, the activity will not destroy and recreate when I change from portrait to landscape, only onConfigurationChanged(newConfig) will be called by framework. The issue is: My UI cannot refresh by default, what is the correct way in onConfigurationChanged() to refresh my UI? BTW, my UI is write with mylayout.xml and added to my Widget by addView (inflator(mylayout.xml),null). Thanks in advance!! BRs Wang He -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: What's the proper way to share data between lite and pro versions of the same app?
Iirc you can make the 2 version of the app use the same userId on the phone, that way you have full access to the lite data from the pro application. On 27 apr, 10:56, jarkman jark...@gmail.com wrote: I don't know if this is the *proper* way, exactly. We copy the SQL data, with the Pro using the provider in the Lite to read the data across and upgrade it. And, we've built a cheap little scheme using broadcast intents to allow the Pro to request the SharedPreferences from the Lite. Hope that helps, Richard On Apr 27, 8:14 am, Just Checking eld...@gmail.com wrote: Suppose you have an app with a lite version and a full version. The app stores some user data in SharedPreferences, and some data in a SQL database. If a user tests the app for a few days, generating data all the time, and then decides to switch to the paid version, how do you copy or share the data between the two? Some code examples would be appreciated - but for some reason I have a feeling this is much, much more complex than I hope. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---