[android-developers] Re: terminating android application

2013-01-02 Thread Sushant Das
You can also use *android.os.Process.killProcess(android.os.Process.myPid()) * . I hope it helps On Wednesday, January 2, 2013 8:51:45 PM UTC+5:30, laxman k wrote: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > Sy

[android-developers] Re: terminating android application

2013-01-02 Thread I4004
I think android.os.Process.killProcess(android.os.Process.myPid()); does what you want. среда, 2 января 2013 г., 18:21:45 UTC+3 пользователь laxman k написал: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > Syste

[android-developers] Re: terminating android application

2013-01-02 Thread I4004
Just use ps and kill linux commands. среда, 2 января 2013 г., 18:21:45 UTC+3 пользователь laxman k написал: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > System.runFinalizersOnExit(true); > android.os.Process.kil

[android-developers] Re: Moving the cursor to the beginning of an EditText

2013-01-02 Thread Etienne
This doesnt work in my case. The setSelection() method seems to have no effect. My EditText view contains ImageSpans. Is there some other kind of workaround? On Tuesday, February 16, 2010 7:22:40 PM UTC-8, Kevin Park wrote: > > You can do it like this. > > EditText eidtText = new EditText(th

[android-developers] Re: Swipe feature to implement incoming and recieving call

2013-01-02 Thread skink
ANKUR GOEL wrote: > any idea how to implement > > Swiping to switch feature as incoming/outgoing in android it's not clear what you want to do - try to rephrase your question pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] Re: Sluggish UI response

2013-01-02 Thread skink
Bajrang Asthana wrote: > HI All, > > I have a requirement where I need to update text of TextView at regular > interval of time( say in each 1 sec). I am doing this with help of handler > but it is decreasing performance of overall UI widgets. > > I am doing following thing- > > Handler handler=

[android-developers] Re: hi friends

2013-01-02 Thread skink
sree android wrote: > I am asking customlistview inside customlistview.It is possible or not.If > it is possible How. > > you can't add a listview inside another listview, you can add only non scrollable views pskink -- You received this message because you are subscribed to the Google Group

[android-developers] Sluggish UI response

2013-01-02 Thread Bajrang Asthana
HI All, I have a requirement where I need to update text of TextView at regular interval of time( say in each 1 sec). I am doing this with help of handler but it is decreasing performance of overall UI widgets. I am doing following thing- Handler handler=new Handler(); > > UpdateTasK implemen

[android-developers] Re: getting exception while connecting to server via bluetooth

2013-01-02 Thread Ananda Krishna
hi i have used the reflection method only ..but now i am getting connection variable as false..Kindly tell me what is the mistake that i am doing.. On Wednesday, January 2, 2013 8:14:27 PM UTC+5:30, bob wrote: > > What does your code for createRfcommSocketToServiceRecord look like? > > > On Wedne

Re: [android-developers] terminating android application

2013-01-02 Thread sree android
you can write finish() method end of the activity. -- 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+uns

[android-developers] Re: hi friends

2013-01-02 Thread sree android
I am asking customlistview inside customlistview.It is possible or not.If it is possible How. The above attachements are implemented with customlistview using webservices. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

Re: [android-developers] getExternalStorageDirectory() behaves differently on Jelly Bean 4.2

2013-01-02 Thread Mind
I ended up using the following: if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) cacheDir=new File(android.os.Environment.getExternalStorageDirectory().getAbsolutePath(), context.getString(R.string.app_name_for_SharedPrefs));

Re: [android-developers] Emulator 4.0.3 calendar create event not shown

2013-01-02 Thread Michael Chan
Hi, The month is base 0 i.e. December = 11. Try fixing that first. Another thing to check is to make sure that the calendar is being displayed -> check the calendar in Calendar -> Menu -> Calendars to display. If the calendar is not visible, go to Calendar -> Menu -> "Calendars to sync" and check

Re: [android-developers] "The type of the expression must be an array type but it resolved to JSONArray" compile error

2013-01-02 Thread Larry Meadors
JSONArray isn't a java array - you'll need to do units.getJSONObject(i) instead. Larry -- 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,

[android-developers] "The type of the expression must be an array type but it resolved to JSONArray" compile error

2013-01-02 Thread John Merlino
I get this message: "The type of the expression must be an array type but it resolved to JSONArray" It happens on this line in the below java code: JSONObject unit = units[i]; units[i] should be holding { "id":3001, "markers": [...]}. I have json data that looks like this: result = {

[android-developers] Re: Nexus 4 Drivers

2013-01-02 Thread Matt
I'm using IntelliJ on OSX, and I'm debugging apps on the Nexus 4 with out any special setup. That being said, I would expect this to be exactly the same for Eclipse. Though, I haven't tried Eclipse with the Nexus 4. On Wednesday, January 2, 2013 11:32:52 AM UTC-7, Ken H wrote: > > Has anyone

[android-developers] Re: getting exception while connecting to server via bluetooth

2013-01-02 Thread Mariusz Fik
Ananda Krishna wrote: > Hi, > I am trying to connect to a server in order to receive a file from the > server.. with the help of bluetooth.. > *The code is as shown below:* > > private void connectServer() { > if(mBluetoothAdapter.isEnabled()){ > try{ > boolean startDiscovery = mBluetoothAda

Re: [android-developers] Nexus 4 Drivers

2013-01-02 Thread Mark Murphy
On Wed, Jan 2, 2013 at 2:05 PM, Ken H wrote: > I'm using the latest version of Eclipse (actually they call it the Android > Developer Tools, Build: v21.0.0-531062). When I plug it in I get > nothing...at least in Eclipse. I can see it as a harddrive on the computer > and surf the folders, but that

Re: [android-developers] Nexus 4 Drivers

2013-01-02 Thread bob
Did you enable debugging on the device? On Wednesday, January 2, 2013 1:05:48 PM UTC-6, Ken H wrote: > > I'm using the latest version of Eclipse (actually they call it the Android > Developer Tools, Build: v21.0.0-531062). When I plug it in I get > nothing...at least in Eclipse. I can see i

Re: [android-developers] Nexus 4 Drivers

2013-01-02 Thread Ken H
I'm using the latest version of Eclipse (actually they call it the Android Developer Tools, Build: v21.0.0-531062). When I plug it in I get nothing...at least in Eclipse. I can see it as a harddrive on the computer and surf the folders, but that's it. Ken On Wednesday, January 2, 2013 10:36:23

Re: [android-developers] Nexus 4 Drivers

2013-01-02 Thread Mark Murphy
Usually the Nexus series only needs the standard ADB driver that's available in the SDK Manager. On Wed, Jan 2, 2013 at 1:32 PM, Ken H wrote: > Has anyone seen where I can get drivers for the Nexus 4 so I can see it in > Eclipse? I'm having a peculiar problem in an app that only happens on the >

[android-developers] Nexus 4 Drivers

2013-01-02 Thread Ken H
Has anyone seen where I can get drivers for the Nexus 4 so I can see it in Eclipse? I'm having a peculiar problem in an app that only happens on the Nexus 4, but Eclipse can't talk to it, so I can't see the Logcat. Ken -- You received this message because you are subscribed to the Google Group

[android-developers] Re: AutoCompleteTextView behaves differently in different versions of android

2013-01-02 Thread Etienne
Originally Posted : http://stackoverflow.com/questions/14048913/autocompletetextview-behaves-differently-in-different-versions-of-android -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develope

[android-developers] Re: terminating android application

2013-01-02 Thread RichardC
Why are you trying to do this? On Wednesday, January 2, 2013 3:21:45 PM UTC, laxman k wrote: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > System.runFinalizersOnExit(true); > android.os.Process.killProcess(androi

[android-developers] Re: Order latitude/longitude list by distance to my current location

2013-01-02 Thread bob
In android.location.Location: float distanceTo(Location dest) Returns the approximate distance in meters between this location and the given location. On Monday, December 31, 2012 6:32:18 AM UTC-6, Nelson André wrote: > > Hello all, > > I have a JSON list that I retrive from one website I have

[android-developers] Re: battery consumption

2013-01-02 Thread bob
When you call registerReceiver, specifying an Intent Filter that matches a sticky Broadcast Intent, the return value will be the last Intent broadcast, such as the battery-level changed broadcast: IntentFilter battery = new IntentFilter( Intent.ACTION_BATTERY_CHANGED); Intent currentBatteryCha

Re: [android-developers] Reading from another app - resources/assets (Take 2!)

2013-01-02 Thread Romain Guy
Using the package name and a resource ID you can load resources from another APK. That's how Launcher loads icons, strings and widget resources for instance. All the APIs you need are in the Resources class if I recall properly. On Jan 1, 2013 5:25 PM, "Russell Wheeler" wrote: > As my previous qu

[android-developers] terminating android application

2013-01-02 Thread laxman k
how terminate android application from any activity and kill background process i am use finsh(); system.exit(0); System.runFinalizersOnExit(true); android.os.Process.killProcess(android.os.Process.myPid()); these are only close te current Activity -- You received this message because yo

[android-developers] Re: Reading from another app

2013-01-02 Thread bob
I'd probably just stick them on the SD card. On Tuesday, January 1, 2013 11:08:41 AM UTC-6, Russell Wheeler wrote: > > If I wish to use images stored in another app, that I've written, what is > the best way to do this? > > Content provider or directly accessing the res folder? > > Thanks in a

[android-developers] Re: getting exception while connecting to server via bluetooth

2013-01-02 Thread bob
What does your code for createRfcommSocketToServiceRecord look like? On Wednesday, January 2, 2013 4:58:03 AM UTC-6, Ananda Krishna wrote: > > I have tried it and it working fine but now when i use > btSocket.isConnected() method i am getting false as the rsponse.How should > i correct it now..

[android-developers] Re: Weird situation when build with usr mode

2013-01-02 Thread bob
On Wednesday, January 2, 2013 2:46:23 AM UTC-6, futurexiong wrote: > > I modified createLockScreen method of LockPatternKeyguardView.java in > framework,intend to change default LockScreen. In createLockScreen method I > use reflection to new my own lockscreen view in my own lockscreen apk whic

Re: [android-developers] hi friends

2013-01-02 Thread rambabu mareedu
refer this link: http://ramscreative.blogspot.in/2012/05/custom-listview.html On Wed, Jan 2, 2013 at 6:22 PM, Tamil Arasi wrote: > Your question is not clear.. ask your question clearly.. > > > On Wed, Jan 2, 2013 at 6:00 PM, sree android > wrote: > >> Hi friends, >> The above attachment i pre

Re: [android-developers] hi friends

2013-01-02 Thread Tamil Arasi
Your question is not clear.. ask your question clearly.. On Wed, Jan 2, 2013 at 6:00 PM, sree android wrote: > Hi friends, > The above attachment i prepared ListView with Sections,Here i need to call > Custom Listview inside sections.It is posible or not. > If it is possible how can i do.please g

[android-developers] Re: hi friends

2013-01-02 Thread skink
sree android wrote: > Hi friends, > The above attachment i prepared ListView with Sections,Here i need to call > Custom Listview inside sections.It is posible or not. > If it is possible how can i do.please give me stepts or any code links. > > thank you in advance. what do you mean by "need to

[android-developers] hi friends

2013-01-02 Thread sree android
Hi friends, The above attachment i prepared ListView with Sections,Here i need to call Custom Listview inside sections.It is posible or not. If it is possible how can i do.please give me stepts or any code links. thank you in advance. -- You received this message because you are subscribed to th

[android-developers] How i upload my battery level data to my web server with service?

2013-01-02 Thread Antonis Kanaris
How i upload my battery level data to my web server with service?I try this code but no work...any help?What is wrong? public class BatteryLevel extends Activity { private TextView contentTxt; String strUrlup ="http://bat_android.php"; String textbat; private BroadcastReceiver mBa

Re: [android-developers] Replacement for MODE_WORLD_READABLE

2013-01-02 Thread Mark Murphy
On Tue, Jan 1, 2013 at 8:21 PM, William Ferguson wrote: > Thanks Mark that's perfect. I'd always shied away from ContentProviders > because they looked miles too heavy weight and complex but that is a neat > and simple solution. > > One question: Why the does #onCreate copy the target file? Is it

Re: [android-developers] Re: How to compile Android Launcher source code?

2013-01-02 Thread Mark Murphy
On Wed, Jan 2, 2013 at 2:51 AM, galapogos wrote: > On Monday, December 31, 2012 9:07:46 PM UTC+8, Mark Murphy (a Commons Guy) > wrote: >> You are welcome to copy the source code out of AOSP, import it into an >> Android SDK project, and hack away to get rid of things that do not >> compile anymore

[android-developers] Re: getting exception while connecting to server via bluetooth

2013-01-02 Thread Ananda Krishna
I have tried it and it working fine but now when i use btSocket.isConnected() method i am getting false as the rsponse.How should i correct it now.. *Code:* Same as in the earlier post but for these added line btSocket.connect(); boolean connected = btSocket.isConnected(); if(true == connected

Re: [android-developers] Reading from another app

2013-01-02 Thread Latimerius
On Wed, Jan 2, 2013 at 2:20 AM, Russell Wheeler < russellpeterwhee...@gmail.com> wrote: > Latimerius, > > So how do you directly access them from the assets folder? > You have to know the name of the package whose images you want to use but that shouldn't be a problem in your case if I understand

Re: [android-developers] Reading from another app

2013-01-02 Thread Russell Wheeler
RichardC looking through my phone using astro file manager, I can't find any apps that have been installed? Is that because I am not rooted? What folder would/should they be in if I can see them? Or do you mean the apk is readable before its installed? In that case, how do you save an apk from

Re: [android-developers] Reading from another app

2013-01-02 Thread Russell Wheeler
RichardC looking through my phone using astro file manager, I can't find any apps that have been installed? Is that because I am not rooted? What folder would/should they be in if I can see them? Or do you mean the apk is readable before its installed? In that case, how do you save an apk from

[android-developers] Weird situation when build with usr mode

2013-01-02 Thread futurexiong
I modified createLockScreen method of LockPatternKeyguardView.java in framework,intend to change default LockScreen. In createLockScreen method I use reflection to new my own lockscreen view in my own lockscreen apk which would be installed in /system/app/. It works fine when i build the entire