[android-developers] When to close database in ContentProvider

2009-03-01 Thread Wah
I am trying to write a ContentProvider which itself is based on a SqlLite database. I am puzzled when I need to close the database because ContentProvider has onCreate( ) function but not onDestroy( ) function. I downloaded the android source code tree, and found

[android-developers] Re: how to application knows that the view of device changed from portrait to landscape.

2009-03-01 Thread Kather Jailani
hi, look for help on onConfigurationChanged event and check the orientaion against Configuration.ORIENTATION_LANDSCAPE / Configuration.ORIENTATION_PORTRAIT. This event expose config as a parameter as given below and also add android:configChanges to manifest onConfigurationChanged (Configuration

[android-developers] Re: SAXParser fails on some RSS feeds

2009-03-01 Thread 3D
I'm working on the same problem right now. I'll take a look at TagSoup. Otherwise, I was just thinking of scrubbing out the invalid tokens before sending it to the xml reader. Please let me know what you find/ decide to do. On Feb 28, 8:19 pm, Tim Bray timb...@gmail.com wrote: On Sat, Feb

[android-developers] Re: SAXParser fails on some RSS feeds

2009-03-01 Thread Tim Bray
On Sun, Mar 1, 2009 at 12:48 AM, 3D ernestgfre...@gmail.com wrote: I'm working on the same problem right now.  I'll take a look at TagSoup.  Otherwise, I was just thinking of scrubbing out the invalid tokens before sending it to the xml reader.  Please let me know what you find/ decide to

[android-developers] Re: Pls help: how to reinstall dev phone?

2009-03-01 Thread Yossi
Hi Faber, Travis, I managed to fix it. it was the DroidSans.ttf that was corrupted (tried to replace it before). After copying it again, the phone is alive! Thanks for your support. Yossi On Mar 1, 5:25 am, Travis Cross t...@travislists.com wrote: Yossi wrote: this is what it shows

[android-developers] displaying contents

2009-03-01 Thread karthick
hi...am an engg student from india how to display the contents retrieved from a server in android application --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: How to get more sales on the Android Market

2009-03-01 Thread Al Sutton
non-technical users do not use linux, whereas non-technical users do buy G1 phones Android, and hence the G1 is Linux based, therefore that statement can't be true. G1 users may avoid issuing shell commands, but they are still Linux users. Al. Inderjeet Singh wrote: The linux comparison is

[android-developers] Re: Dev Phone and RC33 update

2009-03-01 Thread Al Sutton
Jon, I think we're going to have to agree to disagree. As I see it you're not willing to factor in the difficulty level in cracking the system and implementing a generic method as a differentiating factor between the protection methods, whereas my viewpoint is based on the level of effort

[android-developers] Re: Assuming Developers are Pirates

2009-03-01 Thread Al Sutton
The AndAppStore method can use the Android ID (source code is on the page Howie mentioned), and the Cupcake release adds measures to stop users altering the Android ID on the device which make it a more reliable thing to use. Al. Howie wrote: Al Sutton has developed something like this for

[android-developers] Re: Multi Touch Support

2009-03-01 Thread Al Sutton
That's only a US patent, so anyone other than Apple can use multi-touch, it's *only* if they have assets in the US that a problem arises. Al. Tseng wrote: Actually the chance on Multi-Touch support is next to zero. Apple was granted the patents for multi-touch, in other words no one other

[android-developers] Re: How to enable debug logging in android source

2009-03-01 Thread Mads Kristiansen
Doing something like Log.d(MyApp, Debug log entry); in your own application will make that entry appear in the log, which can be viewed with adb logcat. There shouldn't be any need to enable logging. / Mads On Sun, Mar 1, 2009 at 4:37 AM, ying lcs ying...@gmail.com wrote: Hi, In android

[android-developers] Efficient contact search

2009-03-01 Thread TAKEphONE
Hi, I am trying to search/filter contacts by their organization field/s. Problem is this is WAY to slow - only way I could figure out to do this is querying through all contacts, then locating the ones with organizations (primary_organization id not zero), then querying PER CONTACT the

[android-developers] Re: anyway to return to original activity after call ends?

2009-03-01 Thread TAKEphONE
Hi, Been trying to do the same myself. Could not find a way besides adding the intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data

[android-developers] Re: OpenGL ES show case

2009-03-01 Thread opengl es
Hi, yes it uses the latest emulator package; the 1.1rc1 one, and didn't do anything specific for opengl es franck On Feb 27, 7:39 am, Sachin pandhare sachinpandh...@gmail.com wrote: Hi Franck, the performance looks good. this is on emulator if i am not wrong. does it use the latest

[android-developers] Re: FILE CHOOSER HELP

2009-03-01 Thread Peli
Have a look at OI File Manager http://www.openintents.org/en/node/159 Peli www.openintents.org On 28 Feb., 16:21, ANDREA P andrewpag...@gmail.com wrote: Hi, Is there a FileChooser for Android ??? Because I want to select a file from File System and after send it. Thanks !!

[android-developers] Re: System log buffer size

2009-03-01 Thread AGA
Dear Group, The problem is still here... The logcat -f can give only partial solution. After the device is turned off, the logcat -f has to be executed again. If I need constantly enough log information from the system 64K is not enough. I've tried to execute logcat -f on start up - without

[android-developers] Top status bar color - can be changed?

2009-03-01 Thread AGA
Dear Group, I'd like to change the color of the top status bar to match the application appearance, Please help me how can I control this property? ___ Thanks in advance, AGA --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Alarms get lost when upgrading an application

2009-03-01 Thread StefanK
I noticed the same thing. I looked at the AlarmManger code and it stores its data in in-memory arrays that are not persisted (nor publicly accessible) , even more the pending intents that the AlarmManager refers to are also lost when the device is restarted or the application is uninstalled.

[android-developers] Re: SAXParser fails on some RSS feeds

2009-03-01 Thread StefanK
In my experience, the problem is in many cases in the character encoding used in the feed. If the feed is encoded using ISO-8859-1 encoding (which is what CNN top stories appears to use), and you are trying to read it using the default UTF-8 encoding some symbols will come as invalid and break

[android-developers] How to get auth token (GoogleLoginService?)

2009-03-01 Thread grennis
I'm wondering how to use the GData APIs without requiring the user to type their username and password in my app. The user has to login to the phone, so it doesn't make much sense to me that apps would require them to type it in again. The phone's calendar and gmail apps obviously don't prompt so

[android-developers] Re: Best option to create alarm

2009-03-01 Thread Edward Falk
You want AlarmManager. It allows you to create an Intent object and have it broadcast at a later time. Then you write a broadcast receiver, service, or other object to receive the intent and wake up. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Alarms get lost when upgrading an application

2009-03-01 Thread Mariano Kamp
Stefan, thanks for pitching in and shedding some light on it. Also not a deterministic approach, but at least it is not tied to the UI. Anybody else with another apporach? Cheers, Mariano On Sun, Mar 1, 2009 at 4:16 PM, StefanK skyntc...@gmail.com wrote: I noticed the same thing. I

[android-developers] Re: upgrade issues and other market problems for developers

2009-03-01 Thread wayne mcfadden- Red Droid
I have this problem too. Hopefully google will fix the problem and remove the one star rankings caused by the download issue. This is obviosly going to affect everyone who publishes to the marketplace so just balance it out. On Feb 28, 2:39 pm, carnivalcom...@gmail.com carnivalcom...@gmail.com

[android-developers] Re: Dev Phone and RC33 update

2009-03-01 Thread Jon Colverson
On Mar 1, 9:17 am, Al Sutton a...@funkyandroid.com wrote: I think we're going to have to agree to disagree. As I see it you're not willing to factor in the difficulty level in cracking the system and implementing a generic method as a differentiating factor between the protection methods,

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 7:40 AM, madcoder paperga...@gmail.com wrote: I thought I had solved this problem here http://groups.google.com/group/android-developers/browse_thread/thread/260f2951d4a23445/d676c2a7d6b66c20?hl=enlnk=gstq=onpreparedlistener#d676c2a7d6b66c20 but apparently not. I

[android-developers] setImageResource causes NullPointerException, so does setVisibility(View.GONE)

2009-03-01 Thread Will
I have this exact same problem as here: http://groups.google.com/group/android-beginners/browse_frm/thread/daa2634b42a2975/415dd6e5bf920157?lnk=gstq=How+to+declare+images+for+ImageView#415dd6e5bf920157 ImageView IV; IV = (ImageView) findViewById(R.drawable.top);

[android-developers] Re: How to intercept KEYCODE_DPAD_CENTER correctly?

2009-03-01 Thread Marco Nelissen
You could try grabbing it in dispatchKeyEvent(), however if another view (visibly) has focus, then your application's users are going to be confused when pressing the trackball does not invoke the selected item, but does something else instead. Can you make your views non-focusable instead?

[android-developers] Re: setImageResource causes NullPointerException, so does setVisibility(View.GONE)

2009-03-01 Thread Mark Murphy
Will wrote: I have this exact same problem as here: http://groups.google.com/group/android-beginners/browse_frm/thread/daa2634b42a2975/415dd6e5bf920157?lnk=gstq=How+to+declare+images+for+ImageView#415dd6e5bf920157 ImageView IV; IV = (ImageView) findViewById(R.drawable.top);

[android-developers] Re: Can I download my code off my phone?

2009-03-01 Thread Edward Falk
I'm going to guess that the only thing installed on your phone is compiled bytecode. There *might* be a way to fetch it back out of the phone with adb, but you'd still have to de-compile the byte code back to Java. Frankly, I think you'd be better off just reconstructing your work.

[android-developers] Re: How to intercept KEYCODE_DPAD_CENTER correctly?

2009-03-01 Thread Teo
That did the trick! Thanks! It's a bit complicated... My app is a todo list, and i kind of have a symmetric concept (touch vs. keyboard) there's basically nothing you can't do in either of them. Theoretically there could be an infinity of views, and it would be a little too much overhead to set

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Marco Nelissen
One thing you might want to try is to grab the wakelock in the receiver itself, not in the thread. The way it is now, it's theoretically possible for the receiver to exit and the phone to go back to sleep before your threads ever gets a chance to run. On Sun, Mar 1, 2009 at 9:27 AM, Mariano

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Mariano Kamp
Thanks for not giving up on me ;-) I thought about that, but the log shows that I acquired the lock and then nothing more happens. Also I would need to use a Thread.join() in the onReceive Method to wait for the thread to finish, which would lead to a long execution of the onReceive() method. If

[android-developers] Re: Easy Eclipse Help?

2009-03-01 Thread Noam
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 9:43 AM, Mariano Kamp mariano.k...@gmail.com wrote: Thanks for not giving up on me ;-) I thought about that, but the log shows that I acquired the lock and then nothing more happens. Except in the last example you gave, where it doesn't even get to the acquire. Also

[android-developers] Re: setImageResource causes NullPointerException, so does setVisibility(View.GONE)

2009-03-01 Thread Will
D'oh. Thank-you for the second set of eyes. On Mar 1, 11:46 am, Mark Murphy mmur...@commonsware.com wrote: Will wrote: I have this exact same problem as here: http://groups.google.com/group/android-beginners/browse_frm/thread/da... ImageView IV; IV = (ImageView)

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Jon Colverson
I don't think it's valid to start a Thread in a BroadcastReceiver. The system doesn't know anything about that thread, so it wouldn't know that it's supposed to keep the process hosting it around. My app nanoTweeter does similar background polling and I acquire the WakeLock in the

[android-developers] HTML login form works in Android browser and fails with WebView ?

2009-03-01 Thread Derek
Hi all, I'm facing the following problem. I'm opening Flickr HTML login form with default Android browser and everything works fine when I'm logging (click sign in button in HTML form): String url = http://m.flickr.com/;; Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW);

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-01 Thread Derek
To get the login form, use: String url = http://m.flickr.com/signin/;; On Mar 1, 9:03 pm, Derek cram.de...@gmail.com wrote: Hi all, I'm facing the following problem. I'm opening Flickr HTML login form with default Android browser and everything works fine when I'm logging (click sign in

[android-developers] openGL ... does it make sense?

2009-03-01 Thread robotissues
I am in the thick of developing an app for the G1. My app is in 2D now ... I am imagining what it would look like in 3D ... I am trying to determine if its worth the effort to go down this road and would appreciate feedback from users who have actually worked with it. 1.) What is the real world

[android-developers] Animation Styles

2009-03-01 Thread skink
hi, i tried to use my popupWindow with some enter/exit animations - it has setAnimationStyle() method for that purpose. after some time i realized i cannot use my own custom animation styles which is ok but a bit limiting. so i tried system ones: R.style.Animation_Toast works ok, but

[android-developers] Detect shaking

2009-03-01 Thread J . Pablo Fernández
Hello, Is there an easy way to detect shaking of the phone? Or do I have to implement it myself by monitoring the sensors? If so, any hints on how shaking looks like from the sensor point of view? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com)

[android-developers] Re: How to get auth token (GoogleLoginService?)

2009-03-01 Thread Christine
I can see why the user's Google credentials are not accessible to just any app. I wouldn't want apps to be able to use my Google credentials unless I specify that it's ok. The minimum requirement would be that access to Google credentials would require a line in the manifest file so the user

[android-developers] Re: anyway to return to original activity after call ends?

2009-03-01 Thread stematt
Thanks! This defenitely helps, although not an ideal solution. I've tried doing something in phone state listener but didn't work out, still keep looking... On Mar 1, 6:23 am, TAKEphONE shimo...@gmail.com wrote: Hi, Been trying to do the same myself. Could not find a way besides adding the

[android-developers] Re: openGL ... does it make sense?

2009-03-01 Thread Streets Of Boston
I wrote my app using OpenGL. It's The Gube. The phone is pretty good at rendering the OpenGL vertices, textures, lighting, etc. It works well for my app. There is a bit of a learning curve for OpenGL. But it's doable. It did it :-). The main thing to keep in mind that OpenGL is implemented as a

[android-developers] Re: speech to text api

2009-03-01 Thread Rob Franz
I asked the same question. The answer is no, unfortunately. -Rob On Sun, Mar 1, 2009 at 12:24 AM, Zi Yong Chua chu...@gmail.com wrote: hi guys since android now has speech to text search, anyone know if the API is available to the developers?

[android-developers] Re: Check EditText for email?

2009-03-01 Thread Mark Murphy
Noam wrote: Hello everyone, Is there a way to verify that the text that the user entered into the EditText widget is actually an email? http://www.google.com/search?q=email+address+validation+java -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android

[android-developers] Re: How to enable debug logging in android source

2009-03-01 Thread ying lcs
Thank you. In the View.java, it has code (see below), when will public void debug() get called? Or how to call that function? /** * Prints information about this view in the log output, with the tag * {...@link #VIEW_LOG_TAG}. * * @hide */ public void debug() {

[android-developers] Android source code to find out which drawable a widget should use for its background?

2009-03-01 Thread Meryl Silverburgh
Hi, Can you please tell me where is the android code which picks the different drawable will be used as background when it has focus? For example, I have the following setup for my widget: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: Assuming Developers are Pirates

2009-03-01 Thread Dianne Hackborn
The whole premise of this discussion is wrong. What has happened is: 1. The developer asked for their application to be copy protected with forward locking. 2. The user is running a phone that is unlocked, so can not do that kind of copy protection. 3. The Market does not allow the user to

[android-developers] Re: Android source code to find out which drawable a widget should use for its background?

2009-03-01 Thread Romain Guy
Hi, You should look at StateListDrawable.java. On Sun, Mar 1, 2009 at 4:50 PM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, Can you please tell me where is the android code which picks the different drawable will be used as background when it has focus? For example, I have

[android-developers] Re: what happened to Logcat inside eclipse?

2009-03-01 Thread Charlie Collins
Definitely still there with 1.1. Maybe you closed the view, or something is corrupt? You can open just that view (Eclipse view I mean). Window-Show View-Android- pick from there. http://code.google.com/android/intro/develop-and-debug.html#developingwitheclipse On Mar 1, 6:39 pm, 3D

[android-developers] webview problems when rendering HTML and using loadData

2009-03-01 Thread Clay
I know that many of you know this already but I am making a post because I spent 5 hours trying to figure out why loadData was not working. This does not pop up easily in searches of the mailing list. TAGS: webview background white android loadData WebView momentContent =

[android-developers] Re: Detect shaking

2009-03-01 Thread Charlie Collins
You probably want the SensorManager and SensorListener: http://code.google.com/android/reference/android/hardware/SensorManager.html http://code.google.com/android/reference/android/hardware/SensorListener.html Also TiltLander has a nice concise example:

[android-developers] Re: Detect shaking

2009-03-01 Thread JP
Don't expect it to be terribly accurate. Good luck. On Mar 1, 5:58 pm, Charlie Collins charlie.coll...@gmail.com wrote: You probably want the SensorManager and SensorListener: http://code.google.com/android/reference/android/hardware/SensorManag...

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 4:55 PM, Paper Coder paperga...@gmail.com wrote: I didn't realize it wouldn't return the media player until it was ready to play. Now the methods in media player make much more sense.  I was wondering why there wasn't a way to create a new media player object with the

[android-developers] Detect existence of an app or intent

2009-03-01 Thread Wah
Is it possible for one app A to detect whether another app B or some intent in B exists? I know the package name and the intent name in app B, but I don't want to invoke the intent. Wah --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: what happened to Logcat inside eclipse?

2009-03-01 Thread 3D
Ok, I found it. Thanks. On Mar 1, 5:49 pm, Charlie Collins charlie.coll...@gmail.com wrote: Definitely still there with 1.1. Maybe you closed the view, or something is corrupt? You can open just that view (Eclipse view I mean). Window-Show View-Android- pick from there.

[android-developers] Re: SAXParser fails on some RSS feeds

2009-03-01 Thread 3D
I just wanted to report that I've tried TagSoup and at first glance it seems to be doing exactly what I want - this is great! Instead of using a SAXParserFactory I'm now using the SAXFactoryImpl class in TagSoup to instantiate a new SAXParser. I will need to look it over a bit more but it just

[android-developers] Re: Pick multiple contacts from the contacts application

2009-03-01 Thread Sanjay
Were you able to figure out how to pick multiple contacts from the addressbook? Is there a way to do it anyone? I'm using Intent.ACTION_GET_CONTENT to pick one contact but don't know if it's possible to pick multiple contacts. On Feb 17, 5:20 am, for android forandr...@gmail.com wrote: Is there

[android-developers] Re: How to use proxy server on the g1?

2009-03-01 Thread sparso
Hello, I've written an application which may help, it allows you to use the browser from behind a proxy server on a WIFI network. Search for the ProxySetting application on the market (its free). At the moment Android only allows proxy information to be used when you are connected to a GPRS/3G

[android-developers] execute unix command from an android app

2009-03-01 Thread ledzgio
hi all guys, I'am new of Android developement... how can i execute a unix command from an android application? i want to execute the setprop command from an activity and set DNS from a simple UI.. anyone knows how to do it? thanks --~--~-~--~~~---~--~~ You

[android-developers] help about SMS BroadcastReceiver conflict with GPS LOCATION_SERVICE

2009-03-01 Thread Kevin AN
code is here: public void onReceive(Context context, Intent intent) { LocationManager lm = (LocationManager) context.getSystemService (Context.LOCATION_SERVICE); loc = lm.getLastKnownLocation(gps).toString(); PendingIntent dummyEvent =

[android-developers] Re: unzip

2009-03-01 Thread BenAveling
# An unexpected error has been detected by Java Runtime Environment: # #  Internal Error (classFileParser.cpp:2924), pid=3624, tid=6748 #  Error: ShouldNotReachHere() # # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode windows- x86) # An error report file with

[android-developers] How to get an interface on a service without destroying the service at unbind

2009-03-01 Thread michael.bollm...@googlemail.com
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information. So i thought it would be nice to broadcast some kind of state_changed event from my service

[android-developers] Device Interface to Android Phone

2009-03-01 Thread Mike E K
I'd like to develop a device that interfaces to a G1 or other upcoming Android phone. The phone would be docked to this device in order to provide some external functionality. The G1 has the following interface - HTC ExtUSB™ (11-pin mini-USB 2.0 and audio jack in one) - but I'm not sure if this

[android-developers] Android application without UI

2009-03-01 Thread Javier Segura
Hello All, I've written a simple app for android that changes the content of a System Setting. For use it I create a simple Activity that makes the job. When I execute this app it shows for less than a second a black ui (the layout of this activity). There is any method for refactor my app in a

[android-developers] Regarding installation of application in memory card in G1

2009-03-01 Thread hoffy
Hi, Just wondering how can we install the applications in my memory card of HTC dream...cause by default it gets installed in the phone memory and my memory is very low now thanks cheers --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Soap issues

2009-03-01 Thread Seer
Guys, Is there a Soap lib for android? I know Soap is not the best for the android but the web services i wish to use are written in soap. I have tried ksoap2 but none of the versons of ksoap i have been able to find will work with android sdk 1.0 or 1.1. I have tried a version of ksoap2

[android-developers] Re: Detect shaking

2009-03-01 Thread Miles Smith
As I haven't really implemented anything with the accelerometer yet, I don't know exactly, but I would go about it by monitoring normal, non-shaking values from the sensor, then anything that fell out of those ranges for a certain amount of time would be considered shaking. my 2 cents. On Sun,

[android-developers] Re: Need Official HOW-TO: Upgrade from Original ADP1 firmware to RC33

2009-03-01 Thread MF
This is great news! Where will the ADP1 images be deployed to; i.e. is there an official site (e.g. developer.android.com)? MF On Feb 17, 4:51 pm, Jean-Baptiste Queru j...@android.com wrote: We're working on having an official 1.1 system image available for the ADP1. It will not be

[android-developers] Re: Just learning to write apps

2009-03-01 Thread hanifbbz
On Feb 27, 7:12 pm, BryBam bry...@gmail.com wrote: So, unfortunately i have no exp whatsoever with writing software. Just html, xhtml, php, sql basically  just web experience. I'm looking for a guide on writing a simple app using eclipse, i just installed the android SDK to it.  Something

[android-developers] Cookies

2009-03-01 Thread Miles Smith
How does one go about setting a cookie? I have an website that sends mp3's to clients, but the request must have a cookie attached to it. How would I go about setting a cookie for a MediaPlayer URL request? Is that even possible? --~--~-~--~~~---~--~~ You received

[android-developers] JKS or PKCS12 Keystores

2009-03-01 Thread Markus
Hi, I've read that I can't import private and public keys from a PKCS12 or JKS-Keystore in order to sign or encode a message within my android- application. Are there any other possibilites to import my private key into an app? Is it planned to support these keystores?

[android-developers] How to avoid my background thread been killed ??

2009-03-01 Thread Ashrotronics
Hello,everyone! As is mentioned above,What i'm trying is to protect a sub- thread,and keep it going on as long as the App that starts it is still alive.In other words,If the system need more resources,Let it kill both the App main thread and the sub-thread started from it,Instead of just

[android-developers] Re: How to get an interface on a service without destroying the service at unbind

2009-03-01 Thread Marco Nelissen
Call startService() first, and then after that bind to the service as usual. On Sun, Mar 1, 2009 at 10:46 AM, michael.bollm...@googlemail.com michael.bollm...@googlemail.com wrote: My service works exactly the way i want as long as i use start and stop and communicate using intents.

[android-developers] Re: Detect existence of an app or intent

2009-03-01 Thread Marco Nelissen
Try PackageManager.resolveActivity() On Sun, Mar 1, 2009 at 6:53 PM, Wah mobic...@gmail.com wrote: Is it possible for one app A to detect whether another app B or some intent in B exists? I know the package name and the intent name in app B, but I don't want to invoke the intent. Wah

[android-developers] Re: Android Xml / Widget reference?

2009-03-01 Thread Romain Guy
XML tags map to classes. Just look at the documentation of the control you want and it should show the list of valid XML attributes at the top with their Java API equivalent (for instance: http://developer.android.com/reference/android/widget/FrameLayout.html) On Sun, Mar 1, 2009 at 12:01 AM,

[android-developers] Re: Cookies

2009-03-01 Thread Marco Nelissen
On Sat, Feb 28, 2009 at 10:44 PM, Miles Smith mi...@vimae.com wrote: How does one go about setting a cookie? I have an website that sends mp3's to clients, but the request must have a cookie attached to it. How would I go about setting a cookie for a MediaPlayer URL request? Is that even

[android-developers] Re: How ratio of dp-to-pixel change with the screen density?

2009-03-01 Thread Xiongzh
Thank you very much for your clear explaination. Now I agree with you that we had better use dip/sp as the dimention unit to design the UI. However when we shall use px/mm/pt? On 3月1日, 下午12时16分, Romain Guy romain...@google.com wrote: Hi, The reason for dip to exist is simple enough. Take for

[android-developers] Re: How to avoid my background thread been killed ??

2009-03-01 Thread Jon Colverson
On Mar 2, 3:32 am, Ashrotronics 030440...@163.com wrote:    As is mentioned above,What i'm trying is to protect a sub- thread,and keep it going on as long as the App that starts it is still alive.In other words,If the system need more resources,Let it kill both the App main thread and the

[android-developers] Any Listener for shake movement ?

2009-03-01 Thread gganesh
hi, Is there any Listener able to listen for shake movement . when someone shakes the phone an event should be triggered ,how I'm supposed to do that ,any idea on this topic is appreciable. Thanks ganesh --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: what's the way to put or access a file onthe sdcard

2009-03-01 Thread Cloudy
would you give me a example .pls thanks 2009-03-02 Cloudy 发件人: Marco Nelissen 发送时间: 2009-02-25 02:09:36 收件人: android-developers 抄送: 主题: [android-developers] Re: what's the way to put or access a file onthe sdcard The sdcard is mounted at /sdcard (or rather:

[android-developers] Re: Think twice before turning on the Copy Protection option! -- there's a serious bug in Market

2009-03-01 Thread csvy
I just had the same issue happen to my application. I decided to disable Copy Protection after reading how useless it was, and now everyone is getting Force Quit errors on Activities with a WebView!!! I have turned Copy Protection back on and added a note to the description saying to uninstall

[android-developers] Re: Assuming Developers are Pirates

2009-03-01 Thread Al Sutton
Market doesn't stop downloading of applications to devices that don't support copy protection because users with a rooted US G1 firmware are allowed to download the apps (see http://strazzere.com/blog/?p=185). I'm going to play devils advocate here because I can see where many of the posters