[android-developers] difference between start a service and a thread

2008-09-18 Thread elvisw
I'm not so familiar with the service mechanism. A simple question here, what is the difference between starting a service and starting a thread in a BroadcastReceiver?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: question about process restart management

2008-09-18 Thread Anshul
Hackborn, I am having the same problem as mentioned in the mail thread below that my activity is being restarted after I am killing it through DDMS or Android shell. My activity starts a service that just prints Hello in OnCreateFunction using Log class and does nothing else. From your e-mail

[android-developers] listActivity and checkBox

2008-09-18 Thread elephantbug
Hi, Android supports to bind and populate data to a list view in listActivity through some adapters. You can define the list view in a xml file. Take notePad as example: //--- // noteslist_item.xml

[android-developers] Re: Ending a call

2008-09-18 Thread anu
I do not want to end the call manually. I need to code it in the same way as I code in the call origination. In m5, there were APIs to both call and endCall. Similarly, I used the intent ACTION_CALL and ACTION_DIAL to start the call. But, I need to end the call after some delay. Is it possible in

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread elvisw
or what about starting a service that starting the thread? On Sep 18, 2:08 pm, elvisw [EMAIL PROTECTED] wrote: I'm not so familiar with the service mechanism. A simple question here, what is the difference between starting a service and starting a thread in a BroadcastReceiver??

[android-developers] Re: How to use SmsManager.sendDataMessage() to send the message

2008-09-18 Thread anywhere
hi Justin Thans for your assistance. I still have other two issues to bother you. (1) Whether Android support sending a text message with a port? If not, whether will be supported in future release? I find SmsManager#sendDataMessage can be used to send a binary message

[android-developers] Re: How to use SmsManager.sendDataMessage() to send the message

2008-09-18 Thread anywhere
hi Justin Ithink i have found the answer to the question 2. i think BroadcastReceiver#getResultCode() can get the sms send result. Please help to anwer the following question 1. Thanks (1) Whether Android support sending a text message with a port? If not, whether will be supported

[android-developers] Re: question about process restart management

2008-09-18 Thread hackbod
If you have called startService() for your service, then you are saying you want it to run until it is stopped. So if you kill your process, it will be restarted to continue running the service. Also, when a process running the foreground activities is killed, then that activity will be removed

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread hackbod
Well you simply shouldn't start a thread in BroadcastReceiver, as explained here: http://code.google.com/android/reference/android/content/BroadcastReceiver.html (starting a thread would count as an asynchronous operation). A BroadcastReceiver lets you do a quick, on-shot operation in response

[android-developers] parse XML String...

2008-09-18 Thread Wesley Sagittarius
hi, I don't know how to parser just a xmlString... I only know how to parser xmlDocument or files... can anyone show me how or guide me??? thanks... wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] AlertDialog.Builder not showing items but when there is selection by up-down key it shows

2008-09-18 Thread jalandar
AlertDialog.Builder not showing items but when there is selection by up-down key it shows presently I am using private ArrayAdapterString aa; public Builder ab1; aa=new ArrayAdapterString(this,android.R.layout.simple_list_item_1, mStrings); ab1.setAdapter(aa,new

[android-developers] Create custom zoom contols in Mapview

2008-09-18 Thread CG
Hi, I'd like to create some custom zoom control in the mapview. I don't know where to start. I temporally did some stuff like this : LinearLayout zoomView = (LinearLayout) mapViewFromXML.getZoomControls(); zoomView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,

[android-developers] run emulator on eclipse

2008-09-18 Thread dai
hi, I heard that we dont need to re-run android emulator with eclipse every time source code has been compiled because the emulator would change dynamically. Is it truth? If yes, does anyone know the way to do so?? --~--~-~--~~~---~--~~ You received this message

[android-developers] Unimplemented intents in Notepad tutorial

2008-09-18 Thread Peli
I just went through the list of intents used in the Notepad tutorial for the compilation of a list of intents ( http://www.openintents.org/en/node/35 ), and noticed that there are two unimplemented intents in the Manifest: http://code.google.com/android/samples/NotePad/AndroidManifest.html

[android-developers] Re: listActivity and checkBox

2008-09-18 Thread Mark Murphy
elephantbug wrote: It works fine. Now my question is how to differentiate those populated TextView? Do they have different IDs? As you have it implemented, not really. Technically, they might, but I don't think you have any way to get at them by ID. Why do you need to differentiate between

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread elvisw
Is it an okey implementation that starting a thread in BroadcastReceiver and the thread will not call back the BroadcastReceiver?? The thread doesn't interact with the BroadcastReceiver, keeping doing its job, and doesn't care if the BroadcastReceiver is still active (still in onReceive() ).

[android-developers] Re: Video playback in Android emulator

2008-09-18 Thread Anil Sasidharan
Hi, The issue is resolved now with a freshly generated 3gp video (I may have to see what actually went wrong with the initial 3gp file) Warm Regards, Anil On Wed, Sep 17, 2008 at 11:57 PM, Megha Joshi [EMAIL PROTECTED] wrote: Could you send your 3gp file and the logcat output to

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread Peli
Yes, as far as I understand there is the risk that your thread can get killed anytime, because the system does not assume that a thread should be running. The whole process will be killed including all threads. Carefully read this paragraph from the link given above by hackbod: Once you return

[android-developers] Re: difference between start a service and a thread

2008-09-18 Thread elvisw
got it, deeply appreciate all your comments... thank u and hackbod... :) On 9月18日, 下午9時50分, Peli [EMAIL PROTECTED] wrote: Yes, as far as I understand there is the risk that your thread can get killed anytime, because the system does not assume that a thread should be running. The whole

[android-developers] Re: Intercept incoming call

2008-09-18 Thread Charlie Collins
Good point Mark. I was speaking in terms of using the API to develop an application. Those delivering their own platform all the way to firmware probably will, and certainly should, have access to all of that. In terms of the now now type comments (@kstamm), yes, it will be open source all the

[android-developers] Re: Intercept incoming call

2008-09-18 Thread Charlie Collins
I would agree that that sounds like a good call. ;) That still would not interrupt the dialer screen if already in a call, and could be configured based on permissions, good idea. On Sep 17, 2:41 pm, friedger [EMAIL PROTECTED] wrote: I could imagine an application that accepts a call when the

[android-developers] Re: run emulator on eclipse

2008-09-18 Thread Charlie Collins
Just leave the emulator running, and re-launch your application in Eclipse. The emulator doesn't have to be restarted every time, but your app does. On Sep 18, 7:59 am, dai [EMAIL PROTECTED] wrote: hi, I heard that we dont need to re-run android emulator with eclipse every time source code

[android-developers] Beta support for resource sharing

2008-09-18 Thread Cheryl Sedota
The beta SDK release notes found here http://code.google.com/android/RELEASENOTES.html state: Starting with this release, Android .apk files must be cryptographically signed, or the system will reject them upon installation. The purpose of this requirement is to securely and uniquely identify

[android-developers] Re: Beta support for resource sharing

2008-09-18 Thread hackbod
Could you please expand on does not work? Are there error messages in the log? What value are you getting back, or are you getting an except? Specifically for resources, the change to require signing has no impact, because it is safe to load and use resources in any process (the resources

[android-developers] Re: Beta support for resource sharing

2008-09-18 Thread Cheryl Sedota
I am getting a return value of '0' which essentially means resource not found AFAIK. Note that I am passing the context for the leveraging app, but the package name declared in the AndroidManifest of the common app. Thanks! Cheryl On Sep 18, 11:18 am, hackbod [EMAIL PROTECTED] wrote: Could

[android-developers] Re: Beta support for resource sharing

2008-09-18 Thread joebowbeer
On Sep 18, 9:18 am, hackbod [EMAIL PROTECTED] wrote: Specifically for resources, the change to require signing has no impact, because it is safe to load and use resources in any process (the resources aren't code that can run in the process loading them). Also the ONLY thing that changed in

[android-developers] Re: Unimplemented intents in Notepad tutorial

2008-09-18 Thread joebowbeer
See http://code.google.com/p/android/issues/detail?id=885 As opposed to removing VIEW from the manifest, I think a cooperative NotePad should implement VIEW on the content it manages. On Sep 18, 5:15 am, Peli [EMAIL PROTECTED] wrote: I just went through the list of intents used in the Notepad

[android-developers] gtalkservice

2008-09-18 Thread Song
Hi I plan to develop a GTalk client base on Android SDK 0.9 Bata, but I can not find the document about GTalkService in the sdk. When I look backward the earlier sdk, I found the GTalkService API have changed a lot. So there is anyone can give me a suggestion? Where can I find more document

[android-developers] Re: Preloading map in MapView

2008-09-18 Thread austin_rockz
Ok,thanks for the information. On Sep 17, 1:31 pm, [EMAIL PROTECTED] wrote: A function preload(GeoPoint p1, GeoPoint p2, GeoPoint p3, GeoPoint p4) would be useful that preloads the whole area inside the rectangle defined by  p1,p2,p3,p4 On Sep 17, 11:34 am, [EMAIL PROTECTED] wrote:

[android-developers] one question about android.

2008-09-18 Thread acelinodomingos
The emulator of android change dynamically. Is it truth or not ? Thank you ! --~--~-~--~~~---~--~~ 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] Marketing On Internet

2008-09-18 Thread Internet Marketing
The majority of people fail online. Why do so many people fail online? Most people fail because when they start to invest their money in their business they do not know how to advertise correctly. They see poor results because of this and decide to give up all together. It certainly does not have

[android-developers] problem in Android Application

2008-09-18 Thread rukesh
I m Rupesh Kumar. I m trying to build a simple android application by sing eclips. The java code for that project is as below x.java package x.y.z; import x.y.z.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import

[android-developers] Re: query on local xml'files

2008-09-18 Thread Pedro Ángel Serrano Trujillo
There's not reason for this. I'll try with this way. thanks 2008/9/18 hackbod [EMAIL PROTECTED] Is there any particular reason you want to parse an XML file stored as raw data. Parsing XML files stored in res/xml with Resources.getXml() is much much faster (10-100x) than a raw XML file.

[android-developers] Re: Recorder Sound

2008-09-18 Thread Megha Joshi
You can use the various MediaRecorder.setXXX() methods. http://code.google.com/android/reference/android/media/MediaRecorder.html Only audio recording APIs are available in the sdk. For sample code check out the SoundRecordingDemo in Files section. 2008/9/18 ZIN [EMAIL PROTECTED] I want to

[android-developers] Re: one question about android.

2008-09-18 Thread Mark Murphy
The emulator of android change dynamically. Is it truth or not ? Change...in what way? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Image listing

2008-09-18 Thread Megha Joshi
Check out the sample code for ListView with Photos and ListView with checkboxes at ApiDemos/Views/Lists/Single choice list, ApiDemos/Views/Lists/Photos. Perhaps you can merge the two to display images in list format with checkbox. 2008/9/18 Pratik Goswami [EMAIL PROTECTED] Hello friends. I

[android-developers] Re: problem in Android Application

2008-09-18 Thread Megha Joshi
Did you check your logcat output? It will give you more details on the error. If you aren't able to resolve it from there, please post again with the logcat output. 2008/9/18 rukesh [EMAIL PROTECTED] I m Rupesh Kumar. I m trying to build a simple android application by sing eclips. The

[android-developers] Is it possible to mask an animation (i.e., animate only within the bounds of another view)?

2008-09-18 Thread Andrew Dupont
I've got an animation that pushes an item in from the right side of the screen. Right now, it animates so that you start to see the item as soon as it enters the viewport; I want it to be invisible until it's within the bounds of its view parent. The parent has setClipChildren(true), but that

[android-developers] Re: Content Providers and Network Requests

2008-09-18 Thread Jeff Hamilton
or better you could document that using your provider takes significant time and that users should do the calls asynchronously. In general it's good for applications to do content provider call asynchronously, since even local database operations could become pretty expensive. See the

[android-developers] Re: Content Providers and Network Requests

2008-09-18 Thread Kavi
Thanks a lot for the response, Jeff. I'll try it out. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Is it possible to mask an animation (i.e., animate only within the bounds of another view)?

2008-09-18 Thread Romain Guy
It definitely applies to animations. Actually one of our limitations is that a view can NOT be animated outside of its parent's bounds. On Sep 18, 2008 12:01 PM, Andrew Dupont [EMAIL PROTECTED] wrote: I've got an animation that pushes an item in from the right side of the screen. Right now,

[android-developers] Re: Beta support for resource sharing

2008-09-18 Thread hackbod
On Sep 18, 9:27 am, Cheryl Sedota [EMAIL PROTECTED] wrote: I am getting a return value of '0' which essentially means resource not found AFAIK.  Note that I am passing the context for the leveraging app, but the package name declared in the AndroidManifest of the common app. Is there

[android-developers] Re: Beta support for resource sharing

2008-09-18 Thread hackbod
On Sep 18, 10:22 am, joebowbeer [EMAIL PROTECTED] wrote: It may be safe to load resources in any process, but is it permitted? Can any app load resources from any other app, with or without a matching signature or sharedUserId? Yes:

[android-developers] VideoView questions

2008-09-18 Thread stef
Hi, I am able to play videos using MediaPlayer and VideoView. Although I can play clips in full screen using MediaPlayer directly, with VideoView, it simply refuses to use the entire screen. My code is the same as the example provided wiht the APIDemo. Is this is known limitation of VideoView?

[android-developers] Not able to list /data/app directory

2008-09-18 Thread Anshul
I am writing an app that would look for other services (each in its own apk) installed on the phone and would start them. To achieve this, I was thinking of listing the /data/app directory and find the name of the installed APKs and start them as a service using StartService function with the

[android-developers] Re: Not able to list /data/app directory

2008-09-18 Thread hackbod
Use the PackageManager API for this: http://code.google.com/android/reference/android/content/pm/PackageManager.html On Sep 18, 2:02 pm, Anshul [EMAIL PROTECTED] wrote: I am writing an app that would look for other services (each in its own apk) installed on the phone and would start them. To

[android-developers] EventHandler ?

2008-09-18 Thread Jeff
Hello, I am getting the following error must implement the inherited method EventHandler.handleSslErrorRequest(SslError) I can not find this reference anywhere. If I could find a definition for SslError I could at least stub it. Any ideas? thanks Jeff

[android-developers] how to get access to private API s

2008-09-18 Thread sudheer
Hello All I was wondering what is the procedure to get access to private API s of android SDK. is there any available procedure/information on this? I wanted to know how an organization, a software firm with more than a billion revenue,could join the group which has access to private API s/

[android-developers] Images and Layout Questions

2008-09-18 Thread Mark Hansen
I'm making a fairly simple application, but I'd like to dress it up with some custom buttons and backgrounds. The problem is I'd like to control the layout of them to make sure it looks a certain way. I'm not really sure what to do resolution wise to make sure this will work once the actual

[android-developers] DEATH EVENT

2008-09-18 Thread wiki
Is there a way to capture the death event of one activity to another activity? say If two actitivities A and B are runnning separately. so can i get the death event of activity A to B? or If A launches B then is there a way that A can be notified with the B's death event to B? Regards