[android-developers] How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?

2011-01-02 Thread Armond Avanes
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 wi

[android-developers] UnknownFormatConversionException for resource strings for different locale

2011-01-02 Thread Suresh Pal
Hi All, I am stuck with some resource localization problem. I have a string in my default locale as follows: %1$s successful, %2$s failed. and similarly I have a resource with same name for chinese language as follows,: "%1$s成功, %2$s失败。" My problem is that for the chinese string its giving fol

Re: [android-developers] UnknownFormatConversionException for resource strings for different locale

2011-01-02 Thread Kostya Vasilyev
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 s

Re: [android-developers] yahoo local search xml reply in android

2011-01-02 Thread zeeshan mirza
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 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

[android-developers] zoom and drag code registering but not actually working...

2011-01-02 Thread Stephen Pengilley
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 t

[android-developers] Re: How many refunds do you get.

2011-01-02 Thread Phil Endecott
On Jan 1, 8:14 pm, brian purgert 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

[android-developers] Re: uninstall TTS data from Android >= 1.6 ?

2011-01-02 Thread JP
On Dec 31 2010, 7:56 am, DulcetTone 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 deletio

[android-developers] Re: Memory Leak in 1.6

2011-01-02 Thread Prateek Jain
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 wrote: > I seem to have a memory leak when running under version 1.6 of the > OS.  I have a custom view group which

[android-developers] Re: Screen Rotation

2011-01-02 Thread Prateek Jain
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 lin

[android-developers] Re: Android 2.3 SDK Emulator is very slow

2011-01-02 Thread Alexei 'keyhell' Zhurba
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@g

[android-developers]

2011-01-02 Thread BASU PETLUR
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit

[android-developers] Making my app a library, resource problems

2011-01-02 Thread John Lussmyer
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 th

[android-developers] Re: Making my app a library, resource problems

2011-01-02 Thread John Lussmyer
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

[android-developers] Re: is there any htc & mototola specific emulator to test apps?

2011-01-02 Thread JP
On Jan 1, 11:03 am, Kostya Vasilyev 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

[android-developers] Does SoftReference calls .recyle() on a Bitmap ?

2011-01-02 Thread Tabman
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 Googl

[android-developers] Re: How many refunds do you get.

2011-01-02 Thread ernestw
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

[android-developers] Re: How many refunds do you get.

2011-01-02 Thread ernestw
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.w

Re: [android-developers] Does SoftReference calls .recyle() on a Bitmap ?

2011-01-02 Thread Dianne Hackborn
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 a

[android-developers] 15 minute refund did not work

2011-01-02 Thread stymie
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 Devel

[android-developers] Re: Android 2.3 SDK Emulator is very slow

2011-01-02 Thread jtoolsdev
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 wi

[android-developers] Eclipse ADT update ruins XML layout files development

2011-01-02 Thread sisko
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 woul

[android-developers] AudioTrack.write blocks in multi-threaded app

2011-01-02 Thread Andrey
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

[android-developers] Purpose of AsyncTask.get()

2011-01-02 Thread Joan Pujol
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). Als

[android-developers] Re: How many refunds do you get.

2011-01-02 Thread Phil Endecott
Hi Ernest, On Jan 2, 7:25 pm, ernestw 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" t

[android-developers] Eclipse never sees AVDs anymore

2011-01-02 Thread Keith Wiley
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 simp

[android-developers] Creating complex queries for SQLite

2011-01-02 Thread Luca Carlon
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.provider

[android-developers] Looking for assistance submitting a bug fix

2011-01-02 Thread levis501
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

[android-developers] Re: How many refunds do you get.

2011-01-02 Thread Thecoolbrian
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

[android-developers] Re: Building a Custom Browser

2011-01-02 Thread Pathman
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 f

Re: [android-developers] Purpose of AsyncTask.get()

2011-01-02 Thread TreKing
On Sun, Jan 2, 2011 at 4:12 PM, Joan Pujol 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 th

[android-developers] Re: my problems with point sprites

2011-01-02 Thread Poldie
On Jan 2, 12:46 am, Poldie 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 con

[android-developers] Re: Intent Filter for Media Player (Youtube Video Play)

2011-01-02 Thread Leif Andersen
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 wrote: > On Mon, Dec 20, 2010 at 2:04 AM, sjor wrote: >

[android-developers] Help using SQLite as a method for storing and loading precets

2011-01-02 Thread Tyrel
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 h

[android-developers] Unable to run DDMS, failed to get adb version

2011-01-02 Thread John Lussmyer
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\tools>ddms 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 specif

[android-developers] Samsung Galaxy Player

2011-01-02 Thread Zsolt Vasvari
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 a

[android-developers] Re: Creating complex queries for SQLite

2011-01-02 Thread Zsolt Vasvari
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 wrote: > Hi! I'm using the Android's media library intensively, and I was > asking myself whether it is possible

[android-developers] Re: Memory Leak in 1.6

2011-01-02 Thread John Gaby
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 re

[android-developers] Re: Eclipse ADT update ruins XML layout files development

2011-01-02 Thread sisko
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 wrote: > I recently updated my e

[android-developers] Re: How to add labels above this table layout

2011-01-02 Thread pramod.deore
> 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

[android-developers] Re: Creating complex queries for SQLite

2011-01-02 Thread Sarwar Erfan
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 r

[android-developers] SQLite setup

2011-01-02 Thread Pedro Duque
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 th

[android-developers] Re: SQLite setup

2011-01-02 Thread Sarwar Erfan
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 exa

[android-developers] about Android apps automatically update

2011-01-02 Thread Kenneth WON
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 re

Re: [android-developers] Eclipse never sees AVDs anymore

2011-01-02 Thread Nikolay Elenkov
On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley 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

Re: [android-developers] Eclipse never sees AVDs anymore

2011-01-02 Thread brian purgert
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" wrote: > > On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley wrote: > > > > > It's frustrating to have to manually launch the AVD now. I certainly > > did not have to do t

[android-developers] Re: SQLite setup

2011-01-02 Thread Zsolt Vasvari
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,

Re: [android-developers] Re: How to add labels above this table layout

2011-01-02 Thread TreKing
On Sun, Jan 2, 2011 at 9:24 PM, pramod.deore wrote: > 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 cle

Re: [android-developers] about Android apps automatically update

2011-01-02 Thread TreKing
On Sun, Jan 2, 2011 at 9:58 PM, Kenneth WON 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. -

Re: [android-developers] Re: SQLite setup

2011-01-02 Thread Pedro Duque
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 wrote: > Creating 400 reconds should take no more than a few seconds if you > bracket using transactions. It won't overload the system by an

[android-developers] Re: How to add labels above this table layout

2011-01-02 Thread pramod.deore
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 Start

Re: [android-developers] Re: SQLite setup

2011-01-02 Thread Nikolay Elenkov
On Mon, Jan 3, 2011 at 1:50 PM, Pedro Duque 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. -- Yo

[android-developers] Re: SQLite setup

2011-01-02 Thread DanH
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 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

Re: [android-developers] Re: How to add labels above this table layout

2011-01-02 Thread TreKing
On Sun, Jan 2, 2011 at 10:53 PM, pramod.deore wrote: > 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.

[android-developers] Re: How to add labels above this table layout

2011-01-02 Thread pramod.deore
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);

Re: [android-developers] UnknownFormatConversionException for resource strings for different locale

2011-01-02 Thread Suresh Chandra Pal
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 > It looks like Android is in

[android-developers] Re: Building a Custom Browser

2011-01-02 Thread Bob Kerns
((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 rea

[android-developers] Checking

2011-01-02 Thread revanth
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:-

[android-developers] Re: Reusing BitmapDrawable objects

2011-01-02 Thread Doug
Look into bitmap mutations? http://developer.android.com/resources/articles/drawable-mutations.html On Dec 31 2010, 11:22 pm, John Gaby 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

Re: [android-developers] about Android apps automatically update

2011-01-02 Thread Dianne Hackborn
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 p

[android-developers] Re: Eclipse never sees AVDs anymore

2011-01-02 Thread Keith Wiley
On Jan 2, 8:00 pm, Nikolay Elenkov wrote: > On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley 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? > >

[android-developers] Re: Eclipse never sees AVDs anymore

2011-01-02 Thread Keith Wiley
On Jan 2, 8:00 pm, Nikolay Elenkov wrote: > On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley 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? > >

[android-developers] Re: Eclipse never sees AVDs anymore

2011-01-02 Thread Keith Wiley
On Jan 2, 8:00 pm, Nikolay Elenkov wrote: > On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley 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? > >

[android-developers] Re: Eclipse never sees AVDs anymore

2011-01-02 Thread Keith Wiley
On Jan 2, 8:00 pm, Nikolay Elenkov wrote: > On Mon, Jan 3, 2011 at 8:18 AM, Keith Wiley 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? > >