[android-developers] onActivityResult is not called for startActivityForResult

2010-04-15 Thread pink 444
Hi, I have an Activity A as launch mode 'singleTask'. And i am launching B from A by using startActivityForResult(). From i am calling setResult().But onActivityResult() of A not being called. Is there any problem with launch mode of A? -- You received this message because you are

[android-developers] System Server process not starting my activity but giving ANR?

2010-04-13 Thread pink 444
Hi all, I have started my application and did some orientation changes and clicked back button from my application's main activity. I went to application launcher and tried to launch my application. I got blank black screen and clicked menu button it gave me ANR. And the logcat

[android-developers] Blank screen and ANR while application is starting up?

2010-04-06 Thread pink 444
Hi All, While opening my application from application launcher. some times i am getting blank screen for long time (almost 3 min). if i perform some key events then i am getting ANR. Log is as follows. I/ActivityManager( 57): Starting activity: Intent { action=android.intent.action.MAIN

[android-developers] Re: Blank screen and ANR while application is starting up?

2010-04-06 Thread pink 444
Any Help?? On Apr 6, 2:31 pm, pink 444 pnk...@gmail.com wrote: Hi All, While opening my application from application launcher. some times i am getting  blank screen for long time (almost 3 min).  if i perform some key events then i am getting ANR. Log is as follows. I/ActivityManager( 57

[android-developers] Re: Blank screen and ANR while application is starting up?

2010-04-06 Thread pink 444
@gmail.com wrote: Show some code. I guess, you are blocking the UI with a loop. Thanks and regards, Kumar Bibek On Apr 6, 4:11 pm, pink 444 pnk...@gmail.com wrote: Any Help?? On Apr 6, 2:31 pm, pink 444 pnk...@gmail.com wrote: Hi All, While opening my application from application launcher

[android-developers] Re: Two processes are created on first running of my application?

2010-03-07 Thread pink 444
...@android.com wrote: On Mar 4, 3:28 am, pink 444 pnk...@gmail.com wrote: Some times after installing my application and first running my application is creating two processes as follows. app_1    9064  34    111088 15912 afe0d3e4 S com.test app_1    9077  9064  102764 8932  c006b6dc

[android-developers] Two processes are created on first running of my application?

2010-03-04 Thread pink 444
Hi all, Some times after installing my application and first running my application is creating two processes as follows. app_19064 34111088 15912 afe0d3e4 S com.test app_19077 9064 102764 8932 c006b6dc afe0d3e4 S com.test Why is it happening like that. Any help would

[android-developers] Two processes are created some times at the time app starting?

2010-02-18 Thread pink 444
Hi, Some times at the time of application starting up two processes are created one has default process as parent and second has first as parent. In this scenario neither activity nor application is coming up.But application code is being executed. Any idea. Thanks, -- You received

[android-developers] How to change Title color of a preference dynamically?

2010-02-12 Thread pink 444
Hi, I have an application,in which customized preferences are defined by inheriting from Preference class. In my application i have to change the preference title color dynamically.For that i am calling View view = Preference.getView(null,null). And doing as follows. ((TextView)

[android-developers] How to change Tile color of Preference dynamically?

2010-02-11 Thread pink 444
Hi, I have an application,in which customized preferences are defined by inheriting from Preference class. In my application i have to change the preference title color dynamically.For that i am calling View view = Preference.getView(null,null). And doing as follows. ((TextView)

[android-developers] How can target activity get the request code in startActiivtyForResult()?

2010-02-10 Thread pink 444
Hi, I am starting an activity with startActivityForResult(intent,requestcode). And i am receiving result onActivityResult() call back . The target acivity which gets the intent should get the request code And based upon the request it has to do the specified operation. How can target

[android-developers] getChildAt sometimes giving wrong child at particular position?

2010-02-02 Thread pink 444
Hi, I have a listactivity in which i am displaying list of items more than 8 items.Thus there is scroll bar eneabled. When i click on list items some times getChildAt returing wrong View from the list. Why is it happening like that and how can i prevent from happening? Thanks in

[android-developers] How can i use DragLayer.java to drag and drop my own ListView items

2010-01-28 Thread pink 444
Hi, I have to drag and drop items of listview.After a lot searching i found one class of launcher as DragLayer.java. How can i use DragLayer.java to drag and drop items of listview. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] How to drag and drop items of ListView?

2010-01-28 Thread pink 444
Hi, I have to drag and drop items of ListView,which typically have an image and text. How can i implement this. Thanks in advance. -- 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] How to close an application?

2010-01-21 Thread pink 444
Hi, In my application i have to close the application. Hence i am using System.exit(1). But some times it is trying to restart entire application. What is the problem? How can i close an application safely? Thanks in advance. -- You received this message because you

[android-developers] Re: How to close an application?

2010-01-21 Thread pink 444
Thanks for your replay. And i went through the link , which you specified. As i understood process will be killed by android only. But my question is Why does user has to wait till android closes particular application, Instead why doesn't user do this? Instead of waiting till android system

[android-developers] when do we get Timeout of broadcast BroadcastRecord message?

2009-12-17 Thread pink 444
Hi all, My application has some native code,which waits on some network related stuff,as soon as native code receives events from network native code is trying to broadcast a request which will be received by android application. Native code is part my application and runs in same process.

[android-developers] Can i initiate threads in BroadcastReceiver's onReceive method?

2009-12-17 Thread pink 444
Hi all, My application has two components,one is Activity and BroadcastReceiver. I am using the BroadcastReceiver as inner class of my Application. The BroadcastReceiver's onReceive method is initiating a new Thread as Thread object,every time. In that i am trying to update the

[android-developers] Re: What is Heap Worker thread and what does it do?

2009-12-16 Thread pink 444
at the threads in the debugger). On Tue, Dec 15, 2009 at 10:25 PM, pink 444 pnk...@gmail.com wrote: Hi all,         What is Heap Worker thread ?         What does it do?          In my application's HeapWorker thread is taking most of the CPU around 80%.          How can i reduce

[android-developers] Re: What is Heap Worker thread and what does it do?

2009-12-16 Thread pink 444
at dalvik.system.NativeStart.run(Native Method) HeapWorker daemon prio=5 tid=5 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x42af3e58 | sysTid=292 nice=0 sched=0/0 handle=1311408 at dalvik.system.NativeStart.run(Native Method) On Dec 16, 1:32 pm, pink 444 pnk...@gmail.com wrote

[android-developers] What is Heap Worker thread and what does it do?

2009-12-15 Thread pink 444
Hi all, What is Heap Worker thread ? What does it do? In my application's HeapWorker thread is taking most of the CPU around 80%. How can i reduce this usage Percentage? Any help would be appreciated highly. -- You received this message because you are

[android-developers] What is the use of task switcher ?

2009-11-27 Thread pink 444
Hi all, Why is task switcher(Which appears when we press home button for long time) provided. We have application launcher ,from where we can launch any applications. Then what is the need of the task switcher. Even though some task are not running , still

[android-developers] Is status bar an activity?

2009-11-18 Thread pink 444
Hi all, Notifications are displayed in status bar.Any thing , which appears to user in android is an activity. Thus can i assume status bar as an activity . Because user can see it. In that case there are always two activities in running mode ,one is home or any user

[android-developers] Re: Is status bar an activity?

2009-11-18 Thread pink 444
the window. And one more doubt is can we update any activity's widgets status even though that activity is not running. On Nov 18, 7:42 pm, Mark Murphy mmur...@commonsware.com wrote: pink 444 wrote:        Notifications are displayed in status bar. Yes. Any thing , which appears to user

[android-developers] Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-11-15 Thread pink 444
Hi all, I have a task,which is created when an activity with singleTask launch mode is activated. I added some more activities to the task.But whenever i move out of the task and come back to the task, activity stack is being cleared up to root of the stack. Why is this

[android-developers] Every time one new instance instance is not created for standard launch mode activity???

2009-11-10 Thread pink 444
Hi all, I have two activities in my application and both have different affinities . One activity is launcher and another one is normal one.The normal activity has standard launch mode . In this scenario i am trying to activate normal activity from launcher activity for more

[android-developers] Is Component activation is different from Component running?

2009-11-09 Thread pink 444
Hi all, activities, services, and broadcast receivers — are activated by asynchronous messages called intents. Like activities and the other components, services run in the main thread of the application process. So that they won't block other components or the user interface,

[android-developers] Application is not installed on your phone ERROR while launching the application?

2009-11-07 Thread pink 444
Hi, I have created an application and installed on the HTC mobile. while launching the application some times it is giving the ERROR application is not installed on your phone . And some other times even though application is installed it is being displayed in application launcher.

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread pink 444
-- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread pink 444
. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread pink 444
be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread pink 444
(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread pink 444
of interest occurs - update your activity's GUI from the database the next time the USER brings it to the foreground String On Oct 20, 12:17 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. But the thing here is if at all we click on the notification only intent

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread pink 444
/seamlessness.html Regards, Bartosz On Tue, Oct 20, 2009 at 1:17 PM, pink 444 pnk...@gmail.com wrote: Thanks for your replay. But the thing here is if at all we click on the notification only intent will bring the Activity up. I want to bring the activity to foreground without clicking any

[android-developers] Starting Service at the time application starting automatically

2009-10-19 Thread pink 444
Hai, I have an application ,in which i have to start a service ( in same process) automatically means without user intervention and that service should run till it is stopped. How can i implement service so that i t can be started automatically? Any help would be

[android-developers] Re: How to start a service without using any activity??

2009-10-19 Thread pink 444
/ category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application Is there any wrong with above manifest file. On Oct 19, 10:16 am, pink 444 pnk...@gmail.com wrote: I am starting my service in an Activity with StartService

[android-developers] Re: confused about service

2009-10-19 Thread pink 444
I wanna ask you a question. If at all i have intent-filter for service in manifest file.Then will Service be started automatically?? On Oct 18, 7:25 pm, Mark Murphy mmur...@commonsware.com wrote: Jiri wrote: If i have a service tag in my manifest, does that mean that the service

[android-developers] How can i bring an activity to foreground from background manually?

2009-10-19 Thread pink 444
Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva

[android-developers] Re: How to start a service without using any activity??

2009-10-18 Thread pink 444
, Farproc farp...@gmail.com wrote: You can try to code, and then post the problem you encounter. On 10月17日, 下午1时10分, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can you give me a example . On Oct 16, 2:55 pm, Farproc farp...@gmail.com wrote: First, you do not have tostart/stop

[android-developers] Re: How to start a service without using any activity??

2009-10-16 Thread pink 444
. Finally, Call Context.stopService() to terminate the service when it is not needed. ps: Though a service runs in background, it runs in the main(UI) thread. On 10月16日, 下午12时38分, pink 444 pnk...@gmail.com wrote: Hai, My application has a background process which continuously

[android-developers] How to start a service without using any activity??

2009-10-15 Thread pink 444
Hai, My application has a background process which continuously waits on a socket for receiving messages and it should be started only once and at the time of application starting.Thus i want to do that background job in a service. The service should not be started from the activity

[android-developers] Re: Native code is being called successfully but not executed properly

2009-09-10 Thread pink 444
Hai, I am newbie to Android ,Hence can you explain it in detail . Thanks in Advance, -Siva. On Sep 10, 11:02 am, Dianne Hackborn hack...@android.com wrote: Hi, you are more likely to get help on android-ndk. On Wed, Sep 9, 2009 at 9:36 PM, pink 444 pnk...@gmail.com wrote: hai

[android-developers] Native code is being called successfully but not executed properly

2009-09-09 Thread pink 444
hai folks, In Android , Native code is written as follows. JNIEXPORT void JNICALL Java_com_android_Test_show(JNIEnv *env, jobject obj) { printf(THIS IS TEST); } JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved) { JNIEnv *env; JNINativeMethod meth;

[android-developers] Re: How to retain EditText data when BACK key is pressed

2009-09-07 Thread pink 444
Hackborn hack...@android.com wrote: Just make a Handler, have your thread post messages to it, and update the UI when receiving the message. Don't run your thread/service in another process, that adds a whole lot more complexity for nothing you need. On Sun, Sep 6, 2009 at 9:20 PM, pink 444 pnk

[android-developers] Re: How to retain EditText data when BACK key is pressed

2009-09-06 Thread pink 444
of overhead. Thanks, -Siva. On Sep 2, 9:49 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Sep 2, 2009 at 5:16 AM, pink 444 pnk...@gmail.com wrote: I got one way to solve my problem and it resembels your solution.What i did is i made my EditText as static.Whenever oncreate

[android-developers] Re: How to retain EditText data when BACK key is pressed

2009-09-02 Thread pink 444
are doing this, you should turn off the text view's auto-saving of its data in the saved instance state, since you no longer need that.) On Tue, Sep 1, 2009 at 11:44 AM, Mark Murphy mmur...@commonsware.comwrote: pink 444 wrote: Hai,        I have a EditText filed in my Activity class

[android-developers] How can use android native dialer to manage call events in our own way

2009-09-02 Thread pink 444
Hai, I want to know how can we make use of native dialer to make our own calls.What i want to know here is i want to get events generated when native buttons pressed but those should be handled as per my program. We have TelephonyManager to get events generated when call state is

[android-developers] How to retain EditText data when BACK key is pressed

2009-09-01 Thread pink 444
Hai, I have a EditText filed in my Activity class,Where i need to retain data,when orientation is changed or HOME button is pressed or BACK(FINISH) is pressed. Android internally maintaining EditText when orientation is changed or HOME button is pressed .But it is not maintaining