Re: [android-developers] Device Seeding Program for Top Android Market Developers

2010-07-24 Thread Webnet Android
Lol :) Looks like regular spam / hoax - "top developer"with just 5k downloads and 3,5 (and note this "half") rating? Sure :) Not to mention such offer would make no much sense. But it seem to always work - "you just won ." and people get so excited they stop thinking reasonably. Oh and there

Re: [android-developers] Re: Scanning a Text File In Android

2010-07-24 Thread anil kukreti
Ya Thanks I 'm right now googling for parsing regex in java. Then I will implement the same on Android. By parsing a text file and later image file, I mean if theres' any phone no in file ,, the android application can call it. On Sun, Jul 25, 2010 at 10:49 AM, Maps.Huge.Info (Maps API Guru) <

[android-developers] Application works after reboot the phone

2010-07-24 Thread mike
hi guys, i have found out a strange behavior. My application works only after phone reboots. after rebooting the phone first time application works fine. from there onwards it's not working. any ideas?? regards, Mike -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Android to iPhone

2010-07-24 Thread Kumar Bibek
> considered a code generator. Hahahaha, I don't think there is any tool yet. Never heard of such a thing. -Kumar Bibek http://tech-droid.blogspot.com On Jul 25, 10:02 am, "Maps.Huge.Info (Maps API Guru)" wrote: > Oddly enough, such a thing would violate the iOS terms as it would be > considere

[android-developers] Re: Scanning a Text File In Android

2010-07-24 Thread Maps.Huge.Info (Maps API Guru)
Maybe he means java.util.regex I suggest Googling that. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to an

Re: [android-developers] Scanning a Text File In Android

2010-07-24 Thread TreKing
On Sat, Jul 24, 2010 at 10:01 PM, Incredible wrote: > Could anyone point me to a link where I can more information regarding > Scanning a Text File in Android. > What does "Scanning a Text File in Android" mean?

[android-developers] Re: Android as Desktop OS

2010-07-24 Thread Bala
Android is a very innovative concept; the architecture, framework and the programming model has been robust and developer friendly. Android has been an ideal platform for smaller devices and embedded systems. But there has been a growing demand for devices like iPad. To meet that demand, Google ha

[android-developers] Re: Android to iPhone

2010-07-24 Thread Maps.Huge.Info (Maps API Guru)
Oddly enough, such a thing would violate the iOS terms as it would be considered a code generator. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To uns

Re: [android-developers] geoCoder: getFromLocationName ?

2010-07-24 Thread TreKing
On Sat, Jul 24, 2010 at 4:27 PM, coy wrote: > How do I do that? > Search the web, parse the results? > I tried this: > > adresses = geoCoder.getFromLocationName addresses = ( > "Pizza in San Francisco, CA, United States", 5); > > but does not work. > The function is "getFromLocationName'" not

Re: [android-developers] Re: How to update pre-installed apps

2010-07-24 Thread TreKing
On Sat, Jul 24, 2010 at 4:14 PM, Joseph Earl wrote: > If it's possible, please give the user an option to remove the program > if they want, since it's well... kind of their phone and I think users > (quite rightly) expect a degree of control. > Some of the apps that come with phones I love and us

Re: [android-developers] Changing the content of an activity runtime

2010-07-24 Thread TreKing
On Sat, Jul 24, 2010 at 12:07 PM, Webnet Android wrote: > For some odd reasons I managed to forgot onSaveInstanceState() > / onRestoreInstanceState() methods available for that purpose. > Well this wouldn't really apply to the OP's situation as they're trying to retain state in the same activity

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread Streets Of Boston
Set BitmapFactory.Options.inSampleSize to a value larger than 1 (preferably to a power of 2). BTW: This info about decoding is all in the online java-doc... :) On Jul 24, 11:14 pm, Agus wrote: > Is it possible to scale the outputted bitmap while decoding the stream > in one step? > I don't go wi

[android-developers] Re: Android to iPhone

2010-07-24 Thread Siva G
May not be totally automated. But atleast not to the level of rewriting from scratch. Anything out there? On Jul 24, 11:42 pm, Agus wrote: > Do you mean automatic conversion? I have never seen a tool that can do that > yet. > > On Sat, Jul 24, 2010 at 8:32 PM, Siva G wrote: > > Has anyone tried

[android-developers] Wrapping content of a TableRow

2010-07-24 Thread Chris Stewart
I'm adding TableRow objects to my view dynamically based upon how many items are in a collection I've loaded. Everything loads fine and works nearly as expected. The one issue I'm having is that the text does not wrap if it's too long for the screen, but instead goes off the side. Can anyone tak

Re: [android-developers] Android to iPhone

2010-07-24 Thread Agus
Do you mean automatic conversion? I have never seen a tool that can do that yet. On Sat, Jul 24, 2010 at 8:32 PM, Siva G wrote: > Has anyone tried to convert an android app to iPhone iOS? Is that even > possible? > > -- > You received this message because you are subscribed to the Google > Groups

[android-developers] Android to iPhone

2010-07-24 Thread Siva G
Has anyone tried to convert an android app to iPhone iOS? Is that even possible? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send e

[android-developers] Re: Regarding the new BackupManager

2010-07-24 Thread uday
Thanks for the response DH... Let me explain clearly.. The application will register with Android Backup service with the application package name. For doing Data Backup Backup Transport is must...Do u agree on this?? 1) If the Android device manufacturer doesn't provided any Backup Transport.. t

Re: [android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread Agus
Is it possible to scale the outputted bitmap while decoding the stream in one step? I don't go with a two-step process. On Sat, Jul 24, 2010 at 8:02 PM, DanH wrote: > inJustDecodeBounds in BitmapFactory.Options. > > On Jul 24, 9:37 pm, Agus wrote: >> Sorry for going slightly off-topic, how do I

[android-developers] NDK OpenGL - Mixing Java and Native (C) calls to OpenGL API?

2010-07-24 Thread SChaser
I would like to be able to use the OpenGL API from both Java and C (via NDK). In Java, there is a GL object passed, which has all GL methods on it. In C, you just talk to the native library. In a single onDrawFrame callback (for which Java is passed a GL), can I use methods on the GL object, and

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
inJustDecodeBounds in BitmapFactory.Options. On Jul 24, 9:37 pm, Agus wrote: > Sorry for going slightly off-topic, how do I determine the dimension > of the picked gallery image without reading it first using > DecodeBitmap.decodeStream(InputStream) method ? > I am decoding the original image whi

[android-developers] Scanning a Text File In Android

2010-07-24 Thread Incredible
Hi Could anyone point me to a link where I can more information regarding Scanning a Text File in Android. - Thanks and Regards Anil Kukreti -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

Re: [android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread Agus
Sorry for going slightly off-topic, how do I determine the dimension of the picked gallery image without reading it first using DecodeBitmap.decodeStream(InputStream) method ? I am decoding the original image which causes OutOfMemory error frequently. On Sat, Jul 24, 2010 at 3:47 PM, DanH wrote:

[android-developers] Re: Storing data on the SD card in Froyo - files deleted when upgrading

2010-07-24 Thread john
If you're using API Level 8 or greater, use getExternalFilesDir(null) to save a File. It will be deleted when you upgrade to a newer version. On 7月25日, 上午3時57分, Dianne Hackborn wrote: > Ergh...  that may be a bug. :(  To be clear, when doing the update your > internal data is not being erased, b

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread William Ferguson
So where does this leave those of us who are outside the half dozen countries that can't *sell* apps on the market? I had hoped to provide a free crippled version on the market, and provide a paid unlock key from another site. Is my crippled app allowed or disallowed under the market rules? On J

Re: [android-developers] Re: Pulling specific information from XML files quickly

2010-07-24 Thread Mark Murphy
On Sat, Jul 24, 2010 at 8:03 AM, Capt Spaghetti wrote: > Mark, > >   It just occurred to me that your second option "have your smarter > server generate a SQLite database that you download periodically and > use locally on the device." might be just the approach I need. I could > generate 50 seper

[android-developers] Re: Did selected tab background colors change in 2.1 ?

2010-07-24 Thread Joseph Earl
Or you could import the desired images into your own drawables folder and manually set the tab background to your own ones. On Jul 25, 12:02 am, Joseph Earl wrote: > I am not talking about the tab icon - the tab background is defined as > a few different images, e.g: > > android-sdk/platforms/and

[android-developers] Re: Problem: Long running AsyncTask with reference to Activity

2010-07-24 Thread Zsolt Vasvari
You can use a class like this that attaches/detaches the Activity. This is not my invention, but I cannot find the original thread: import android.os.AsyncTask; /** * Android's ASyncTask is very useful, but using a background thread can be though in the context of the Activity * lifecycle, a

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread Zsolt Vasvari
Has the return policy gone from 1 to 2 days now, or has it always been worded like that? On Jul 25, 4:47 am, sblantipodi wrote: > what do you mean for same validation process for both versions? > > On Jul 24, 10:16 pm, Pent wrote: > > > > > > ok... but how do you do? > > > do you put your full u

[android-developers] Re: with Android 2.2, SD card file directory list now in reverse alphabetical order?

2010-07-24 Thread Zsolt Vasvari
The easiest way to sort and work with files in general is the Commons IO API: http://commons.apache.org/io/ On Jul 25, 6:56 am, greg wrote: > Thanks Tom.  I'll add the explicit sort. > > - greg > > On Jul 24, 6:19 pm, Tom Gibara wrote: > > > > > From the Sun/Oracle javadocs: > > > There is no g

[android-developers] Re: Is it possible for my Activity to be notified when the external storage state changes?

2010-07-24 Thread Joseph Earl
Awesome, that should speed up my implementation a bit. Thank you very much. On Jul 24, 11:57 pm, David Toledo wrote: > Hi Joseph > > I hope it help you. Example for review the status from SD Card > >     if (android.os.Environment.MEDIA_MOUNTED.equals("mounted")) >         { >         } >        

[android-developers] Re: How to update pre-installed apps

2010-07-24 Thread Zsolt Vasvari
I think there may be more than technical reasons at work here, but I agree, stock Android should allow removing built-in apps, with the exception of the Market itself. For example, I use GMail and never use the "normal" E-Mail client, but I have to look at its icon every time I search for an app.

[android-developers] Re: Did selected tab background colors change in 2.1 ?

2010-07-24 Thread Joseph Earl
I am not talking about the tab icon - the tab background is defined as a few different images, e.g: android-sdk/platforms/android-4/data/res/drawable-mdpi/tab_focus.9.png These files can change between versions and carrier implementations, so if you want something constant you'll have to define i

Re: [android-developers] Re: Is it possible for my Activity to be notified when the external storage state changes?

2010-07-24 Thread David Toledo
Hi Joseph I hope it help you. Example for review the status from SD Card if (android.os.Environment.MEDIA_MOUNTED.equals("mounted")) { } else if (android.os.Environment.MEDIA_MOUNTED.equals("unmounted")) { } else if (android.os.Environment.MEDIA

[android-developers] Re: with Android 2.2, SD card file directory list now in reverse alphabetical order?

2010-07-24 Thread greg
Thanks Tom. I'll add the explicit sort. - greg On Jul 24, 6:19 pm, Tom Gibara wrote: > From the Sun/Oracle javadocs: > > There is no guarantee that the name strings in the resulting array will > > > appear in any specific order; they are not, in particular, guaranteed to > > appear in alphabeti

Re: [android-developers] Device Seeding Program for Top Android Market Developers

2010-07-24 Thread TreKing
Just got this as well and was wondering the same thing ... sounds a little too good to be true. Larry wrote: >Dear all, > >I just received an email about Device Seeding Program for Top Android >Market Developers: > >Subject: Device Seeding Program for Top Android Market Developers >From: androi

[android-developers] Re: What is a WeakReference?

2010-07-24 Thread DanH
Yeah, a weak reference is fair game as soon as there are no "strong" references to the object. A soft reference is kept until it's "aged" a little. Different platforms have different algorithms for "aging out" soft references, but the idea is to let them persist for a few GC cycles at least. On

[android-developers] Re: Did selected tab background colors change in 2.1 ?

2010-07-24 Thread GJTorikian
If I'm reading your response correctly, this has nothing to do with the drawables/tab icon. I am talking about the background color of a selected tab. On Jul 24, 12:26 pm, Joseph Earl wrote: > Quite possibly. > You should import the desired drawables from the SDK/platforms folder > into your own

[android-developers] Re: Is it possible for my Activity to be notified when the external storage state changes?

2010-07-24 Thread Joseph Earl
Cheers On Jul 24, 11:25 pm, Streets Of Boston wrote: > Search for "ACTION_MEDIA_EJECT" on this forum. > > On Jul 24, 1:02 pm, Joseph Earl wrote: > > > I would like my Activity to be informed when the SD card is removed, > > since it relies on files from the SD card (to keep apk size down) but >

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-24 Thread DanH
Did you put quotes around the string? If SQLite sees an un-quoted string it's going to interpret it as numeric if possible. SQLite ignores the data type of columns. On Jul 24, 5:12 pm, Federico Paolinelli wrote: > I spent a lot of time on this. > > I was trying to store an incoming call number

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
Yeah, I was assuming that the space for the bitmap is allocated in Java heap, without thinking that many phones allocate graphics separately. Obviously, if the bitmap is allocated outside of the Java heap then freeMemory() does you zero good. But my point was that freeMemory() only returns the amo

[android-developers] Re: Storing data on the SD card in Froyo - files deleted when upgrading

2010-07-24 Thread Joseph Earl
Absolutely. Things like my preferences and my DB are fine. But since 2.2 if my large files are stored in the recommended directory (from what I remember something like .../Android/data/ packagename/) then when I install a new version (currently I've only tried through ADB and side-loading, NOT ma

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
"ARGB_ uses 32 bits (4 bytes), not 64 bits." -- Yep, brain fart. On Jul 24, 5:20 pm, Streets Of Boston wrote: > First a small correction on DanH's reply, ARGB_ uses 32 bits (4 > bytes), not 64 bits. > > The memory used by a Bitmap is roughly Width*Height*Depth bytes. (e.g. > a 1MPixel im

[android-developers] Re: Is it possible for my Activity to be notified when the external storage state changes?

2010-07-24 Thread Streets Of Boston
Search for "ACTION_MEDIA_EJECT" on this forum. On Jul 24, 1:02 pm, Joseph Earl wrote: > I would like my Activity to be informed when the SD card is removed, > since it relies on files from the SD card (to keep apk size down) but > for compatibility reasons is not targeted at Froyo. > > I'd like t

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread Streets Of Boston
First a small correction on DanH's reply, ARGB_ uses 32 bits (4 bytes), not 64 bits. The memory used by a Bitmap is roughly Width*Height*Depth bytes. (e.g. a 1MPixel image in RGB_565 uses 2MByte of memory). I say roughly, because the Bitmap object itself, holding the raw data, occupies a few b

Re: [android-developers] with Android 2.2, SD card file directory list now in reverse alphabetical order?

2010-07-24 Thread Tom Gibara
>From the Sun/Oracle javadocs: There is no guarantee that the name strings in the resulting array will > appear in any specific order; they are not, in particular, guaranteed to > appear in alphabetical order. Tom. -- Tom Gibara email: m...@tomgibara.com web: http://www.tomgibara.com blog: htt

[android-developers] Weird sqlite behaviour. Can somebody explain?

2010-07-24 Thread Federico Paolinelli
I spent a lot of time on this. I was trying to store an incoming call number in sqlite. I'm in Italy, so the number was something like +39123123. What happened was that after putting and removing it from sqlite as a string , the leading "+" was gone. In the table creation the record is a string.

Re: [android-developers] Re: What is a WeakReference?

2010-07-24 Thread Agus
GC can reclaim WeakReference even memory is still plenty, but SoftReferences will only be cleared when the system is just about to starve out of memory.. On Sat, Jul 24, 2010 at 2:25 PM, Joseph Earl wrote: > I did say '(although I would use SoftReference for the purpose > described here).' But it

[android-developers] Re: How to update pre-installed apps

2010-07-24 Thread Albert
Thanks everyone for your answers. TreKing suggestion should work fine and I agree the Market should handle this cases better. I hope to see that in future versions :-) Cheers, Alberto On Jul 24, 10:14 pm, Joseph Earl wrote: > If it's possible, please give the user an option to remove the progra

[android-developers] Build performance of 2.2 vs older sdk implementations

2010-07-24 Thread Mark Nuetzmann
I have been building all my apps against the 1.6 version of the SDK until just recently when I switched to 2.2. I use ant to handle my builds and a normal build time for one of my apps was about 30 seconds. Now that I am building with 2.2 (that is the only change) it is taking over a minute to do

[android-developers] geoCoder: getFromLocationName ?

2010-07-24 Thread coy
Hi! I wanted to make an app that displays the map, for example, Pizza in San Francisco, CA, United States, as well as in maps.google.com: http://maps.google.com/maps?f=q&source=s_q&hl=pt-BR&geocode=&q=Pizza+in+San+Francisco,+CA,+United+States&sll=37.784622,-122.435503&sspn=0.044906,0.104628&ie=UTF8

[android-developers] Re: What is a WeakReference?

2010-07-24 Thread Joseph Earl
I did say '(although I would use SoftReference for the purpose described here).' But it wasn't clear enough I agree (and because I admittedly wasn't sure enough about the differences) On Jul 23, 4:25 pm, Matt Quigley wrote: > On Jul 23, 2:37 am, Indicator Veritatis wrote: > > > You left out some

[android-developers] Re: What is a WeakReference?

2010-07-24 Thread AlanLawrence
Sorry to go back to this: On Jul 22, 7:26 pm, Romain Guy wrote: > You definitely do NOT want to use a WeakReference to cache object. If > you do so, as soon as your data is put in the cache and not used > outside of the cache, it gets garbage collected. as I hope I'm merely nitpicking, but - isn

[android-developers] Re: use of fadeScrollbars

2010-07-24 Thread Mark Nuetzmann
thankyou very much... On Jul 24, 4:17 pm, Joseph Earl wrote: > Try changing android:scrollbarStyle and see if that gives you the > effect you want. > Valid values are insideOverlay, insideInset, outsideOverlay, > outsideInset > > See > here:http://developer.android.com/reference/android/view/Vie

[android-developers] Re: use of fadeScrollbars

2010-07-24 Thread Joseph Earl
Try changing android:scrollbarStyle and see if that gives you the effect you want. Valid values are insideOverlay, insideInset, outsideOverlay, outsideInset See here: http://developer.android.com/reference/android/view/View.html#attr_android:scrollbarStyle for more info. On Jul 24, 10:07 pm, Mar

[android-developers] Re: J2ME

2010-07-24 Thread DanH
I think, given two or three target platforms, it would be possible to design a metalanguage/metamachine that could be retargeted to all of them. More difficult to retarget code for one physical platform to another. On Jul 24, 4:07 pm, AlanLawrence wrote: > I wonder about the reverse question: if

[android-developers] Re: How to update pre-installed apps

2010-07-24 Thread Joseph Earl
If it's possible, please give the user an option to remove the program if they want, since it's well... kind of their phone and I think users (quite rightly) expect a degree of control. Some of the apps that come with phones I love and use to this day, and some I don't. I really don't care about pr

[android-developers] with Android 2.2, SD card file directory list now in reverse alphabetical order?

2010-07-24 Thread greg
I don't see anything about this change in the API differences report at http://developer.android.com/sdk/api_diff/8/changes.html. However when my Nexus One started running Android 2.2, the list of files created by the following code are now in reverse alphabetical order rather than alphabetical or

[android-developers] use of fadeScrollbars

2010-07-24 Thread Mark Nuetzmann
I am using android:fadeScrollbars="true" to show the scrollbar only while scrolling. Works great. The only issue I seem to be having is that the view still allocates the space on the right side to display the scrollbar when I do scroll. I really wish this worked like iPhone where the scrollbar a

[android-developers] Re: J2ME

2010-07-24 Thread AlanLawrence
I wonder about the reverse question: if I have an Android app, is there an easy way to get it running on J2ME? (I don't feel J2ME is worth the effort of rewriting, put it that way!). Even a tool that only converted code _not_using_Android_libraries_ would be handy, but all my logic is full of Java

[android-developers] Re: How to update pre-installed apps

2010-07-24 Thread Xenplex
Well I don't think pre-installed apps are the best way to get apps on the phone. Very often, users simply don't keep those pre-installed apps or they don't want to use them at least but normally those apps are hard, sometimes impossible, to remove without taking big changes in the system itself. An

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread sblantipodi
what do you mean for same validation process for both versions? On Jul 24, 10:16 pm, Pent wrote: > > ok... but how do you do? > > do you put your full unprotected binary as is on the market? > > No, I use the same validation process for both versions. > > Some users grumble and give 1 star on th

[android-developers] Re: Recent Apps change in 2.2 - Brings main Activity to foreground, not the last visible one

2010-07-24 Thread Joseph Earl
Maybe my above post could have been a little clearer for anyone who comes back to look at this later: 1) The StackOverflow post http://stackoverflow.com/questions/2417468/android-bug-in-launchmodesingletask-activity-stack-not-preserved suggests using the FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGL

[android-developers] Re: Recent Apps change in 2.2 - Brings main Activity to foreground, not the last visible one

2010-07-24 Thread Joseph Earl
Ahh I think I've got it, my main activity has launchMode="singleTask" which seems to cause all other activities above it in the stack to be destroyed. A post on StackOverflow seems to suggest setting FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP every time I use an intent to my main activity, so

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
freeMemory() is only really accurate immediately after a GC cycle. You can call gc() to force a GC cycle, but it's a little expensive, and many platforms (don't know about Android) ignore the call since it's so often abused. Better for you to find out the partition size (don't know how you do this

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread Pent
> ok... but how do you do? > do you put your full unprotected binary as is on the market? No, I use the same validation process for both versions. Some users grumble and give 1 star on the market but most don't mention it. Pent -- You received this message because you are subscribed to the Goo

Re: [android-developers] Re: Regarding the new BackupManager

2010-07-24 Thread Dianne Hackborn
On Sat, Jul 24, 2010 at 3:53 AM, uday wrote: > Will android Backup Service provides the Backup Transport when > registering application with Android backup service for doing Data > backup?? > Sorry, I'm not sure what you are asking here. The app doesn't talk directly with the backup service. I

Re: [android-developers] Re: Problem: Long running AsyncTask with reference to Activity

2010-07-24 Thread Dianne Hackborn
Er no for this scenario a weak reference is appropriate. You want the reference to remain valid only as long as someone else as a reference on the activity. With a weak reference, the reference will be cleared on the next GC after all other references on the activity are gone. With a soft refere

Re: [android-developers] Storing data on the SD card in Froyo - files deleted when upgrading

2010-07-24 Thread Dianne Hackborn
Ergh... that may be a bug. :( To be clear, when doing the update your internal data is not being erased, but the data on the SD card is? On Sat, Jul 24, 2010 at 10:11 AM, Joseph Earl wrote: > I have an application which resides on the phone memory but downloads > large data to the SD card on fi

Re: [android-developers] Re: How to update pre-installed apps

2010-07-24 Thread Dianne Hackborn
Current states: As of 1.6 Market allows installing updates to apps that already exist pre-installed on the system image. Currently however it does not know about these apps until the user explicitly installs an update, so for the initial case where the app only exists pre-installed it will not be

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread sblantipodi
ok... but how do you do? do you put your full unprotected binary as is on the market? On Jul 24, 8:19 pm, Pent wrote: > > So,I'm not authorized to put on the market a FREE trial version, > > and ask customers who want the full version to buy it on my official > > site? > > 3.3 ...Such free trial

[android-developers] Re: How do I set the selected state of an item in a gallery (the correct way)

2010-07-24 Thread Joseph Earl
Not setting anything interesting that I'm aware of. My getView in my adapter looks like: public View getView(int position, View convertView, ViewGroup parent) { ImageView i; if (convertView == null) { i = (ImageView) View.inflate(mContext, R.layout.gallery_item, n

Re: [android-developers] Re: Recent Apps change in 2.2 - Brings main Activity to foreground, not the last visible one

2010-07-24 Thread Dianne Hackborn
Actually switching from recent tasks will *never* reset the task; relaunching from launcher will reset after the time as indicated. (This is actually controlled by an intent flag, which launcher sets, and recent tasks does not.) Recent tasks should definitely not be resetting tasks. If it appear

[android-developers] Re: Did selected tab background colors change in 2.1 ?

2010-07-24 Thread Joseph Earl
Quite possibly. You should import the desired drawables from the SDK/platforms folder into your own drawables folder and reference those in order to ensure a consistent look. Remember carriers also modify their own versions which means the default styles can be quite different to the ones on the e

[android-developers] Did selected tab background colors change in 2.1 ?

2010-07-24 Thread GJTorikian
Howdy— My app was built on the Android 1.5 platform. I'm in the process of bumping the APIs used to 2.1 . I am still leaving minSdkVersion=3 / targetSdkVersion = 7 in order to support older platforms. I've made the required drawbles-hdpi / -mdpi - ldpi-v4 folders. Everything is looking great acro

Re: [android-developers] Re: Set a panel transparent

2010-07-24 Thread Pedro Teixeira
I've tried lowering the first attribute to different values and nothing. I also tried the setAlpha and nothing.. maybe something in the xml ? I'm not sure if something is impeding from the alpha to work..in some other part of the code.. On Jul 24, 2010, at 6:34 PM, Joseph Earl wrote: You are

[android-developers] Re: Recent Apps change in 2.2 - Brings main Activity to foreground, not the last visible one

2010-07-24 Thread Joseph Earl
Thanks for the pointer. On Jul 24, 7:03 pm, RichardC wrote: > Found it: > > http://developer.android.com/guide/topics/fundamentals.html > > read down to: > Clearing the stack > > If the user leaves a task for a long time, the system clears the task > of all activities except the root activity. Wh

Re: [android-developers] Re: tattoo apps on market

2010-07-24 Thread Martins Streņģis
it seems that http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Log in a file

2010-07-24 Thread Kostya Vasilyev
There are applications in Market that can show logcat (the log output you see in DDMS) and make emailing it really easy. Perhaps you can ask your user to install one of these apps and email you the log. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 24.07.2010 21:52 пользователь "ReyLith"

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread Pent
> So,I'm not authorized to put on the market a FREE trial version, > and ask customers who want the full version to buy it on my official > site? 3.3 ...Such free trials for Products are encouraged. However, if you want to collect fees after the free trial expires, you must collect all fees for th

[android-developers] Electro Magnetic Radiation Sensor with Android

2010-07-24 Thread Jaan
Hi , i am a student who is very new to Android platform. I am working on a project which has to sense the EMR (Electro magnetic radiation ) signals and notify the intensity of the EMR signals on the Android phone. 1. Are there any available external EMR sensor devices which can be connected to t

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-24 Thread sblantipodi
Yes the problem is this, I'm neither thinking of distributing my software without any kind of protection. So,I'm not authorized to put on the market a FREE trial version, and ask customers who want the full version to buy it on my official site? Someone some months ago told me that all developers

[android-developers] Re: Recent Apps change in 2.2 - Brings main Activity to foreground, not the last visible one

2010-07-24 Thread RichardC
Found it: http://developer.android.com/guide/topics/fundamentals.html read down to: Clearing the stack If the user leaves a task for a long time, the system clears the task of all activities except the root activity. When the user returns to the task again, it's as the user left it, except that

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread ReyLith
First of all thank you very much everyone for your help. I continue with a problem. I use Runtime.getRuntime().freeMemory() for obtain the free memory and compare it with the real Bitmap memory. Sometimes I get a free memory less than that occupied by the image. However, if I remove the restrictio

[android-developers] Re: Recent Apps change in 2.2 - Brings main Activity to foreground, not the last visible one

2010-07-24 Thread RichardC
It's documented to do that (go to the base activity on the stack) after a period of time (unspecified) in the background as the user has probably forgotten what they were doing. Now all I need to do is to find the reference so you know I am not making this up :) ... On Jul 24, 4:41 pm, Joseph

[android-developers] Re: How do I set the selected state of an item in a gallery (the correct way)

2010-07-24 Thread Mark Nuetzmann
I changed my selector to be exactly what you have (but using my drawables ;) and it still behaves the same way; no selected state. How are you setting the items that are being returned by the adapter? Are you setting anything interesting on those views that might result in it working for you? On J

[android-developers] Re: Maps don't show in my app

2010-07-24 Thread coy
I included it, yes Oh, I get a new correct API Key and so maps is showing now! Thank you for reminding me of the API Key :D On 24 jul, 14:51, Joseph Earl wrote: > The API key could possibly be the problem. Try generating a new one to > check, but if you got your MD5 from keytool it should be corr

[android-developers] Log in a file

2010-07-24 Thread ReyLith
Hi, I'm developing an image editor application for Android. I have a big problem: I haven't a mobile with Android. I found a person that helps me to test the application and I found many problems. The application works in the emulator perfectly but in the mobile the application constantly mistaken

[android-developers] Re: Maps don't show in my app

2010-07-24 Thread Joseph Earl
The API key could possibly be the problem. Try generating a new one to check, but if you got your MD5 from keytool it should be correct. Otherwise are you sure you have included the correct libraries in your manifest file? On Jul 24, 6:36 pm, coy wrote: > Yes! > But, perhaps my MD5 was wrong when

[android-developers] Re: How do I set the selected state of an item in a gallery (the correct way)

2010-07-24 Thread Joseph Earl
I use something like: http://schemas.android.com/apk/res/android";> as a background for views in my gallery which seems to work perfectly. I should note that when the selected item is pressed it maintains the selected state drawable (it was how I wanted it) but you could show

[android-developers] Re: tattoo apps on market

2010-07-24 Thread Joseph Earl
Have you got any other market filters in your manifest that might be preventing the Tattoo from seeing it? On Jul 24, 11:03 am, Martins Streņģis wrote: > Hi there! > in my manifest file i added > >               android:largeScreens="true" >         android:normalScreens="true" >         android:

[android-developers] Re: Maps don't show in my app

2010-07-24 Thread coy
Yes! But, perhaps my MD5 was wrong when I generated the API Key. Can it be the problem? On 24 jul, 14:32, Joseph Earl wrote: > Have you obtained a maps API key? > > On Jul 24, 6:30 pm, coy wrote: > > > > > Hi, > > I'm just trying to run MapsDemo who is in 'samples' of the SDK, but > > consider t

[android-developers] Re: Set a panel transparent

2010-07-24 Thread Joseph Earl
You are using innerPaint.setARGB(255, 75, 75, 75); //gray Since you are setting the Alpha to 255 you will have an opaque image. If you want some transparency change that value to somewhere between 0 and 255. On Jul 24, 5:41 pm, Pedro Teixeira wrote: > Hi, > > I have a class to make a transparent

[android-developers] Re: Maps don't show in my app

2010-07-24 Thread Joseph Earl
Have you obtained a maps API key? On Jul 24, 6:30 pm, coy wrote: > Hi, > I'm just trying to run MapsDemo who is in 'samples' of the SDK, but > consider this:http://i.imagehost.org/0829/mapss_don_t_show.png > > the google maps is working > perfectlyhttp://j.imagehost.org/0640/google_maps.png > ):

[android-developers] Maps don't show in my app

2010-07-24 Thread coy
Hi, I'm just trying to run MapsDemo who is in 'samples' of the SDK, but consider this: http://i.imagehost.org/0829/mapss_don_t_show.png the google maps is working perfectly http://j.imagehost.org/0640/google_maps.png ): any ideas? thanks! -- You received this message because you are subscribe

[android-developers] How to use my contact list

2010-07-24 Thread S_F_H
Hi, i want application to send an sms to one of my contacts.the problem consists is getting the phone number,not the name. using this code public void onActivityResult(int reqCode, int resultCode, Intent data) { super.onActivityResult(reqCode, resultCode, data); switch (reqCode)

[android-developers] Re: How do I set the selected state of an item in a gallery (the correct way)

2010-07-24 Thread Joseph Earl
Try moving your state_selected statement above your state_pressed item and see if it works. On Jul 24, 6:07 pm, Mark Nuetzmann wrote: > I have a gallery that displays TextViews where the background of each > view is the following: > > > http://schemas.android.com/apk/res/android";> >          

[android-developers] Re: Set a panel transparent

2010-07-24 Thread Bret Foreman
Try Drawable.setAlpha where a value of 0 is fully transparent and 255 is fully occulting. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this grou

Re: [android-developers] Set a panel transparent

2010-07-24 Thread Webnet Android
On 24 July 2010 18:41, Pedro Teixeira wrote: >        innerPaint = new Paint(); >                innerPaint.setARGB(255, 75, 75, 75); //gray first value of setARGB is alpha channel (transparency). Set it to i.e. 128 (half the scale) instead of 255 as alpha ranges between 0..255 with 0 meaning no

[android-developers] Storing data on the SD card in Froyo - files deleted when upgrading

2010-07-24 Thread Joseph Earl
I have an application which resides on the phone memory but downloads large data to the SD card on first launch (the app needs to be able to work without an internet connection most of the time) When using the recommend directory given in Froyo it seems all files on the SD card are deleted when I

Re: [android-developers] Changing the content of an activity runtime

2010-07-24 Thread Webnet Android
>> Would it be possible to go back to the last state of all the controls? > > Sure, but you would have to save the state yourself and restore it on > switching. This sounds like overkill given the other options at your > disposal. For some odd reasons I managed to forgot onSaveInstanceState() / on

  1   2   >