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

2010-07-24 Thread Luca Carlon
Hi! I created an activity by using a layout written in a XML file. I would like, in response to some events, to change the content of this activity. I would like to show a VideoView over the content. In response to some other event, I may want to go back to the first content. Would it be possible

[android-developers] How to get scroll position in a GridView? getScrollY always return 0

2010-07-24 Thread Alex Xin
Hi, I have a GridView in my activity, and I want to save current scroll position while user goes to another place and restore it while user comes back. I try to use GridView.getScrollY and GridView.scrollTo methods, but getScrollY method always return 0 instead of right scroll position. Am I

[android-developers] Re: Vector Graphics Rendering - Mechanisms

2010-07-24 Thread Robert Green
I'd consider just writing an svg importer and then rendering using opengl in line mode. On Jul 23, 11:09 pm, Eric erics...@gmail.com wrote: inkscape has a command line svg renderer I just bet you could find a way to use that code in your process to render in-memory.  (Say to render straight

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

2010-07-24 Thread sblantipodi
As subject. This morning an email noticed me that the android market rules are changed and that I must accept it within 30 days. Now the prolblem is. I have always distribuited (only on android market due to the lack of dynamic licensing) a free trial, customers who want to buy the product must

Re: [android-developers] Portrait Inflate problem

2010-07-24 Thread YuviDroid
When you specify orientation in configChanges you are telling the OS not to deal with orientation changes in your activity. Therefore, when you now rotate the phone you activity will not be recreated and the layout file will not be inflated again. On Sat, Jul 24, 2010 at 2:56 AM, Alex Xin

Re: [android-developers] Portrait Inflate problem

2010-07-24 Thread Alex Xin
Hi YuviDroid So this method is just a workround? I still need to find out why my app will crash while orientation changes? On Sat, Jul 24, 2010 at 5:02 PM, YuviDroid yuvidr...@gmail.com wrote: When you specify orientation in configChanges you are telling the OS not to deal with orientation

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

2010-07-24 Thread Pent
Now rules are changed, we cannot distribuite freel trial on the market and ask to the customers to buy the software on other place. What do you think about that? I don't want to give to the market a non secure version of my software, without dynamic licensing, no need to argue, I can't give

Re: [android-developers] Portrait Inflate problem

2010-07-24 Thread YuviDroid
Well, if your app works fine with this then it should be ok ;) Still, it would be interesting to understand what's causing the crash.. On Sat, Jul 24, 2010 at 11:11 AM, Alex Xin xinxi...@gmail.com wrote: Hi YuviDroid So this method is just a workround? I still need to find out why my app

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

2010-07-24 Thread Kostya Vasilyev
That's quite understandable. But it would really help if Android Market supported more countries for buying and selling apps. The issue would just go away. -- Kostya 24.07.2010 13:22, Pent пишет: Obviously (and reasonably) Google don't want you using market for advertising your product and

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

2010-07-24 Thread Pent
But it would really help if Android Market supported more countries for buying and selling apps. The issue would just go away. For me, (and sounds like the original poster too) the issue is that there's no non-trivial copy protection for apps sold on the market, so I would have to disagree with

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

2010-07-24 Thread Webnet Android
I tried using setContentView(videoView), and then switching back with setContentView(T.layout.main), but it seems that, when going back to the main layout, all my buttons and text boxes are created again as You have to handle this yourself, i.e. by using sharedpreferencs and write/restore UI

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

2010-07-24 Thread Webnet Android
On 24 July 2010 00:43, Albert albert8...@googlemail.com wrote: The thing is that because the app is pre-installed it does not appear under the downloads section on the Android Market. It makes no difference if app is preinstalled or downloaded. It will appear in Downloads section of Market as

[android-developers] Re: RemoteViews and setEnabled - when is it supported ?

2010-07-24 Thread jarkman
On Jul 23, 6:39 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jul 23, 2010 at 1:35 PM, jarkman jark...@gmail.com wrote: Mark - thanks. I can't find any documentation on when the annotation changed, or even anywhere that looks like it ought to contain that documentation. Is it

[android-developers] tattoo apps on market

2010-07-24 Thread Martins Streņģis
Hi there! in my manifest file i added supports-screens android:largeScreens=true android:normalScreens=true android:smallScreens=true android:anyDensity=true /supports-screens uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4

Re: [android-developers] Andriod Email Flaw

2010-07-24 Thread Webnet Android
On 22 July 2010 22:47, Shulbert hulbert.s...@gmail.com wrote: Hello I have noticed a flaw in Android,  When connecting to an IMAP Android is OS. Problem you mention refers to stock Email application, not the OS itself. -- You received this message because you are subscribed to the Google

[android-developers] Re: Regarding the new BackupManager

2010-07-24 Thread uday
Will android Backup Service provides the Backup Transport when registering application with Android backup service for doing Data backup?? On Jul 23, 9:58 pm, Dianne Hackborn hack...@android.com wrote: Currently there is no support for third party backup transports. On Mon, Jul 19, 2010 at

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

2010-07-24 Thread Capt Spaghetti
I will look into the Web service approach. I am creating the XML and could generate 50 seperate SQLite files but I understand accessing those across a network is iffy even though the hopefully large number of users would only be reading them. Thanks Gene Augustine On Jul 23, 3:12 pm, Mark Murphy

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

2010-07-24 Thread Capt Spaghetti
I will take another look at XML pull parsing. Thanks, Gene Augustine On Jul 23, 3:28 pm, DanH danhi...@ieee.org wrote: You might want to look into XML pull parsing:http://www.xmlpull.org/v1/download/unpacked/doc/quick_intro.html There is support for it on the phone. On Jul 23, 2:05 pm,

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

2010-07-24 Thread Capt Spaghetti
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 seperate SQLite files. The question then becomes how to incorporate

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

2010-07-24 Thread sasq
I have an AsyncTask that scans the file system and publishes progress through Notifications. To do this I need a reference to the current Activity in the AsyncTask. I also don't want to kill the task when the activity is destroyed. How do I avoid leaking the activity and everything it references

[android-developers] Re: Strange or blank emails from users emailing from market

2010-07-24 Thread Flying Coder
I get these periodically. I used to reply asking if they meant to send something. The ones who followed up all said that they had just accidentally sent the message. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: How do you approach the various devices your application runs on?

2010-07-24 Thread nation-x
I can tell you from experience that just because an app will run in the emulator... it doesn't mean it will run on the device. The rest of your advice is stellar. :) I don't have 500k installs either. On Jul 23, 3:18 pm, Joseph Earl joseph.w.e...@gmail.com wrote: 1) Set a whole suit of AVD

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

2010-07-24 Thread DanH
The SQLite files will be larger than the XML and probably slower to access, on a one-off basis. If you insist on the 50 downloaded files, I'd place the data in a flat file of some sort, with a dope vector at the top to speed access. Compact and fast to access. On Jul 24, 7:03 am, Capt Spaghetti

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

2010-07-24 Thread Agus
you can use the application context On Sat, Jul 24, 2010 at 5:28 AM, sasq jonas.minnb...@gmail.com wrote: I have an AsyncTask that scans the file system and publishes progress through Notifications. To do this I need a reference to the current Activity in the AsyncTask. I also don't want to

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

2010-07-24 Thread DanH
Or at the very least you could use JSON vs XML. Maybe half the space overhead, and much faster to parse. On Jul 24, 7:03 am, Capt Spaghetti gene_august...@msn.com wrote: Mark,    It just occurred to me that your second option have your smarter server generate a SQLite database that you

[android-developers] Re: Play Sound File

2010-07-24 Thread Emmanuel
From what I understand : no... This page : http://developer.android.com/intl/fr/guide/topics/media/index.html said : ...You cannot play sound files in the conversation audio... In a sense, I think it's rather a good thing. Hope it helps, Emmanuel / Alocaly http://androidblogger.blogspot.com/

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

2010-07-24 Thread sasq
I need the activty to create a PendingIntent for the Notification. I suspect there is a way to create a dummy Intent that doesn't refer to the activity, but I'd prefer that clicking the notification brings you back to the Activity. But on that subject - how do you create a Notification with no

[android-developers] Re: How could I avoid others to get my used pictures in my application?

2010-07-24 Thread Emmanuel
I'm not sure other applications can have access to the resources, but you still can copy the apk in any computer and unzip it to access resources. Activating the protection mode should prevent the copy, but it's far from perfect and flawless. Last point : any one can make a screen capture of

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

2010-07-24 Thread Joseph Earl
Yup. Use a service for long running background tasks that do not require an Activity to be present. Threads started by an Activity are killed anyway when your Activity is destroyed (or at least that's how it seems to me). You can bind to your service from your Activity to control it. On Jul 24,

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

2010-07-24 Thread Joseph Earl
A notification has a contentIntent which is of type PendingIntent. To launch your activity when the notification is pressed you need to set the contentIntent with a PendingIntent pointing to your Activity. On Jul 24, 2:05 pm, sasq jonas.minnb...@gmail.com wrote: I need the activty to create a

[android-developers] Re: How do you approach the various devices your application runs on?

2010-07-24 Thread Joseph Earl
Yes you are right, it is just easier for to developers to test and for most smaller developers unlikely they will ever be able to test on all devices unless they have very deep pockets. So I perhaps should add to the above list: testing on an emulator is no substitute for testing on actual device

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

2010-07-24 Thread sasq
Well even an AsyncTask that runs for only a few seconds will have time to leak many Activity instances if you quickly do many configuration- changes. Although in that case onDestroy gets called so you could unregister the Activity from the task there. Anyway, I don't want to create another

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

2010-07-24 Thread Paul Turchenko
Threads are not getting killed when activity is destroyed. On Jul 24, 4:10 pm, Joseph Earl joseph.w.e...@gmail.com wrote: Yup. Use a service for long running background tasks that do not require an Activity to be present. Threads started by an Activity are killed anyway when your Activity is

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

2010-07-24 Thread Joseph Earl
Ah OK. My bad. On Jul 24, 2:49 pm, Paul Turchenko paul.turche...@gmail.com wrote: Threads are not getting killed when activity is destroyed. On Jul 24, 4:10 pm, Joseph Earl joseph.w.e...@gmail.com wrote: Yup. Use a service for long running background tasks that do not require an Activity

[android-developers] Re: How could I avoid others to get my used pictures in my application?

2010-07-24 Thread DanH
You could always encrypt the pictures. You'd have to use a security by obscurity key scheme, of course, but that's usually good for all but dedicated hackers. On Jul 22, 12:02 am, ejo ejo...@gmail.com wrote: I'll use some pictures in my application.Is there any way to avoid others getting my

[android-developers] Re: R cannot be resolved

2010-07-24 Thread mah
When pulling in existing projects, I find that often I need to right- click the project in the work bench, go to the Android Tools entry, and select Fix Project Properties. On Jul 20, 6:31 pm, Marc marc.d.pa...@gmail.com wrote: Hi. I'm an Android development newb, and I got a problem with

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

2010-07-24 Thread RichardC
Would using a WeakReference from your AsyncTask back to your activity help in any way? See discussion: http://groups.google.com/group/android-developers/browse_thread/thread/0732e2ec0039e92c# On Jul 24, 3:13 pm, Joseph Earl joseph.w.e...@gmail.com wrote: Ah OK. My bad. On Jul 24, 2:49 pm,

Re: [android-developers] Andriod Email Flaw

2010-07-24 Thread Raymond C. Rodgers
On 7/22/2010 4:47 PM, Shulbert wrote: Hello I have noticed a flaw in Android, When connecting to an IMAP server Doesn't matter if it is Exhange or Unix the Android Email client will not close the connection. In order for IMAP to work correctly a client makes a conneciton and gets updates. If a

[android-developers] Re: java.lang.IllegalStateException: Content has been consumed

2010-07-24 Thread Kumar Bibek
You can retrieve the content from the entity only once. If you have already extracted the content somewhere, and you try to fetch it again, it will throw this IllegalStateException. Check you code and make sure that you make this call only once. - Kumar Bibek http://tech-droid.blogspot.com On

[android-developers] Re: How to override the ENTER key behaviour of the virtual keyboard in Android

2010-07-24 Thread Eelco
Thanks, this works, it does catch the enter key. Just for the other curious, here is how I use it now. I have created my own super dialog class that has 2 OnKeyListener objects and an abstract submit method: public abstract class MyAbstractDialog extends Dialog { /** *

[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-24 Thread gcstang
Thank you, I'll check this out On Jul 23, 10:08 am, Brion Emde brione2...@gmail.com wrote: The Notebook sample application contains a simple ContentProvider and a list of Notes. That lives here:http://developer.android.com/resources/samples/NotePad/index.html On Jul 23, 9:09 am, gcstang

[android-developers] Re: ImageView setColorFilter, what to do for a bitmap?

2010-07-24 Thread Beth
Thanks Greg, I saw that. There is no ImageView. It's straight canvas and bitmaps, no Drawables, no Views. I may change that... The pixels to change could be one of several bitmaps in an ImageView. I don't know if the ImageView ColorFilter call will work in this case. The bitmap I want to

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

2010-07-24 Thread Joseph Earl
The recent apps display seems to function quite differently from earlier versions on 2.2. Try the following for instance: 1) Open an app 2) Click on something that takes you to another activity in the same app 3) Press the home button 4) Press and hold the home button to get the recent list of

[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
Actually maybe I was dreaming about the way it worked on 2.1 and earlier. Will go check. On Jul 24, 4:21 pm, Joseph Earl joseph.w.e...@gmail.com wrote: The recent apps display seems to function quite differently from earlier versions on 2.2. Try the following for instance: 1) Open an app 2)

[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
I apologize. Seems I was dreaming about the way it worked having changed, the emulator seems to function this way on earlier versions. For some reason it just seemed to me like it had changed on my Nexus One since the 2.2 update... On Jul 24, 4:21 pm, Joseph Earl joseph.w.e...@gmail.com wrote:

[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
I'm now very tempted to revert my Nexus One to 2.1-update 1 just to verify that I am indeed losing part of my sanity. If anyone still has a Nexus One running 2.1 could you tell me quickly how it behaves? On Jul 24, 4:30 pm, Joseph Earl joseph.w.e...@gmail.com wrote: I apologize. Seems I was

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

2010-07-24 Thread Agus
Don't use WeakReference, use SoftReference. On Sat, Jul 24, 2010 at 7:48 AM, RichardC richard.crit...@googlemail.com wrote: Would using a WeakReference from your AsyncTask back to your activity help in any way? See discussion:

Re: [android-developers] Re: Vector Graphics Rendering - Mechanisms

2010-07-24 Thread Anton Persson
There is this library: http://code.google.com/p/svg4mobile/ I haven't tried that but it seems to be directly written for Android, which is good.. Then there is my port of libsvg.. libsvg-android. https://launchpad.net/libsvg-android I only ported libsvg-android since I couldn't find anything

[android-developers] Re: ImageView setColorFilter, what to do for a bitmap?

2010-07-24 Thread greg
If there isn't an API approach (and I don't know if there is or isn't) to filter colors in a region of an ImageView, have you considered using the API to change individual pixels ... or reviewing the png file format and changing the colormap of the png (assuming the png file has a colormap)? On

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

2010-07-24 Thread TreKing
On Sat, Jul 24, 2010 at 2:28 AM, Luca Carlon carlon.l...@gmail.com wrote: Would it be possible to switch the content of the activity this way Sure. You can have one main layout that has two sub layouts and hide the one you don't need when necessary. You could also look into ViewFlipper.

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

2010-07-24 Thread TreKing
On Sat, Jul 24, 2010 at 5:01 AM, Webnet Android webnet.andr...@gmail.comwrote: It makes no difference if app is preinstalled or downloaded. It will appear in Downloads section of Market as long such package also exists in Market Are you sure about that? Because I had Google Maps

[android-developers] Re: Getting a FileDescriptor from a Socket

2010-07-24 Thread Joseph Earl
For accessing a private member you'd have to use Reflection. Can't help you on the first point though I'm afraid. On Jul 23, 4:39 pm, Alexandre Ferrieux alexandre.ferri...@gmail.com wrote: Hi, The documentation for FileDescriptor says it is The lowest-level representation of a file, device,

[android-developers] Set a panel transparent

2010-07-24 Thread Pedro Teixeira
Hi, I have a class to make a transparent panel to overlay in any view of my application which I found the tutorial on the internet. The thing is.. it's not painting with transparency .. just gray... does it have to do with this element? How can I change this values to make it be transparent?

Re: [android-developers] Andriod Email Flaw

2010-07-24 Thread Kostya Vasilyev
24.07.2010 18:58, Raymond C. Rodgers пишет: I'm not an expert on IMAP, though I'm some what familiar with it. It's my understanding that IMAP clients are supposed to stay connected to the mail server and receive live or periodic updates as they occur on the server, where all the action is

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

2010-07-24 Thread Joseph Earl
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 to close the application when the SD card is removed/mounted (giving the user a dialog message to

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

2010-07-24 Thread Webnet Android
Are you sure about that? Because I had Google Maps pre-installed on my G1 Not 100% sure now as it was a while ago I played with it, but this can be easily verified. Assuming you got rooted device put i.e. your old version of your app's APK in /system/apps or /data/apps and then launch Market to

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

2010-07-24 Thread Mark Nuetzmann
I have a gallery that displays TextViews where the background of each view is the following: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable/item_pressed / item

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() /

[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] Set a panel transparent

2010-07-24 Thread Webnet Android
On 24 July 2010 18:41, Pedro Teixeira pedroteixeir...@gmail.com 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

[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

[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 mark.nuetzm...@gmail.com wrote: I have a gallery that displays TextViews where the background of each view is the following: ?xml version=1.0 encoding=utf-8?

[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

[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

[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 cawe...@gmail.com 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

[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 pedroteixeir...@gmail.com wrote: Hi, I have a

[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 joseph.w.e...@gmail.com wrote: Have you obtained a maps API key? On Jul 24, 6:30 pm, coy cawe...@gmail.com wrote: Hi, I'm just trying to run MapsDemo who is in 'samples'

[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 martin...@draugiem.lv wrote: Hi there! in my manifest file i added      supports-screens         android:largeScreens=true        

[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: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_selected=true android:drawable=@drawable/ frame_gallery_thumb_selected / item android:state_focused=true android:state_pressed=true

[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 cawe...@gmail.com wrote: Yes! But, perhaps my

[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

[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 joseph.w.e...@gmail.com wrote: The API key could possibly be the problem. Try generating a new one to check, but if you got your MD5 from

[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

[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: 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

[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: 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] 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

[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 the

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

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

2010-07-24 Thread Martins Streņģis
it seems that uses-feature autofocus was preventing it thanks for advice :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[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 richard.crit...@googlemail.com 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

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

[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

[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

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

[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,

[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 tas...@dinglisch.net 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

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

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 joseph.w.e...@gmail.comwrote: I have an application which resides on the phone memory but downloads large

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

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

2010-07-24 Thread Dianne Hackborn
On Sat, Jul 24, 2010 at 3:53 AM, uday uday.pic...@gmail.com 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

[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

[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

[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: 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

[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 tas...@dinglisch.net 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

[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.

[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

[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

  1   2   >