Re: [android-developers] Re: How to send motion Event down to another activity

2010-02-09 Thread Dianne Hackborn
You can use the various options in WindowManager.LayoutParams to control how your window is sized (you'll want WRAP_CONTENT to not be full screens), where it is placed on screen (absolute position and/or gravity constants to place relative to an edge), etc. On Mon, Feb 8, 2010 at 11:34 PM, sheng

Re: [android-developers] External strings.xml?

2010-02-09 Thread Dianne Hackborn
Actually the resource table (which includes all strings) is not stored compressed, so it can be mmapped. Worse, the strings are stored as UTF-16. (I know, I know, that was dumb. I am ashamed.) Bloated apps as the number of localizations increase is definitely an issue (look at Maps as an

Re: [android-developers] Re: Are processes kept alive when nothing is being done?

2010-02-09 Thread Dianne Hackborn
I think there is going to be updating of the user documentation to better explain this. The current SDK documentation I think is relatively clear about there being empty processes (the last process bucket) that can be hanging around. On Mon, Feb 8, 2010 at 11:25 PM, Al Sutton

[android-developers] Re: Are processes kept alive when nothing is being done?

2010-02-09 Thread jotobjects
On Feb 8, 11:25 pm, Al Sutton a...@funkyandroid.com wrote: Thanks for the clarification Dianne. I'm guessing the confusion comes from people who (like me) are familiar with the traditional Linux process model of when a process has finished it dies What constituents finished for an Andorid

Re: [android-developers] Re: How to send motion Event down to another activity

2010-02-09 Thread Zhang Guobin
Using Activity Manager, operating on the HistoryRecord list Guobin 2010/2/9 sheng wang banxia...@gmail.com Hi GuoBin, 1. My translucent activity will be the root acitivity, and very possible the home screen will be just behind, but what is the programmable way that can get a activity

[android-developers] Re: Help Needed With Some Layout - UI Problems

2010-02-09 Thread MobDev
well the idea of a tablelayout with just one row is that I want to place two items, one on the left side of the screen and one centered within the screen... so if you have any idea how to achieve this ? Or will a horizontal linearlayout fix that ? I am having a lot of trouble, I love the fact that

[android-developers] Re: Are processes kept alive when nothing is being done?

2010-02-09 Thread Michael Elsdörfer
http://developer.android.com/guide/topics/fundamentals.html#proclifeKeeping it around has no negative impact on the user. It would be possible though that a broken application still has active threads around which are eating CPU cycles, correct? Michael -- You received this message because

Re: [android-developers] Standard Android Music Player

2010-02-09 Thread Sean Hodges
Accroding to a comment in the OpenIntents site (http://www.openintents.org/en/node/112), this should work: Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.parse(file:///sdcard/song.mp3); String type = audio/mp3; intent.setDataAndType(data, type);

[android-developers] Application manager not exiting properly in Eclair 2.1

2010-02-09 Thread vrukesh
Hi, With Android Eclair 2.1 on ARM-based target, we are executing Instrumentation test application from command line: am instrument -e class android.app.foo. -w com.android.cts.foo.MyTestApp/android.test.InstrumentationTestRunner Test application executes fine, showing result of the sub-tests

[android-developers] Re: Android: Draw a scalable Rectangle

2010-02-09 Thread MrChaz
That should be easily doable with a Surface, Canvas and a Paint object. Draw the bitmap onto the canvas, then draw the rectangle around it and display it on the surface. On Feb 9, 6:43 am, warrior chandu.ku...@gmail.com wrote: Hi All,     Can anybody help me to draw a scalable rectangle around

[android-developers] Does APK always include all classes of a referenced project in build path?

2010-02-09 Thread westmeadboy
I reference a secondary Java project in my build path. When the APK is built will it include all of the classes of that project or only the ones that are referenced from (directly or indirectly) my main project? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Using IPSec on Android

2010-02-09 Thread Android Development
Hello, How do I establish IPSec Security Associations on Android ? Is there a standard API for doing so ? Or will I need to issue shell commands to achieve it ? Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Modal Dialogs: the definitive solution

2010-02-09 Thread guich
Hi! The big problem is that i really need to block the application from the caller. Based on Dianne's suggestion, i'm now also making alertShowing = false; in the onPause method. regards guich -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Rotation with ListActivity

2010-02-09 Thread Christoph Renner
Hi Noodles, I guess the problem is the following: your thread has a reference to the Activity or ListView. When the download is finished the thread uses this reference to add the items to the ListView. However when the screen orientation has changed, the activity has been destroyed and recreated

[android-developers] Flash file android

2010-02-09 Thread Narendra Bagade
Hi all, For advertisement in my app ,I want to use flash file . Can anyone know how to create flash file in android Or how o use exisiting flash file in Android app. -- Regards, Narendra B 9632382960, Bangalore. -- You received this message because you are subscribed to the Google Groups

[android-developers] Image+TextView+radiobutton in spinner

2010-02-09 Thread QD
First, I want to imitate the effect like android.R.layout.simple_spinner_dropdown_item which is TextView+radiobutton but either the getView() or getDropDownView only cares about one row at a time, while the whole radiobuttons in spinner is like one RadioGroup, and when dropdown view is opened,

[android-developers] Re: No light sensor and/or proximity sensor detected on Hero?

2010-02-09 Thread mileoresko
Somebody? Anybody? I really need a tip on this one. There is just no sense in this output of the getSensorList() function. There is obviously a light sensor on the device (HTC Hero), yet I can not programmaticaly access it. Why? -- You received this message because you are subscribed to the

[android-developers] Re: Background Intent

2010-02-09 Thread JimmyHoffa
Well you could call a service instead. On Feb 4, 6:21 pm, Mark Murphy mmur...@commonsware.com wrote: Is it possible to start an Intent but kepp it hidden? For example now to start the intent I am using         startActivitity(intent). Suppose the intent is to start a web browser, the

[android-developers] xls to sqllite

2010-02-09 Thread DAVIDT
Hi all Did any one tried export the table into .xls file. Using this .xls file, I planned to insert the data in sql lite thanks -- 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] Auto image fit into TableRow

2010-02-09 Thread pankaj nigam
Hi, i m defining one table row and i want to put images into each row that image may be of different size. My row width and height is fix. My Question is : is there any class or function which automatically fit into that particular row like Auto resizing. Hear is my Xml file ?xml

[android-developers] rebooting programatically / platform certificate

2010-02-09 Thread guich
Hi, I read that, to be able to reboot programatically, you have to: 1. Sign your app with the platform certificate 2. Do this: Intent i = new Intent(Intent.ACTION_REBOOT); i.putExtra(nowait, 1); i.putExtra(interval, 1); i.putExtra(window, 0); sendBroadcast(i); Questions: can any app be

[android-developers] interpolatedTime in applyTransformation method

2010-02-09 Thread satish bhoyar
hi all, I have one doubt when we extends the Animation class we have to implement the applyTransformation() method. This method give one parameter called interpolatedTime. can anyone explain what is this? i m not able to make out about it. I tried some example also, but unable to get what is

Re: [android-developers] Flash file android

2010-02-09 Thread Sandeep Phansekar
try admob On Tue, Feb 9, 2010 at 4:10 PM, Narendra Bagade bagadenaren...@gmail.comwrote: Hi all, For advertisement in my app ,I want to use flash file . Can anyone know how to create flash file in android Or how o use exisiting flash file in Android app. -- Regards, Narendra B

[android-developers] get remaining battery

2010-02-09 Thread guich
Hi, Searching old posts reveal that no one knows a way to get the current battery level without using intents. Is this true? There's no method to just return the current battery level? thanks guich -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Involuntary Scrolling, help !

2010-02-09 Thread MobDev
Hi, I have created a somewhat complex RelativeLayout, in which I also have specified it's width and height as fill_parent.. Now I noticed that even though all my extra widgets within this Layout won't get bigger than the height of my test-device (480px) the whole Layout will scroll somewhat to the

Re: [android-developers] rebooting programatically / platform certificate

2010-02-09 Thread Mark Murphy
Questions: can any app be signed with such certificate? Can we install it in non-development devices? Can such app be published in the market? Those questions are only relevant if you are making your own firmware or handset. After all, the only way you *get* such a certificate is because you

[android-developers] How to have TimerTask (or equivalent) that executes even while display is sleeping ?

2010-02-09 Thread mrqzzz
Hi. I have noticed that when display goes to sleep, my TimerTask is also freezed, until display is waked up. I need my TimerTask to execute (a BlueTooth operation every few minutes) even while the display is sleeping. How do i achieve this (eventually using something else instead of a TimerTask)

Re: [android-developers] get remaining battery

2010-02-09 Thread Mark Murphy
Searching old posts reveal that no one knows a way to get the current battery level without using intents. Is this true? There's no method to just return the current battery level? Intents and return the current battery level are not mutually exclusive. Call registerReceiver(null, new

Re: [android-developers] How to have TimerTask (or equivalent) that executes even while display is sleeping ?

2010-02-09 Thread Mark Murphy
I need my TimerTask to execute (a BlueTooth operation every few minutes) even while the display is sleeping. If the device is not on a charger, you might blow through the user's battery before they wake up, if you use a polling period of that frequency. I strongly encourage you to watch Jeff

[android-developers] Re: what are the possible connections?

2010-02-09 Thread Nand
Hi, Did u find answer for the question you had posted. Even I want to know what knid of connections are possible. Thanks Nand -- 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] Question regarding Threads and Services

2010-02-09 Thread MobDev
Hi, I'd like to create some sort of Thread which can be accessed by my main program.. Specifically I'd like two classes, both with their own thread, one for parsing XML data and one for doing database operations, without actually interfering with the main UI-thread (slowdowns for example)... I was

[android-developers] Re: Launching Browser in Preference Activity.

2010-02-09 Thread SAM
I have tried doing a finish after calling startActivity. But this is causing a white screen on my emulator for some time, then the browser is getting launched. So now I called finish() on onPause and its works fine. Thanks Sam On Feb 2, 11:51 am, SAM gulati...@gmail.com wrote: Hi, This works

[android-developers] Re: get remaining battery

2010-02-09 Thread guich
Thanks Mark, great trick. Here's the code that worked: Intent bat = loader.registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); int level = bat.getIntExtra(level, 0); int scale = bat.getIntExtra(scale, 100); return level * 100 /

[android-developers] Re: what are the possible connections?

2010-02-09 Thread guich
Well... no. But dumping /proc/devices i found this: I/TotalCross( 2946): /proc/devices I/TotalCross( 2946): Character devices: I/TotalCross( 2946): 1 mem I/TotalCross( 2946): 5 /dev/tty I/TotalCross( 2946): 5 /dev/console I/TotalCross( 2946): 5 /dev/ptmx I/TotalCross( 2946): 10 misc

Re: [android-developers] Question regarding Threads and Services

2010-02-09 Thread Mark Murphy
Hi, I'd like to create some sort of Thread which can be accessed by my main program.. Specifically I'd like two classes, both with their own thread, one for parsing XML data and one for doing database operations, without actually interfering with the main UI-thread (slowdowns for

Re: [android-developers] Re: get remaining battery

2010-02-09 Thread Mark Murphy
Thanks Mark, great trick. Here's the code that worked: Intent bat = loader.registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); int level = bat.getIntExtra(level, 0); int scale = bat.getIntExtra(scale, 100); return level

[android-developers] Re: interpolatedTime in applyTransformation method

2010-02-09 Thread skink
On Feb 9, 12:55 pm, satish bhoyar getsatonl...@gmail.com wrote: hi all, I have one doubt when we extends the Animation class we have to implement the applyTransformation() method. This method give one parameter called interpolatedTime. can anyone explain what is this? i m not able to

[android-developers] Google Map Error

2010-02-09 Thread Sasikumar.S
Hi, when i'm using Google map, it is showing nice. After i'm coming back then try to see one more time newly it is showing error. The error is below 02-09 18:36:40.555: ERROR/AndroidRuntime(300): Uncaught handler: thread main exiting due to uncaught exception 02-09 18:36:40.694:

[android-developers] Re: Question regarding Threads and Services

2010-02-09 Thread MobDev
Hi Mark, first of all thanks for your answer :D I come from a J2ME background in which I had the same problem, i.e I need to have a always-existent database interface and a always- existent xml-parser which (in J2ME) I placed in a singleton Thread, so that they could be paused when needed and they

[android-developers] Easiest way to programmatically check if the Market app is installed?

2010-02-09 Thread westmeadboy
What is the easiest way to programmatically check if the Market app is installed? -- 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

[android-developers] Re: Are the market stats for developers broken?

2010-02-09 Thread matt smith
Bump. -- 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 options,

[android-developers] Re: How to have TimerTask (or equivalent) that executes even while display is sleeping ?

2010-02-09 Thread mrqzzz
Thank you Mark, your suggestions and tips are great, as always! Marcus. -- 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

Re: [android-developers] Re: interpolatedTime in applyTransformation method

2010-02-09 Thread satish bhoyar
Hi thnks for reply.. can i change it use it? On Tue, Feb 9, 2010 at 6:39 PM, skink psk...@gmail.com wrote: On Feb 9, 12:55 pm, satish bhoyar getsatonl...@gmail.com wrote: hi all, I have one doubt when we extends the Animation class we have to implement the applyTransformation()

[android-developers] Broadcasts - ACTION_MEDIA_SCANNER_STARTED - ACTION_MEDIA_SCANNER_FINISHED

2010-02-09 Thread code_android_festival_way
Does someone know if these broadcasts can be caught with a BroadcastReceiver which is registered in the AndroidManifest? I haven't been able to catch events when I tried it that way and just wanted to know if this should be generally possible. Thank you for your help. Regards! -- You received

[android-developers] How to install zxing on android 2.0

2010-02-09 Thread mudit
hi.. i am trying to install zxing on android 2.0 emulator but i am getting an INSTALL_FAILED_CPU_ABI_INCOMPATIBLE error. i know why this error occurs -- please refer the post below

[android-developers] Unable to update gui

2010-02-09 Thread Hassan Imtiaz
Hi, I have developed a simple application in which I connect to dark star server through android client. In my client I have implemented SimpleClientListener. When I try to set text of a textview in receivedMessage called by the server it throws an exception

Re: [android-developers] Re: Programmatically turning off the screen and locking the phone

2010-02-09 Thread Abhay dey
goToLockScreen is the API I found, but throws security exception. No luck so far On Tue, Feb 9, 2010 at 11:00 AM, San sanees...@gmail.com wrote: Abhay, Any update on this? Did you get how to lock? On Feb 1, 9:55 am, Abhay dey abhay.gauranga@gmail.com wrote: Hi All, As we

[android-developers] How can we know if Android is currently locked or not ?

2010-02-09 Thread Abhay dey
Hi, I want to know whether currently android is locked or not. Is there any API related to this which tells us whether phone locked ? Thanks in advance, Swapnil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Controlling radio devices.

2010-02-09 Thread flsobral
Hello. I'm looking for a way to enable, disable and return the status of a radio device, which may be the cell phone, bluetooth or wifi. To check if the radio is supported on device, I'm using the following for phone: ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE); for

[android-developers] Sending some data when requesting XML

2010-02-09 Thread MobDev
Hi, I have been using this code to parse some XML data from a specific server : URL url = new URL(http://myserver.com/someXMLScript;); URLConnection conn = url.openConnection(); InputStream is = conn.getInputStream(); Xml.parse(is, Xml.Encoding.ISO_8859_1, new

[android-developers] Timer problem

2010-02-09 Thread satish bhoyar
Hi all, I am trying to work with Timer. My use case is I am dynamically updating the Layout after some delay i will be loading the new updated layout. I put the Timer but it is not working correctly this is the timer code timer.schedule(new TimerTask() { public void run() {

Re: [android-developers] Re: Programmatically turning off the screen and locking the phone

2010-02-09 Thread Abhay dey
Sorry.. its goToSleep() is the API from PowerManagerService On Tue, Feb 9, 2010 at 7:59 PM, Abhay dey abhay.gauranga@gmail.comwrote: goToLockScreen is the API I found, but throws security exception. No luck so far On Tue, Feb 9, 2010 at 11:00 AM, San sanees...@gmail.com wrote: Abhay,

[android-developers] Re: Google Map Error

2010-02-09 Thread Daniel Drozdzewski
... Caused by: java.lang.IllegalStateException: You are only allowed to have a single MapView in a MapActivity ... where do you call setContentView() from? It should be called from onCreate(). Daniel On 9 Feb, 13:10, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, when i'm using Google

[android-developers] Re: External strings.xml?

2010-02-09 Thread Kaj Bjurman
Great to hear that you are looking into this. :) On 9 Feb, 09:06, Dianne Hackborn hack...@android.com wrote: Actually the resource table (which includes all strings) is not stored compressed, so it can be mmapped.  Worse, the strings are stored as UTF-16.  (I know, I know, that was dumb.  I

Re: [android-developers] How to install zxing on android 2.0

2010-02-09 Thread Mark Murphy
i am trying to install zxing on android 2.0 emulator but i am getting an INSTALL_FAILED_CPU_ABI_INCOMPATIBLE error. i know why this error occurs -- please refer the post below

Re: [android-developers] Easiest way to programmatically check if the Market app is installed?

2010-02-09 Thread Mark Murphy
What is the easiest way to programmatically check if the Market app is installed? If you can figure out what the package name of the Market is, you could use PackageManager to find out if it is installed. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] problems using SCREEN_DIM_WAKE_LOCK

2010-02-09 Thread guich
Hi, I'm trying to programatically turn the screen off and on, while keep the app running. If i try this code: final PowerManager pm = (PowerManager) loader.getSystemService(Context.POWER_SERVICE); AndroidUtils.debug(creating lock); screenLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK,

Re: [android-developers] Flash file android

2010-02-09 Thread Narendra Bagade
what is this? plz,can u explain it in details? On Tue, Feb 9, 2010 at 5:35 PM, Sandeep Phansekar sandeep.phanse...@gmail.com wrote: try admob On Tue, Feb 9, 2010 at 4:10 PM, Narendra Bagade bagadenaren...@gmail.com wrote: Hi all, For advertisement in my app ,I want to use flash

Re: [android-developers] problems using SCREEN_DIM_WAKE_LOCK

2010-02-09 Thread Sean Hodges
Sorry to ask the obvious, but are you sure you have the android.permission.WAKE_LOCK permission declared in your AndroidManifest.xml? On Tue, Feb 9, 2010 at 3:11 PM, guich guiha...@gmail.com wrote: Hi, I'm trying to programatically turn the screen off and on, while keep the app running. If

[android-developers] Replacing the dialog layout of Preference

2010-02-09 Thread awwa
hi, I'm trying to replace the dialog of EditTextPreference to custom dialog that include SeekBar. I know that it is possible to use dialogLayout attribute. But I cant set or get the value to the SeekBar from code. How do I set or get the value to it? -- You received this message because you are

[android-developers] Re: problems using SCREEN_DIM_WAKE_LOCK

2010-02-09 Thread guich
Thanks! Not so obvious to me. :-) Where can i see the permissions that have to be set in order to get access to a feature? I couldn't find anything in the documentation. Well, now the lock works, but the screen is still BRIGHT! I'm using a G2. Maybe this doesn't work in a G2? greetings,

[android-developers] Re: Timer problem

2010-02-09 Thread skink
On Feb 9, 3:41 pm, satish bhoyar getsatonl...@gmail.com wrote: Hi all, I am trying to work with Timer. My use case is I am dynamically updating the Layout after some delay i will be loading the new updated layout. I put the Timer but it is not working correctly this is the timer code  

[android-developers] Re: interpolatedTime in applyTransformation method

2010-02-09 Thread skink
On Feb 9, 2:51 pm, satish bhoyar getsatonl...@gmail.com wrote: Hi thnks for reply.. can i change it use it? On Tue, Feb 9, 2010 at 6:39 PM, skink psk...@gmail.com wrote: On Feb 9, 12:55 pm, satish bhoyar getsatonl...@gmail.com wrote: hi all, I have one doubt when we extends

[android-developers] Layout Design Question

2010-02-09 Thread Jose Gomez
Hey all, I am working on a project for which I have formulated a fairly complex layout but I have no earthly idea how I could implement such a thing. Attached is an image of what I'd like it to look like, can anyone think of a way to generate such layout? If so how? Does anyone have any resources

[android-developers] Re: Layout Design Question

2010-02-09 Thread Jose Gomez
I forgot to mention each thing on the circle is a button Sincerely Jose C Gomez http://www.josecgomez.com Sent from Jacksonville, Florida, United States On Tue, Feb 9, 2010 at 10:45 AM, Jose Gomez j...@josecgomez.com wrote: Hey all, I am working on a project for which I have formulated a

[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
Anyone? On Feb 9, 12:07 am, schwiz sch...@gmail.com wrote: Hello I have a linear layout that I have overridden because I want to dynamically add other views to it.  I am trying to add some textviews to it and I call addViewToLayout in the onLayout method, stepping through the program in

[android-developers] Re: ViewFlipper.showNext() not working in timer

2010-02-09 Thread bagadenaren...@gmail.com
Hi , I want to show the slideshow of images... can u share the code if u got the solution for this.. Narendra On Dec 20 2009, 3:01 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote: Hi, Be aware that the timer uses a new thread, so you need a handle to communicate with the UI thread.

[android-developers] Re: Controlling radio devices.

2010-02-09 Thread flsobral
Oh crap, I just noticed BluetoothAdapater is API level 5. What can I use with API level 4? On Feb 9, 12:33 pm, flsobral flsob...@gmail.com wrote: Hello. I'm looking for a way to enable, disable and return the status of a radio device, which may be the cell phone, bluetooth or wifi. To check

[android-developers] Re: Easiest way to programmatically check if the Market app is installed?

2010-02-09 Thread westmeadboy
Thanks Mark. Here is my problem in more detail: I want to bring up the Market details page of another one of my apps so I fire off an intent to: market://details?id=com.mycompany.myapp Three things can go wrong with this (OK, maybe more, but...): 1. market:// scheme cannot be resolved 2. no

[android-developers] changing the current date/time

2010-02-09 Thread guich
Hi, I'm now trying to change the current date and time of the device. I know that it comes from the network, but some users like to synchronize the clock with their server's clock, even if it differs. Can this be done programatically, not being a superuser? thanks guich -- You received

[android-developers] Activity does not close on back key

2010-02-09 Thread Ashwini
I am starting a 2nd activity in my application. Activity A - Activity B Now I press Home key, and Activity B is shown. But pressing back key as soon as the view is up, does not stop Activity B. Rather it remains without any focus on the stack. I tried using finishActivity() but that does not seem

Re: [android-developers] Re: Easiest way to programmatically check if the Market app is installed?

2010-02-09 Thread Mark Murphy
Thanks Mark. Here is my problem in more detail: I want to bring up the Market details page of another one of my apps so I fire off an intent to: market://details?id=com.mycompany.myapp Three things can go wrong with this (OK, maybe more, but...): 1. market:// scheme cannot be resolved

Re: [android-developers] Re: Layout Design Question

2010-02-09 Thread Frank Weiss
I suggest you study the Android layout API carefully, download the Android sources, extend the Layout class with your custom Layout. -- 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] Sending some data when requesting XML

2010-02-09 Thread Frank Weiss
Simple. Add query parameter to the URL. Example: http://myserver.com/someXMLScript?IME=A7G -- 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

Re: [android-developers] Unable to update gui

2010-02-09 Thread Frank Weiss
Typical problem when non-UI thread code tries to update the UI. Please use AsyncTask - it solves 99% of these problems. -- 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

Re: [android-developers] Re: Question regarding Threads and Services

2010-02-09 Thread Frank Weiss
The AsyncTask pattern already provides a thread (from a pool) that you can use anytime you need one. It's not at all clear why you need a singleton XML parser. -- 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: Modal Dialogs: the definitive solution

2010-02-09 Thread Frank Weiss
Just curious what caller means in that context? -- 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: Easiest way to programmatically check if the Market app is installed?

2010-02-09 Thread westmeadboy
Super duper :) I tried queryIntentActivities() and that gave me one activity: com.android.vending.AssetInfoActivity So, yes, I can just check that result for an empty list. Any ideas how Archos 5 Internet Tablet handles this URI? On Feb 9, 5:18 pm, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] Re: Sending some data when requesting XML

2010-02-09 Thread MobDev
hhmm oke, I was hoping in something more POST-like instead of GET-like :D Is that possible ? On 9 feb, 17:22, Frank Weiss fewe...@gmail.com wrote: Simple. Add query parameter to the URL. Example:http://myserver.com/someXMLScript?IME=A7G -- You received this message because you are subscribed

Re: [android-developers] Re: Modal Dialogs: the definitive solution

2010-02-09 Thread TreKing
On Tue, Feb 9, 2010 at 4:20 AM, guich guiha...@gmail.com wrote: The big problem is that i really need to block the application from the caller. And why do you really need to block the application?

[android-developers] Re: Unable to get map overly to show

2010-02-09 Thread andrew android
Bump) On Feb 6, 7:16 am, andrew android andygoldm...@gmail.com wrote: Can anyone help?  Thanks! On Feb 2, 7:42 pm,andrewandroidandygoldm...@gmail.com wrote: ?xml version=1.0 encoding=utf-8? LinearLayout   xmlns:android=http://schemas.android.com/apk/res/android;  

Re: [android-developers] How to show floating menu similar to sub-menus on screen tap

2010-02-09 Thread Frank Weiss
I think AlertDialog in the answer. -- 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] changing the current date/time

2010-02-09 Thread guich
Hi, I'm now trying to change the current date and time of the device. I know that it comes from the network, but some users like to synchronize the clock with their server's clock, even if it differs. Can this be done programatically, not being a superuser? thanks guich -- You received

Re: [android-developers] Re: Sending some data when requesting XML

2010-02-09 Thread Frank Weiss
Why post instead of get? I think you may need to use HttpClient then, but I'm not sure. -- 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] Re: Question regarding Threads and Services

2010-02-09 Thread MobDev
owh mostly for being more memory efficient ? :D I have tried with the AsyncTask, which seemed like a great option for me (especially being able to do an updateProgress) but unfortunately my situation is somewhat more complex :( In my situation I have a main class (with the main UI Thread

[android-developers] Re: Sending some data when requesting XML

2010-02-09 Thread MobDev
well maybe out of security reasons ? mostly because of the fact that the used server already reads out POST requests instead of GET... hhmm, I guess that with httpClient I cannot use the uber-simple code I am using at the moment :P for parsing that is :D On 9 feb, 17:45, Frank Weiss

[android-developers] Re: Modal Dialogs: the definitive solution

2010-02-09 Thread guich
My application is not a standard application. Is a virtual machine. This is the schema: totalcross application - totalcross vm - native code - dalvik vm - totalcross' android classes When the TotalCross application calls Vm.alert(hi!), it is expecting that the call will resume ONLY after the

[android-developers] Re: Are processes kept alive when nothing is being done?

2010-02-09 Thread jotobjects
On Feb 9, 12:45 am, Michael Elsdörfer elsdoer...@gmail.com wrote: It would be possible though that a broken application still has active threads around which are eating CPU cycles, correct? Empty processes have no application components. ASFIK the JVM is gone and all the runtime artifacts of

[android-developers] Re: querying ContactsContract: How can I use smth like GROUP BY?

2010-02-09 Thread Wysie
Anyone able to help with this? I'm interested in how to do this too. Thanks! :) On Jan 3, 2:35 am, Flo flo.schw...@gmail.com wrote: Hey there! I'm querying the ContactsContract.Data table like the following: [...]        Uri contactsURI = ContactsContract.Data.CONTENT_URI;          

Re: [android-developers] Re: Question regarding Threads and Services

2010-02-09 Thread Frank Weiss
Yes, that is a bit more complex. First, don't confuse SAX handler callbacks with GUI handler callbacks. Two approaches: 1) Make AsyncTask implement org.sax.ContentHandler. That way the SAX callbacks have direct access to AsyncTask.publishProgress(). 2) Create a delegate so that the parser has a

[android-developers] Re: MapView

2010-02-09 Thread Aamir Yaseen
I am also working on similar application . We have application to search local events around you. 2. I would like to navigate between each location plotted on the MapView using a similar method that Google has on their mobile version of maps when we search for some place like pizza, how do we do

[android-developers] Re: xls to sqllite

2010-02-09 Thread jotobjects
One way is to save the spreadsheet in csv (comma separated values) format and read it back with String.split() and insert the rows into your database. On Feb 9, 3:18 am, DAVIDT dtole...@gmail.com wrote: Hi all Did any one tried export the table  into .xls file. Using this .xls file, I planned

[android-developers] Re: Easiest way to programmatically check if the Market app is installed?

2010-02-09 Thread strazzere
How the Archos handles market:// ? I'm not sure if this still holds true -- but in previous versions of AppsLib (The Archos Market) essentially hijacked this protocol. So the protocol did work, just not the same way. Though if the user has AppsLib installed and google market - via the symlink

Re: [android-developers] Re: problems using SCREEN_DIM_WAKE_LOCK

2010-02-09 Thread Sean Hodges
You need this permission: uses-permission android:name=android.permission.WAKE_LOCK / Be sure to have a read up on the permissions framework, it's pretty fundamental to Android development. http://developer.android.com/intl/fr/guide/topics/security/security.html#permissions SCREEN_DIM_WAKE_LOCK

Re: [android-developers] Re: Timer problem

2010-02-09 Thread satish bhoyar
Do u have any code snippet or any link for this info. please send.. thanks, satish On Tue, Feb 9, 2010 at 9:06 PM, skink psk...@gmail.com wrote: On Feb 9, 3:41 pm, satish bhoyar getsatonl...@gmail.com wrote: Hi all, I am trying to work with Timer. My use case is I am

[android-developers] Need an example

2010-02-09 Thread nikhil
Can any one point me to an example which uses Broadcastreceiver AlarmManager Wakelock Service I am trying this for quiet sometime but there is some conflict with other phone applications like call forwarding, car navigation etc. -- You received this message because you are subscribed to the

Re: [android-developers] Re: interpolatedTime in applyTransformation method

2010-02-09 Thread satish bhoyar
HI thanks for rply but i have a doubt. The problem is it is the parameter for the applytransformation() function. how can i change it then? or is it like it will take 0,0.1 1 values during animation i can check it in the applytransformation()? please guide me. thanks satish On Tue, Feb 9, 2010

[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
Stepping through this code even more closely I found that the onDraw method isn't even being called at all despite the fact that every other view in the xml file is showing up custom and otherwise. However, this is the only view that inherits from LinearLayout all of the other just inherit from

Re: [android-developers] Re: Modal Dialogs: the definitive solution

2010-02-09 Thread Frank Weiss
The conundrum on Android is that user code can't block in a UI thread and non-UI threads can't manipulate the UI. I can image that some code is just written so procedurally that blocking Alert calls is the straight-forward way to do it. On the other hand, breaking down a long procedure into

Re: [android-developers] Google Map Error

2010-02-09 Thread Jason Proctor
stack traces are human readable, i suggest you read them rather than just posting them. such is the way that wisdom is gained. i draw your attention to this line, close to the bottom (ie close to the *top* of the caller stack) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): Caused by:

  1   2   3   >