[android-developers] How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?
Hi Guys, I have an application which I'm going to enable Move to SD for. The problem is that I have some scheduled alarms (for running some background tasks) so if the application has already been moved to SD and the SD is mounted as a disk drive, all my scheduled alarms and background services will be terminated. Obviously my app should listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE broadcast to register/schedule the alarms again as a classic solution... Now the problem I'm facing is that the applications which have been moved to SD wouldn't receive ACTION_EXTERNAL_APPLICATIONS_AVAILABLE! The end result is that my application will never be able to resume its alarms and services in such cases!! Further reference (notice the sentence Note that the packages in this list do not receive this broadcast): http://developer.android.com/intl/fr/reference/android/content/Intent.html#A CTION_EXTERNAL_APPLICATIONS_AVAILABLE Also I've found a bug reported for this problem but it's still not accepted after 7 months: http://code.google.com/p/android/issues/detail?id=8485 Any solution? Any clues? Armond -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] UnknownFormatConversionException for resource strings for different locale
Hi All, I am stuck with some resource localization problem. I have a string in my default locale as follows: string name=msg_success_fail %1$s successful, %2$s failed./ string and similarly I have a resource with same name for chinese language as follows,: string name=msg_success_fail msgid=5553338716725484736%1$s成功, %2$s失败。/string My problem is that for the chinese string its giving following exeception at run time: 12-31 03:11:50.423 3326 3334 E AndroidRuntime: FATAL EXCEPTION: Notification Update Thread 12-31 03:11:50.423 3326 3334 E AndroidRuntime: java.util.UnknownFormatConversionException: Conversion is '成' 12-31 03:11:50.423 3326 3334 E AndroidRuntime:at java.util.Formatter$Transformer.transform(Formatter.java:1438) 12-31 03:11:50.423 3326 3334 E AndroidRuntime:at java.util.Formatter.doFormat(Formatter.java:1082) 12-31 03:11:50.423 3326 3334 E AndroidRuntime:at java.util.Formatter.format(Formatter.java:994) 12-31 03:11:50.423 3326 3334 E AndroidRuntime:at java.lang.String.format(String.java:2254) 12-31 03:11:50.423 3326 3334 E AndroidRuntime:at android.content.res.Resources.getString(Resources.java:283) 12-31 03:11:50.423 3326 3334 E AndroidRuntime:at android.content.Context.getString(Context.java:195) 12-31 03:11:50.423 3326 3334 E AndroidRuntime:at I am not able to understand what is the reason for it. Is the resource string for chinese language not proper or there is something else which i need to take care of? Please help me in this regard. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] UnknownFormatConversionException for resource strings for different locale
It looks like Android is interpreting the Chinese character as a conversion specifier (like s is for String, d is for decimal, etc.). Try adding a space after the s in %1$s. Also make sure the s is a good and proper ASCII character. Also the double-quotes that you've placed around the string value are not necessary, is that a typo? -- Kostya 02.01.2011 12:55, Suresh Pal пишет: Hi All, I am stuck with some resource localization problem. I have a string in my default locale as follows: string name=msg_success_fail %1$s successful, %2$s failed./ string and similarly I have a resource with same name for chinese language as follows,: string name=msg_success_fail msgid=5553338716725484736%1$s成功, %2$s失败。/string My problem is that for the chinese string its giving following exeception at run time: 12-31 03:11:50.423 3326 3334 E AndroidRuntime: FATAL EXCEPTION: Notification Update Thread 12-31 03:11:50.423 3326 3334 E AndroidRuntime: java.util.UnknownFormatConversionException: Conversion is '成' 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.util.Formatter$Transformer.transform(Formatter.java:1438) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.util.Formatter.doFormat(Formatter.java:1082) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.util.Formatter.format(Formatter.java:994) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.lang.String.format(String.java:2254) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at android.content.res.Resources.getString(Resources.java:283) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at android.content.Context.getString(Context.java:195) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at I am not able to understand what is the reason for it. Is the resource string for chinese language not proper or there is something else which i need to take care of? Please help me in this regard. -- 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] yahoo local search xml reply in android
i am working on it, i will share it with u as soon as i finish it. Regards, Zeeshan On Fri, Dec 31, 2010 at 1:19 PM, Nandlal Viranni nandlal.phys...@gmail.com wrote: Hello , How have you done this local search to find nearest coffee shop or resturant in android ? I want also to do same thing.but i am not able to do this .. I knows how to parse any xml file. can U help me. Thanks in advance . Regards , Nandlal Virani On Wed, Dec 29, 2010 at 10:37 AM, zeeshan mirza zeeshan.nabeel.mi...@gmail.com wrote: I am using yahoo local search in my android application to find nearest coffee shop or resturant. I am receiving a reply from yahoo local search service in XML form. I dont know how to process such xml reply. Do i need to parse this xml reply? and how can i read the contents of the reply? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] zoom and drag code registering but not actually working...
Hi all, I have followed the example of using multi touch which can be found here..http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in- android-2/1747?tag=mantle_skin;content I am pretty sure I have included, in my code, all of the required elements but, although the dumpEvent log shows that my touch gestures are being picked up, and accurately, I can't move my picture around or zoom in. The only difference I can see is that my picture is loaded from the SD card whereas in the example the picture is a drawable... Here is my code package com.pengilleys.fishingsnapz; import java.io.FileNotFoundException; import java.io.IOException; import android.app.Activity; import android.app.Dialog; import android.app.ProgressDialog; import android.content.ContentResolver; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.Matrix; import android.graphics.PointF; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.provider.MediaStore; import android.util.FloatMath; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.widget.ImageView; public class ImagePreview extends Activity implements OnTouchListener{ static final int PROGRESS_DIALOG = 0; ProgressDialog progressDialog; private Bundle extras; protected static Bitmap bm; protected DBAdapter db = new DBAdapter(ImagePreview.this); Long id; GetHandler handler = new GetHandler(); //Touch gesture related variables Matrix matrix = new Matrix(); Matrix savedMatrix = new Matrix(); // Remember some things for zooming PointF start = new PointF(); PointF mid = new PointF(); float oldDist = 0; // We can be in one of these 3 states static final int NONE = 0; static final int DRAG = 1; static final int ZOOM = 2; int mode = NONE; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.image_view); try{ getImage(); //start a progressdialog showDialog(PROGRESS_DIALOG); extras = getIntent().getExtras(); id = (Long) extras.get(DBAdapter.KEY_ROWID); db.open(); bm = getImage(); //Log.e(ONCREATE,setImageBitmap=+bm.toString()); ImageView imageV = (ImageView)findViewById(R.id.image_preview); imageV.setOnTouchListener(this); imageV.setImageBitmap(bm); dismissDialog(PROGRESS_DIALOG); }catch(Exception e){ Log.e(ONCREATE,e.toString()); }finally{ db.close(); } } //setup the progressdialog protected Dialog onCreateDialog(int id) { switch(id) { case PROGRESS_DIALOG: try{ progressDialog = new ProgressDialog(this); progressDialog.setMessage(Loading snap...); progressDialog.setOwnerActivity(this); return progressDialog; }catch(Exception e){ Log.e(ONCREATEDIALOG,e.toString()); } default: return null; } } private class GetHandler extends Handler{ public void handleMessage(Message message){ ImagePreview.this.getImage(); } } public Bitmap getImage(){ try { Uri uri=null; Cursor c = db.fetchUri(id); uri = Uri.parse(c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_URI))); ContentResolver cr = getContentResolver(); Bitmap bitmap = MediaStore.Images.Media.getBitmap(cr,uri); return bitmap; } catch (FileNotFoundException e) { // TODO Auto-generated catch block Log.e(GETIMAGE,e.toString()); return null; } catch (IOException e) { // TODO Auto-generated catch block Log.e(GETIMAGE,e.toString()); return null; }catch(Exception e){ Log.e(GETIMAGE,e.toString()); return null; } }; @Override public boolean onTouch(View v, MotionEvent event) { final String TAG = Touch; // TODO
[android-developers] Re: How many refunds do you get.
On Jan 1, 8:14 pm, brian purgert brianpurge...@gmail.com wrote: Im not sure if people just don't like my game or they are finishing it fast, but out of 52 sales, 14 refunded it. That's much better than my ratio at present, which is about 50%, and seems to have got worse since the refund period was reduced to 15 mins. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: uninstall TTS data from Android = 1.6 ?
On Dec 31 2010, 7:56 am, DulcetTone dulcett...@gmail.com wrote: I am not keen on testing 1.5 and such sort of tests usually are a waste of time on Android. Certainly there must be a means of finding and deleting this data? I've been told it goes onto the SD card, but I see it nowhere for manual deletion. tone Well then you'll be best off to acquire a device with TTS removed or see if DeviceAnywhere has something to offer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Memory Leak in 1.6
Hi John, If you can post the logs would help understand the reason of the memory leak. Also, a small sample of code will be helpful. Cheers, Prateek On Jan 1, 12:32 am, John Gaby jg...@gabysoft.com wrote: I seem to have a memory leak when running under version 1.6 of the OS. I have a custom view group which contains some controls and I set it to be the current view via a call to setContentView(vg). If I then create a second view group and set it as the active view via setContentView(newVg), the first view group is never freed (even when I force a garbage collection). Note that this works fine for versions 2.0 and above, so it is possible that 1.6 has some kind of bug. If so, does anyone know of a workaround? I can post a simple example of this problem if it would help. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Screen Rotation
I am not sure, if you just want to stop your app to change orientation on rotating. But if thats the case, along with the line you mentioned android:configChanges=orientation|keyboardHidden which tells the system that app will be handling the orientation change, you need to add the following line to in manifest.xml android:screenOrientation=portrait or landscape, depending upon your choice. Hope it helps !! Cheers, Prateek On Jan 1, 1:21 am, Robert rcope...@gmail.com wrote: Yes, I agree and even said in my original post that I was working to understand how to make that work correctly. Still would be interested to know why the manifest entry doesn't seem to be working as documented. On Dec 31, 12:55 pm, TreKing treking...@gmail.com wrote: On Fri, Dec 31, 2010 at 11:48 AM, Robert rcope...@gmail.com wrote: The reason I want to do this is that the app is accessing a webserver via an AsyncTask and I'd like to stop the restart until I can figure out how to link the background task to the new pid that is created. I've read some pages on it but not yet clear how to do that. Quoting the docs for that property: *Note:* Using this attribute should be avoided and used only as a last-resort. Please read Handling Runtime Changeshttp://developer.android.com/guide/topics/resources/runtime-changes.html for more information about how to properly handle a restart due to a configuration change. I highly recommend you spend the time figuring out how to do this correctly then wasting time on a hack that will cause other problems. --- -- 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]
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Making my app a library, resource problems
Okay, in order to make it easier (I hope) to have both a Licensed full version, and a Demo version of my app, I've converted my App project in Eclipse into an Android Library project. I created a new Library project, the copied all the source and resources over, set the manifest values, etc... I then created a new App project to be the licensed version. It uses the library project. What I'm seeing is that the App project builds a R.java for both the App and the Library. BUT it builds the one for the library incorrectly. It's leaving out several resources from my portrait layout. When the Library project is build, it's R.java has all the resources. Note: It's also interesting that the App project builds an R.java for the App, and an R.java for the Library project - and they are IDENTICAL. This also indicates that you have to be really careful about not having conflicting resource names between and App and a Library it uses. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Making my app a library, resource problems
And I figured it out! Eclipse had created a default main.xml in my App layout directory, and was using that for generated resource ID's instead of the main.xml in my Library project. You really do have to be careful about conflicting resource names between A library and your app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: is there any htc mototola specific emulator to test apps?
On Jan 1, 11:03 am, Kostya Vasilyev kmans...@gmail.com wrote: Perhaps they have emulator images for their devices (perhaps not - worth checking out). Last time I checked they only repackaged what was available out there already, plus reselling DeviceAnywhere. Not very useful, and to add insult to injury, you've now introduced yet another layer of dependencies to your development environment. Perhaps they've added some real value in the meantime. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Does SoftReference calls .recyle() on a Bitmap ?
Hi, If I store bitmaps in a hashmap using SoftReference, will SoftReference call .recycle() on the Bitmap ? And if it doesn't then what would be a way to clear the bitmap properly from memory under the given situation ? 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: How many refunds do you get.
Brian, Out of my last 80 sales for FRG Deluxe, 2 were declined and 8 were canceled. I recently lowered the price for the holidays from $3 to $0.99; before December my refund rate was about 15%. Having played Doodle Bike and some of your competitors' games (MX Moto, Moto X Mayhem), I think there is room for improvement in Doodle Bike. For example, I get hopelessly stuck on the 2nd level of Doodle Bike (Lite). If I had paid any amount of money to get stuck at level 2, I'd refund. I'm not fond of MX Moto for the same reason but atleast I get a funny rag doll animation when I smash my rider into the ground. I haven't played Moto X Mayhem since ADC2 but I recall being able to get reasonably far and enjoying it more than most games in ADC2. The polish of the game back then was really good and smashing the rag doll into the ground got a bizarre amount of amusement from me. Maybe I just suck at these games - it's challenge enough for me to keep the bike steady when making jumps. Please note that not everybody understands the idioms of your game and that you are less qualified to judge difficulty because you are an expert at playing your own game. For FRG I periodically gave the game to my wife and watched as she played. I used her as a baseline for how long a neophyte takes to finish levels. For the record she does play a lot of games (married her for a reason!) but FRG is a genre she has little experience with. I also used my ability to play FRG as an indicator of an expert's experience. Given user feedback, I've also made the targeting system simpler and easier over time. FRG with multitouch sticks or auto-targeting (for single-touch users) makes me godlike at my own game but for other players, may be the difference between sticking with the game and uninstalling/refunding out of frustration. Phil, 50% refunds would make me worry a lot if it were my game. Ernest Woo Woo Games http://www.woogames.com On Jan 2, 8:16 am, Phil Endecott spam_from_goo...@chezphil.org wrote: On Jan 1, 8:14 pm, brian purgert brianpurge...@gmail.com wrote: Im not sure if people just don't like my game or they are finishing it fast, but out of 52 sales, 14 refunded it. That's much better than my ratio at present, which is about 50%, and seems to have got worse since the refund period was reduced to 15 mins. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 many refunds do you get.
Hmmm looks like you published a new version of Doodle Bike Lite and got rid of the old one that I was using all this time. I think you're going in a good direction with the new version - keep improving it based on user feedback and things should get better. Ernest Woo Woo Games http://www.woogames.com On Jan 2, 2:25 pm, ernestw ernest...@gmail.com wrote: Brian, Out of my last 80 sales for FRG Deluxe, 2 were declined and 8 were canceled. I recently lowered the price for the holidays from $3 to $0.99; before December my refund rate was about 15%. Having played Doodle Bike and some of your competitors' games (MX Moto, Moto X Mayhem), I think there is room for improvement in Doodle Bike. For example, I get hopelessly stuck on the 2nd level of Doodle Bike (Lite). If I had paid any amount of money to get stuck at level 2, I'd refund. I'm not fond of MX Moto for the same reason but atleast I get a funny rag doll animation when I smash my rider into the ground. I haven't played Moto X Mayhem since ADC2 but I recall being able to get reasonably far and enjoying it more than most games in ADC2. The polish of the game back then was really good and smashing the rag doll into the ground got a bizarre amount of amusement from me. Maybe I just suck at these games - it's challenge enough for me to keep the bike steady when making jumps. Please note that not everybody understands the idioms of your game and that you are less qualified to judge difficulty because you are an expert at playing your own game. For FRG I periodically gave the game to my wife and watched as she played. I used her as a baseline for how long a neophyte takes to finish levels. For the record she does play a lot of games (married her for a reason!) but FRG is a genre she has little experience with. I also used my ability to play FRG as an indicator of an expert's experience. Given user feedback, I've also made the targeting system simpler and easier over time. FRG with multitouch sticks or auto-targeting (for single-touch users) makes me godlike at my own game but for other players, may be the difference between sticking with the game and uninstalling/refunding out of frustration. Phil, 50% refunds would make me worry a lot if it were my game. Ernest Woo Woo Games http://www.woogames.com On Jan 2, 8:16 am, Phil Endecott spam_from_goo...@chezphil.org wrote: On Jan 1, 8:14 pm, brian purgert brianpurge...@gmail.com wrote: Im not sure if people just don't like my game or they are finishing it fast, but out of 52 sales, 14 refunded it. That's much better than my ratio at present, which is about 50%, and seems to have got worse since the refund period was reduced to 15 mins. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does SoftReference calls .recyle() on a Bitmap ?
That question doesn't really make sense -- SoftReference has no idea what a Bitmap is. If you are wondering whether the bitmap data will *eventually* be released, well of course -- once all references to the Bitmap go away, its finalizer will eventually be called and that ensures its resources are released. On Sun, Jan 2, 2011 at 11:05 AM, Tabman tabishfay...@gmail.com wrote: Hi, If I store bitmaps in a hashmap using SoftReference, will SoftReference call .recycle() on the Bitmap ? And if it doesn't then what would be a way to clear the bitmap properly from memory under the given situation ? 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 15 minute refund did not work
I just had a cancellation much longer than 15 minutes.See Below. Sold on Jan 2, 2011 3:29:59 AM CST Cancelled on Jan 2, 2011 12:36:21 PM CST Is the 15 minute cancellation still in effect?Or it has a bug? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.3 SDK Emulator is very slow
My 4 core AMD 64-bit machine running Windows 7 loads a 2.2 AVD fast (haven't tried a 2.3 on it yet) and responds like an Android device. In fact I did video demos of my apps on it with the emulator and CamStudio. It will even play video files on the SD card image. I develop on an Ubuntu machine with a 2.4 ghz P4 and plan to upgrade to a 64-bit machine for Ubuntu this year which will make things a little spiffier. On Jan 2, 9:02 am, Alexei 'keyhell' Zhurba keyh...@keyhell.org wrote: Kind of update... My new i7-based laptop loads 2.1 AVD in less than 1 minute. System responsiveness is pretty good. Happy New Year! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse ADT update ruins XML layout files development
I recently updated my eclipse installation with which I develop my Android apps. Soon I found my layout files have lost the up and down arrows associated with each VIEW and LAYOUT which helps to organize my layouts. I don't know whatelse the update, if anything, has messed up but I wonder and would appreciate any information on how to fix this issue so I can get my developments back on track, please. 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] AudioTrack.write blocks in multi-threaded app
I would really appreciate some advice on using AudioTrack. I need to be able to play a number of audio signals on demand, potentially mixed together. I have no problem setting AudioTrack up and writing an audio buffer to it (originally captured by another Android device's AudioRecord and received via network). However, when I try to put AudioTrack in its own Runnable class, I run into problems. My current implementation instantiates the AudioTrack in the constructor and, to keep things simple, the run() function is a while loop that checks a Buffer queue (modified version of http://www.siafoo.net/snippet/216 to use short instead of byte) and writes anything over 100 bytes to AudioTrack. The buffer queue fills fine, but as soon as I try to write it, the AudioTrack blocks. I am really not sure what relevant code to post, but here is a version of my AudioTrack Runnable code with the irrelevant code missing: public class SoundIn implements Runnable{ BufferQueue m_queue = null; // Audio track to output audio on phone AudioTrack m_audioTrack = null; // Buffer size required to support AudioTrack int m_BufferSize; short[] m_outbuf; public SoundIn(BufferQueue queue) { m_queue = queue; // Get minimum supported buffer size m_BufferSize = AudioTrack.getMinBufferSize(11025, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); // Initialize a streaming audio track with minimum-size buffer m_audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, 11025, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, m_BufferSize, AudioTrack.MODE_STREAM); m_audioTrack.play(); } public void run() { int minsize; m_outbuf = new short[5]; while(true) { minsize = //...Get available data size if (minsize == 0) { Log.d(SoundIn, Sleeping...); try{Thread.sleep(100);} catch (Exception e){e.printStackTrace();} continue; } //read available bytes from queue m_queue().read(m_outbuf, 0, minsize); //Gets here with m_outbuf correctly holding data m_audioTrack.write(m_outbuf,0,minsize); //Never gets here } } } Any suggestions on why the AudioTrack.write call might block in a situation like this would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Purpose of AsyncTask.get()
I learned the hard way that in android dialogs are modal in the interface but completely asynchronous in program workflow. I think that this will be nice to be more clear in the documentation because if not is easy to make confusion and expect dialogs to work as usually (for example in Swing). Also .get() in AsyncTask makes some confusion to me, I initially expect to be a synchronous solution that doesn't block the EDT like Foxtrot. But it doesn't work that say, does it? Then my question is, what's the purpouse of .get(), someone can give some good use of it? A lot of thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How many refunds do you get.
Hi Ernest, On Jan 2, 7:25 pm, ernestw ernest...@gmail.com wrote: Phil, 50% refunds would make me worry a lot if it were my game. Yes. Actually it's not a game, it's a map app, and it has a large data download when it first runs; I suspect some people are discouraged by that. I did this as a toe in the water to see how it sells compared to the iOS version (same code), and the answer is a 200X difference. So it has served its purpose... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse never sees AVDs anymore
I recently upgraded to Helios and installed the latest and greatest SDK, ADT, and everything else I could think of. Eclipse no longer sees the AVDs when launching (debugging) the app. I tried deleting all my old AVDs and making new ones, but it's just hopeless, nothing fixes the problem. It simply can't see the AVDs. I've set my run configuration target to manual (instead of automatic). When I attempt to run or debug my app, I get the dialog with two sections, one on top of devices and one below for AVDs. The top section shows my phone plugged in my USB and I can run on the phone just fine, but the lower section (Launch a new Android Virtual Device) doesn't list anything. I can easily verify that the AVDs exist by going WindowMenu-AndroidSDKAndAVDManager. It shows my AVDs with green checkmarks. If I launch an AVD from that dialog, I can then run on it, but it appears in the top section of the launch dialog, with the devices (with my phone), the lower portion for AVDs remains empty. It's frustrating to have to manually launch the AVD now. I certainly did not have to do this before. I'm running Eclipse Helios, with ADT 8.0.1.v201012061207-82219. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating complex queries for SQLite
Hi! I'm using the Android's media library intensively, and I was asking myself whether it is possible or not to query the database more freely than using the ContentProvider class. Would it be possible to query directly the database that is stored in the filesystem (/data/ data/com.android.providers.media/databases/internal.db)? For instance, I may need to create queries with subqueries and using various sqlite commands. Is this possible? 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] Looking for assistance submitting a bug fix
Hi Folks, I'm interested in fixing a bug that exists in v1.6 of android. I am rather sure that I can fix the code, and I know how to download the latest version of the android code from git, build, and test the code. I want to make sure I am patching the right version of code, and that I get the patch to the right person who can add the code to the release. How do I determine the version to fetch and patch? Where do I submit a patch for review, once I fix and test? also, are bug fixes still being pushed for v1 devices? The particular bug in question is ( http://code.google.com/p/android/issues/detail?id=5062 ) if you're interested. Thanks, Steven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 many refunds do you get.
Well I just released another update, because just watching my self play I realized how little I was actually tilting the phone, and watching other people play my game they tilt it very far, but I will make the levels easier and of course polish it up more, I'm also going to put in something in so you can pick your own sensitivity, but I believe your very right, because the free version the reviews are not to good (3 stars) and on the payed version i have (5 stars) I'm thinking if they pick it up quick and are good they will like it, if they replay it many times over they wont like it, but if you play mxmoto and you hold your phone straight you cant lose, I'll be adding sound and the ability to pick your sensitivity, and also make the first levels easier by a bit in the next week i guess, any more suggestions, well when it comes to fun at least because, I had around 2000 free version downloads but less then 50 full version downloads so somewhere in my game people are not liking it. On Jan 2, 11:25 am, ernestw ernest...@gmail.com wrote: Brian, Out of my last 80 sales for FRG Deluxe, 2 were declined and 8 were canceled. I recently lowered the price for the holidays from $3 to $0.99; before December my refund rate was about 15%. Having played Doodle Bike and some of your competitors' games (MX Moto, Moto X Mayhem), I think there is room for improvement in Doodle Bike. For example, I get hopelessly stuck on the 2nd level of Doodle Bike (Lite). If I had paid any amount of money to get stuck at level 2, I'd refund. I'm not fond of MX Moto for the same reason but atleast I get a funny rag doll animation when I smash my rider into the ground. I haven't played Moto X Mayhem since ADC2 but I recall being able to get reasonably far and enjoying it more than most games in ADC2. The polish of the game back then was really good and smashing the rag doll into the ground got a bizarre amount of amusement from me. Maybe I just suck at these games - it's challenge enough for me to keep the bike steady when making jumps. Please note that not everybody understands the idioms of your game and that you are less qualified to judge difficulty because you are an expert at playing your own game. For FRG I periodically gave the game to my wife and watched as she played. I used her as a baseline for how long a neophyte takes to finish levels. For the record she does play a lot of games (married her for a reason!) but FRG is a genre she has little experience with. I also used my ability to play FRG as an indicator of an expert's experience. Given user feedback, I've also made the targeting system simpler and easier over time. FRG with multitouch sticks or auto-targeting (for single-touch users) makes me godlike at my own game but for other players, may be the difference between sticking with the game and uninstalling/refunding out of frustration. Phil, 50% refunds would make me worry a lot if it were my game. Ernest Woo Woo Games http://www.woogames.com On Jan 2, 8:16 am, Phil Endecott spam_from_goo...@chezphil.org wrote: On Jan 1, 8:14 pm, brian purgert brianpurge...@gmail.com wrote: Im not sure if people just don't like my game or they are finishing it fast, but out of 52 sales, 14 refunded it. That's much better than my ratio at present, which is about 50%, and seems to have got worse since the refund period was reduced to 15 mins. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Building a Custom Browser
The goal of my new web browser is to render web pages in different fonts that have more unicode implementations than the ones that are already supplied with the firmware/OS (For example languages like Tamil, Telugu, Malayalam, Kannada, etc etc implimentations doesn't come standard with android OS fonts) this makes it impossible for users to view websites in those languages. Yes this could be a contribution to the standard OS, but it is hard to convince anybody that ALL the people who use Android OS should have ALL the unicode implementations of EVERY language in the world. Therefore I believe this app should be standalone so that those who needs it can download it separate. Yes I already have an app in the android market (named Tamil Browser) that was built around the webView. But the features of this browser is limited. But the biggest problem with this app is I cannot make my trick work for websites that use iFrames. I don't want re-invent the wheel and write the whole browser app from scratch either. So I still believe copying the standard browser app and make a new standalone browser is my best bet. Does anybody have a better idea how I can do this? On Dec 28 2010, 11:28 pm, Bob Kerns r...@acm.org wrote: Or, depending on what new features you want, perhaps you can build your new browser around WebView. On Dec 28, 6:17 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 26, 2010 at 11:18 PM,Pathmansuthars...@gmail.com wrote: I want to create an android application that is a customized version of the standard browser app (My new browser will have some cool new features than the standard one). So basically I just want to copy the standard android source from the android root/packages/apps/browser folder, rename it and create my Eclipse Project for the new app, before I start modifying it. You forgot about all the other work. But it doesn't look like I am in the right track because Eclipse complains of tons of errors right after I have Created the project from source That would be all the other work. That application is not an SDK application, but is part of the firmware. Questions are: 1. Am I on the right track or is there something else I am missing? (I know how to do a basic android app and I have some of my apps in the android market) I would consider it to be the wrong track. 2. If I am on the right track, what I am supposed to do to resolve the errors (mainly missing resources, classes etc). If I am not on the right track what are the other options I have. Write a browser app from scratch. Or, contribute your changes as patches to an open source browser app. Or, contribute your changes as firmware modifications to the regular browser app. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Purpose of AsyncTask.get()
On Sun, Jan 2, 2011 at 4:12 PM, Joan Pujol joanpu...@gmail.com wrote: Also .get() in AsyncTask makes some confusion to me, I initially expect to be a synchronous solution that doesn't block the EDT like Foxtrot. http://developer.android.com/reference/android/os/AsyncTask.html#get() Waits if necessary for the computation to complete, and then retrieves its result. That pretty explicitly states that it blocks. http://developer.android.com/reference/android/os/AsyncTask.html#get() Then my question is, what's the purpouse of .get(), someone can give some good use of it? The purpose, as described, is to block until the result is obtained. This could be useful, for example, if you have multiple tasks, where one uses another. One task could start another and call get() to wait for it to finish before continuing with its own work. - 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: my problems with point sprites
On Jan 2, 12:46 am, Poldie pol...@gmail.com wrote: I'm trying to use point sprites in OpenGL on my HTC Desire. In the emulator I've got them working, but on my phone nothing is displayed. This is my first Android app though so I could quite easily have done something wrong. Perhaps the emulator isn't configured to behave as a Desire would. After playing around a bit it turns out to be just another manifestation of the differences between emulator and real life. As I rotated the model and moved the camera the dots appeared. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Intent Filter for Media Player (Youtube Video Play)
ORit brings you here. (Sorry, but the amount of times I do a google search, and fine forum posts saying 'do a google search' without actually giving me the answer is starting to drive me nuts). ~Leif 0On Dec 20 2010, 8:27 am, TreKing treking...@gmail.com wrote: On Mon, Dec 20, 2010 at 2:04 AM, sjor sleche...@gmail.com wrote: How can I provide this in my manifest file? Google is your friend - the first hit for android youtube intent filter shows an example. --- -- 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] Help using SQLite as a method for storing and loading precets
Alright I have been working on a chess clock of epic proportions and almost have it up and running. But for the last and coolest part of its functionality I have hit a wall and would appreciate some help. The story so far: The DatabaseHelper class can successfully add rows to the data base which happens in an activity called add precept. I have pulled the db file off the device and viewed it with SQLite viewer and all is well. When I try to load one of the rows and use the data for the main activities state things begin to go astray. I have a method in the main activity called setClocks its a wrapper class that uses the DatabaseHelper method getEntry to fill a MyObject which has all the data I need to set the apps state. Please help me figure out why a call of setClocks(1); results in an exception no row found. Here is the code: [code] //The wrapper class in the main activity public void setClocks(long index) { MyObject data; dbh.open(); data = dbh.getEntry(index); if( data.handiState == white ) { ctBlack.SetTime(data.timeInMills); ctWhite.SetTime(data.timeInMills + data.handiTimeInMills); } else if( data.handiState == black ) { ctWhite.SetTime(data.timeInMills); ctBlack.SetTime(data.timeInMills + data.handiTimeInMills); } else if ( data.handiState == none ) { ctBlack.SetTime(data.timeInMills); ctWhite.SetTime(data.timeInMills); } isFisher = Boolean.parseBoolean(data.isFisher); fisherTimeInMills = data.fisherTimeInMills; dbh.close(); } //The DatabaseHelper method public MyObject getEntry(long _rowIndex) throws SQLException { Cursor cursor = db.query(true, DATABASE_TABLE, null, KEY_ID + = + _rowIndex, null, null, null, null, null); if ((cursor.getCount() == 0) || !cursor.moveToFirst()) { throw new SQLException(No to do item found for row: + _rowIndex); } MyObject entry = new MyObject(); entry.name = cursor.getString(cursor.getColumnIndex(KEY_NAME)); entry.timeInMills = cursor.getLong(cursor.getColumnIndex(KEY_TIM)); entry.handiTimeInMills = cursor.getLong(cursor.getColumnIndex(KEY_HTIM)); entry.fisherTimeInMills = cursor.getLong(cursor.getColumnIndex(KEY_FTIM)); entry.handiState = cursor.getString(cursor.getColumnIndex(KEY_HCS)); entry.isFisher = cursor.getString(cursor.getColumnIndex(KEY_IF)); return entry; } //Definition of my object public class MyObject { public String name; public long timeInMills; public long fisherTimeInMills; public long handiTimeInMills; public String isFisher; public String handiState; } [/code] If I call setClocks(1); in the onCreate of the main activity the app crashes with the could not find row exception. I know their is a row with an _id of 1 I can see it on my desktop. I want to load the first precet when the app loads and then in the onCreateOptionsMenu I have an option to select a preset. When this is selected it displays a dialog with a spinner and 2 buttons one for loading the selected preset and one for removing the selected preset from the database. Here is my attempt at that. It loads the dialog and the dialog is populated by the database but when I press load it just goes back to the main activity with the timers as they where. [code] public boolean onOptionsItemSelected(MenuItem item) { switch( item.getItemId() ) { case R.id.Menu_LoadPreff: final Dialog dialog = new Dialog(this); dialog.setTitle(Pick a precet); dialog.setCancelable(true); dialog.setContentView(R.layout.precetselector); final Spinner spinner = (Spinner) dialog.findViewById(R.id.SpinPrecet); dbh.open(); Cursor select = dbh.getAllEntries(); SimpleCursorAdapter myAdapt = new SimpleCursorAdapter(dialog.getContext(), android.R.layout.two_line_list_item, select, new String[] {DatabaseHelper.KEY_NAME, DatabaseHelper.KEY_ID,}, new int[] {android.R.id.text1}); spinner.setAdapter(myAdapt); dialog.show(); Button load, delete; load = (Button) dialog.findViewById(R.id.PrecetLoad); delete = (Button) dialog.findViewById(R.id.PrecetDelete); load.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { setClocks(spinner.getSelectedItemPosition()+1); dialog.dismiss(); dbh.close();
[android-developers] Unable to run DDMS, failed to get adb version
I'd like to try and run DDMS so I can get some screen captures of my app. When I try to run ddms.bat, I get this error: C:\Projects\android-sdk-windows\toolsddms 05:38:13 E/adb: Failed to get the adb version: Cannot run program adb: CreateP rocess error=2, The system cannot find the file specified I'm running Win 7 x64, and have the latest Eclipse and SDK installed. Eclipse can launch the emulator and adb just fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Samsung Galaxy Player
Before, the official position was that all apps on the Market could assume that there will be phone capabilities on the user's device. Is this assumption officially out the window with the availability of the Android Market on the Samsung Galaxy Player? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Creating complex queries for SQLite
No, I don't believe you will have access to directly open the database of another app. That's the reason there is a ContentProvider in the first place. On Jan 3, 7:28 am, Luca Carlon carlon.l...@gmail.com wrote: Hi! I'm using the Android's media library intensively, and I was asking myself whether it is possible or not to query the database more freely than using the ContentProvider class. Would it be possible to query directly the database that is stored in the filesystem (/data/ data/com.android.providers.media/databases/internal.db)? For instance, I may need to create queries with subqueries and using various sqlite commands. Is this possible? 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: Memory Leak in 1.6
Thanks for the response. I have worked out a work-around which fixes the problem. Instead of setting the view group via setContentView(vg), I am now setting a FrameLayout as the content view, and then setting the view group as the child of the FrameLayout. In addition, it was necessary to not remove the old view when setting a new view, but rather hide it. Then when subsequent views are set, the oldest view is removed. It seems that the problem stems from removing a view while processing a message from a child control in that view. If I don't do that, then the view is properly recycled. Again note that this seems to be a problem only for 1.6 (and possibly earlier). It seems to work properly with 2.0 and above. On Jan 2, 8:32 am, Prateek Jain mrprateekj...@gmail.com wrote: Hi John, If you can post the logs would help understand the reason of the memory leak. Also, a small sample of code will be helpful. Cheers, Prateek On Jan 1, 12:32 am, John Gaby jg...@gabysoft.com wrote: I seem to have a memory leak when running under version 1.6 of the OS. I have a custom view group which contains some controls and I set it to be the current view via a call to setContentView(vg). If I then create a second view group and set it as the active view via setContentView(newVg), the first view group is never freed (even when I force a garbage collection). Note that this works fine for versions 2.0 and above, so it is possible that 1.6 has some kind of bug. If so, does anyone know of a workaround? I can post a simple example of this problem if it would help. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Eclipse ADT update ruins XML layout files development
This image (http://www.mathcs.org/java/android/images/ xml_converter_outline.jpg) shows what I am refering to. The update has removed all the images and associated functionality for the plus, minus, up and down buttons on the outline tab. On Jan 2, 8:19 pm, sisko adeod...@gmail.com wrote: I recently updated my eclipse installation with which I develop my Android apps. Soon I found my layout files have lost the up and down arrows associated with each VIEW and LAYOUT which helps to organize my layouts. I don't know whatelse the update, if anything, has messed up but I wonder and would appreciate any information on how to fix this issue so I can get my developments back on track, please. 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: How to add labels above this table layout
Option #1: Put the TableLayout in a ScrollView, wrap the ScrollView in a LinearLayout, put the labels above the ScrollView in the LinearLayout, and have the labels be incorrectly located over the columns. As Mark said I had made changes in xml file but still it shows labels at each row. I only want that labels are visible at the top of list. Here is my new xml file as ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TableLayout android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:text=Room Name android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Switch Name android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Start Date android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Start Time android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Stop Date android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Stop Time android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout ScrollView android:layout_width=fill_parent android:layout_height=wrap_content TableLayout android:layout_width=fill_parent android:layout_height=fill_parent TableRow TextView android:id=@+id/roomName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/switchName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/startDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/stopDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalStopTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout /ScrollView /LinearLayout On Dec 31 2010, 9:26 pm, TreKing treking...@gmail.com wrote: On Thu, Dec 30, 2010 at 4:16 AM, pramod.deore deore.pramo...@gmail.comwrote: I had still facing this problem. Can anyone please solve this one? Mark already gave you two options. If you were trying the first, you did not follow what he said. - 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] Re: Creating complex queries for SQLite
Your subject of the post should have been something like Accessing databases from other packages In normal phones, you are not allowed to do so. It prevents you to mess up with someone else's database. If you want it for personal usage, you can root your phone. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SQLite setup
Hi, I need to use a SQLite database in my app (eventually create a Content Provider) but I'm not really sure how to setup that database. All examples I saw, the database is created on the fly by issuing a SQL command on the event onCreate of SQLiteOpenHelper and populating it. I need to feed the database with almost 400 records to start but it seems too messy to create a 29Kb string to populate the database. Isn't there a more elegant way to do it that won't overload the system (I tried to create a resource with that string...). Any thoughts? Thanks, Pedro Duque -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SQLite setup
Put your pre-created and pre-populated database in assets. Then, copy to proper place in the first run (or when the db is not found where it was supposed to be copied. This link helped me: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ There are other examples available, try googling. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] about Android apps automatically update
Dear all I forget how to let the android apps automatically update. Should I coding something in my app? Or do nothing and launch the app in market, and if the mobile device is Android 2.2 or above, then I can choose automatically update, is that right? Thanks and Regards, Kenneth WON -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 never sees AVDs anymore
On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley kbwi...@gmail.com wrote: It's frustrating to have to manually launch the AVD now. I certainly did not have to do this before. I'm running Eclipse Helios, with ADT 8.0.1.v201012061207-82219. Any ideas? Unplug your phone. If the phone is plugged in, it only shows AVDs with the same or higher Android version as your phone. Not sure why someone thought this is a good idea... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 never sees AVDs anymore
Lol I was wondering about this, for a wile I was manually starting up the emulators too On Jan 2, 2011 11:00 PM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley kbwi...@gmail.com wrote: It's frustrating to have to manually launch the AVD now. I certainly did not have to do this before. I'm running Eclipse Helios, with ADT 8.0.1.v201012061207-82219. Any ideas? Unplug your phone. If the phone is plugged in, it only shows AVDs with the same or higher Android version as your phone. Not sure why someone thought this is a good idea... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SQLite setup
Creating 400 reconds should take no more than a few seconds if you bracket using transactions. It won't overload the system by any stretch of the imagination. Whether to go with the asset or create the database on-the-fly should depend on your app, but either way is fine. On Jan 3, 11:49 am, Pedro Duque pmdu...@gmail.com wrote: Hi, I need to use a SQLite database in my app (eventually create a Content Provider) but I'm not really sure how to setup that database. All examples I saw, the database is created on the fly by issuing a SQL command on the event onCreate of SQLiteOpenHelper and populating it. I need to feed the database with almost 400 records to start but it seems too messy to create a 29Kb string to populate the database. Isn't there a more elegant way to do it that won't overload the system (I tried to create a resource with that string...). Any thoughts? Thanks, Pedro Duque -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add labels above this table layout
On Sun, Jan 2, 2011 at 9:24 PM, pramod.deore deore.pramo...@gmail.comwrote: As Mark said I had made changes in xml file but still it shows labels at each row. I only want that labels are visible at the top of list. What does it shows labels at each row mean? Can you post a screenshot of what is happening and clearly explain why it's wrong? - 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] about Android apps automatically update
On Sun, Jan 2, 2011 at 9:58 PM, Kenneth WON kenneth...@gmail.com wrote: Or do nothing and launch the app in market, and if the mobile device is Android 2.2 or above, then I can choose automatically update, is that right? That is right. This is not something you control. - 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: SQLite setup
I've read about prepopulting the database and looked good to me but I got worried about database upgrades... On 3 de Jan de 2011, at 04:20, Zsolt Vasvari zvasv...@gmail.com wrote: Creating 400 reconds should take no more than a few seconds if you bracket using transactions. It won't overload the system by any stretch of the imagination. Whether to go with the asset or create the database on-the-fly should depend on your app, but either way is fine. On Jan 3, 11:49 am, Pedro Duque pmdu...@gmail.com wrote: Hi, I need to use a SQLite database in my app (eventually create a Content Provider) but I'm not really sure how to setup that database. All examples I saw, the database is created on the fly by issuing a SQL command on the event onCreate of SQLiteOpenHelper and populating it. I need to feed the database with almost 400 records to start but it seems too messy to create a 29Kb string to populate the database. Isn't there a more elegant way to do it that won't overload the system (I tried to create a resource with that string...). Any thoughts? Thanks, Pedro Duque -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to add labels above this table layout
ThanksTreKing, Actually I can't sent screenshot to you because I can't access gmail therefore can't attached screenshot. But it look like this: RoomName SwitchName StarttDate StartTime HallTube2011-1-1 11.00 RoomName SwitchName StarttDate StartTime BedroomFan2011-1-1 11.30 RoomName SwitchName StarttDate StartTime Kitchen AC2011-1-1 12.00 And what I want is RoomName SwitchName StarttDate StartTime HallTube2011-1-1 11.00 BedroomFan2011-1-1 11.30 Kitchen AC2011-1-1 12.00 ope you understand what I mean. On Jan 3, 9:47 am, TreKing treking...@gmail.com wrote: On Sun, Jan 2, 2011 at 9:24 PM, pramod.deore deore.pramo...@gmail.comwrote: As Mark said I had made changes in xml file but still it shows labels at each row. I only want that labels are visible at the top of list. What does it shows labels at each row mean? Can you post a screenshot of what is happening and clearly explain why it's wrong? - 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: SQLite setup
On Mon, Jan 3, 2011 at 1:50 PM, Pedro Duque pmdu...@gmail.com wrote: I've read about prepopulting the database and looked good to me but I got worried about database upgrades... No easy way to do upgrades. Check version on startup and download if newer version is available is probably your best bet. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SQLite setup
But be wary of the 1MB gotcha -- if the file is over 1MB you need to name it .jpg or some such to prevent compression. On Jan 2, 9:55 pm, Sarwar Erfan erfanonl...@gmail.com wrote: Put your pre-created and pre-populated database in assets. Then, copy to proper place in the first run (or when the db is not found where it was supposed to be copied. This link helped me:http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-and... There are other examples available, try googling. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to add labels above this table layout
On Sun, Jan 2, 2011 at 10:53 PM, pramod.deore deore.pramo...@gmail.comwrote: ope you understand what I mean. That clears it up. The Layout looks fine, so my guess is the code you're using to populate the list is including the titles. Double check that. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to add labels above this table layout
But I didn't find anything wrong in code . here ia my code which populate the list public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { sampleDB = this.openOrCreateDatabase(SAMPLE_DBNAME, MODE_PRIVATE, null); System.out.println (Inside try...); c = sampleDB.rawQuery (SELECT _id,RoomName, SwitchName,StartDate,TotalTime,StopDate,TotalStopTime FROM SchedulerTable ORDER BY StartDate,null); System.out.println (c.getCount()+); startManagingCursor(c); String[] columns = new String[] {RoomName, SwitchName,StartDate,TotalTime,StopDate,TotalStopTime}; int[] names = new int[] {R.id.roomName, R.id.switchName,R.id.startDate,R.id.totalTime,R.id.stopDate,R.id.totalStopTime}; myAdapter = new SimpleCursorAdapter(this, R.layout.showscheduler, c, columns,names); setListAdapter(myAdapter); } catch (SQLiteException se) { se.printStackTrace(); } } On Jan 3, 10:25 am, TreKing treking...@gmail.com wrote: On Sun, Jan 2, 2011 at 10:53 PM, pramod.deore deore.pramo...@gmail.comwrote: ope you understand what I mean. That clears it up. The Layout looks fine, so my guess is the code you're using to populate the list is including the titles. Double check that. - 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] UnknownFormatConversionException for resource strings for different locale
Thanks for reply Kostya. It seems, that problem was with the chinese translation. Now its working fine.I dont know the use of double quotes here, but this was translated string which I kept there. Anyways, now its working fine. Thanks again. 2011/1/2 Kostya Vasilyev kmans...@gmail.com It looks like Android is interpreting the Chinese character as a conversion specifier (like s is for String, d is for decimal, etc.). Try adding a space after the s in %1$s. Also make sure the s is a good and proper ASCII character. Also the double-quotes that you've placed around the string value are not necessary, is that a typo? -- Kostya 02.01.2011 12:55, Suresh Pal пишет: Hi All, I am stuck with some resource localization problem. I have a string in my default locale as follows: string name=msg_success_fail %1$s successful, %2$s failed./ string and similarly I have a resource with same name for chinese language as follows,: string name=msg_success_fail msgid=5553338716725484736%1$s成功, %2$s失败。/string My problem is that for the chinese string its giving following exeception at run time: 12-31 03:11:50.423 3326 3334 E AndroidRuntime: FATAL EXCEPTION: Notification Update Thread 12-31 03:11:50.423 3326 3334 E AndroidRuntime: java.util.UnknownFormatConversionException: Conversion is '成' 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.util.Formatter$Transformer.transform(Formatter.java:1438) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.util.Formatter.doFormat(Formatter.java:1082) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.util.Formatter.format(Formatter.java:994) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at java.lang.String.format(String.java:2254) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at android.content.res.Resources.getString(Resources.java:283) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at android.content.Context.getString(Context.java:195) 12-31 03:11:50.423 3326 3334 E AndroidRuntime: at I am not able to understand what is the reason for it. Is the resource string for chinese language not proper or there is something else which i need to take care of? Please help me in this regard. -- 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 -- Best Wishes, Suresh Pal *Skype: *suresh.pal *Gtalk:*sapient.suresh *Facebook:* http://www.facebook.com/people/Suresh-Chandra-Pal/676583036 *LinkedIn: * http://www.linkedin.com/in/sapientsuresh *Blogs: * http://www.sapientsuresh.blogspot.com *Twitter: *http://twitter.com/sapientsuresh *Google Profile: *http://www.google.com/profiles/sapient.suresh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Building a Custom Browser
((bangs head on keyboard)). I've been trying to convince people that an incomplete font is BROKEN and not worthy of shipping with a system for 20 years. And I've spent way too much time mixing and matching incomplete fonts trying to get a complete font. I going nuts right now because for some reason, since the last time I edited the Japanese version of my strings.xml, Japanese text started showing up in Eclipse as square boxes. At first I tried using MS Mincho for everything, but it really isn't very readable for non- Japanese characters. I have managed to get it working again by downloading the Japanese localized messages for Windows 7, but that really should not be necessary. The FONT doesn't take up a lot of space, but all that localized text (which I probably will never use) does take up a lot of space. Given what you're trying to do, I don't have a better idea (other than submitting it as a bug and encouraging people to vote for it -- I'd be the first in line!). The existing browser is broken (by the broken platform fonts). You're supplying a fixed version. Of course, if you have a set of publicly-distributable unicode fonts you can contribute to the platform, maybe you can convince them to make it a required part of the platform. But for your immediate needs -- I think you're going to need to treat this as a porting project, rather than an SDK project, as you'll be working with platform sources that aren't set up to build against the SDK. You'll need to ask questions about getting it built on the porting list. You'll also need to change the package name, as you won't be able to install it as a replacement (because of the different signing key). Given the size of the Indian and other Asian markets, supporting Tamil, Telegu, etc seems like a real easy decision to make. And given that free translation services are readily available, anyone, anywhere, at any time, may find themselves looking at some Tamil text, recognize it as at least being foreign, and send it off to be translated. Nobody, anywhere, anytime, wants to see perfectly good human-readable text rendered as blank rectangles! Tamil is much prettier to look at. On Jan 2, 3:50 pm, Pathman suthars...@gmail.com wrote: The goal of my new web browser is to render web pages in different fonts that have more unicode implementations than the ones that are already supplied with the firmware/OS (For example languages like Tamil, Telugu, Malayalam, Kannada, etc etc implimentations doesn't come standard with android OS fonts) this makes it impossible for users to view websites in those languages. Yes this could be a contribution to the standard OS, but it is hard to convince anybody that ALL the people who use Android OS should have ALL the unicode implementations of EVERY language in the world. Therefore I believe this app should be standalone so that those who needs it can download it separate. Yes I already have an app in the android market (named Tamil Browser) that was built around the webView. But the features of this browser is limited. But the biggest problem with this app is I cannot make my trick work for websites that use iFrames. I don't want re-invent the wheel and write the whole browser app from scratch either. So I still believe copying the standard browser app and make a new standalone browser is my best bet. Does anybody have a better idea how I can do this? On Dec 28 2010, 11:28 pm, Bob Kerns r...@acm.org wrote: Or, depending on what new features you want, perhaps you can build your new browser around WebView. On Dec 28, 6:17 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 26, 2010 at 11:18 PM,Pathmansuthars...@gmail.com wrote: I want to create an android application that is a customized version of the standard browser app (My new browser will have some cool new features than the standard one). So basically I just want to copy the standard android source from the android root/packages/apps/browser folder, rename it and create my Eclipse Project for the new app, before I start modifying it. You forgot about all the other work. But it doesn't look like I am in the right track because Eclipse complains of tons of errors right after I have Created the project from source That would be all the other work. That application is not an SDK application, but is part of the firmware. Questions are: 1. Am I on the right track or is there something else I am missing? (I know how to do a basic android app and I have some of my apps in the android market) I would consider it to be the wrong track. 2. If I am on the right track, what I am supposed to do to resolve the errors (mainly missing resources, classes etc). If I am not on the right track what are the other options I have. Write a browser app from scratch. Or, contribute your changes as patches to an open source browser app. Or, contribute your
[android-developers] Checking
Hi All, 1.we want download the licensed apk from the android market. Our apk should connect to our own server. Our server should connect to the android Licensing server and verfied the user is licensed or not. 2.Response back to our server and our server response to mobile client. Request:- 1. mobileclient.apk -- Our Server- Google licensing Server Response:- 2. Google licensing Server --- Our Server --- mobileclient.apk Whether it is possible or not, Please suggest. Thanks Regards, Revanth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Reusing BitmapDrawable objects
Look into bitmap mutations? http://developer.android.com/resources/articles/drawable-mutations.html On Dec 31 2010, 11:22 pm, John Gaby jg...@gabysoft.com wrote: I have custom skinned buttons. I set the bitmaps for the button backgrounds using the addState method of the StateListDrawable class and pass in a BitmapDrawable which is loaded from a file on the SD card. Now I am having out of memory issues, so I thought that I would try and cache the BitmapDrawable and reuse them for all the buttons on a page, rather than creating a new one for each button. However, when I do this, the buttons don't display correctly. For example if I have two buttons of different sizes, the background is drawn at the same size for both, rather than have each scale. Also, if one button on the page is hidden, then the backgrounds for some of the other (still visible) buttons disappear. This does not happen if I create separate BitmapDrawable objects for each of the buttons. My question is, am I supposed to be able to reuse these objects in this manner? If not, how can I keep from duplicating the memory required to skin each button on a page? 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] about Android apps automatically update
And it actually has nothing to do with the platform version, but just the version of Market on the device. As of 1.6 the Market app can self-update itself, so users should generally be running the most recent version of Market (which supports automatic updates) regardless of the version of their platform. On Sun, Jan 2, 2011 at 8:48 PM, TreKing treking...@gmail.com wrote: On Sun, Jan 2, 2011 at 9:58 PM, Kenneth WON kenneth...@gmail.com wrote: Or do nothing and launch the app in market, and if the mobile device is Android 2.2 or above, then I can choose automatically update, is that right? That is right. This is not something you control. - 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Eclipse never sees AVDs anymore
On Jan 2, 8:00 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley kbwi...@gmail.com wrote: It's frustrating to have to manually launch the AVD now. I certainly did not have to do this before. I'm running Eclipse Helios, with ADT 8.0.1.v201012061207-82219. Any ideas? Unplug your phone. If the phone is plugged in, it only shows AVDs with the same or higher Android version as your phone. Not sure why someone thought this is a good idea... Turns out you're both right and wrong. Unplugging the phone did make the AVDs appear. However, no AVDs appeared at all with the phone plugged in, which is only 1.6. Apparently Eclipse won't show any AVDs at all regardless of version if the phone is plugged in. Nevertheless, you did solve the problem for me. 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: Eclipse never sees AVDs anymore
On Jan 2, 8:00 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley kbwi...@gmail.com wrote: It's frustrating to have to manually launch the AVD now. I certainly did not have to do this before. I'm running Eclipse Helios, with ADT 8.0.1.v201012061207-82219. Any ideas? Unplug your phone. If the phone is plugged in, it only shows AVDs with the same or higher Android version as your phone. Not sure why someone thought this is a good idea... Turns out you're both right and wrong. Unplugging the phone did make the AVDs appear. However, no AVDs appeared at all with the phone plugged in, which is only 1.6. Apparently Eclipse won't show any AVDs at all regardless of version if the phone is plugged in. Nevertheless, you did solve the problem for me. 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: Eclipse never sees AVDs anymore
On Jan 2, 8:00 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley kbwi...@gmail.com wrote: It's frustrating to have to manually launch the AVD now. I certainly did not have to do this before. I'm running Eclipse Helios, with ADT 8.0.1.v201012061207-82219. Any ideas? Unplug your phone. If the phone is plugged in, it only shows AVDs with the same or higher Android version as your phone. Not sure why someone thought this is a good idea... Turns out you're both right and wrong. Unplugging the phone did make the AVDs appear. However, no AVDs appeared at all with the phone plugged in, which is only 1.6. Apparently Eclipse won't show any AVDs at all regardless of version if the phone is plugged in. Nevertheless, you did solve the problem for me. 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: Eclipse never sees AVDs anymore
On Jan 2, 8:00 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley kbwi...@gmail.com wrote: It's frustrating to have to manually launch the AVD now. I certainly did not have to do this before. I'm running Eclipse Helios, with ADT 8.0.1.v201012061207-82219. Any ideas? Unplug your phone. If the phone is plugged in, it only shows AVDs with the same or higher Android version as your phone. Not sure why someone thought this is a good idea... You're both right and wrong. Unplugging the phone did indeed make the AVDs appear. However, while the phone was plugged in, no AVDs appeared, regardless of version. My phone is only 1.6. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en