Re: [android-developers] Re: GPS
On Sat, Dec 11, 2010 at 1:46 AM, Hendrik Greving fourhend...@gmail.comwrote: Actually I've found out how to toggle GPS etc., but it is an expoit which I guess will be fixed with Gingerbread. Unfortunately. I wouldn't call fixing exploits unfortunate. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MediaPlayer is Hanging in reset call
On Dec 10, 8:26 am, John jo-d...@hotmail.com wrote: String VideoResourcePath = getResources().getResourceName(R.raw.myVideo); VideoResourcePath = VideoResourcePath.replace(':', '/'); VideoPlayerView.setVideoPath(android.resource:// + VideoResourcePath); I'm confused. Do these lines of code ever work under any circumstances? Raw resources are usually meant to be read as input streams and not dealt with using file paths. You might want to take a moment to google about playing videos from resources or assets. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Eclipse: Export signed application log
8.0.1 indeed provides a log and validated my suspicion (the problem was with the adwhirl jar) thank you! -g. On Fri, Dec 10, 2010 at 9:22 PM, Xavier Ducrohet x...@android.com wrote: We improved the log reporting in ADT 8.0.1 It shoud display a better error message in the dialog and dump more info in the console. Xav On Fri, Dec 10, 2010 at 5:49 AM, George Moschovitis george.moschovi...@gmail.com wrote: When trying to export a signed application using the latest SDK and Proguard I get an 'Export failed' message. Is there a way to see some kind of log file with a more detailed error message so that I can fix the problem? thanks, -g. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.gmosx.com/blog -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Combining an image
I was just reading about one of the Drawables that I think can layer them... In fact LayerDrawable I think. Take a look at the example section on Drawables, and the docs for the LayerDrawable. - brill On Dec 9, 11:34 pm, darrinps darri...@gmail.com wrote: I have an image that I split into four parts and would like to combine it back into one large image on my splash screen but am having a little trouble figuring out just how to do this. I have it like this so far: TableLayout android:id=@+id/TableLayout01 android:stretchColumns=* android:layout_height=wrap_content android:layout_width=fill_parent TableRow android:id=@+id/Row01 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center_vertical| center_horizontal ImageView android:id=@+id/ImageUpperLeft android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/upperleft/ImageView ImageView android:id=@+id/ImageUpperRight android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/upperright/ImageView /TableRow TableRow android:id=@+id/Row02 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center_vertical| center_horizontal ImageView android:id=@+id/ImageLowerLeft android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/lowerleft/ImageView ImageView android:id=@+id/ImageLowerRight android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/lowerright/ImageView /TableRow /TableLayout That gets the left and right halves aligned vertically, but they are separated in the middle some what. Anyone know how to set them to where they butt up against one another in the middle to form one big photo? 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] New Android Market Client Update
From the blog post at: http://android-developers.blogspot.com/2010/12/android-market-client-update.html Since most users who request a refund do so within minutes of purchase, we will reduce the refund window on Market to 15 minutes. Funny, this is also my experience but not because they do not like the app, but because it won't download!!! The purchase was successful, but the download will be stuck at 0%. So they panic and cancel it within minutes and then mail us that it won't work! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New Android Market Client Update
On Sat, Dec 11, 2010 at 2:12 PM, webmonkey webmonke...@gmail.com wrote: From the blog post at: http://android-developers.blogspot.com/2010/12/android-market-client-update.html Since most users who request a refund do so within minutes of purchase, we will reduce the refund window on Market to 15 minutes. Funny, this is also my experience but not because they do not like the app, but because it won't download!!! The purchase was successful, but the download will be stuck at 0%. So they panic and cancel it within minutes and then mail us that it won't work! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Combining an image
On Fri, Dec 10, 2010 at 10:04 AM, darrinps darri...@gmail.com wrote: I have an image that I split into four parts and would like to combine it back into one large image on my splash screen but am having a little trouble figuring out just how to do this. I have it like this so far: TableLayout android:id=@+id/TableLayout01 android:stretchColumns=* android:layout_height=wrap_content android:layout_width=fill_parent TableRow android:id=@+id/Row01 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center_vertical| center_horizontal ImageView android:id=@+id/ImageUpperLeft android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/upperleft/ImageView ImageView android:id=@+id/ImageUpperRight android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/upperright/ImageView /TableRow TableRow android:id=@+id/Row02 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center_vertical| center_horizontal ImageView android:id=@+id/ImageLowerLeft android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/lowerleft/ImageView ImageView android:id=@+id/ImageLowerRight android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical| center_horizontal android:src=@drawable/lowerright/ImageView /TableRow /TableLayout That gets the left and right halves aligned vertically, but they are separated in the middle some what. Anyone know how to set them to where they butt up against one another in the middle to form one big photo? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Eclipse: Export signed application log
On Fri, Dec 10, 2010 at 7:19 PM, George Moschovitis george.moschovi...@gmail.com wrote: When trying to export a signed application using the latest SDK and Proguard I get an 'Export failed' message. Is there a way to see some kind of log file with a more detailed error message so that I can fix the problem? thanks, -g. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MediaPlayer is Hanging in reset call
On Fri, Dec 10, 2010 at 9:56 PM, John jo-d...@hotmail.com wrote: VideoPlayerView = new VideoView(this); VideoPlayerView.setOnPreparedListener(VideoPrepared); VideoPlayerView.setOnCompletionListener(VideoFinished); VideoPlayerView.setOnErrorListener(VideoError); String VideoResourcePath = getResources().getResourceName(R.raw.myVideo); VideoResourcePath = VideoResourcePath.replace(':', '/'); VideoPlayerView.setVideoPath(android.resource:// + VideoResourcePath); public boolean onError(MediaPlayer mp, int what, int extra) { FailTimer.cancel(); finish(); return true; } Hi, I am getting a hang in a MediaPlayer when there is an error. I have a separate Activity that I launch to play the MediaPlayer in full screen mode. The relevant code from onCreate is posted above. I have set a Timer to time out in 15 seconds, so that if the video fails to play the activity will exit. However, an error happens, so onError is called, and the debugger shows me that I am hung in the MediaPlayer.release() / MediaPlayer.reset() call. I'm not so interested in discovering why the error happens, as the phone I am testing on seems to have issues with running videos. But I do want to figure out why the MediaPlayer is hanging. Any help? Thanks, John -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions
Mikey, This can be caused by the other ftp code using too much memory, or crashing. Have you looked into this? -- Kostya 11.12.2010 10:06, metal mikey пишет: Yeah, I used Service.startForeground() just in case the service was being killed because it was in the background (and since this is an AppWidget I guess my App isn't in the foreground, rather the Launcher's App is in the foreground). Am trying out ditching Zehon FTP for Java and using the native URLConnection. unfortunately Android's implementation of FtpURLConnection is hard-coded to guessContentTypeFromName(url) so it doesn't want to download a text file that has an extension of, say, .wtf...one of the reasons I wasn't using native URLConnection in the first place. I'm still interested to know/solve why my service gets killed when using Zehon FTP for Java, but in the interest of meeting overall goals of the AppWidget I'm now rejigging regexes to handle the FTP download of an html file. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GPS
On Sat, Dec 11, 2010 at 6:21 AM, ip332 iprile...@gmail.com wrote: It will be turned on when you request location updates (if it is enabled in the Location/GPS settings) On Dec 10, 4:47 pm, Hendrik Greving fourhend...@gmail.com wrote: I know how to read the GPS status etc. but how do I turn the chip on/off? There is nothing in LocationManager/Provider or GpsStatus or Satellite -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Adapter fetches and parses RSS feed to get its data - best practice?
On Sat, Dec 11, 2010 at 1:25 PM, TreKing treking...@gmail.com wrote: Didn't we discuss this already? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What to use instead of a very long ListPreference?
On Sat, Dec 11, 2010 at 1:24 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 9, 2010 at 4:32 PM, CMoi pter...@gmail.com wrote: Is there a similar class with keyboard filtering or should I code it all? ListActivity. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions
On Sat, Dec 11, 2010 at 3:09 PM, Kostya Vasilyev kmans...@gmail.com wrote: Mikey, This can be caused by the other ftp code using too much memory, or crashing. Have you looked into this? -- Kostya 11.12.2010 10:06, metal mikey пишет: Yeah, I used Service.startForeground() just in case the service was being killed because it was in the background (and since this is an AppWidget I guess my App isn't in the foreground, rather the Launcher's App is in the foreground). Am trying out ditching Zehon FTP for Java and using the native URLConnection. unfortunately Android's implementation of FtpURLConnection is hard-coded to guessContentTypeFromName(url) so it doesn't want to download a text file that has an extension of, say, .wtf...one of the reasons I wasn't using native URLConnection in the first place. I'm still interested to know/solve why my service gets killed when using Zehon FTP for Java, but in the interest of meeting overall goals of the AppWidget I'm now rejigging regexes to handle the FTP download of an html file. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New to Android - sample app doesn't do anything
On Sat, Dec 11, 2010 at 1:23 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 9, 2010 at 4:06 PM, rick777 rickh...@gmail.com wrote: The problem I have is that nothing shows up in the emulator. The only thing I see is an icon with a 36 and 2 arrows, a wifi strength monitor icon, a battery icon, the time, and then a volume and lock icon. also, the time, date, and Charging 50% on the left side of the screen. You're looking at the lock screen. You have to unlock the device to get to the home screen. This will vary depending on the Android Version, but newest ones have an arrow on the left you drag to the right to unlock. Shouldn't I see an icon for the NotesList application? Not unless you add it, which you can by opening the app tray (after unlocking, click the square, dotted pad in the bottom middle of the screen), then drag the icon to the home screen. Or should the application display as the top-level activity? When you run the app, after you've unlocked the phone, it should start automatically. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GPS
Hendrik, If you are taking about the built it Power Controls widget - it's part of the system image, more specifically, Settings application, and is signed with the platform key. Note that starting with Android 2.0 (AFAIK), this settings only gives LocationManager permission to use the GPS chip, if/when an application requests it. It does not mean that the GPS chip is on all the time. -- Kostya 11.12.2010 10:46, Hendrik Greving ?: I've triedWRITE_SECURE_SETTINGS.I've found out that only system apps can get this permission.Actually I've found out how to toggle GPS etc., but it is an expoit which I guess will be fixed with Gingerbread. Unfortunately. - Original Message - *From:* TreKing mailto:treking...@gmail.com *To:* android-developers@googlegroups.com mailto:android-developers@googlegroups.com *Sent:* Friday, December 10, 2010 10:09 PM *Subject:* Re: [android-developers] Re: GPS On Fri, Dec 10, 2010 at 7:41 PM, Hendrik Greving fourhend...@gmail.com mailto:fourhend...@gmail.com wrote: I've actually just tried that. But even if I put the permission in the manifest, it still makes a security exception that this permission was missing What did you try? On Fri, Dec 10, 2010 at 11:06 PM, Hendrik Greving fourhend...@gmail.com mailto:fourhend...@gmail.com wrote: The power control plus application can do it. So what's the trick? Being built as part of the firmware probably helps. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] notifyDataSetChanged not updating view
On Sat, Dec 11, 2010 at 10:12 AM, pramod.deore deore.pramo...@gmail.comwrote: As per the Docs notifyDataSetChanged ()-Notifies the attached View that the underlying data has been changed and it should refresh itself. In my application I am calling notifyDataSetChanged but still my view is not updates automatically. To update view I have to press Back button and ahain when I return to activity then this time it show updated view. Here is my some part of code public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { ... myAdapter = new SimpleCursorAdapter(this, R.layout.roomswitchlist, c, columns,names); setListAdapter(myAdapter); } catch (Exception e) { e.printStackTrace(); } } if (menuItemName.equalsIgnoreCase(Remove Switch)) { .. public void onClick(DialogInterface dialog, int id) { // Action for 'Yes' Button System.out.println (User click on Yes button); deleteSwitchID(delRoomName,delSwitchName); myAdapter.notifyDataSetChanged(); } } public void deleteSwitchID(String roomName1,String SwitchName1) { try { sampleDB = this.openOrCreateDatabase(SAMPLE_DBNAME, MODE_PRIVATE, null); int no = sampleDB.delete(SWITCH_TABLE_NAME, RoomName = '+roomName1+' and SwitchName = '+SwitchName1+', null); System.out.println (No of deleted rows are+no); Toast t = new Toast(this); t.makeText(this, Switch deleted, Toast.LENGTH_SHORT) .show(); myAdapter.notifyDataSetChanged(); //this.setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_1,results)); //onCreate(savedInstanceState); //startActivity(getIntent()); //Restarts activity for menu refresh } catch (Exception e) { e.printStackTrace(); } } Why view is not updating instantly? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Regarding using condition in Service
On Wed, Dec 8, 2010 at 1:05 PM, Ravi ravi.chavan...@gmail.com wrote: Hello Everybody, I am new in Android development, I used service in my app to get Httpconnection from internet and read that specific page in service. after reading the page, i am using pattern matching to match particular value from page while doing this, In service the if condition is not working that means it does not enter in the if condition. And also i have to display that data on Activity So please suggest me solution about to display content in activity(Code is mentioned below) Thanks in advance package example.demo; import java.net.URL; import java.net.URLConnection; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.util.Log; import android.widget.Toast; public class Mysevice extends Service { protected static final String TAG = MyService; public static final int MAX_VALUE=100; //public static byte[]readData=new byte[MAX_VALUE]; public static String out=null; public static String data ,readData ; @Override public IBinder onBind(Intent intent) { return null; } @Override public void onCreate() { Toast.makeText( this, My Service Created, Toast.LENGTH_LONG).show(); Log.d( TAG, onCreate); } @Override public void onDestroy() { Toast.makeText( this, My Service Stopped, Toast.LENGTH_LONG).show(); Log.d( TAG, onDestroy); } @Override public void onStart(Intent intent, int startid) { try { int connectTimeout = 10; int readTimeout = 20; URL url = new URL(http://money.rediff.com/;); URLConnection urlConn = (URLConnection) url.openConnection(); urlConn.setDoOutput( true); urlConn.setDoInput( true); urlConn.setDoOutput( true); // 20 Seconds Connect Timeout urlConn.setConnectTimeout(connectTimeout * 1000); // 20 Minutes ReadTimeout urlConn.setReadTimeout(readTimeout * 1000); try{ urlConn.connect(); out = new StreamToString().convertStreamToString(urlConn.getInputStream()); Toast.makeText( this, Reading the page, Toast.LENGTH_LONG).show(); Log.d( TAG, onStart); } catch(java.net.SocketTimeoutException ex) { String msg = Could not able to establish the connection between ur machine and money.rediff.com; System. out.println(msg); } String regex = div class=\floatR\span class=\f20 bold\[^]* + .*? + ([^\]+)/span; Pattern p = Pattern.compile(regex); Matcher m = p.matcher( out); while(m.find()) { readData = m.group(1); // ByteArrayInputStream baos = new ByteArrayInputStream(readData); // data=baos.toString(); Toast.makeText( this, Pattern has matched, Toast.LENGTH_LONG).show(); } Toast.makeText( this, Match not found, Toast.LENGTH_LONG).show(); } catch (Exception ex) { ex.printStackTrace(); throw new RuntimeException(Exception occured in testDownApplicationTurnedGreenByTraffic, ex); } Toast.makeText( this, My Service Started, Toast.LENGTH_LONG).show(); Log.d( TAG, onStart); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dex in ant with external libs in SDK tools R8
On Thu, Dec 9, 2010 at 7:05 AM, Andreas andreas.rossbac...@gmail.comwrote: Hey! There seems to be something wrong with external libs not making it into the .dex files in r8 if you build via ant. I have an external lib sitting in the libs folder which is not included into the .dex file by the dex-helper macro. If I look at the main_rules.xml I see that it looks like it was just forgotten? The reference to the path of the external libs just vanished between r7 and r8 of the SDK. The app will build but then crash during runtime because of the missing libs. Looks like a (at least for me) serious bug in the SDK. I added the path back via path refid=jar.libs.ref / and now everything is working. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GPS
On Sat, Dec 11, 2010 at 3:14 PM, Kostya Vasilyev kmans...@gmail.com wrote: Hendrik, If you are taking about the built it Power Controls widget - it's part of the system image, more specifically, Settings application, and is signed with the platform key. Note that starting with Android 2.0 (AFAIK), this settings only gives LocationManager permission to use the GPS chip, if/when an application requests it. It does not mean that the GPS chip is on all the time. -- Kostya 11.12.2010 10:46, Hendrik Greving пишет: I've triedWRITE_SECURE_SETTINGS. I've found out that only system apps can get this permission.Actually I've found out how to toggle GPS etc., but it is an expoit which I guess will be fixed with Gingerbread. Unfortunately. - Original Message - *From:* TreKing treking...@gmail.com *To:* android-developers@googlegroups.com *Sent:* Friday, December 10, 2010 10:09 PM *Subject:* Re: [android-developers] Re: GPS On Fri, Dec 10, 2010 at 7:41 PM, Hendrik Greving fourhend...@gmail.comwrote: I've actually just tried that. But even if I put the permission in the manifest, it still makes a security exception that this permission was missing What did you try? On Fri, Dec 10, 2010 at 11:06 PM, Hendrik Greving fourhend...@gmail.comwrote: The power control plus application can do it. So what's the trick? Being built as part of the firmware probably helps. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Making an activity private to application
On Sat, Dec 11, 2010 at 12:39 PM, Doug beafd...@gmail.com wrote: If your activity requires an an intent filter, you could try requiring a password passed as an extra in the intent that launches it. That may at least slow down your serious attackers and deter the casual ones. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Poor SQLite implementation? first time data access way to slow
On Thu, Dec 9, 2010 at 2:19 AM, carbi84 leistner.d...@googlemail.comwrote: Hi there, i am new to android programming, however i am quite used working with sqlite databases. - my application opens a sqlite3 database on the sd card and runs a kinda complex query (5 joins, 1 subquery, 2 where clauses) using SQLiteDatabase.rawQuery public Cursor queryDataBase(String sql, String[] selectionArgs){ Cursor c = myDB.rawQuery(sql, selectionArgs); return c; } - the sql statement is given by a hardcoded String - the query returns 585 rows with 24 columns - i had to do a trade-off between storage space and indexing, but on all bigger tables (about ~ 40 000 entries, for now) indexes are used, SQLite shows for the query: Steps: 155 , Sorts: 0, AutoIdx: 1077 - i am not using primary keys, thus i also didn't rename anything to _id - the execution of rawQuery is kinda fast, execution time is about 2 ms - however accessing this data takes way too much time, e.g. by c.moveToFirst(), execution time about 1700 ms ! (same for Cursor.getRowCount(), or apparently all first time access to the actual result set) - doing the same on a PC ( 2 Ghz, 1 GB RAM) with e.g. SQLiteSpy it takes 15 ms to display the result set - doing it on the PC with a C++ Implementation it's also 15 ms up to 30 ms So what am i missing here? Is it actually possible that my Handset with 800 MHz and 2 GB RAM is about 120 times slower?? ( of course i am also aware of the speed difference between a microSD card and a sata2 hdd, but that shouldn't explain this huge difference, right? ) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] HOW TO COPY A PHONE NUMBER FROM PHONE LOG
On Sat, Dec 11, 2010 at 6:45 AM, Dr Jafry hhtp...@hotmail.fi wrote: Hi, I am a oral surgeon and i get lots of emergency calls from my clients. Most of the clients are not becoming costmars, they just want to discus some issue. so i need to copy their phone numbers to my calender to call them later its very important. because mostly its a one time call so i do need to save as a new contact. I usually had Nokia communicator and it was doing the job very fine. i wanted to buy new phone and i bought HTC desire Z. I am very dissopointed that the android does not have copy, past phone number option I am gonna throw it to garbag and buy a Nokia e7. I am sure there are millions of people who could need just that simple option. I hope you developers could do something about 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application not showing in android market
On Sat, Dec 11, 2010 at 12:06 PM, Amit Mangal forum.amit.man...@gmail.comwrote: Hi Everyone, I have uploaded one application in android market but it is not showing there.when i search in google my aplication displays http://droidmill.com/follower-120313.html http://www.androidpit.com/en/android/market/apps/app/com.follower/Follower I want to know what is androidpit and how can i display my application in android market. I have taken android market account in 25 USD. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to destroy an activity immediately?
On Sat, Dec 11, 2010 at 11:42 AM, Kenny Chang eric-...@163.com wrote: I try to call finish() in an activity in order to destroy the activity to free resources. But the Logcat shows it doesn't work immediately to call onDestroy instead of calling onPause and after a few seconds onDestroy is called. What I want is destory and finish the activity just after I call finish(). But the problem is that when I press Back button or call finish(), it doesn't free bitmap resources and destroy the activity immediately. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] home screen widget drag or scroll
On Sat, Dec 11, 2010 at 11:36 AM, String sterling.ud...@googlemail.comwrote: I'm pretty sure that it can't be done, sorry. All interaction with a widget gets pushed through a RemoteViews object, and the only event it supports is click. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: emulator stuck in android logo screen
On Sat, Dec 11, 2010 at 11:28 AM, Brill Pappin br...@pappin.ca wrote: The first time it starts, it can take a very long time to set itself up. Are you sure your waiting long enough? After that it will start up faster unless you reset it. - brill On Dec 10, 6:52 am, Mofajjal Hossain mofaj...@gmail.com wrote: I can't start up emulator , it's getting stucked in ANDROID logo screen . -- I have Eclipse Galilio -- Ubuntu 10.10 -- Open JDK 6 , JRE 6 -- downloaded latest android SDK and ADT Tried from terminal by creating new AVD and also have tried from running from Eclipse but it doesn't starts. I am just in a hang!... help me please... Thanks in advance for any help. Br Arafat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://www.sirsainfo.in/ http://t http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to make a trial version which starts a limited amount of times?
I got a mail from Android market, where they wrote: We will be reducing the purchase refund window to 15 minutes. So I assume that 24 hour refund is no longer available? That makes it more important to have a trial version. On 23 Nov, 09:44, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Yes, I see now that they write Products that cannot be previewed by the buyer (such as applications): You authorize Google to give the buyer a full refund of the Product price if the buyer requests the refund within 48 hours after purchase. I have released a trial like I described on OVI and I haven't got much angry reviews. I could also make a trial with limited functionality. You could for instance only watch 4 of the 10 visual effects. But wouldn't that risk getting angry reviews as well?' Or do you think this alternative would work better on AM? It is difficult and time consuming to buy anything from AM in Sweden. You have to buy with credit cards and you have to write all the information about your credit card in the mobile. Is it the same for USA? If so, I think it makes people less willing to buy anything. I think a trial version is needed because the buying process is so complicated, even if a 24 hour trial is possible when they buy apps. On 22 Nov, 01:13, Michael A. michael.aki...@gmail.com wrote: On Nov 20, 11:34 am, MobileVisuals eyv...@astralvisuals.com wrote: Thanks for explaining, now I understand what you mean when you say that there is not much use to make a time limited trial. What do you mean with Android Market already implements a default time limited trial version of your app? Do you mean that everytime someone buys an app they can return it within 24-48 hours for free? That must be a special rule that Google has, I've never seen that in other appstores. You should probably read this:http://www.android.com/us/developer-distribution-agreement.html I was planning to release a trial version which starts 3 times. The first time, you can view all of the visual effects. The second time, you can view just 3 of the visual effects. The third time, you can view just 1 of the visual effects. But maybe it is no use to release a trial version like that either? My apps display visual effects that you can use for meditation or relaxation, so you can't use them as a wallpaper. I think that you would be likely to get a lot of disgruntled customers by releasing an app like that, but do keep in mind that this is just an opinion based on my own experiences and observations. Others may have differing experiences/opinions, and even if all of us agree (not likely), it is still just an opinion. None of us can predict the future. My company got good distribution to operators, currently about 40 operators are selling our apps. Maybe it is easier to get sales for Android apps on the operators appstores and portals than on Android market? I have seen that big US operators like T-mobile and Verizon are looking for Android apps. It is certainly possible, but none of the alternate markets have - as yet - a market penetration to compete with the Android market. You are likely to make at least an order of magnitude (10x) more sales through the Android market than any other portal as things stand today. That situation may change in future, perhaps even the near future, but for now this is the reality we deal with. Regards, Michael A. On 18 Nov, 14:11, Michael A. michael.aki...@gmail.com wrote: On Nov 17, 9:57 am, MobileVisuals eyv...@astralvisuals.com wrote: I see, so do you know the best way to make a time limited trial? I assume that the License Verification Library (LVL) should not be used for this? I would not make a time-limited trial (that was kind of my point). With the way the Android market works (and the demographics of its users), it is not really well suited to these kind of apps. I would look to limit the functionality/choice in your trial app instead. I can see that you do wallpapers; you could for instance offer a basic variant for free that does not permit any (or very little) tweaking of your wallpaper settings. Or put in ads whenever the settings are changed - whichever solution seems to fit best with your strategy. Our apps has sold best when there is no trial version available, so the consumer only has the option of buying the complete version. This approach has been successful on Playnow, we've had 2 apps which have been number one their sales chart. The Android market is a very different beast, for better and worse. But I assume that this approach is more difficult on Android market, since there are so may free products available? Visibility is an issue on the market. There's a reason that most of the success stories on the market were either early arrivals to Android or
[android-developers] Re: How to destroy an activity immediately?
So what? Why do you need it to go straight to onDestroy? Or rather, I should ask, why do you THINK you need it to go straight to onDestroy()? For I doubt your need is genuine. On Dec 10, 10:12 pm, Kenny Chang eric-...@163.com wrote: I try to call finish() in an activity in order to destroy the activity to free resources. But the Logcat shows it doesn't work immediately to call onDestroy instead of calling onPause and after a few seconds onDestroy is called. What I want is destory and finish the activity just after I call finish(). But the problem is that when I press Back button or call finish(), it doesn't free bitmap resources and destroy the activity immediately. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why my application is not visible in android market ?
Hi Everyone, I have uploaded one application in android market but it is not showing there.when i search in google my aplication displays http://droidmill.com/follower-120313.html http://www.androidpit.com/en/android/market/apps/app/com.follower/Follower I want to know what is androidpit and how can i display my application in android market. I have taken android market account in 25 USD. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: emulator stuck in android logo screen
Two years ago, when I downloaded the Android SDK, I had to get rid of all the symbolic links to OpenJDK and replace them with Sun's JDK. Then everything worked. I'm not sure that is still necessary, but both Eclipse and the Android SDK then seemed to run better with Sun's JDK rather than OpenJDK. On Dec 10, 3:52 am, Mofajjal Hossain mofaj...@gmail.com wrote: I can't start up emulator , it's getting stucked in ANDROID logo screen . -- I have Eclipse Galilio -- Ubuntu 10.10 -- Open JDK 6 , JRE 6 -- downloaded latest android SDK and ADT Tried from terminal by creating new AVD and also have tried from running from Eclipse but it doesn't starts. I am just in a hang!... help me please... Thanks in advance for any help. Br Arafat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: New Android Market Client Update
Since most users who request a refund do so within minutes of purchase, we will reduce the refund window on Market to 15 minutes. This is really bad news for me. I don't have a trial version for my (relatively) expensive app because I was relying on the 24 hour refund period so I'm going to drop wy down the ranks. Clearly, the thing to do is make my app free and sell an unlock app. Of course, with that fantastically long notice period of 'over the next several days', implementing that will be no problem at all --- sarcasm. They're really piling it on lately, I was even tempted to use caps. For all clarity, it's not the change I object to but the vague, short notice period. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Beginner questions
Eclipse is not absolutely essential, but it is such a great convenience, you should take advantage of it unless you absolutely have to use another environment. Also, most Android development is taking place in the Eclipse environment, so you have lots of resources you can take advantage of if you stick with this majority solution. As for 64bit, there is a rumor running about that 64bit programs tend to be somewhat less reliable than 32bit. But I haven't noticed any problems with 64bit Linux versions (which is what I use). On Dec 10, 12:51 am, JY Kim jkim...@gmail.com wrote: Hello. I am beginner in android and my focus is on porting, but I think I also need to learn to write application. I have 2 questions 1. Is eclipse essential in android application writing? Read through hello world program on android developer site, I thought I shoud use eclipse. Application was project based and I think I should use eclipse as if I use Visual C++ when I write MFC program. 2. Should I install JDK 64 bit? My windows is 64 bit but I installed 32bit JDK. When I tried compling some program in command line, compiler couldn't find Java in 'Program Files' directory because it was on 'Program Files(x86)'. when I linked directory, it still could't find it. Should I use JDK 64bit? I saw some program for 32 bit does not run on 64bit Windows. If I should use 64bit JDK, I just need to reinstall JDK only? I saw SDK is installed only after JDK is installed. Please answer. 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: New Android Market Client Update
No offense, but the fact that you don't have a trial app is a really a bit tricking people into buying the app. A large percentage of people are too timid, don't know, procrastinate, etc, to get a refund. I think if you have an expensive app, it's almost mandatory to have some sort of free version. Just my two cents. On Dec 11, 6:52 pm, Pent tas...@dinglisch.net wrote: Since most users who request a refund do so within minutes of purchase, we will reduce the refund window on Market to 15 minutes. This is really bad news for me. I don't have a trial version for my (relatively) expensive app because I was relying on the 24 hour refund period so I'm going to drop wy down the ranks. Clearly, the thing to do is make my app free and sell an unlock app. Of course, with that fantastically long notice period of 'over the next several days', implementing that will be no problem at all --- sarcasm. They're really piling it on lately, I was even tempted to use caps. For all clarity, it's not the change I object to but the vague, short notice period. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] compatible-screens and uses-gl-texture ?
The e-mail I just received from Google containted the following line: Market will support filtering based on screen sizes and densities, as well as on GL texture compression formats. Filtering is based on compatible-screens and uses-gl-texture elements in an app’s manifest What are those minfest elements -- I am looking at the 2.3 docs and I don't see them mentioned. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] High resolution icon require to make my app not Mature - What the heck?
So I get a message from google saying that I need to update the content rating on my apps because otherwise they will default to mature. So fine, pull up the developer console, check All, hit save. High resolution icon required. Really now? Is it? Haven't touched my icons in like a year - and I certainly don't have the time to fart around creating a 512x512 (!) version of them just to be able to make sure my app isn't rated XXX. Who made the decision to make the high res icon required, and how do I work around it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: High resolution icon require to make my app not Mature - What the heck?
Create a 512x512 white rectangle or upsize your regular icon. On Dec 11, 7:50 pm, joshv jvanderb...@gmail.com wrote: So I get a message from google saying that I need to update the content rating on my apps because otherwise they will default to mature. So fine, pull up the developer console, check All, hit save. High resolution icon required. Really now? Is it? Haven't touched my icons in like a year - and I certainly don't have the time to fart around creating a 512x512 (!) version of them just to be able to make sure my app isn't rated XXX. Who made the decision to make the high res icon required, and how do I work around it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Auto android:debuggable. Anybody got it working?
The doc states: 'Developers no longer need to add the android:debuggable attribute to the application tag in the manifest — the build tools add the attribute automatically. In Eclipse/ADT, all incremental builds are assumed to be debug builds, so the tools insert android:debuggable=true ' So I removed by android:debuggable declaration from the application tag, but when I try to debug my app on my Nexus One, I get a ]2010-12-11 19:50:42 - xx] Device 'HT9CPP805893' requires that applications explicitely declare themselves as debuggable in their manifest. [2010-12-11 19:50:42 - xx] Application 'com.xx.xx' does not have the attribute 'debuggable' set to TRUE in its manifest and cannot be debugged. So this is not working for me. Did anybody get this to work? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: compatible-screens and uses-gl-texture ?
http://developer.android.com/guide/practices/screens_support.html On Dec 11, 10:27 pm, Zsolt Vasvari zvasv...@gmail.com wrote: The e-mail I just received from Google containted the following line: Market will support filtering based on screen sizes and densities, as well as on GL texture compression formats. Filtering is based on compatible-screens and uses-gl-texture elements in an app’s manifest What are those minfest elements -- I am looking at the 2.3 docs and I don't see them mentioned. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: New Android Market Client Update
No offense, but the fact that you don't have a trial app is a really a bit tricking people into buying the app. A large percentage of people are too timid, don't know, procrastinate, etc, to get a refund. I think if you have an expensive app, it's almost mandatory to have some sort of free version. Just my two cents. No offense taken, the thought hadn't even occured to me. Nevertheless, it's another change from the Market that requires major action with hardly any notice. and which I don't believe they'd get away with without a de facto monopoly. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: compatible-screens and uses-gl-texture ?
That's support-screens, not comaptible-screens On Dec 11, 8:09 pm, qbit odb...@gmail.com wrote: http://developer.android.com/guide/practices/screens_support.html On Dec 11, 10:27 pm, Zsolt Vasvari zvasv...@gmail.com wrote: The e-mail I just received from Google containted the following line: Market will support filtering based on screen sizes and densities, as well as on GL texture compression formats. Filtering is based on compatible-screens and uses-gl-texture elements in an app’s manifest What are those minfest elements -- I am looking at the 2.3 docs and I don't see them mentioned.- 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: How to destroy an activity immediately?
The first activity is the welcome activity, which lets users choose a choice to start a new activity. If the second activity go straight to onDestroy, the heap resources that the second activity holds can be so much that causes OUT_OF_MEMORY ERROR when user choose a choice to start a new activity in the first activity.So... On Dec 11, 6:49 pm, Indicator Veritatis mej1...@yahoo.com wrote: So what? Why do you need it to go straight to onDestroy? Or rather, I should ask, why do you THINK you need it to go straight to onDestroy()? For I doubt your need is genuine. On Dec 10, 10:12 pm, Kenny Chang eric-...@163.com wrote: I try to call finish() in an activity in order to destroy the activity to free resources. But the Logcat shows it doesn't work immediately to call onDestroy instead of calling onPause and after a few seconds onDestroy is called. What I want is destory and finish the activity just after I call finish(). But the problem is that when I press Back button or call finish(), it doesn't free bitmap resources and destroy the activity immediately. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: New Android Market Client Update
By the way, the 15 mins is the standard Google Checkout refund policy. If you buy anything using Google Checkout, you have 15 mins to change your mind. In effect, Google is not sending your order onto the vendor for 15 minutes. So Google just took away the special treatment for Android App purchases. My guess is what we will see in the Developer Console is no refunds at all. We won't even know that the refund happened, which is OK by me. On Dec 11, 8:09 pm, Pent tas...@dinglisch.net wrote: No offense, but the fact that you don't have a trial app is a really a bit tricking people into buying the app. A large percentage of people are too timid, don't know, procrastinate, etc, to get a refund. I think if you have an expensive app, it's almost mandatory to have some sort of free version. Just my two cents. No offense taken, the thought hadn't even occured to me. Nevertheless, it's another change from the Market that requires major action with hardly any notice. and which I don't believe they'd get away with without a de facto monopoly. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to destroy an activity immediately?
If we are talking about a Bitmap, you can call recycle() yourself. But I have a feeling that this is caused by an image being too large - as one image shouldn't make a difference (I assume you have a background). Is it appropriately scaled to fit the screen, or are you loading, say, a 2048 by 1024 bitmap and scaling it during drawing? -- Kostya 11.12.2010 15:13, Kenny Chang пишет: The first activity is the welcome activity, which lets users choose a choice to start a new activity. If the second activity go straight to onDestroy, the heap resources that the second activity holds can be so much that causes OUT_OF_MEMORY ERROR when user choose a choice to start a new activity in the first activity.So... On Dec 11, 6:49 pm, Indicator Veritatismej1...@yahoo.com wrote: So what? Why do you need it to go straight to onDestroy? Or rather, I should ask, why do you THINK you need it to go straight to onDestroy()? For I doubt your need is genuine. On Dec 10, 10:12 pm, Kenny Changeric-...@163.com wrote: I try to call finish() in an activity in order to destroy the activity to free resources. But the Logcat shows it doesn't work immediately to call onDestroy instead of calling onPause and after a few seconds onDestroy is called. What I want is destory and finish the activity just after I call finish(). But the problem is that when I press Back button or call finish(), it doesn't free bitmap resources and destroy the activity immediately. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to destroy an activity immediately?
I think the system will try everything to satisfy your memory request and that includes destroying any activities (your first one), still hanging around. So I don't think you need to worry about this stuff at all. On Dec 11, 8:13 pm, Kenny Chang eric-...@163.com wrote: The first activity is the welcome activity, which lets users choose a choice to start a new activity. If the second activity go straight to onDestroy, the heap resources that the second activity holds can be so much that causes OUT_OF_MEMORY ERROR when user choose a choice to start a new activity in the first activity.So... On Dec 11, 6:49 pm, Indicator Veritatis mej1...@yahoo.com wrote: So what? Why do you need it to go straight to onDestroy? Or rather, I should ask, why do you THINK you need it to go straight to onDestroy()? For I doubt your need is genuine. On Dec 10, 10:12 pm, Kenny Chang eric-...@163.com wrote: I try to call finish() in an activity in order to destroy the activity to free resources. But the Logcat shows it doesn't work immediately to call onDestroy instead of calling onPause and after a few seconds onDestroy is called. What I want is destory and finish the activity just after I call finish(). But the problem is that when I press Back button or call finish(), it doesn't free bitmap resources and destroy the activity immediately.- 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: New Android Market Client Update
My issue is that all the changes are cosmetic. After 2 years they still haven't improved the actual buying experience for users. Orders are declined, downloads won't start, and users have no idea what to do. On Dec 11, 1:19 pm, Zsolt Vasvari zvasv...@gmail.com wrote: By the way, the 15 mins is the standard Google Checkout refund policy. If you buy anything using Google Checkout, you have 15 mins to change your mind. In effect, Google is not sending your order onto the vendor for 15 minutes. So Google just took away the special treatment for Android App purchases. My guess is what we will see in the Developer Console is no refunds at all. We won't even know that the refund happened, which is OK by me. On Dec 11, 8:09 pm, Pent tas...@dinglisch.net wrote: No offense, but the fact that you don't have a trial app is a really a bit tricking people into buying the app. A large percentage of people are too timid, don't know, procrastinate, etc, to get a refund. I think if you have an expensive app, it's almost mandatory to have some sort of free version. Just my two cents. No offense taken, the thought hadn't even occured to me. Nevertheless, it's another change from the Market that requires major action with hardly any notice. and which I don't believe they'd get away with without a de facto monopoly. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to use notifyDataSetChanged
On Sat, Dec 11, 2010 at 12:11 AM, pramod.deore deore.pramo...@gmail.com wrote: Thank you Sir, after calling requery() view is updated succesfully. But still want to know why notifyDataSetChanged() not work. Because you did not change any data. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: compatible-screens and uses-gl-texture ?
On Sat, Dec 11, 2010 at 7:12 AM, Zsolt Vasvari zvasv...@gmail.com wrote: That's support-screens, not comaptible-screens I had the same question. My hope is that it is a typo in the Android Market mail. compatible-screens means support-screens and uses-gl-texture is perhaps some uses-feature android:glEsVersion=.../ value. Or, the docs have a hole in them. It wouldn't be the first time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: New Android Market Client Update
Yeah, I agree. Do we know if the 15 minutes starts from (a) the moment the buyer has purchased (and not yet downloaded) or (b) the moment they *successfully* download the app for the first time..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] High resolution icon require to make my app not Mature - What the heck?
On Sat, Dec 11, 2010 at 6:50 AM, joshv jvanderb...@gmail.com wrote: So fine, pull up the developer console, check All, hit save. High resolution icon required. Really now? Is it? Quoting the email you hopefully received -- I got mine a couple of hours ago: Over the next several days, we’ll be updating Android Market on devices running Android 1.6 or higher. We’re writing to alert you to several changes being introduced with the update that may affect your applications: * The details page for every app will now utilize and display the app’s “Promotional Graphic” assets at the top. If you haven’t done so already, we recommend uploading “Promotional Graphic” assets for your apps as soon as possible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GPS
On Sat, Dec 11, 2010 at 3:01 AM, TreKing treking...@gmail.com wrote: On Sat, Dec 11, 2010 at 1:46 AM, Hendrik Greving fourhend...@gmail.com wrote: Actually I've found out how to toggle GPS etc., but it is an expoit which I guess will be fixed with Gingerbread. Unfortunately. I wouldn't call fixing exploits unfortunate. Agreed. Enabling/disabling GPS got locked down for privacy reasons back in Android 1.5. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Master/King/Uninterruptible App
On Fri, Dec 10, 2010 at 2:10 PM, Catbert catbertde...@gmail.com wrote: I'm trying to write a top priority app for my personal project (not to be published to the Market) and I don't want the phone or anything other app to interrupt it while it's running (most importantly, I don't want the process manager in Android to kill it for any reason). That's not possible at the SDK level. I'm totally aware this is not a good 'Android citizen' practice, but I'm more of using the phone as an embedded system platform. Then you should modify the firmware, at which point you can probably bake in some don't taze me, bro support for your package. If necessary, I can go into great lengths to rebuild the kernel and modify the source code, and I'd appreciate any help in finding the right section to modify how Android handle its Activity/apps/tasks. Questions regarding the source code are best asked on a list regarding the source code: http://source.android.com/community/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Beginner questions
On Fri, Dec 10, 2010 at 3:51 AM, JY Kim jkim...@gmail.com wrote: 1. Is eclipse essential in android application writing? No. It's a fine IDE, if you like that sort of thing, but it is not essential. 2. Should I install JDK 64 bit? My windows is 64 bit but I installed 32bit JDK. When I tried compling some program in command line, compiler couldn't find Java in 'Program Files' directory because it was on 'Program Files(x86)'. when I linked directory, it still could't find it. Should I use JDK 64bit? I saw some program for 32 bit does not run on 64bit Windows. If I should use 64bit JDK, I just need to reinstall JDK only? I saw SDK is installed only after JDK is installed. Make sure your Java tools are in your PATH. The directory would be the bin\ directory underneath wherever your Java SDK was installed. Here is a StackOverflow discussion where I was helping someone with similar issues: http://stackoverflow.com/questions/4393525/android-command-line-error/4393800#4393800 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: New Android Market Client Update
If it's anything like buying anything else using Google Checkout, the user will get their e-mail and at that moment the 15 mins starts. I don't think it will have anything to do with the actual download success. I think Google would have done away with refiunds completely, had the 15 min grace period not been such a core feature of the Google Checkout product. After all, the 15 mins is a ridicolous time for an app purchase as a large number of apps (like mine) cannot be evaluated in 15 mins. The 15 min rule is good differentiator from PayPal and worked well for regular merchandise in case you clicked purchase by error or you found the same item being sold by another merchant for less. It doesn't work well for apps, in my very insignificant opinion. On Dec 11, 8:40 pm, H m...@howardb.com wrote: Yeah, I agree. Do we know if the 15 minutes starts from (a) the moment the buyer has purchased (and not yet downloaded) or (b) the moment they *successfully* download the app for the first time..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Who has the Google Ion source?
On Fri, Dec 10, 2010 at 11:33 PM, BobG bobgard...@aol.com wrote: HTC doesnt seem to claim the Google Ion. I hear its similar to a sapphire or a dream. The Google Ion is an HTC Magic. Who releases new OS versions? Google? HTC? T-mobile? HTC, if anyone. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need to play audio to the caller
On Thu, Dec 9, 2010 at 8:56 PM, GauravN gauravnand...@gmail.com wrote: For my app I need to play a pre recorded message to the caller. That is not practical on Android. Your application does not have access to the in-call audio. If the device is in speakerphone mode, you may be able to play your message through the speaker and have it picked up by the microphone, but this is low quality and unreliable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: High resolution icon require to make my app not Mature - What the heck?
It is an unfortunate decision that they are now using the promo image for the details page. The icon is what identifies your app. From the point where the search starts for an app to the point where it is up on the user's home screen, it should be the same icon. The promo image should just be for promotion. On Dec 11, 1:43 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Dec 11, 2010 at 6:50 AM, joshv jvanderb...@gmail.com wrote: So fine, pull up the developer console, check All, hit save. High resolution icon required. Really now? Is it? Quoting the email you hopefully received -- I got mine a couple of hours ago: Over the next several days, we’ll be updating Android Market on devices running Android 1.6 or higher. We’re writing to alert you to several changes being introduced with the update that may affect your applications: * The details page for every app will now utilize and display the app’s “Promotional Graphic” assets at the top. If you haven’t done so already, we recommend uploading “Promotional Graphic” assets for your apps as soon as possible. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: High resolution icon require to make my app not Mature - What the heck?
Just look at the screenshot on the blog post, it now says Google Sky Map two times. Totally unnecessary. Why not just put the hi-res icon there. On Dec 11, 2:17 pm, webmonkey webmonke...@gmail.com wrote: It is an unfortunate decision that they are now using the promo image for the details page. The icon is what identifies your app. From the point where the search starts for an app to the point where it is up on the user's home screen, it should be the same icon. The promo image should just be for promotion. On Dec 11, 1:43 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Dec 11, 2010 at 6:50 AM, joshv jvanderb...@gmail.com wrote: So fine, pull up the developer console, check All, hit save. High resolution icon required. Really now? Is it? Quoting the email you hopefully received -- I got mine a couple of hours ago: Over the next several days, we’ll be updating Android Market on devices running Android 1.6 or higher. We’re writing to alert you to several changes being introduced with the update that may affect your applications: * The details page for every app will now utilize and display the app’s “Promotional Graphic” assets at the top. If you haven’t done so already, we recommend uploading “Promotional Graphic” assets for your apps as soon as possible. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: High resolution icon require to make my app not Mature - What the heck?
And speaking of those screenshots: the description is now clipped (faded at the bottom). It's already pretty small the way it is (although the recent change for being able to enter recent changes helps). -- Kostya 11.12.2010 16:20, webmonkey пишет: Just look at the screenshot on the blog post, it now says Google Sky Map two times. Totally unnecessary. Why not just put the hi-res icon there. On Dec 11, 2:17 pm, webmonkeywebmonke...@gmail.com wrote: It is an unfortunate decision that they are now using the promo image for the details page. The icon is what identifies your app. From the point where the search starts for an app to the point where it is up on the user's home screen, it should be the same icon. The promo image should just be for promotion. On Dec 11, 1:43 pm, Mark Murphymmur...@commonsware.com wrote: On Sat, Dec 11, 2010 at 6:50 AM, joshvjvanderb...@gmail.com wrote: So fine, pull up the developer console, check All, hit save. High resolution icon required. Really now? Is it? Quoting the email you hopefully received -- I got mine a couple of hours ago: Over the next several days, we’ll be updating Android Market on devices running Android 1.6 or higher. We’re writing to alert you to several changes being introduced with the update that may affect your applications: * The details page for every app will now utilize and display the app’s “Promotional Graphic” assets at the top. If you haven’t done so already, we recommend uploading “Promotional Graphic” assets for your apps as soon as possible. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problems changing the drawable on a Button
I ended up getting setDrawableWithIntrinsicBounds(int,int,int,int) for some reason the version that took drawables instead of ints did not work On Dec 10, 2:34 am, Carl Lee ljbha...@gmail.com wrote: Maybe you should just simply use button.setBackgroundDrawable(R.drawable.something) In addition, you should also write a selector xml like this: ?xml version=1.0 encoding=UTF-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable/bt_back_selected / !-- pressed -- item android:state_focused=true android:drawable=@drawable/bt_back_selected / !-- focused -- item android:drawable=@drawable/bt_back_default / !-- default -- /selector On Dec 10, 1:24 pm, neuromit stuart.lay...@gmail.com wrote: I'm working on a basic media player and am having problems changing the drawable on the play pause button. Here is the code I'm using: Drawable draw = getResources().getDrawable(R.drawable.play); playPauseBTN.setCompoundDrawablesWithIntrinsicBounds(draw, null, null, null); The code executes fine without any errors or exceptions. However, the icon completely disappears from the button and I'm left with a narrow empty button. Any tips? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] layout editor in 2.3 SDK sucks! Sorry but it does.
Ok, the new layout editor is fancier and all but no more properties window? I have to right click to set properties now? And many times the right click menu does not function correctly either, like it will be missing sub menus, etc. I want my properties list back! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fun - Android Market failure on update
Hey guys, The market team seems to want to push some more updates. Since they probably did not test those better than the previous ones, I thought it would be fun to bet on what's going to break this time : 1. Download/Active install count 2. FC reports 3. Checkout 4. LVL 5. New rating system hides all apps for all users 6. Posting/Updating of apps in the console Ok, I'm first, I'm betting 2 internets on n°5 and to be safe 1.5 internets on n°1 which is always a winner :D Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with service unbind
Hello there, I am working on an activity, that is connected to a local service. The service gets started fine in the activites onResume and can be accessed. What I want to do is to unbind the service in the activity's onPause method. If I do that, I get an Service not Registered exception. And if I don't do the unbind, I get a Leaked Service connection exception. I believe there is only one call to unbind the service. So, how can I fix that? Or how can I debug that? I tried to start the service with Context.BIND_DEBUG_UNBIND, but I don't really know, how this should provide debugging information? Cheers, Rutton. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with service unbind
On Sat, Dec 11, 2010 at 11:38 AM, Rutton rut...@web.de wrote: I am working on an activity, that is connected to a local service. The service gets started fine in the activites onResume and can be accessed. What I want to do is to unbind the service in the activity's onPause method. If I do that, I get an Service not Registered exception. And if I don't do the unbind, I get a Leaked Service connection exception. Make sure you are passing the same ServiceConnection to unbindService() that you used in bindService(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions
You might also be running into ANR limits, which can vary by device/build. Just because your code is running in a service doesn't make it immune from ANR, and I've noticed that recent OS versions summarily kill ANR processes in appwidgets, rather than showing the user a dialog. If this is happening, you should be able to see it in LogCat, and you might try moving your code into a background thread, as with an AsyncTask. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with service unbind
Well, I have just the private ServiceConnection conn = new ServiceConnection() { } as a member. That should be only one service connection in my understanding. Some logging also delivered 12-11 18:06:10.580: DEBUG/test(32585): startMoveListener: serviceconnection=de.somebody.test.move.movebacken...@461ccf48 as service connection during service start, 12-11 18:06:21.463: DEBUG/eventnotifier(32585): unbindNapService: conn=de.somebody.test.move.movebacken...@461ccf48 during unbind and 12-11 18:06:21.635: ERROR/AndroidRuntime(32585): java.lang.RuntimeException: Unable to pause activity {de.somebody.test/ de.somebody.test.move.MoveActivity}: java.lang.IllegalArgumentException: Service not registered: de.somebody.test.move.movebacken...@461ccf48 as RuntimeException. Well. This cant be the problem. Any more suggestions? Cheers, Rutton. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application does not specify an API level requirement?
When I run my app in debug mode, I see the message Application does not specify an API level requirement appear in the Console...but I have this in my manifest: uses-sdk android:minSdkVersion=3 / uses-sdk android:targetSdkVersion=4 / What am I missing here? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application does not specify an API level requirement?
Keith, These are supposed to be in one tag, like this: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=8/ Also make sure it's at the top level in the manifest (e.g. not inside application or what not). -- Kostya 11.12.2010 20:26, Keith Wiley пишет: When I run my app in debug mode, I see the message Application does not specify an API level requirement appear in the Console...but I have this in my manifest: uses-sdk android:minSdkVersion=3 / uses-sdk android:targetSdkVersion=4 / What am I missing here? Thanks. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application does not specify an API level requirement?
That fix it. Thanks. It was already at the top-level, but good to emphasize the point. Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] disable the search key android alertdialog
Hi, Anyone know of a way to prevent the search key from canceling an alert dialog? I have alert.setCancelable(false); and it works fine for the back button, but when i hit the search key it goes to search.. and when I close the search my NON-Cancelable dialog is gone. any way to fix this. 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: disable the search key android alertdialog
To add to my original post.. I do have the following (which DOES prevent the search key from being pressed) in the activity it just doesn't work when the dialog is open. if (keyCode == KeyEvent.KEYCODE_SEARCH) { System.out.println(search pressed); return true; } On Dec 11, 12:49 pm, acr acr...@gmail.com wrote: Hi, Anyone know of a way to prevent the search key from canceling an alert dialog? I have alert.setCancelable(false); and it works fine for the back button, but when i hit the search key it goes to search.. and when I close the search my NON-Cancelable dialog is gone. any way to fix this. 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
Re: [android-developers] Re: disable the search key android alertdialog
Put that in your Dialog subclass, then. On Sat, Dec 11, 2010 at 12:57 PM, acr acr...@gmail.com wrote: To add to my original post.. I do have the following (which DOES prevent the search key from being pressed) in the activity it just doesn't work when the dialog is open. if (keyCode == KeyEvent.KEYCODE_SEARCH) { System.out.println(search pressed); return true; } On Dec 11, 12:49 pm, acr acr...@gmail.com wrote: Hi, Anyone know of a way to prevent the search key from canceling an alert dialog? I have alert.setCancelable(false); and it works fine for the back button, but when i hit the search key it goes to search.. and when I close the search my NON-Cancelable dialog is gone. any way to fix this. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Questions about Google Navigation availability
Is Google Nav available as a class - just like Google maps - for us to put on our own value-add overlay? We just did this with Google Maps and prefer moving to Google Navigation if this at all possible -- Sylvain Louchez sylvain.louc...@g4apps.com 905-465-5647 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: layout editor in 2.3 SDK sucks! Sorry but it does.
Maybe you accidentally closed the view? Did you try Window Show View Properties? Or are you talking about a different set of properties altogether? - Zarah. On Dec 11, 11:11 pm, niko20 nikolatesl...@yahoo.com wrote: Ok, the new layout editor is fancier and all but no more properties window? I have to right click to set properties now? And many times the right click menu does not function correctly either, like it will be missing sub menus, etc. I want my properties list back! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Questions about Google Navigation availability
On Sat, Dec 11, 2010 at 1:34 PM, Sylvain Louchez sylvain.louc...@g4apps.com wrote: Is Google Nav available as a class - just like Google maps - for us to put on our own value-add overlay? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] setting foreground image for linear layout include elements
Hi, I am new developer for android platform, i have an task to complete but i don't have any idea how to do this? My layout has following pattern: Linearlayout Linearlayout FrameLayout LinearLayout include 1 first line information include 2 second line information include 3 third line information /LinearLayout /FrameLayout /LinearLayout /LinearLayout I need to set foreground for the included elements in above layout but i am not able to find setForeground() method for LinearLayout include elements.By browsing i am able to find out that we have setForeground() method applicable for only FrameLayout but i need to set foreground for LinearLayout include elements. I am stuck here , i don't have any idea how to do this. Can please some body suggest me the way how we can make this possible ? (Note : don't change layout structure ) Thanks in advance Basha. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Resize Partition Through Partition Magic
How To Resize Existing Partition Using Partition Magic Follow This Link To Learn More http://softsami.blogspot.com/2010/12/how-to-resize-partition-through.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
Re: [android-developers] Re: Problem with service unbind
Then you have already unbound it. Try putting a breakpoint in each of the places you bindService() and unbindService(), and see what is going on as you run your app. You can look at the LocalServiceBinding API demo for an example of using bindService()/unbindService(); though this doesn't do it as part of the lifecycle callbacks, it does allow you to control in the UI binding and unbinding to see the result (and verify the basic mechanism is indeed working). http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceActivities.html On Sat, Dec 11, 2010 at 9:13 AM, Rutton rut...@web.de wrote: Well, I have just the private ServiceConnection conn = new ServiceConnection() { } as a member. That should be only one service connection in my understanding. Some logging also delivered 12-11 18:06:10.580: DEBUG/test(32585): startMoveListener: serviceconnection=de.somebody.test.move.movebacken...@461ccf48 as service connection during service start, 12-11 18:06:21.463: DEBUG/eventnotifier(32585): unbindNapService: conn=de.somebody.test.move.movebacken...@461ccf48 during unbind and 12-11 18:06:21.635: ERROR/AndroidRuntime(32585): java.lang.RuntimeException: Unable to pause activity {de.somebody.test/ de.somebody.test.move.MoveActivity}: java.lang.IllegalArgumentException: Service not registered: de.somebody.test.move.movebacken...@461ccf48 as RuntimeException. Well. This cant be the problem. Any more suggestions? Cheers, Rutton. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions
On Sat, Dec 11, 2010 at 9:06 AM, String sterling.ud...@googlemail.comwrote: You might also be running into ANR limits, which can vary by device/build. Just because your code is running in a service doesn't make it immune from ANR, and I've noticed that recent OS versions summarily kill ANR processes in appwidgets, rather than showing the user a dialog. ANRs for background processes have never been shown on user builds (no reason to annoy the user about them); they have always been shown on development builds (such as running in the emulator). Also to the original poster -- Service.setForeground() will basically guarantee that your process doesn't get killed for normal memory management. It will only be killed if it has crashed (either in Java, where you will see the crash in the log, or in native code, which is harder to debug), has extremely used a lot of memory to the point where nothing else can run, or has had an ANR. If this is happening, you should be able to see it in LogCat, and you might try moving your code into a background thread, as with an AsyncTask. Yes, you absolutely should be looking at logcat. In fact if you aren't posting your logcat output from the time it gets killed, that is the first thing we all should ask about. :) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: compatible-screens and uses-gl-texture ?
These are some upcoming new features. One can assume they will be documented when they become available. :} On Sat, Dec 11, 2010 at 4:39 AM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Dec 11, 2010 at 7:12 AM, Zsolt Vasvari zvasv...@gmail.com wrote: That's support-screens, not comaptible-screens I had the same question. My hope is that it is a typo in the Android Market mail. compatible-screens means support-screens and uses-gl-texture is perhaps some uses-feature android:glEsVersion=.../ value. Or, the docs have a hole in them. It wouldn't be the first time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Making an activity private to application
Just use android:exported=false to ensure it is not public. On Fri, Dec 10, 2010 at 11:09 PM, Doug beafd...@gmail.com wrote: If your activity requires an an intent filter, you could try requiring a password passed as an extra in the intent that launches it. That may at least slow down your serious attackers and deter the casual ones. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: New Android Market Client Update
Every time I see a blog or email about Market changes, I get all excited about what they might be adding or fixing. And every time I'm left confused and disappointed. On Sat, Dec 11, 2010 at 6:09 AM, Pent tas...@dinglisch.net wrote: Nevertheless, it's another change from the Market that requires major action with hardly any notice. Clearly the can't give more heads up, otherwise bad things would happen ... like developers would be prepared ... and it would be sign that the Market team gives a damn about developers. We can't have that now! My issue is that all the changes are cosmetic. After 2 years they still haven't improved the actual buying experience for users. Orders are declined, downloads won't start, and users have no idea what to do. Fixing those problems is going to take some serious technical skill and talent. Remember who we're dealing with here. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] In-App payment options
Hi, Imagine an app distributed outside the Google Market, so no restrictions for that. What possibilities do I have to integrate some method of payments inside it? (Paypal is not an option) I guess what I should be looking for is some kinf of API from a credit card merchant? Could someone point me on several directions I could begin look at? X. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Anti-aliasing filter on AudioRecord?
I have been thinking if when i use the funcion AudioRecord at 8KHz by sample I have aliasing? To avoid the effect of aliasing normally i should put a low pass filter to eliminate frecuencies above 4KHz So i have this filter for default? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with service unbind
I will watch out. But can you tell me, what the BIND_DEBUG_UNBIND flag actually does? I hoped that it produces some more logcat output on when such actions occur. But I haven't seen that in the logs. Cheers, Rutton. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: High resolution icon require to make my app not Mature - What the heck?
On Sat, Dec 11, 2010 at 7:17 AM, webmonkey webmonke...@gmail.com wrote: It is an unfortunate decision that they are now using the promo image for the details page. The icon is what identifies your app. From the point where the search starts for an app to the point where it is up on the user's home screen, it should be the same icon. The promo image should just be for promotion. Agreed. Every Market update seems to be driven by some seriously questionable logic. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] setting foreground image for linear layout include elements
On Sat, Dec 11, 2010 at 12:41 PM, jani basha shaik jani@gmail.comwrote: By browsing i am able to find out that we have setForeground() method applicable for only FrameLayout but i need to set foreground for LinearLayout include elements. That doesn't make sense for LinearLayout, it just lines things up one after another. There is no concept of z-odering or having one view as foreground versus another. Use the FrameLayout or change your requirements if you're using LinearLayout. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: New Android Market Client Update
Every time I see a blog or email about Market changes, I get all excited about what they might be adding or fixing. And every time I'm left confused and disappointed. Heh, I was just thinking that earlier. Used to be it was 'great, wonder what's coming' which has slowly morphed into 'oh no, what are they changing now' :-) Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Make an app NOT be full screen
I want my app to not obliterate all other apps on the screen and perhaps to dim them or blur them while keeping just a small panel open at the bottom. I've tried this to no avail... setContentView(R.layout.main); getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); getWindow().addFlags( WindowManager.LayoutParams.FLAG_DIM_BEHIND | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); Is there a way to do this? tone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Make an app NOT be full screen
On Sat, Dec 11, 2010 at 2:04 PM, DulcetTone dulcett...@gmail.com wrote: Is there a way to do this? Use a dialog theme? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Make an app NOT be full screen
You can declare your activity in the manifest with: android:theme=@android:style/Theme.Dialog to make it semi-transparent, and use wrap_content for both width and height in the activity's layout xml. -- Kostya 11.12.2010 23:04, DulcetTone пишет: I want my app to not obliterate all other apps on the screen and perhaps to dim them or blur them while keeping just a small panel open at the bottom. I've tried this to no avail... setContentView(R.layout.main); getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); getWindow().addFlags( WindowManager.LayoutParams.FLAG_DIM_BEHIND | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); Is there a way to do this? tone -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: New Android Market Client Update
I agree... I find the change in trial period a step backward. Tony On Dec 11, 7:09 am, Pent tas...@dinglisch.net wrote: No offense, but the fact that you don't have a trial app is a really a bit tricking people into buying the app. A large percentage of people are too timid, don't know, procrastinate, etc, to get a refund. I think if you have an expensive app, it's almost mandatory to have some sort of free version. Just my two cents. No offense taken, the thought hadn't even occured to me. Nevertheless, it's another change from the Market that requires major action with hardly any notice. and which I don't believe they'd get away with without a de facto monopoly. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Combining an image
Thanks for the suggestion Doug. I am using small PNG files that easily fit within the screen. That said, I'm cutting my losses on this (10 hours or so) and just going to go without it. If I ever get back to it I'll maybe do as you suggest and try it without table layout. Can't believe someone hasn't done this before though...take four images and make one large one...but I guess not. On Dec 11, 12:57 am, Doug beafd...@gmail.com wrote: Are you absolutely depending on a TableLayout to get this job done? In your RelativeLayouts, you don't seem to be using any of they layout parameters that make RelativeLayout special (like layout_toLeftOf, layout_alignTop, etc). Have you considered ditching tables and relatives and just using LinearLayouts instead? Are your ImageViews perhaps stretching/shrinking the drawables because they're not quite the right size? And what exactly are your drawables, anyway? Bitmaps? What's your overall geometry? For all we know, your drawables may not even fit on screen without shrinking or cropping. Not sure what your strategy is here. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Combining an image
Thanks for the suggestions but they did not help. I tried every combination I can think of. MAybe Goud (see other post) has it right and I need to get rid of table layout altogether, but I am tired of wasting time on this so I plan to do something else instead. On Dec 11, 12:02 am, TreKing treking...@gmail.com wrote: On Fri, Dec 10, 2010 at 10:20 PM, darrinps darri...@gmail.com wrote: So how can I get this concoction to center? For gravity on the top row use center_horizontal and bottom, then for the bottom row use center_horizontal and top. And if that doesn't work, try to simplify things and just use a single RelativeLayout and align each of the four ImageViews relative to each other. RANT: To me this is the hardest part of working with Android. Everything else is fairly straight forward in good old Java, but this layout stuff, IMHO, is not very intuitive to say it in the kindest way I know how. It's not perfect, but it's not so bad once you get the hang of it. At some point most of it just clicks. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions
On Saturday, December 11, 2010 6:57:52 PM UTC, hackbod wrote: On Sat, Dec 11, 2010 at 9:06 AM, String sterlin...@googlemail.com wrote: You might also be running into ANR limits, which can vary by device/build. Just because your code is running in a service doesn't make it immune from ANR, and I've noticed that recent OS versions summarily kill ANR processes in appwidgets, rather than showing the user a dialog. ANRs for background processes have never been shown on user builds (no reason to annoy the user about them); Ah, I didn't realize that. they have always been shown on development builds (such as running in the emulator). What's changed recently, then, is that background ANRs now kill the process in the emulator as well - making it impossible to debug them. Just confirmed this on my 2.2 emulator. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Make an app NOT be full screen
Thanks, TreKing and Kostya ... will explore this path. tone On Dec 11, 3:08 pm, Kostya Vasilyev kmans...@gmail.com wrote: You can declare your activity in the manifest with: android:theme=@android:style/Theme.Dialog to make it semi-transparent, and use wrap_content for both width and height in the activity's layout xml. -- Kostya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Automatic debuggable in the manifest
This feature, where ADT 8.x is supposed to automatically set debuggable=true: http://developer.android.com/sdk/eclipse-adt.html has not been working for me. Then I accidentally broke my build while editing strings.xml, to the point of Android build tools not being able to parse the file. Curisously enough, I got this in the Eclipse's console window, alongside strings.xml parse errors: [2010-12-11 23:20:54 - AndroMail] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest. After fixing the strings and cleaning the project, this warning went away too, and automatic debuggable is still not working. So the code to set debuggable is there, but for some reason only gets triggered when XML parsing fails. Hope this can provide a clue for making automatic debuggable work (Xavier?) -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to control the width and height of Alert dialog.
rather than write it as an AlertDialog why not create a full Activity but just theme is as a Dialog? Then you could control just about anything. On Dec 10, 11:20 pm, sat sathvikm...@gmail.com wrote: Hi, Can you point me to some examples where AlertDialogs are built using Dialog class ? I have seen Custom dialog box code , where I can refer to XML and set the contentView. But my requirement is, depending on the array of strings I would like to show them as a textview inside an AlertDialog , which is done by default AlertDialog.Builder. On Dec 10, 11:56 pm, Doug Gordon gordo...@gmail.com wrote: In a similar situation, I stopped using AlertDialog and went directly to the Dialog class. You can do everything you need to do that way, but a bit more complex since you don't get some of the shortcuts that AlertDialog provides. Doug Gordon On Dec 10, 7:39 am, sat sathvikm...@gmail.com wrote: AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(Title); builder.setItems(items, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show(); } }); AlertDialog alert = builder.create(); I am using above code to show alert dialog , By default it fills the screen in width and wrap_content in height. How to control the width and height of default alert dialog ? I tried , alert.getWindow().setLayout(100,100); // It dint work. How to get the layout params on the alert window and set manually the width and height ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ADB drivers for Windows XP available for Android devices
Hi Kostya: Thanks for your advice. Regarding: As first step, enable ADB in device settings (on the tablet). Do you mean enable Settings-Applications-Development-USB Debugging option? (I already have it enabled...) If not, how to enable ADB on the tablet? Thanks Gus On Dec 9, 9:02 am, Kostya Vasilyev kmans...@gmail.com wrote: Gus, As first step, enable ADB in device settings (on the tablet). There is no generic driver for ADB. Each device uses its own UPnP vendor device IDs, although I understand all NVidia Tegra based devices use the same ones. Some manufacturers do provide an ADB driver (Samsung, Motorola). Since Viewsonic does not seem to be among them: - Connect the tablet to the computer, wait until driver installation fails - Find out the UPnP IDs used by the tablet (Device Manager, hardware info tool, etc.) - Edit android_winusb.inf in the standard Android driver and add those IDs - Reinstall the driver and reconnect the tablet, this time it should connect Also see this, which pretty much says the same thing: http://tegradeveloper.nvidia.com/tegra/forum/faq-where-can-i-find-usb... -- Kostya 09.12.2010 19:39, Gus пишет: Hi All: I have the Viewsonic G Tablet with Android 2.2, and I want to debug my own programs. Once I connected to my PC (Windows XP), it was recognized and I'm able to access the tablet as a Mass Storage Device. However, when I want to debug the application, the tablet it's not being recognized as a ADB device (Android Debug Bridge). (USB Debugging is enable in the device). I know there is a USB drivers which cover many of the available Android devices, but not all of them. My question is, does the manufacturer (Viewsonic in this case) need to develop and provide an ADB driver for each device? Otherwise, how can we debug the device? Is there any other solution for this (like a generic driver)? Thanks; Gus -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com- 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
Re: [android-developers] What to use instead of a very long ListPreference?
If there are 1,000 entries, perhaps you should consider a different UI approach such as: map, autocomplete search, drill-down taxonomy, recents, favorites, most popular, etc. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en