Re: [android-developers] Re: VectorDrawable/BitmapDrawable in custom view.

2015-02-26 Thread Madis Pink
This happens because drawable-nodpi is a more specific configuration compared to drawable-v21. (See http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch and qualifier order of precedence in

[android-developers] Overriding versionCode/versionName with the new Gradle build system

2013-04-01 Thread Madis Pink
Hi, I was looking around (actually poking in the gradle plugin source) and there doesn't appear a way to override the versionCode/versionName via environment variable or command line project property. Sadly, we override these variables for every nightly build in our CI process. It used to

[android-developers] Getting Could not open input channel pair when activity is resumed on Gingerbread android

2011-07-19 Thread Pink
Hi all, I am getting one strange error when my application activity is resumed. After looking it closely what i got is too many file descriptors are opened in my application process. How to know what file deascriptors are opened at any moment of time in android? The

[android-developers] Fade in animation is not getting displayed?

2011-04-05 Thread Pink
Hi, I am using fade in animation in my application. When i try to play fade in animation it is getting played but not displayed. I have layout as follows. FrameLayout Button android:layout_width=20dip android:layout_height=10dip .../

[android-developers] onConfigurationChanged call back is not getting called?

2011-03-29 Thread Pink
Hi, I have defined my activity with keyboardhidden|orientation| locale config changes and screenOrientation is sensor. When i change orientation UI is getting changed but my onConfigurationChanged is not getting called. I have some widgets like buttons in my activity, even i change

[android-developers] SurfaceView is taking upto 10 seconds to be displayed!!!!

2011-03-04 Thread Pink
Hi, I am using ginger bread. I have two views in my xml file based on state i am setting one view as visible and another as gone. One of the two views has SurfaceView. Some times while moving between these two views the surfaceview is taking 10 seconds to be created and displayed to

[android-developers] Re: SurfaceView is taking upto 10 seconds to be displayed!!!!

2011-03-04 Thread Pink
When i moving from other view to surface view, other view is being shown on top the surface view. On Mar 4, 5:22 pm, Pink sivareddy.j...@gmail.com wrote: Hi,    I am using ginger bread.    I have two views in my xml file based on state i am setting one view as visible and another as gone

[android-developers] Re: SurfaceView is taking upto 10 seconds to be displayed!!!!

2011-03-04 Thread Pink
Any help please. On Mar 4, 5:34 pm, Pink sivareddy.j...@gmail.com wrote: When i moving from other view to surface view, other view is being shown on top the surface view. On Mar 4, 5:22 pm, Pink sivareddy.j...@gmail.com wrote: Hi,    I am using ginger bread.    I have two views

[android-developers] Activity touch event leading to EPIPE in ginger bread !!

2011-03-01 Thread Pink
Hi, I am working on ginger bread. Some times i am getting error no 32 for touch event. I did as follows. Started activty A. From activity A i am trying launch activity B bad finishing A. After B is displayed i am closing B also. This i am repeating for multiple times and

[android-developers] Re: Activity touch event leading to EPIPE in ginger bread !!

2011-03-01 Thread Pink
Method) Force finishing activity com.android.test/com.android.test.B On Mar 1, 5:24 pm, Pink sivareddy.j...@gmail.com wrote: Hi,   I am working on ginger bread. Some times i am getting error no 32 for touch event.   I did as follows.       Started activty A.       From activity A i am trying

[android-developers] Re: Activity touch event leading to EPIPE in ginger bread !!

2011-03-01 Thread Pink
Any help please. On Mar 1, 6:25 pm, Pink sivareddy.j...@gmail.com wrote: In activity A i have one surface view. After EPIPE in activity it is leading to IlegalArgumentException. 3-01 17:51:01.107 W/PowerManagerService(  127): Timer 0x7-0x3|0x3 03-01 17:51:01.107 I/PowerManagerService(  127

[android-developers] Re: Activity touch event leading to EPIPE in ginger bread !!

2011-03-01 Thread Pink
My application is getting crashed. But i am not getting the reasin for that crash. Can any body tell me the reason? On Mar 2, 11:31 am, Dianne Hackborn hack...@android.com wrote: Um, it looks like your application crashed. On Tue, Mar 1, 2011 at 5:25 AM, Pink sivareddy.j...@gmail.com

[android-developers] What is Failed to finish input event. Check logs for details. Runtime crash?

2011-02-28 Thread Pink
Hi, I am working on ginger bread. I am porting an application which was running properly on Foryo to GingerBread. While close one of my application activities i am getting RunTime exception. Can any body help me? The logcat as follows. java.lang.RuntimeException: Failed to

[android-developers] Getting IllegalArgumentException exception when surface view get destroyed!!!

2011-02-25 Thread Pink
Hi, I have one surface view in one activity. I am using the surface of the srface view in my native code. But some times while moving out of the activity i am getting IllegalArgumentException. By the time surface view is getting destroyed, SufaceViewHolder call back is getting

[android-developers] AudioManger.setMicrophoneMute functionality not working??

2011-02-10 Thread Pink
Hi, I am using AudioManger.setMicrophoneMute(true) to mute micro phone in my application. After that i am querying audio manager about latest mute state by isMicrophoneMuted(). I am getting true for isMicrophoneMuted(). But functionality wise it is not working. Still audio packets are

[android-developers] Re: Repeating background does not repeat

2011-02-03 Thread Madis Pink
I encountered the same bug, created an issue in b.android.com: http://code.google.com/p/android/issues/detail?id=14467 On Dec 10 2010, 9:13 pm, Bret Foreman bret.fore...@gmail.com wrote: This looks like it would be easy to package up a test case and post in the Android bug list. -- You

[android-developers] Getting NullPointer Exception while inserting into database!!!

2011-01-28 Thread Pink
Hi, I am trying to insert data my content provider. But getting NullPointer exception, though every thing is seems ok. I checked evry thing in code. But got no clue. I have been getting irritated. I am getting following Exception. /AndroidRuntime( 3077): Caused by:

[android-developers] RemoteViews notification is not being displayed in notification window??

2010-12-20 Thread Pink
Hi, I want to display a radiogroup with 4 radio buttons in a notification. I am using RemoteViews to specify that radioGroup, but when i fire the notifcation i am able to see my icon in the status bar but not the notification in notification window. I am not setting

[android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-20 Thread Pink
but not button pending is raised. Is there any thing needs to be done to listen to user actions notification button actions except from registering pending intents with RemoteViews? Thanks in advance... On Dec 20, 2:31 pm, Pink sivareddy.j...@gmail.com wrote: Hi,     I want to display

[android-developers] Re: KillProcessesWithOpenFiles

2010-12-20 Thread Pink
Hi, I have a small doubt. I have one file handler, which is created by opening a file on SD card. If i listen to SD card unmount broad cast. Can i close the file handler without my appliaction is being closed by android system ? Is there any grace period of time when we receive

[android-developers] How to sort MergeCursor rows?

2010-12-08 Thread Pink
Hi, I have two different cursors, from two different ContentProviders , to return. I am using MergeCursor to merge the two cursors into one. But i have to give the data in sorted manner. How can i sort MergeCursor? Thanks in advance. -- You received this message because you

[android-developers] Can ContentObserver know the URI, which causes content updation ?

2010-12-06 Thread Pink
Hi, I have one ContentProvider in which i am trying to maintain native CallLogs and my application calllogs. Here i am maintaining native calllogs and my application call logs in one table, by querying native callog and stroing all those values in my table. When calllog is changed i

[android-developers] Re: Can ContentObserver know the URI, which causes content updation ?

2010-12-06 Thread Pink
Any help??? On Dec 6, 4:03 pm, Pink sivareddy.j...@gmail.com wrote: Hi,    I have one ContentProvider in which i am trying to maintain native CallLogs and my application calllogs.    Here i am maintaining native calllogs and my application call logs in one table, by querying   native

[android-developers] I am unable to install APK on the emulator!!!

2010-11-30 Thread Pink
Hi all, I have an application with minSDKVersion as 7 and my emulator's SDK version is 8. When i try to install the APK on my emulator, i am getting error as INSTALL_FAILED_OLDER_SDK. Why am i getting this error? Thanks in advance. -- You received this message because you are

[android-developers] Re: I am unable to install APK on the emulator!!!

2010-11-30 Thread Pink
Here i am trying to build the apk as part of android source code. But i am not changing any framework.. Is this causing any issue... On Nov 30, 4:34 pm, Pink sivareddy.j...@gmail.com wrote: Hi all,     I have an application with minSDKVersion as 7 and my emulator's SDK version is 8

[android-developers] How is CallLog updated when Contact information changed?

2010-11-29 Thread Pink
Hi, I want to know the approach android followed for CallLog updation, when ever there is a change in Contact's Data. And can any body suggest the code in which it is being handled in Android source code? Thanks in advance!! -- You received this message because you

[android-developers] Re: how to set the Foreground for the frames ?

2010-11-29 Thread Pink
Hi, Have you tried FrameLayout.setForeground(Drawable drawable); FrameLayout.setForeground(Drawable drawable) to set Any foregroud drawable for FrameLayout. if you pass drawable as null then it means that noforeground has been set. Please correct me if i am wrong. On Nov 29, 2:26 

[android-developers] Re: Orientation change for widget

2010-11-29 Thread Pink
Android has two types of Views. i. View - Widget ii. ViewGroup - Containers View can specify its dimension but finalized by ViewGroup. ViewGroup specifies layout(including orientation) of its childs and finalizes its childs dimension. ?xml version=1.0 encoding=utf-8? LinearLayout

[android-developers] Getting UnsupportedOperationException when inserting a contact from third party appliaction!!!

2010-11-29 Thread Pink
Hi, I am trying to insert contact by using android's native Conact provider. But i am getting UnsupportedOperationException when i try to insert a contact. Where am i doing wrong? Can anybody tell me what is correct way inserting a contact and how to do it ? Thanks in advance.

[android-developers] Re: Getting UnsupportedOperationException when inserting a contact from third party appliaction!!!

2010-11-29 Thread Pink
On Tue, Nov 30, 2010 at 9:47 AM, Pink sivareddy.j...@gmail.com wrote: Hi,   I am trying to insert contact by using android's native Conact provider.   But i am getting UnsupportedOperationException when i try to insert a contact.   Where am i doing wrong?   Can anybody tell me what

[android-developers] Re: Getting UnsupportedOperationException when inserting a contact from third party appliaction!!!

2010-11-29 Thread Pink
Yes i have both read and wite permissions in my manifest file. On Nov 30, 12:08 pm, Ali Chousein ali.chous...@gmail.com wrote: Hi, I assume that you set the right permission in your manifest file (e.g. uses-permission android:name=android.permission.WRITE_CONTACTS /) Ali Chousein

[android-developers] Hoe does EntityDelta perform RawContact aggregations?

2010-11-28 Thread Pink
Hi folks, I want to know how EntityDelta performs RawContact aggregations? I am trying to anlyze the thing but i struck up at EntityDelta class. Can any body know about EntityDelta or core concept behind Contact updation/insertion from EditContactActivity? I have been trying to

[android-developers] Re: Can two application's content providers share one authority?

2010-11-26 Thread Pink
authority as one of your providers, the installation will simply fail. MIME types are a totally different thing, used to determine the activity or other component that can interact with a particular content: URI. On Thu, Nov 25, 2010 at 10:45 PM, Pink sivareddy.j...@gmail.com wrote: Hi,   Can

[android-developers] Re: Can two application's content providers share one authority?

2010-11-26 Thread Pink
Any help On Nov 26, 2:21 pm, Pink sivareddy.j...@gmail.com wrote: Thanks for your response.  MIME types are a totally different thing, used to determine the activity or other component that can interact with a particular content: URI.  How does mapping done between MIME and CONTENT_URI

[android-developers] Re: Can two application's content providers share one authority?

2010-11-26 Thread Pink
android needs to match MIME type to URI. It goes through all content provider's getType and compare the strings. Correct me if i am wrong. On Nov 26, 5:40 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Nov 26, 2010 at 4:21 AM, Pink sivareddy.j...@gmail.com wrote:  How does mapping done

[android-developers] Why does android native contact app have CACHED NAME,CACHED NUMBER TYPE and CACHED NUMBER LABEL ????

2010-11-25 Thread Pink
Hi, Android native Contact application maitaining different data bases for Contacts and CallLog. Contact data base is having entire information about Contact. CallLog has information all Calls. Once CallLog Database is observed. The database is having information about CallLog like

[android-developers] Re: How to use one application GUI code as jar file from other appliaction?

2010-11-25 Thread Pink
How can i achieve this? Any example may help me more? On Nov 24, 3:54 am, TreKing treking...@gmail.com wrote: On Fri, Nov 19, 2010 at 3:08 AM, Pink sivareddy.j...@gmail.com wrote: How to prevent these exceptions and make use one application GUI code in another? Sounds like you want

[android-developers] Re: Why does android native contact app have CACHED NAME,CACHED NUMBER TYPE and CACHED NUMBER LABEL ????

2010-11-25 Thread Pink
there is no contact exist with 'tmp'. Still we are displaying 'tmp' as display name. Is it not some strange thing? Please correct me if i am wrong. On Nov 25, 6:33 pm, Mark Murphy mmur...@commonsware.com wrote: Because contacts can be deleted. On Thu, Nov 25, 2010 at 6:25 AM, Pink sivareddy.j

[android-developers] Re: How to use one application GUI code as jar file from other appliaction?

2010-11-25 Thread Pink
Thanks for your replay. On Nov 25, 6:32 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Nov 25, 2010 at 6:28 AM, Pink sivareddy.j...@gmail.com wrote: How can i achieve this? http://developer.android.com/guide/developing/other-ide.html#libraryP...http://developer.android.com/guide

[android-developers] Can two application's content providers share one authority?

2010-11-25 Thread Pink
Hi, Can i override already existing content provider by implementing another ContentProvider with same authorty? If that is the case. How can android system decides ContentProvider to handle data requests? What is typical usae of MIME type? We maintain unique URI for each

[android-developers] How to use one application GUI code as jar file from other appliaction?

2010-11-22 Thread Pink
Hi, I have two applications with two different application package names. I want to use first application GUI code in the second one with out rewriting entire code. But my first application using resource import statements in so many places. Even i am able to compile it, i am

[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