Re: [android-developers] Set carat/cursor position for EditText?

2013-01-03 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 Thursday, February 28, 2008 6:43:29 PM UTC-8, Megha Joshi wrote: Hi, This request has been made before and a method for handling

Re: [android-developers] Re: terminating android application

2013-01-03 Thread laxman k
it is only kill the current activity On Thu, Jan 3, 2013 at 1:27 PM, Sushant Das sushant@gmail.com wrote: *android.os.Process.killProcess(android.os.Process.myPid())* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] terminating android application

2013-01-03 Thread Tamil Arasi
Hi, you use the below code i hope this is help to u.. public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { moveTaskToBack(true); return true;

[android-developers] Http Response inside a service in Android

2013-01-03 Thread a
Hi I have implemented HTTP server in Android device. When my app loads, a service gets started that handles the method POST. In my handler for HTTP Post, I m calling 2 intents and finally a service in replaceResourceSegment() method below (using a III party code) to execute some scripts after

Re: [android-developers] Re: terminating android application

2013-01-03 Thread Alexey Redinskii
If your activities host in different processes, you have to kill the processes manually. Otherwise the command kills all activities hosted in one process. On Thu, Jan 3, 2013 at 11:17 AM, laxman k laxman.k1...@gmail.com wrote: it is only kill the current activity On Thu, Jan 3, 2013 at 1:27

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

2013-01-03 Thread skink
Etienne wrote: 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? if you called setText before and the new text didn't get layout phase call setSelection in a separate runnable

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

2013-01-03 Thread futurexiong
Product must be built in usr mode... 在 2013年1月2日星期三UTC+8下午10时30分41秒,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

[android-developers] New Android Game

2013-01-03 Thread Mike Portnoy
Hello guys, try my new app. it's free. https://play.google.com/store/apps/details?id=com.keken.whack Download it for free and dont forget to comment and rate!! Thanks guys, From: futurexiong futurexi...@gmail.com To: android-developers@googlegroups.com

[android-developers] hi.guys ..

2013-01-03 Thread Ibrahim Sada
I want to make new application like as shown in the attached file ... Can any one help me please . or how to start 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

Re: [android-developers] hi.guys ..

2013-01-03 Thread TreKing
On Thu, Jan 3, 2013 at 3:48 AM, Ibrahim Sada ibrahim.in...@gmail.comwrote: Can any one help me please . With what? You didn't ask a question. or how to start http://developer.android.com/index.html

[android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: Hi I have implemented HTTP server in Android device. When my app loads, a service gets started that handles the method POST. In my handler for HTTP Post, I m calling 2 intents what two intents? what are you trying to do? pskink -- You received this message because you are

Re: [android-developers] hi.guys ..

2013-01-03 Thread Ibrahim Sada
Check out attachment ... On 3 January 2013 15:32, TreKing treking...@gmail.com wrote: On Thu, Jan 3, 2013 at 3:48 AM, Ibrahim Sada ibrahim.in...@gmail.comwrote: Can any one help me please . With what? You didn't ask a question. or how to start http://developer.android.com/index.html

[android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
To execute scripts using Third party library which returns a result. Basically I want to send a response for HTTP Post in the Broadcast Receiver. Please let me know how this can be done? On Thursday, January 3, 2013 12:02:59 PM UTC+2, skink wrote: a wrote: Hi I have implemented HTTP

[android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: To execute scripts using Third party library which returns a result. Basically I want to send a response for HTTP Post in the Broadcast Receiver. Please let me know how this can be done? then call third party library directly. or is it kind of Service? if so pass some unique id

Re: [android-developers] hi.guys ..

2013-01-03 Thread skink
Ibrahim Sada wrote: Check out attachment ... http:// developer.android.com/ index.html pskink -- 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

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread Archana r
My requirement is to have a service running and do a HTTP Post of a file to a device. In the handler for POST, I call an intent(using III party library) which executes scripts(and obtains results) and sends Broadcast message to my service. In the broadcast receiver, I update the new contents and

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
Archana r wrote: My requirement is to have a service running and do a HTTP Post of a file to a device. In the handler for POST, I call an intent(using III party library) which executes scripts(and obtains results) and sends Broadcast message to my service. In the broadcast receiver, what

Re: [android-developers] Re: hi friends

2013-01-03 Thread sree android
thank you friend. -- 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 For more

[android-developers] hi friends

2013-01-03 Thread sree android
The above attachment i can use four TextView and one CheckBox and One ImageView. Four textview are display like below format and when i click check box strike all textviews.give me ideas or any code. Between each textview i can use pipe symbol.how TEXTVIEW (TEXTVIEW | TEXTVIEW | TEXTVIEW) --

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
As of now, I dont have any extras. I have defined a receiver for BroadcastReceiver. On Thursday, January 3, 2013 1:25:23 PM UTC+2, skink wrote: Archana r wrote: My requirement is to have a service running and do a HTTP Post of a file to a device. In the handler for POST, I call an

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: As of now, I dont have any extras. I have defined a receiver for BroadcastReceiver. no extras??? so what calls sendBroadcast() then??? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
From my service S, I call an intent A. This inturn calls another intent B using startActivityForResult(). In the onActivityResult(int requestCode, int resultCode, Intent data), I send the broadcast. I have defined the broadcast receiver in my service S. This design is done based on the

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: From my service S, I call an intent A. This inturn calls another intent B using startActivityForResult(). In the onActivityResult(int requestCode, int resultCode, Intent data), what are data's extras? pskink -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
The extras that I pass to intent A are the script to be executed and its type, both being String. On Thursday, January 3, 2013 2:35:51 PM UTC+2, skink wrote: a wrote: From my service S, I call an intent A. This inturn calls another intent B using startActivityForResult(). In the

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: The extras that I pass to intent A are the script to be executed and its type, both being String. I was asking about out extras not in extras pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: hi friends

2013-01-03 Thread sree android
TEXTVIEW (TEXTVIEW | TEXTVIEW | TEXTVIEW) -- 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] Re: hi friends

2013-01-03 Thread sree android
I Got solution for this,Thank you no need to explain it. TEXTVIEW (TEXTVIEW | TEXTVIEW | TEXTVIEW) -- 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

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread Archana r
I did not get your question. The script stores the result in a file in internal memory. Is that what you are asking? On Thu, Jan 3, 2013 at 2:49 PM, skink psk...@gmail.com wrote: a wrote: The extras that I pass to intent A are the script to be executed and its type, both being String.

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
Archana r wrote: I did not get your question. The script stores the result in a file in internal memory. Is that what you are asking? seems that your architecture is too complicated what is called using intents A and B? pskink -- You received this message because you are subscribed to

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
SL4A (Executing Python script in Android). The result of simple calculation is stored in the phone's memory. On Thursday, January 3, 2013 3:03:19 PM UTC+2, skink wrote: Archana r wrote: I did not get your question. The script stores the result in a file in internal memory. Is that what

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: SL4A (Executing Python script in Android). The result of simple calculation is stored in the phone's memory. again: what is called using intent A? a service, a broadcast, an activity? is it yours or belongs to sl4a? the same questions apply to intent B pskink -- You received

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
Intent A calls another intent B which calls the service of SL4A to execute the script. I have made modifications to SL4A code and integrated to my application. After script executes, it communicates with my service using Broadcast message. My response to the Http Post should be present in the

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: Intent A calls another intent B which calls the service of SL4A to execute the script. I have made modifications to SL4A code and integrated to my application. After script executes, it communicates with my service using Broadcast message. My response to the Http Post should be

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
I have a service S. I click button POST in GUI which posts a script file. In my HTTP POST handler defined in S, I call startActivity(A). In intent A, I have another intent which is called by startActivityForResult(B). Intent B calls SL4A to execute scripts(I have made minor modifications and

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: I have a service S. I click button POST in GUI which posts a script file. In my HTTP POST handler defined in S, I call startActivity(A). In intent A, I have another intent which is called by startActivityForResult(B). Intent B calls SL4A to execute scripts(I have made minor

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread a
I downloaded the source code of SL4A and integrated during the call of startActivityForResult(B), which executes the script. On Thursday, January 3, 2013 4:41:09 PM UTC+2, skink wrote: a wrote: I have a service S. I click button POST in GUI which posts a script file. In my HTTP POST

[android-developers] Re: hi.guys ..

2013-01-03 Thread bob
You will want to use OpenGL ES. Draw 8 quads in octagon formation. Then do: glScale3f(1.0f, -1.0f, 1.0f); and draw again with 50% opacity. This will give you the reflection. On Thursday, January 3, 2013 3:48:19 AM UTC-6, Ibrahim wrote: I want to make new application like as shown

[android-developers] Re: terminating android application

2013-01-03 Thread Streets Of Boston
First of all: Why? Secondly: If your process is killed (through a 'kill' command issued, through System.exit or Process.killProcess), the OS may restart it (like you see sometimes when your app crashes and is starting up immediately again with the previous Activity). Also, and this depends on

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread skink
a wrote: I downloaded the source code of SL4A and integrated during the call of startActivityForResult(B), which executes the script. ok I give up, you need someone else who will help you pskink -- You received this message because you are subscribed to the Google Groups Android

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

2013-01-03 Thread bob
Well, you are calling the methods using Reflection. So, Java doesn't know you are actually using them. So, the Java compiler just optimizes those methods out. Maybe you shouldn't use Reflection? On Thursday, January 3, 2013 2:57:44 AM UTC-6, futurexiong wrote: Product must be built

Re: [android-developers] Re: hi.guys ..

2013-01-03 Thread Ibrahim Sada
Hey bro i do not know how to start that... please help me out... Thanks in advance On 3 January 2013 20:28, bob b...@coolfone.comze.com wrote: You will want to use OpenGL ES. Draw 8 quads in octagon formation. Then do: glScale3f(1.0f, -1.0f, 1.0f); and draw again with 50% opacity.

Re: [android-developers] Re: hi.guys ..

2013-01-03 Thread bob
You will want to start with the code here: http://code.google.com/p/nehe-android/ It is basically the source to these 3d demos: https://play.google.com/store/apps/details?id=ro.brite.android.nehe On Thursday, January 3, 2013 9:05:30 AM UTC-6, Ibrahim wrote: Hey bro i do not know how to

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

2013-01-03 Thread futurexiong
I must use reflection because i must reflect the view in my own system apk when LockPatternKerguardView.java in framework creates lock screen. I don't know why in eng mode the build system does not optimize my code but usr mode does? Thanks. 在 2013年1月3日星期四UTC+8下午11时05分12秒,bob写道: Well, you are

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

2013-01-03 Thread futurexiong
Is it dexopt's reason?Can I indicate that what codes dexopt should not optimise? 在 2013年1月3日星期四UTC+8下午11时05分12秒,bob写道: Well, you are calling the methods using Reflection. So, Java doesn't know you are actually using them. So, the Java compiler just optimizes those methods out. Maybe

[android-developers] Demo Code For Clock with Auto-Location?

2013-01-03 Thread Jake Colman
Does anyone know where I can find demo code for a clock widget that shows the current location? I have found demo code for a clock but not demo code for one that updates its location. TIA! -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the

Re: [android-developers] Demo Code For Clock with Auto-Location?

2013-01-03 Thread Josphat Muchiri
Ok i can send u On Jan 3, 2013 7:29 PM, Jake Colman col...@ppllc.com wrote: Does anyone know where I can find demo code for a clock widget that shows the current location? I have found demo code for a clock but not demo code for one that updates its location. TIA! -- Jake Colman --

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-03 Thread bob
Cool. Maybe you could put an app in the Android Market that demos your new engine? This would make it easier for us to see what it can do. On Tuesday, January 1, 2013 11:57:53 AM UTC-6, Robert Green wrote: Thanks bob! That game was from before BatteryTech and was the reason we

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-03 Thread Robert Green
Hi Bob, There are a number of games already available using BatteryTech Engine that show off some of the basic capabilities, then we do include an APK of our demo in the engine download so that you can try it out on your device. We'll be posting that to the market next week as well, but it is

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

2013-01-03 Thread John Merlino
thanks On Wednesday, January 2, 2013 7:01:54 PM UTC-5, Larry Meadors wrote: 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

[android-developers] Re: floating window with actionbar

2013-01-03 Thread Jonathan S
I noticed similiar in http://stackoverflow.com/questions/11425020/actionbar-in-a-dialogfragment On Thursday, June 28, 2012 6:36:37 PM UTC-4, Johan Bilien wrote: Hi, I'm trying to place an activity in a floating window, with an action bar. Something similar to this:

[android-developers] setting app theme at runtime

2013-01-03 Thread dashman
i'd like the user to select the app theme at runtime - holo light or dark. how do i do that. once selected from preferences - i'd like to make it effective right there. also, depending on the theme, my icons would have to change to make it more visible - is there a runtime resource folder

Re: [android-developers] Re: hi.guys ..

2013-01-03 Thread Lew
Ibrahim wrote: Hey bro i [sic] do not know how to start that... please help me out... Thanks in advance http://www.catb.org/esr/faqs/smart-questions.html Also, GIYF. No one is going to write your program for you. Forget trying that tactic. bob wrote: You will want to use OpenGL ES.

[android-developers] Re: hi friends

2013-01-03 Thread Lew
sree wrote: I Got solution for this,Thank you no need to explain it. Yes, there is. Please do. TEXTVIEW (TEXTVIEW | TEXTVIEW | TEXTVIEW) -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread Lew
a wrote: I downloaded the source code of SL4A and integrated during the call of startActivityForResult(B), which executes the script. You got a lot of requests for how your code handles things. You did not show your code. No wonder you can't get help. Follow the advice at

Re: [android-developers] Reading from another app

2013-01-03 Thread Russell Wheeler
Latimerius, Do you mean something like this? (I ripped this from another site) Resources res = context.getPackageManager().getResourcesForApplication(com.example.foo) I was doing something very similar already (posted below), though thought it was a bit of a hack. final String packName =

[android-developers] Re: setting app theme at runtime

2013-01-03 Thread RichardC
See: http://stackoverflow.com/questions/2482848/how-to-change-current-theme-at-runtime-in-android and follow some of the links Note that change in theme will not take place until an active Activity is re-created/re-started On Thursday, January 3, 2013 11:17:46 PM UTC, dashman wrote: i'd like

[android-developers] Re: Code Coverage report through Emma says 0% coverage

2013-01-03 Thread Akshat Jain
did you try this : http://stackoverflow.com/questions/8473852/unable-to-get-emma-coverage-for-android?rq=1 ant emma debug install test I am not getting coverage numbers On Tuesday, 21 August 2012 15:28:03 UTC+5:30, arjun singh wrote: Hello Neeraj, I am stucked at the same place you are.I

[android-developers] Reg: Automatic Time Setting Request

2013-01-03 Thread Kondlada
HI All, I am looking to get absolute Time from the mobile Carrier as My app dependency on current time, Where can not trust the Android System Time unless automatic is checked in Date and Time. Unfortunately I could not find any api to check, If any one was

[android-developers] Re: Reg: Automatic Time Setting Request

2013-01-03 Thread William Ferguson
You need to set your app up as a listener to an NTP server. On Friday, January 4, 2013 3:47:21 PM UTC+10, Kondlada wrote: HI All, I am looking to get absolute Time from the mobile Carrier as My app dependency on current time, Where can not trust the Android System Time

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

2013-01-03 Thread futurexiong
It's dexopt's reason.PackageManagerService does not execute dexopt when install system apk in eng mode but execute in usr mode.My constructor used for framework reflection is not called by my apk,so dexopt optimize it.Now I add the three default constructors and use this() to call my customize

[android-developers] hi friends

2013-01-03 Thread sree android
Hi friends i am reading date value from webservices (DD/MM/) and set these date to textview.After Displaying the values is show like DD/MM/.Here i can store reading date value in one array and these array is bind to textview. But i want to display DD/MM only how. plz help me -- You

[android-developers] Re: hi friends

2013-01-03 Thread skink
sree android wrote: Hi friends i am reading date value from webservices (DD/MM/) and set these date to textview.After Displaying the values is show like DD/MM/.Here i can store reading date value in one array and these array is bind to textview. But i want to display DD/MM only

Re: [android-developers] hi friends

2013-01-03 Thread Tamil Arasi
can u share the code?. Because that is easy to help u On Fri, Jan 4, 2013 at 12:37 PM, sree android android.sreeni...@gmail.comwrote: Hi friends i am reading date value from webservices (DD/MM/) and set these date to textview.After Displaying the values is show like DD/MM/.Here i