Re: [android-developers] Custom Screen Locker

2010-09-20 Thread sachin ravi
check this out... *frameworks/policies/base/phone/com/android/internal/policy/impl* for the files *LockPatternKeyguardView.java* and *LockScreen.java* On Thu, Sep 16, 2010 at 7:03 PM, Tez earlencefe...@gmail.com wrote: How do I write a custom screen locker? Where is the source of the

Re: [android-developers] Re: Control any led of the device, does the sdk allow?

2010-06-20 Thread sachin ravi
Hi.. If you full android source code which u can compile, then you can modify the led-class.c file and give full permission to brightness file (say 777 instead of 644 currently). then LED will work via notification manager. On Mon, Jun 21, 2010 at 6:21 AM, Dianne Hackborn

Re: [android-developers] can't anymore show light notification

2010-06-20 Thread sachin ravi
This code is fine, But only issue is.. they have blocked the permission to change the LED. if you have source code which can be compiled then you can modify that and it will work.. On Sun, Jun 20, 2010 at 8:47 PM, reda reda.a...@gmail.com wrote: Hi, When I was using android api 5 (sdk

Re: [android-developers] Make entire screen disabled

2010-06-12 Thread sachin ravi
try to set the theme of activity as translucent. On Sat, Jun 12, 2010 at 5:09 PM, pawan nimje pawanni...@gmail.com wrote: thats ok .. i have tried that .. thats working ... but wat i want is the screen to look in background ...i.e i want the entire activity screen to look as if its in the

Re: [android-developers] Problem in Controlling Audio

2010-06-09 Thread sachin ravi
Just check for user permission for changing audio manager and add in the AndroidManifest file. On Tue, Jun 8, 2010 at 11:15 AM, Alok alokmishra.b...@gmail.com wrote: Hello, I have some years of experience in C/C++ and bit of Java programming in Linux, but I'm new to Android. For start I'm

Re: [android-developers] How to tell if headphones are plugged in

2010-06-08 Thread sachin ravi
Try to register the broadcast event for ACTION_HEADSET_PLUG. in intent.getIntExtra(state, 0)); you will get whether headset is connected or not. On Tue, Jun 8, 2010 at 9:56 PM, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: I need to know whether headphones are plugged in

Re: [android-developers] How to lanuch test application from phone

2010-06-08 Thread sachin ravi
You can launched the your application from other application activity or you can modify the Contact-dialer code to launch your application using some key combinations. On Tue, Jun 8, 2010 at 7:59 PM, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, When we build and install the

Re: [android-developers] statelistdrawable in xml

2010-06-08 Thread sachin ravi
xml files better put inside the xml folder and then access it. On Tue, Jun 8, 2010 at 11:13 PM, schwiz sch...@gmail.com wrote: How do you make a StateListDrawable xml file in eclipse. While trying to follow this tutorial

Re: [android-developers] Re: Changing screens - switching between layouts?

2010-06-06 Thread sachin ravi
Dear Serdel.. * * *If you follow your approach, then when you rotate the screen after setting content of screen C then it will start the * *1st screen A view, which is **not correct. So it is better to start new view with startActivity as suggested.* * * * * On Sun, Jun 6, 2010 at 1:15 PM,

Re: [android-developers] How to show a dialog even if the Activity is in background

2010-06-05 Thread sachin ravi
Trying using toast notification with custom view. On Sat, Jun 5, 2010 at 10:47 PM, Frank Weiss fewe...@gmail.com wrote: Simply, I want to pop up a dialog on the current visible Activity, even if the Activity belongs to other application. And at this time, if my application is running on

Re: [android-developers] Re: Developing UI for Android apps

2010-05-22 Thread sachin ravi
use DroidDraw tool for making quick and better UI. 2010/5/18 Gabriel Simões gsim...@gmail.com Well, my tip is: understand how layouts work for the different display sizes/resolutions and then start thinking about using images to create your UIs. It´s a lot easier when you are developping for

Re: [android-developers] Re: Can I create a sticky dialog?

2010-05-22 Thread sachin ravi
use thread.join() method. On Tue, May 18, 2010 at 10:09 PM, TreKing treking...@gmail.com wrote: On Tue, May 18, 2010 at 10:38 AM, henrik henrik.aron...@gmail.com wrote: Because the startup is not dependent on the background check. I see. In that case, since you have multiple threads, you

Re: [android-developers] Re: Changing LandScape to Potrait mode

2010-05-22 Thread sachin ravi
If you use Linear layout then it will automatically adjust. If you use Absolute layout then you need to create a new xml layout under res/layout-land with file name same as res/layout. On Mon, May 17, 2010 at 2:19 PM, grace grace.a...@wipro.com wrote: because the width and height values

Re: [android-developers] Make a phone call with special character *123*456789#

2010-05-22 Thread sachin ravi
You need to modify the dialer parser. Add the check for Dialed string in below file. \packages\apps\Contacts\src\com\android\contacts\SpecialCharSequenceMgr.java On Tue, May 18, 2010 at 6:36 PM, Thang Q. Tran tranquocth...@gmail.comwrote: Dear all, I would like to make an Android