[android-developers] Is there a way for inter task communication

2009-10-02 Thread Amitkeerti
hi, Lets suppose that Activity 1 calls startActivtyForResult with an intent which starts Activity 2. Now lets suppose that in the AndroidManifest, for Activity 2 we have : android:launchMode=singleInstance or android:launchMode=singleTask Now the Activity 2 gets launched in a separate task

[android-developers] Trouble using ListView

2009-10-02 Thread gonzo
Hi, I'm just trying to set the content of a List View from a String[] array. and i tried using the ArrayAdapter to set the List Adapter. as... setListAdapter(new ArrayAdapterString(this,R.layout.mycustomlayout, R.id.content_text_view, list); where list is my String[] array. mycustomlayout

[android-developers] Re: ProgressDialog with a second thread - Screen Orientation and back button. How to restore progress dialog?

2009-10-02 Thread Gulfam
Hi, Kasper86 i am facing problem same as you. i am showning progress dialog but when i have changed my handset position from portrait to landscape or landscape to portrait it show error like activity has leaked window. i have make changes in my activity as said by manoj public void

[android-developers] Re: sending an event / intent to an AppWidgetProvider

2009-10-02 Thread Paul Turchenko
Now that you have a RemoteViews, you can send data to widget. Make necessary calls on RemoteViews before calling manager.updateAppWidget (). This approach should 100% work. On Oct 2, 2:42 am, sdphil phil.pellouch...@gmail.com wrote: I'm trying to do this in my service, and it never makes any

[android-developers] Re: sending an event / intent to an AppWidgetProvider

2009-10-02 Thread sdphil
I think that only works though if the service is an inner class of the AppWidgetProvider... On Oct 2, 12:32 am, Paul Turchenko paul.turche...@gmail.com wrote: Now that you have a RemoteViews, you can send data to widget. Make necessary calls on RemoteViews before calling

[android-developers] Re: Android 1.6 on ADP1 Force close

2009-10-02 Thread babaroga_srb
Check out this link if you have not allready: http://groups.google.com/group/Android-DevPhone-Updating/browse_thread/thread/5b7c52f40d91d2ef I have flashed my adp1 with the version currently available from htc web site. It still says test-keys but it turns out that this is ok! :) I have done

[android-developers] Re: Android 1.6 on ADP1 Force close

2009-10-02 Thread babaroga_srb
Check out this link if you have not allready: http://groups.google.com/group/Android-DevPhone-Updating/browse_thread/thread/5b7c52f40d91d2ef I have flashed my adp1 with the version currently available from htc web site. It still says test-keys but it turns out that this is ok! :) I have done

[android-developers] protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-02 Thread Gavin Bong
In the android Launcher app, Workspace.java accesses the mScrollX member variable. http://www.google.com/codesearch/p?hl=frsa=Ncd=2ct=rc#4r7JaNM0EqE/src/com/android/launcher/Workspace.javaq=computeScroll However it looks like mScrollX is not accessible to my ViewGroup subclass. Eclipse is

[android-developers] AppWidgetProvider and BroadcastReceiver

2009-10-02 Thread sdphil
I need some help understanding how this works. I have an app widget that extends an AppWidgetProvider to create an application widget. I would like the application widget to be idle until an activity in my app runs; actually when a service in my app is started. Once that service is started, I

[android-developers] Re: Is there a way for inter task communication

2009-10-02 Thread Dianne Hackborn
Sorry a task can't return a result, simply because it does not make sense -- for example the user can move out of the other task and back to yours without finishing it to return a result, or they can leave and go to another app that then launches the same task for a result and you now have that

[android-developers] Re: MapView Overlays

2009-10-02 Thread Ne0
No i wasn't aware, i will grab it and have a look, thanks. When you say use a single image for the entire route, do you mean create the image of the route using the positions and mapView zoom level, then overlay that image? On Oct 1, 6:08 pm, polyclefsoftware dja...@gmail.com wrote: Are you

[android-developers] Re: Educating users - this isn't an iphone!

2009-10-02 Thread Juan Delgado
Well, you probably feel now like every single Gimp / Open Office developer for worst or better, there are applications that are a reference in their field (Photoshop, MS Office) and the iPhone is the reference for mobile development these days. No matter what you do on a mobile device it IS

[android-developers] Re: App upgrade (with zipalign) causes force closes/disappearing of app icon

2009-10-02 Thread SCMSoft
Now we think about it more, this release was also the first release for which we switched on the copy protection bit. Can it be that there is something broken in upgrading from a non-protected APK to a protected one? We haven't been able to reproduce it ourselves, but yesterday alone got another

[android-developers] Getting the key from a ListPreference

2009-10-02 Thread Neil
When using a PreferenceActivity to do preferences, the PreferenceScreen can contain a ListPreference. A ListPreference has an array of keys and an array of values. But the PreferenceActivity only writes the values to SharedPreferences. How do I get the key of the item selected from the list?

[android-developers] Re: are contestants of the ADC2 allowed to judge??

2009-10-02 Thread Georgios Galyfos
I haven't seen any replies on this question, I assume the developers taking part in the challenge are allowed to judge in the contest, but this way they would be allowed to judge even their own app, right? Is this right? please someone let me know about this. I have made an app for the contest

[android-developers] Re: libdrm1.so and libdrm1_jni.so, what are those libs purpose ?

2009-10-02 Thread ColletJb
No one ?? On 30 sep, 18:04, ColletJb collet...@gmail.com wrote: Hi everybody, My questions is already on the title of this post ^^ Does anyone know what are libdrm1.so and libdrm1_jni.so purpose ? Thanks for your explanations ColletJb

[android-developers] Javascript in Standalone Application?

2009-10-02 Thread javame_android
Hi, I want to use Javascript engine in Android Application but that application is not Browser based. Can we use javascript in application? The function of javascript would be to execute certain methods and pass on the values to Android Applications and then that application will perform certain

[android-developers] Re: Upload image to my database from phone

2009-10-02 Thread Jodi Middleton
yes. On Oct 2, 6:42 am, ragavendran s sraghav.ra...@gmail.com wrote:   In my app i want to Upload my photos to my phone database.when i click upload option it wil show  browse options and then i wil find the location of an image i.e., any folder...if i select  any image it wil store it

[android-developers] Re: Upload image to my database from phone

2009-10-02 Thread ragavendran s
pls tell the concept. On Fri, Oct 2, 2009 at 5:00 PM, Jodi Middleton jodi.middle...@gmail.comwrote: yes. On Oct 2, 6:42 am, ragavendran s sraghav.ra...@gmail.com wrote: In my app i want to Upload my photos to my phone database.when i click upload option it wil show browse

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread Mark Murphy
When using a PreferenceActivity to do preferences, the PreferenceScreen can contain a ListPreference. A ListPreference has an array of keys and an array of values. But the PreferenceActivity only writes the values to SharedPreferences. How do I get the key of the item selected from the

[android-developers] Re: Application Manager Force Close

2009-10-02 Thread emylyano3
Hello, I'm not saying that this is a bug, I just want to know if there is any way to know from my application that it is being killed by the application manager. Any idea will help! Thanks in advance. On Oct 1, 8:37 pm, Dianne Hackborn hack...@android.com wrote: This is what force stop does.

[android-developers] Re: Application Manager Force Close

2009-10-02 Thread Mark Murphy
I'm not saying that this is a bug, I just want to know if there is any way to know from my application that it is being killed by the application manager. No. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html

[android-developers] problem in creating table.

2009-10-02 Thread Honest
Hello, I have wrote the code to create and write the table. But it is giving the following exception. android.database.sqlite.SQLiteException: no such table: inbox 1: , while compiling: INSERT INTO inbox1(from_num, content, date1, time1) VALUES (?, ?, ?, ?); The following is code to create

[android-developers] Setting Focus

2009-10-02 Thread Neilz
Hi all. I open an Activity which has a number of elements... some TextViews, some Buttons, and an EditText. For some reason, when the activity starts, the EditText is focused by default, which causes the keypad to appear hiding the screen. I only want this EditText to be in focus if the user

[android-developers] Re: problem in creating table.

2009-10-02 Thread Mark Murphy
But it did not call onCreate(SQLiteDatabase db) never so can some one tell me what can be the issue in it ? Here are some possibilities: 1. You are not using the SQLiteOpenHelper to open your database. 2. You already have an empty database (perhaps lazy-created by SQLite from earlier

[android-developers] Re: activity leaked a window

2009-10-02 Thread Vijay
Ok. I wanted to destroy them before orientation changes. As I create them from textview, what is the best way to dismiss them without leaking. The view does n't know the orientation change, if I'm not wrong. On Oct 1, 2009, at 11:28 PM, Romain Guy romain...@google.com wrote: If you

[android-developers] ProgressDialog Issue

2009-10-02 Thread Ne0
Hi, I have prgress dialog that gets displayed while me activity is reading a file, but it the little circle in the dialog does not appear to spin. I thought it was supposed to as i have seen this in other apps, can anyone see what i am doing wrong here? // Display an indeterminate

[android-developers] Stripping Log._ out of production

2009-10-02 Thread jsdf
Hi all, I have been using the following conventions for my applications: - I define a static log(String msg) function centrally as: public static void log(String msg) { if (LOG) Log.v(msg); } - While debugging, LOG is true. For production, LOG is false. - Throughout the code, I will then

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread Neil
Yes I know that. What I meant was that I can do this SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences (this); String value = pref.getString(key, default value); And it will return the selected value. But how do I get the selected key? On Oct 2, 2:06 pm, Mark Murphy

[android-developers] Re: activity leaked a window

2009-10-02 Thread Mark Murphy
Ok. I wanted to destroy them before orientation changes. As I create them from textview, what is the best way to dismiss them without leaking. The view does n't know the orientation change, if I'm not wrong. Move that logic out of the the View and into the Activity. Then, dismiss them in

[android-developers] Re: Educating users - this isn't an iphone!

2009-10-02 Thread JoaJP
Looks to me as if you gravitate towards the worst of both worlds. If you look at Android's differentiators you will find that you can build your player to keep it running in the background. In the eyes of the iPhone enthusiast, that alone should be enough to put your product on its own two

[android-developers] Re: activity leaked a window

2009-10-02 Thread Vijay S
I'm modifying TextView.java. I can't depend on onPause/onStop/onDestroy to dismiss them. Is there an alternative to what you suggested? On Fri, Oct 2, 2009 at 8:36 AM, Mark Murphy mmur...@commonsware.com wrote: Ok. I wanted to destroy them before orientation changes. As I create them from

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread Neil
Actually I just repeated what I was trying to do and realised I phrased my question wrong. What I meant was how do I get the selected (localised) value - the code I quoted gets the key as you'd expect. On Oct 2, 3:35 pm, Neil neilb...@gmail.com wrote: Yes I know that.  What I meant was that I

[android-developers] All developers check your transaction fees! They are charging 92% on some sales!

2009-10-02 Thread Moto
First sorry about posting this in this group, but I think every developer should be aware! During the past few days Google checkout was charging on some sales 92% transaction fees! No one in Google has come forward to provide an answer! Here is the link to the discussion if you are interested:

[android-developers] Re: activity leaked a window

2009-10-02 Thread Streets Of Boston
I can't depend on onPause/onStop/onDestroy to dismiss them. Why not? Just add a method to your own TextView class that allows communication between the activity and the text-view. Best would be to show/dismiss this dialog in the Activity and have your TextView call your Activity's methods (e.g.

[android-developers] Re: WebServer Android

2009-10-02 Thread Fabio Melpignano
Thanks for the answer, but how do I install NanoHTTPD into Android? It's only a Java file, so I've only to import it in an Android Project and rebuild it or what? Thanks, Melpignano Fabio --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: All developers check your transaction fees! They are charging 92% on some sales!

2009-10-02 Thread Streets Of Boston
Yep, I just checked my check-out account and it happened to me too a few times as well. On Oct 2, 9:56 am, Moto medicalsou...@gmail.com wrote: First sorry about posting this in this group, but I think every developer should be aware! During the past few days Google checkout was charging on

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread Mark Murphy
Actually I just repeated what I was trying to do and realised I phrased my question wrong. What I meant was how do I get the selected (localised) value - the code I quoted gets the key as you'd expect. Um, probably with minor difficulty. The only way off the top of my head I can think of to

[android-developers] Re: All developers check your transaction fees! They are charging 92% on some sales!

2009-10-02 Thread Streets Of Boston
But, I looked a bit further. They fixed it for me. Look in your Payout section in the 'Other Activity' colummn. I have been re-imbursed for these extra fees. All seems to be ok now :-) On Oct 2, 10:00 am, Streets Of Boston flyingdutc...@gmail.com wrote: Yep, I just checked my check-out

[android-developers] Re: WebServer Android

2009-10-02 Thread Mark Murphy
Thanks for the answer, but how do I install NanoHTTPD into Android? It's only a Java file, so I've only to import it in an Android Project and rebuild it or what? If you have to ask that question, you do not want to use NanoHTTPD. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: All developers check your transaction fees! They are charging 92% on some sales!

2009-10-02 Thread Moto
Nice! That just happend :P I'll run some numbers see if they add up... Thanks man! On Oct 2, 10:02 am, Streets Of Boston flyingdutc...@gmail.com wrote: But, I looked a bit further. They fixed it for me. Look in your Payout section in the 'Other Activity' colummn. I have been re-imbursed

[android-developers] Re: activity leaked a window

2009-10-02 Thread Vijay S
Best would be to show/dismiss this dialog in the Activity I can't write code inside Activty's methods like onPause/onStop/onDestroy because the applications will not be mine always. They can be 3rd party apps. I need a good place from where I can call popupwindow.dissmiss() when the orientation

[android-developers] Re: WebServer Android

2009-10-02 Thread Mark Murphy
Thanks for the answer, but how do I install NanoHTTPD into Android? It's only a Java file, so I've only to import it in an Android Project and rebuild it or what? If you have to ask that question, you do not want to use NanoHTTPD. To clarify: NanoHTTPD *can* be modified to work on Android,

[android-developers] Re: activity leaked a window

2009-10-02 Thread Streets Of Boston
Are you coding to the SDK or modifying the platform? You could modify the TextView by adding a method that accepts a reference to any Activity. Then, in your TextView, use that activity-reference to handle pop-up dialogs. On Oct 2, 10:07 am, Vijay S vijay.meenakshisunda...@gmail.com wrote:

[android-developers] Re: WebServer Android

2009-10-02 Thread Fabio Melpignano
I don't understand. I'm trying to find a web server wich can show me some files in a directory. I think that i-jetty could do this, but i'm looking for other solutions. I had a look at NanoHTTPD website, downloaded the .java files but I think it is useful to ask to you how to use it with android,

[android-developers] Re: WebServer Android

2009-10-02 Thread Fabio Melpignano
Sorry, I had not read your last post before posting mine. Thanks, Melpignano Fabio --~--~-~--~~~---~--~~ 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] Re: activity leaked a window

2009-10-02 Thread Mark Murphy
Best would be to show/dismiss this dialog in the Activity I can't write code inside Activty's methods like onPause/onStop/onDestroy because the applications will not be mine always. They can be 3rd party apps. Create methods on your homebrew TextView implementation that Activity needs to

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-02 Thread Marco Nelissen
On Fri, Oct 2, 2009 at 12:54 AM, Gavin Bong gavin.emp...@gmail.com wrote: In the android Launcher app, Workspace.java accesses the mScrollX member variable. http://www.google.com/codesearch/p?hl=frsa=Ncd=2ct=rc#4r7JaNM0EqE/src/com/android/launcher/Workspace.javaq=computeScroll However it

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-10-02 Thread polyclefsoftware
Compatibility with 1.6 could be a real problem for ADC2. Yesterday I got the update to Donut on my G1. I had installed the ADC2 judging app a couple of days before. The judging app still works fine. Last night I downloaded an entry called OpenGesture. It force crashed over and over. I'm unable

[android-developers] Re: WebServer Android

2009-10-02 Thread Mark Murphy
I don't understand. I'm trying to find a web server wich can show me some files in a directory. I think that i-jetty could do this, but i'm looking for other solutions. I had a look at NanoHTTPD website, downloaded the .java files but I think it is useful to ask to you how to use it

[android-developers] Re: Android 1.6 SDK is here!

2009-10-02 Thread gjs
And how is that going to affect adc2 apps ??? On Oct 2, 4:52 am, Peter Jeffe pje...@gmail.com wrote: On Sep 15, 5:22 pm, Xavier Ducrohet x...@android.com wrote: http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here... And today T-Mobile is starting to roll it out to

[android-developers] Starting an Activity BEHIND the current Activity

2009-10-02 Thread mjc147
startActivity() displays the new Activity on top of the current one. But how to display it underneath instead? BTW, I'm starting an Activity from another application, if that makes a difference. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread Neil
That's an idea, but it's messy. I can't believe that the best way to solve this is to repeat that chunk of code everywhere you need it. I could put it in some utility class, but I'm sure there must be a nice neat way of doing it. Neil On Oct 2, 4:02 pm, Mark Murphy mmur...@commonsware.com

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread nEx.Software
Does this not work for you? listPreference.getEntry()); On Oct 2, 7:40 am, Neil neilb...@gmail.com wrote: That's an idea, but it's messy.  I can't believe that the best way to solve this is to repeat that chunk of code everywhere you need it.  I could put it in some utility class, but I'm

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-10-02 Thread Maps.Huge.Info (Maps API Guru)
On the other hand... For those that had a submission with a terminal error, it will put doubt into the minds of the judges as to the cause of the error: poor programming or 1.6. -John Coryat What Zip Code Radar Now! --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread nEx.Software
Without that extra closing paren of course. :) On Oct 2, 8:12 am, nEx.Software email.nex.softw...@gmail.com wrote: Does this not work for you? listPreference.getEntry()); On Oct 2, 7:40 am, Neil neilb...@gmail.com wrote: That's an idea, but it's messy.  I can't believe that the best way

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread Mark Murphy
Does this not work for you? listPreference.getEntry()); That only works from a PreferenceActivity. AFAIK, it does not help if you are looking to get the display value anywhere else. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-10-02 Thread Cédric Berger
On Fri, Oct 2, 2009 at 16:18, polyclefsoftware dja...@gmail.com wrote: it is poorly designed, or because of compatibility issues with 1.6. I gave the developers the benefit of the doubt and gave the app an overall 3 star rating. Best (fairest) thing to do when you suspect behavior may have

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread nEx.Software
Hmm, I was under the impression that this was being done from a PreferenceActivity. On Oct 2, 8:18 am, Mark Murphy mmur...@commonsware.com wrote: Does this not work for you? listPreference.getEntry()); That only works from a PreferenceActivity. AFAIK, it does not help if you are looking

[android-developers] Persistent data even when app uninstalled

2009-10-02 Thread chrisoz
My application needs to store some application specific data on the device that persist, even when the app is uninstalled. Using files or databases is not possible as they are deleted with the app when the app is uninstalled. Storing it on an SD-card is too fragile. It is my understanding Content

[android-developers] Why onFocusChangeListner does NOT work

2009-10-02 Thread Kaijun Meng
I set focuse change listner for DatePicker, but after I leave the DatePicker, select option in RadioGroup, it seems DatePicker still have the focus and the listner never be invoked. why? here are some code: DatePicker dpk = (DatePicker) findViewById(R.id.DatePicker01);

[android-developers] Can I get user's gmail address or handset SN to verify them?

2009-10-02 Thread NewPa
Hello, everyone. Here is the scenario: I plan to develop a application which can share ideas with others, this means user need submit their idea to my server through client apk. I don't like ask user to registration. Actually, Every gphone user have unique gmail address, unique IMEI,

[android-developers] Why onFocusChangeListner does NOT work

2009-10-02 Thread NewPa
I set focuse change listner for DatePicker, but after I leave the DatePicker, select option in RadioGroup, it seems DatePicker still have the focus and the listner never be invoked. why? here are some code: DatePicker dpk = (DatePicker) findViewById(R.id.DatePicker01);

[android-developers] Re: Persistent data even when app uninstalled

2009-10-02 Thread Mark Murphy
My application needs to store some application specific data on the device that persist, even when the app is uninstalled. Using files or databases is not possible as they are deleted with the app when the app is uninstalled. Storing it on an SD-card is too fragile. It is my understanding

[android-developers] Re: Why onFocusChangeListner does NOT work

2009-10-02 Thread Romain Guy
Because the DatePicker itself does not get focus, its children do. On Fri, Oct 2, 2009 at 8:29 AM, Kaijun Meng shiji...@gmail.com wrote: I set focuse change listner for DatePicker, but after I leave the DatePicker, select option in RadioGroup, it seems DatePicker still have the focus and the

[android-developers] Re: protected member variable mScrollX not accessible to subclasses of ViewGroup

2009-10-02 Thread Romain Guy
mScrollX is not part of the public API. Use getScrollX() and scrollBy()/scrollTo() to change it. On Fri, Oct 2, 2009 at 7:16 AM, Marco Nelissen marc...@android.com wrote: On Fri, Oct 2, 2009 at 12:54 AM, Gavin Bong gavin.emp...@gmail.com wrote: In the android Launcher app, Workspace.java

[android-developers] Re: Persistent data even when app uninstalled

2009-10-02 Thread nEx.Software
I'd say your options are: 1) Save the data to the SD Card (Easiest, but as you said, fragile.) 2) Save the data to the Web. (Not so easy, would be hard to work with from other applications.) 3) Provide the Content Provider as a separate application. (More work, more complicated for end-user, but

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-10-02 Thread polyclefsoftware
That makes sense. I knew we could skip installation of apps, but didn't know I could skip voting as well. I'll do that from now on. I haven't tested my entry under 1.6, so I don't know if there are issues. Your average user probably won't care if it doesn't work because of the OS version,

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-10-02 Thread Dan Sherman
But you would hope the number of developers voting would be significantly less than number of random users. And unfortunately, they very well might not think Oh, this could have something to do with the recent update and skip. They'll just give a 1 star. - Dan On Fri, Oct 2, 2009 at 12:05 PM,

[android-developers] ActivityManager.restartPackage() and syncing - Sync on StatusBar remains after killing

2009-10-02 Thread justinh
I was playing around with restartPackage() and I happened to do it on GMail (and others) while GMail was performing a sync operation. I went to Settings-Data synchronization and apparently Gmail and Calendar are stuck trying to sync. Or it just looks like they are- is there any way to verify

[android-developers] Re: Stripping Log._ out of production

2009-10-02 Thread Dan Sherman
I would imagine it does the string concat and then disregards it. It would concat, pass the final string to the function, fail the if, return, and discard the string... - Dan On Fri, Oct 2, 2009 at 9:31 AM, jsdf jasons...@gmail.com wrote: Hi all, I have been using the following conventions

[android-developers] Re: Persistent data even when app uninstalled

2009-10-02 Thread chrisoz
Interesting! Our appplication on windows mobile gives the user 7 days trial before a licence must be bought. So the date needs to be stored on the device. If not, the user might uninstall the app, install again and get another 7 days trial and so on. This illustrates how Windows Mobile makes it

[android-developers] Re: Persistent data even when app uninstalled

2009-10-02 Thread nEx.Software
AndAppStore has a licensing system that might work for that. On Oct 2, 9:32 am, chrisoz kristian.aus...@gmail.com wrote: Interesting! Our appplication on windows mobile gives the user 7 days trial before a licence must be bought. So the date needs to be stored on the device. If not, the

[android-developers] Re: Persistent data even when app uninstalled

2009-10-02 Thread Marco Nelissen
The other side of that of course is that persistent storage like you describe would allow the phone to be filled with data that the user has no visibility in to and no way to remove. On Fri, Oct 2, 2009 at 9:32 AM, chrisoz kristian.aus...@gmail.com wrote: Interesting! Our appplication on

[android-developers] Re: ActivityManager.restartPackage() and syncing - Sync on StatusBar remains after killing

2009-10-02 Thread Dianne Hackborn
You'll probably need to reboot your device. You could try toggling the sync checkbox to make it restart a sync, but this may not complete fix things. Force stopping built-in applications is playing with fire. :) (Fwiw, possibly you force stopped the apk in gapps that managers the connection to

[android-developers] Re: Starting an Activity BEHIND the current Activity

2009-10-02 Thread Dianne Hackborn
Sorry I don't believe there is a direct way to do this. On Fri, Oct 2, 2009 at 7:36 AM, mjc147 mjc1...@googlemail.com wrote: startActivity() displays the new Activity on top of the current one. But how to display it underneath instead? BTW, I'm starting an Activity from another application,

[android-developers] Re: Starting an Activity BEHIND the current Activity

2009-10-02 Thread Dianne Hackborn
Oh that said, if the activity that is doing the starting is not in front of the user, then if it starts another activity in its task than that also won't be, because the new activity needs to remain in its task. On Fri, Oct 2, 2009 at 9:46 AM, Dianne Hackborn hack...@android.com wrote: Sorry I

[android-developers] Re: Stripping Log._ out of production

2009-10-02 Thread Dianne Hackborn
Yeah you will still get the concats, which you really don't want to keep (those are really expensive). We typically write logging like this: if (DEBUG) Log.v(foo, this is something: + something); Then when DEBUG is false the entire statement, including string concatenation, is stripped. On

[android-developers] Re: Auto answer calls and hangup programmetically

2009-10-02 Thread Roman ( T-Mobile USA)
The Android SDK does not support this. Of course you find apps on the market place doing these kind of things but it is NOT the official way. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely

[android-developers] Re: activity leaked a window

2009-10-02 Thread Dianne Hackborn
onDetachedFromWindow() will be called before the text view is removed from its window. I can't recall exactly the sequence from destroy, but this should before we look for leaked windows. I am pretty sure that other widgets that use pop-up and dialog windows use this to remove them. On Fri, Oct

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-10-02 Thread Georgios Galyfos
I am sorry for asking this. I assume the developers taking part in the challenge are allowed to judge in the contest, but this way they would be allowed to judge even their own app, right? I havent used the judging app yet, being afraid to risk disqualification of my entry. The terms dont state

[android-developers] Re: Trouble using ListView

2009-10-02 Thread Yusuf Saib (T-Mobile USA)
So probably one of those parameters is null. Which one is it? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On

[android-developers] Re: AppWidgetProvider and BroadcastReceiver

2009-10-02 Thread sdphil
okay, so I am understanding this better. From my app widget, I can set different OnClickPendingIntent's as long as I make the action different - which I was *not* doing before, which is why it kept sending the first intent. Intent button1Intent = new Intent(context,

[android-developers] Re: Can I get user's gmail address or handset SN to verify them?

2009-10-02 Thread Dianne Hackborn
On Fri, Oct 2, 2009 at 8:30 AM, NewPa shiji...@gmail.com wrote: Actually, Every gphone user have unique gmail address Not true. Android is not a gphone. More and more devices will ship without requiring the user to sign in to a Google account, and even for ones that do there is no guarantee

[android-developers] Re: Persistent data even when app uninstalled

2009-10-02 Thread nEx.Software
Very true. I wouldn't want a bunch of orphaned data on my device. On Oct 2, 9:46 am, Marco Nelissen marc...@android.com wrote: The other side of that of course is that persistent storage like you describe would allow the phone to be filled with data that the user has no visibility in to and

[android-developers] orientation change in xml.

2009-10-02 Thread sdphil
is there a way to have a view use a different layout when an orientation change occurs. suppose i want the view to look one way in portrait and another way in landscape -- all the same data, but arranged differently. I'm thinking one way to do this would be to have two different linear layouts

[android-developers] Re: orientation change in xml.

2009-10-02 Thread Romain Guy
All you have to do is create a directory called layout-land/ and put a layout file with the same name in it. Android will take care of the rest. On Fri, Oct 2, 2009 at 11:24 AM, sdphil phil.pellouch...@gmail.com wrote: is there a way to have a view use a different layout when an orientation

[android-developers] Re: Can I get user's gmail address or handset SN to verify them?

2009-10-02 Thread Maps.Huge.Info (Maps API Guru)
What about: Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID) How unique/stable is this setting? I've been using it and it seems to work fine, at least for now. -John Coryat Radar Now! What Zip Code? --~--~-~--~~~---~--~~ You

[android-developers] How to launch activity act2.class (contained in project2.apk) from activity1 in project1.apk ?

2009-10-02 Thread DaminouU
Hi, I have two .apk file (wit their respective activity). I want to launch the second one from the first one. How can I do this? Just to be clear : I have project1.apk and project2.apk. act1 belongs to project1.apk and act2 to project2.apk. I would have done [in the code of act1] Intent

[android-developers] Re: Problem with creating AVD with 1.6 SDK

2009-10-02 Thread Xavier Ducrohet
This is the first time I've seen this. What's the content of SDK/platforms/android-1.6 ? You might want to re-download the SDK (or at least unarchive again if you still have the archive) Xav On Thu, Oct 1, 2009 at 6:13 PM, dsurround dsurro...@gmail.com wrote: I upgraded to the new SDK and I

[android-developers] Re: Stripping Log._ out of production

2009-10-02 Thread jotobjects
android.util.Config.DEBUG is true if this is a debug build. import static android.util.Config.DEBUG; if (DEBUG) ... On Oct 2, 9:48 am, Dianne Hackborn hack...@android.com wrote: Yeah you will still get the concats, which you really don't want to keep (those are really expensive).  We

[android-developers] Use internal micorphone with headphones?

2009-10-02 Thread Troglodad
When using a stereo headphone adapter in the ADP1, when the headphones are plugged in, despite the lack of any external microphone, the internal microphone is deactivated. This prevents the phone from being used as a car phone; I have my ADP1 on a windshield mount with audio routed via headphone

[android-developers] Re: Stripping Log._ out of production

2009-10-02 Thread Dianne Hackborn
android.util.Config.DEBUG is -only- for use by the platform. That probably never have should been in the SDK. (Actually, in either Donut or Eclair these are at least deprecated.) On Fri, Oct 2, 2009 at 11:44 AM, jotobjects jotobje...@gmail.com wrote: android.util.Config.DEBUG is true if this

[android-developers] Re: Stripping Log._ out of production

2009-10-02 Thread jotobjects
In 1.6 it is deprecated? What is the correct way to detect debug mode? On Oct 2, 11:59 am, Dianne Hackborn hack...@android.com wrote: android.util.Config.DEBUG is -only- for use by the platform.  That probably never have should been in the SDK.  (Actually, in either Donut or Eclair these are

[android-developers] WebView word touching ability?

2009-10-02 Thread UBZack
I was wondering whether there was a way, if you have a webview with some html being displayed in it, to obtain which part of the html is touched by the user. For example, say I have a webview that's displaying, in just plain text (no links), the following: The quick brown fox jumped over the

[android-developers] Re: Stripping Log._ out of production

2009-10-02 Thread fadden
On Oct 2, 12:14 pm, jotobjects jotobje...@gmail.com wrote: In 1.6 it is deprecated? What is the correct way to detect debug mode? This is expected to be used as a compile-time constant within the app framework. You can and should build your app for debug or release as you see fit,

[android-developers] Re: WebView word touching ability?

2009-10-02 Thread Jason Proctor
the easy way to do this is to have each word be a link -- you can style it so that it doesn't look like it -- and then have a custom WebViewClient handle the link and do whatever you want. another way would be to have javascript pick up the touch and somehow determine which part of the DOM

[android-developers] Re: WebView word touching ability?

2009-10-02 Thread UBZack
Thanks very much for your reply! I think I will do something like having each word be a link, it seems the most plausible idea. On Oct 2, 3:36 pm, Jason Proctor jason.android.li...@gmail.com wrote: the easy way to do this is to have each word be a link -- you can style it so that it doesn't

[android-developers] Retrieving Images

2009-10-02 Thread Rana
Hello Dear, I want to retrieve images from Android Media provider. Here I want to limit the selection by TITLE, or LOCATION, or others. I am trying in several ways. but getting problems.. you can see my Uri uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; //displaySdCard(); //

[android-developers] Reading from XML

2009-10-02 Thread Eray Ince
Hello, I would like to develop a rss reader, Is there anyone who could send me example? Thanks in advance. -- -- Eray --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

  1   2   >