[android-developers] Broadcast for SCREEN OFF

2011-11-10 Thread Namrata
Hi, I am trying to listen broadcast for Screen Off as follow IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_OFF); BroadcastReceiver mReceiver = new ScreenReceiver(); registerReceiver(mReceiver, filter); But when screen locks somehow my ScreenReceiver is not

[android-developers] Re: Broadcast for SCREEN OFF

2011-11-10 Thread Namrata
, Nov 10, 2011 at 3:52 AM, Namrata puranik.namr...@gmail.com wrote: Hi, I am trying to listen broadcast for Screen Off as follow IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_OFF); BroadcastReceiver mReceiver = new ScreenReceiver(); registerReceiver

[android-developers] Unmarshalling unknown type code

2011-05-18 Thread Namrata
Hi, I have one activity A with requires few values passed in intent. Those values are of type boolean int array. I am passing these these values from activity B in intent as intent.putExtra(key1, boolean) intent.putExtra(key2, int[]). In activity A I am reading it as Intent i = getIntent();

[android-developers] Re: Unmarshalling unknown type code

2011-05-18 Thread Namrata
when it's crashing. On May 18, 3:35 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I have one activity A with requires few values passed in intent. Those values are of type boolean int array. I am passing these these values from activity B in intent as intent.putExtra(key1, boolean

[android-developers] Re: Unmarshalling unknown type code

2011-05-18 Thread Namrata
, for some reason. You don't seem to be using parcel directly, but still, maybe this can give you some more ideas. There is a call to Activity.onRestoreInstanceState, so there is a parcelable (bundle) involved here. -- Kostya 18.05.2011 12:49, Namrata пишет: @Zsolt thanks for replying

[android-developers] Re: Unmarshalling unknown type code

2011-05-18 Thread Namrata
Latest observation, if I am on activity A then I kill app with app killer application after that I try to relaunch my app, generally here above mentioned exception comes. On May 18, 2:37 pm, Namrata puranik.namr...@gmail.com wrote: @Kostya, thanks for replying...I am not overriding

[android-developers] Re: Unmarshalling unknown type code

2011-05-18 Thread Namrata
phone, you could try debugging this into the framework sources. -- Kostya 18.05.2011 13:48, Namrata пишет: Latest observation, if I am on activity A  then I kill app with app killer application  after that I try to relaunch my app, generally here above mentioned exception comes. On May

[android-developers] Re: Unmarshalling unknown type code

2011-05-18 Thread Namrata
instantiated? Are all views in the activity assigned unique id values? Other than that, I'd try debugging with framework sources. -- Kostya 18.05.2011 15:37, Namrata пишет: yes I am using one custom ViewGroup  I am handling saveInstanceState  restoreInstanceState in it.(I just forgot

[android-developers] Update to sdk have broken app building..

2010-11-22 Thread Namrata
Hi, I am building an application which has one android lib. For android lib android.library=true set in default.properties. In main application have mentioned android.library.reference.1 with correct path. Using ant it was building fine prior to update sdk to 2.2. Now it is giving following error

[android-developers] Re: Issue in importing apk lib file to application

2010-10-01 Thread Namrata
these errors. Any thoughts on this? On Sep 30, 10:18 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 30, 2010 at 1:16 PM, Namrata puranik.namr...@gmail.com wrote: I tried setting up 2 test projects as per the instructions given in http://developer.android.com/guide/developing/other

[android-developers] Re: Issue in importing apk lib file to application

2010-10-01 Thread Namrata
these errors. Any thoughts on this? On Sep 30, 10:18 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 30, 2010 at 1:16 PM, Namrata puranik.namr...@gmail.com wrote: I tried setting up 2 test projects as per the instructions given in http://developer.android.com/guide/developing/other

[android-developers] Re: Issue in importing apk lib file to application

2010-10-01 Thread Namrata
Please help me on this..This is very important thing for me. On Oct 1, 11:34 am, Namrata puranik.namr...@gmail.com wrote: When I created TestApp it automatically added android.library.reference.1=/home/axa/test/project entry to default.properties, and sdk.dir=/home/axa/development/android-sdk

[android-developers] Issue in importing apk lib file to application

2010-09-30 Thread Namrata
time errors related to lib classes. Basically it considers all those classes are missing. am I missing anything which is supposed to add in ant script before running it? Thanks in Advance Namrata -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Issue in importing apk lib file to application

2010-09-30 Thread Namrata
, Namrata puranik.namr...@gmail.com wrote: I am trying to integrate ant script into my application as I want to use progaurd obfuscation. Currently I build from eclipse and it works fine. In my app I am using one lib which is in a apk format. I added it in libs/ folder of application. But When I

[android-developers] Re: Issue in importing apk lib file to application

2010-09-30 Thread Namrata
thanks Mark..will give it a try..thank you very much On Sep 30, 7:33 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 30, 2010 at 10:23 AM, Namrata puranik.namr...@gmail.com wrote: ok..so you mean I can't import apk..Is there a way to import complete code(src folder) of other

[android-developers] Re: Issue in importing apk lib file to application

2010-09-30 Thread Namrata
] ^ [javac] /home/axa/backup/project2/src/com/axa/testapp/ TestAppView.java:9: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] 4 errors Did I missed anything which I supposed to do here? On Sep 30, 7:41 pm, Namrata

[android-developers] Re: how to get number type for a contacts number..

2010-09-06 Thread Namrata
see if this helps..ContactsContract.PhoneLookupColumns or ContactsContract.CommonDataKinds.PhoneI haven't used it as it is a api level =5 but have used something like this for api level 4. On Sep 6, 5:27 pm, A N K ! T ankit.awasth...@gmail.com wrote: in my application   it is opening phone

[android-developers] Re: How to Accept and Cancel incoming call on Version 1.6,2.2

2010-09-03 Thread Namrata
May be this will help you action android:name=android.intent.action.CALL_BUTTON / On Sep 3, 4:47 pm, Abhit abhitni...@gmail.com wrote: Hi all, I am stuck with this task since more then one week, Please tell me if any know how to give these actions over my native in-call screen which is the

[android-developers] Re: How to start an activity from the Service

2010-09-03 Thread Namrata
I think just FLAG_ACTIVITY_NEW_TASK would work.. On Sep 3, 2:59 pm, Pent tas...@dinglisch.net wrote: Use an  intent with a set component. You need flag LAUNCHED_FROM_BACKGROUND or whatever it is and NEW_TASK if I remember right. Look in the log and see what the problem is. Pent On Sep

[android-developers] Re: On screen orientation changes activity restarted.

2010-08-16 Thread Namrata
I generally use following and it works always for me android:configChanges=orientation|keyboardHidden On Aug 16, 6:40 pm, alan a...@birtles.org.uk wrote: android:configChanges=keyboard|keyboardHidden|orientation is working for me On Aug 16, 12:58 pm, pramod.deore deore.pramo...@gmail.com

[android-developers] Re: My MapActivity is not showing the map

2010-07-26 Thread Namrata
Amit, I m just curious about...are you signing your app with the same certificate as that of used for MD5 generation for Map Key? On Jul 26, 2:48 pm, Amit amitmishr...@gmail.com wrote: Dear Mark, I have tried the commons guy project as well by replacing my key. But still no successdon't

[android-developers] Re: i want to put my application in front just after incoming call

2010-07-22 Thread Namrata
Use PhoneStateListener with state onCallStateChanged() Namrata On Jul 22, 6:27 pm, A N K ! T ankit.awasth...@gmail.com wrote: am trying to make my application in front just after incoming call.i mean when user cut the phone my application should come in front can it be possible

[android-developers] Re: Permanent socket connection drains battery

2010-07-16 Thread Namrata
, wakening it when it receive a response. It has also some alarms to reopen the connection if it is closed. I have found this blog post that explain a lot better and have some code examples:http://devtcg.blogspot.com/2009/01/push-services-implementing-persist... On 15 jul, 15:41, Namrata

[android-developers] Re: horizontal scrolling in GridView control

2010-07-16 Thread Namrata
I had the same issue, I am using gallery instead of grid for this. On Jul 16, 3:17 pm, CMF manf...@gmail.com wrote: i have the same question, anybody know the answer? On Jun 23, 3:39 am, dharmveer dharmv...@gmail.com wrote: Hi, Instead of the currently implemented verticalscrollingin

[android-developers] Re: Permanent socket connection drains battery

2010-07-15 Thread Namrata
any answer?..This is blocking issue for me as it drains batter in couple of hours. On Jul 15, 2:29 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am developing an app which has one service running in the background even if the application is closed. This service basically listens

[android-developers] Re: Permanent socket connection drains battery

2010-07-15 Thread Namrata
Thanks Mark.. On Jul 15, 5:06 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 15, 2010 at 7:56 AM, Namrata puranik.namr...@gmail.com wrote: any answer?..This is blocking issue for me as it drains batter in couple of hours. You may wish to watch the C2DM presentation from Google

[android-developers] Re: Permanent socket connection drains battery

2010-07-15 Thread Namrata
.  Also, any loop will drain your battery, you might try sleeping at the end of it. On Thu, Jul 15, 2010 at 5:39 AM, Namrata puranik.namr...@gmail.com wrote: Thanks Mark.. On Jul 15, 5:06 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 15, 2010 at 7:56 AM, Namrata puranik.namr

[android-developers] Re: Nexus one gps issue

2010-05-12 Thread Namrata
(). On May 11, 10:14 am, Namrata puranik.namr...@gmail.com wrote: Please anybody knows about it?? On May 11, 1:42 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am working app for nexus one which uses gps. I have placed turning on code of gps in onStart() of Activity and and turning

[android-developers] Nexus one gps issue

2010-05-11 Thread Namrata
@4495e330 D/NetworkLocationProvider( 76): removeListener(): com.xxx.xxx D/GpsLocationProvider( 76): stopNavigating D/libgps ( 76): qct_gps_stop Thanks in advance Namrata -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Nexus one gps issue

2010-05-11 Thread Namrata
@4495e330 D/NetworkLocationProvider( 76): removeListener(): com.xxx.xxx D/GpsLocationProvider( 76): stopNavigating D/libgps ( 76): qct_gps_stop Thanks in advance Namrata -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Nexus one gps issue

2010-05-11 Thread Namrata
Please anybody knows about it?? On May 11, 1:42 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am working app for nexus one which uses gps. I have placed turning on code of gps in onStart() of Activity and and turning off code in onStop(). As per logs On/Off works fine specially turning

[android-developers] Issue with GPS Droid, Hero CDMA

2010-04-05 Thread Namrata
(); } } catch (Exception e) { } } } Even though I am calling removeUpdate() it keeps gps icon on notification bar. What am I doing wrong? Thanks in advance.. Namrata -- You received

[android-developers] Overriding AutoCompleteTextView

2010-02-24 Thread Namrata
{ @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { // change top, left for all child views here } } Please anybody has idea how to do it? Thanks Namrata -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Overriding AutoCompleteTextView

2010-02-24 Thread Namrata
So basically I want a component like auto suggest list which appears with virtual keyboard on typing in EditTextView... On Feb 24, 4:04 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am trying to override AutoCompleteTextView for custom UI. I want to change x,y position of list items

[android-developers] Re: App not visable on a 1.5 device

2010-02-24 Thread Namrata
Following works for me try with removing android:targetSdkVersion=4 uses-sdk android:minSdkVersion=3/ -- Namrata On Feb 24, 4:51 pm, rackham dorian.cus...@googlemail.com wrote: Hello all. I have recieved feedback that my app is not visible to a user on a 1.5 device, 30% of my users use 1.5

[android-developers] Re: Downloading images in ListView

2010-01-20 Thread Namrata
to download as a inputstream, convert to bitmap,  set the bitmap to imageview using the API setImageBitmap() to the imageView. Nithin On Jan 19, 3:47 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am using ListView to show 1 TextView and 1 ImageView. I want to download

[android-developers] Downloading images in ListView

2010-01-19 Thread Namrata
. Thanks in advance. Namrata -- 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+unsubscr...@googlegroups.com

[android-developers] Problem in accessing ConnectionManager.getAllNetworkInfo()

2010-01-04 Thread Namrata
Hi guys, I am writing 1 application which has one service class. This service class uses ConnectionManager.getAllNetworkInfo() api to access network related info. But if I use this api i get error like 01-04 20:05:58.243: WARN/System.err(711): java.lang.SecurityException: ConnectivityService:

[android-developers] Problem in accessing ConnectionManager.getAllNetworkInfo()

2010-01-04 Thread Namrata
I am writing 1 application which has one service class. This service class uses ConnectionManager.getAllNetworkInfo() api to access network related info. But if I use this api i get error like 01-04 20:05:58.243: WARN/System.err(711): java.lang.SecurityException: ConnectivityService: Neither user

[android-developers] Re: Problem in accessing ConnectionManager.getAllNetworkInfo()

2010-01-04 Thread Namrata
@Mark, it worked..thanks a lot..it was just a typo which i overlooked.. On Jan 4, 8:07 pm, Namrata puranik.namr...@gmail.com wrote: I am writing 1 application which has one service class. This service class uses ConnectionManager.getAllNetworkInfo() api to access network related info

[android-developers] Getting callback of menu key pressed in

2009-10-13 Thread Namrata
Hi, I am a newbie to android. I have written a small application to intercept calls. My call listening service always runs in background. When i pick up the call i get call state which is != CALL_STATE_RINGING. Till this everything is ok. Now if user presses Menu key I want a callback of this

[android-developers] Getting callback of menu key pressed in service class

2009-10-13 Thread Namrata
Hi, I am a newbie to android. I have written a small application to intercept calls. My call listening service always runs in background. When i pick up the call i get call state which is != CALL_STATE_RINGING. Till this everything is ok. Now if user presses Menu key I want a callback of this