[android-developers] Re: Custom List View

2010-12-02 Thread Doug
On Dec 1, 10:05 pm, Android Humanoid droid.hu...@gmail.com wrote: Hi All, I have custom list view in which each list item has 1. an ImageView 2. a TextView and 3. a WebView I made webview invisible by default, when the list item got selected am making the web view visible of the

[android-developers] After I added ACTION_SEND in my Activity intent-filter, how can I still use android build-in email app??

2010-12-02 Thread xi developer
I know I can use android build in email app when I use the intent with ACTION_SEND, there is no problem for me. The problem comes after I defined the ACTION_SEND in my AndroidManifest.xml like follows: activity android:name=.activity.myActivity intent-filter action

[android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread Bob Kerns
AIIY You might want to check the documentation before you make such statements: http://developer.android.com/intl/de/reference/java/lang/String.html#String(byte[]) Do *NOT*, under *ANY* circumstance, omit that second argument. Just because it works, TODAY, on YOUR device, does not make

[android-developers] Re: Localization: no compression... huge APK...

2010-12-02 Thread Pent
Thanks for the info. Pent On Dec 1, 9:45 pm, Dianne Hackborn hack...@android.com wrote: Fwiw, there is nothing that intrinsically requires the resource table to not be compressed.  This is done because it allows it to be mmapped instead of loaded into RAM, which can be a lot more efficient at

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Eyvind Almqvist
Thanks Yahel! I removed the call to setRunning(false) from onPause() and this fixed the power key and USB cable problems. SonyEricsson tested the app, but there was one remaining problem. When they rotate the screen several times, the screen turns black and sometimes the message “Sorry! Activity

Re: [android-developers] Cannot access SIM phonebook

2010-12-02 Thread zou chuanwei
Hi, you can check if you have added android.permission.READ_CONTACTS in the AndroidManifest.xml. 2010/7/13 Fabrizio Gennari fabrizi...@gmail.com Hello. I am trying to read and write contacts on the SIM phonebook. First I tried writing a contact with GetContentResolver.insert(), passing

[android-developers] Custom double-drawable button

2010-12-02 Thread Lukasz Mosdorf
Hi, Im working in a project, where very often I have to use a button containing two images and a text between them. The images and text are ment to be set only from xml. How to design my own component so that usage would look like this: MyOwnButton imageLeftSrc = @drawable/arow1 imageRightSrc =

[android-developers] Re: Dumping the results of DefaultHttpClient.execute()

2010-12-02 Thread Bob Kerns
Indeed so! Definitely more convincing. But given the request made, you should be able to capture the XML using wget or curl. I'm just trying to offer you alternatives to getting there, hoping one of my ideas might make things easier for you. If it's a matter of not matching a spec, as opposed

[android-developers] android tablet downloading problem

2010-12-02 Thread Narendra Bagade
Hi All, I am downloading content on my tablet using ftp with wifi connection . Once i download one content ,device wifi connection get disable. Ianyone can help me how to persist wifi connection evene i am download number of content. -- Regards, Narendra . -- You received this message

Re: [android-developers] android tablet downloading problem

2010-12-02 Thread Kostya Vasilyev
Specifically for WiFi, hold a WiFi lock: http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html Most likely, though, your device is going to sleep, which causes WiFi to be disabled after a certain time. To keep the device awake, hold a WakeLock:

[android-developers] Re: lower EditText isn't panned to when opening the Virtual Keyboard

2010-12-02 Thread poohtbear
After playing around for 2 hours i narrowed it down to 2 items that affect it: 1. android:gravity set to 'right' on the EditText 2. android:background set to anything that is NOT 9-patch Since i know that 9-path drawables in mid-size give 27dp padding i tried to set the left padding, failed...

[android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread HippoMan
Ah, yes. I see that I just happened to luck out, as the file.encoding property on my device must be (currently!) set to utf-8. Thanks. This begs another, related question: how do I know what encoding to use, in the first place ... for a TextView in the Android environment? If I cannot count on

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Eyvind Almqvist
I forgot to write that this only happens when the screen is rotated many times. It doesn't happen if I just switch from portrait to landscape mode one or two times. On 2 Dec, 10:11, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Thanks Yahel! I removed the  call to setRunning(false) from

[android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread HippoMan
PS: I am writing Android-specific code. The class I am using will never work outside of the Android environment, for reasons that go beyond the issue of character encoding. So does this mean that in my case, I _should_ do the moral equivalent of this? String content = new String(bytes,

Re: [android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread Kostya Vasilyev
02.12.2010 13:47, HippoMan пишет: This begs another, related question: how do I know what encoding to use, in the first place ... for a TextView in the Android environment? You don't. This is not a TextView encoding issue. TextView works with Java strings, which are always Unicode. If I

Re: [android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread Kostya Vasilyev
02.12.2010 13:54, HippoMan пишет: PS: I am writing Android-specific code. The class I am using will never work outside of the Android environment, for reasons that go beyond the issue of character encoding. So does this mean that in my case, I _should_ do the moral equivalent of this?

[android-developers] Contact API problem with save datas Options

2010-12-02 Thread jef
I'm facing a basic problem but i didn't find any tutorial in order to help me... I'm writing an application with sort of backup contact options. I want that my applications works for android phones since 1.5 to 2.2 So i write a two implementation of ContactApi, one for 1.5, 1.6 and an other for

[android-developers] Update database

2010-12-02 Thread pramod.deore
Hi, I have a table with 5 columns. 1. RoomID 2. RoomName 3.RoomSuffix 4. SwitchID 5. SwitchName I have some data in this table. Now I want to update database. How to do this? I search for this but didn't get well answer I had tried it like: sampleDB = this.openOrCreateDatabase(SAMPLE_DBNAME,

Re: [android-developers] Update database

2010-12-02 Thread Kumar Bibek
What is the error?? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Dec 2, 2010 at 4:54 PM, pramod.deore deore.pramo...@gmail.comwrote: Hi, I have a table with 5 columns. 1. RoomID 2. RoomName 3.RoomSuffix 4. SwitchID 5. SwitchName I have some data in this

Re: [android-developers] Update database

2010-12-02 Thread Kostya Vasilyev
The next-to-last argument to db.update is the WHERE clause, but without the WHERE (look it up in a SQL reference). So while in SQL you'd write WHERE SwitchName = value, with db.update you need to use SwitchName = value. The last argument is used supply variable values to the conditions. This

Re: [android-developers] android tablet downloading problem

2010-12-02 Thread Narendra Bagade
do u have implementation of wifi lock . On Thu, Dec 2, 2010 at 4:01 PM, Kostya Vasilyev kmans...@gmail.com wrote: Specifically for WiFi, hold a WiFi lock: http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html Most likely, though, your device is going to sleep,

[android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread HippoMan
Yes. I should have written this after drinking my morning coffee. On my way to work, I woke up a little and remembered that this encoding pertains to the _source_ (in my case, the epub bundle) and not the _destination_ (the TextView). Luckily, I know something about the source: epubs are supposed

[android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread HippoMan
Yes. I should have written this after drinking my morning coffee. On my way to work, I woke up a little and remembered that this encoding pertains to the _source_ (in my case, the epub bundle) and not the _destination_ (the TextView). Luckily, I know something about the source: epubs are supposed

[android-developers] how to implement send text to windows(PC) via bluetooth

2010-12-02 Thread Chao stone
Hi! all: Did anyone try to implement android phone send text to windows(PC) via bluetooth? I have no idea if android bluetooth api can connect to microsoft bluetooth stack(on PC). The bluetoothchat sample in SDK is between 2 android device. It seems to be very simular to some remote controller

[android-developers] Android Optical Mouse

2010-12-02 Thread Thiago Lopes Rosa
Hi, Does anyone know how the optical mouse (example: HTC Incredible) is mapped? Would it be a trackball? DPAD? Touch? Another key? Thanks! Thiago -- 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] android tablet downloading problem

2010-12-02 Thread Kostya Vasilyev
02.12.2010 14:41, Narendra Bagade пишет: do u have implementation of wifi lock . Might go like this: WifiManager manager = (WifiManager) getSystemService(WIFI_SERVICE); WifiManager.WifiLock lock = manager.createWifiLock(your tag string here); Locking: if (!lock.isHeld()) {

[android-developers] Intercept Incoming Message with Looper,MessageQueue and IdleHandler

2010-12-02 Thread muhammad mahmood
Hi I would like to say, i want to get what message come inside queueidle. public class ApplicationController extends Application { @Override public void onCreate() { super.onCreate(); MessageQueue queue = Looper.getMainLooper().myQueue(); IdleHandler ih = new

[android-developers] Opening a recently written file using Intents

2010-12-02 Thread Samuh
We are downloading a file from a server and writing it to folder on sdcard. As soon as the write finishes, we perform a Media Scan on that folder. When the user tries to open the file for viewing, we try to leverage upon the Intent mechanism of Android and raise an Intent as follows: Intent

Re: [android-developers] Opening a recently written file using Intents

2010-12-02 Thread Mark Murphy
I would start by using a real MIME type. The ones in your comment are not real MIME types. On Thu, Dec 2, 2010 at 8:05 AM, Samuh samuh.va...@gmail.com wrote: We are downloading a file from a server and writing it to folder on sdcard. As soon as the write finishes, we perform a Media Scan on

[android-developers] TabHost Activity

2010-12-02 Thread pedr0
Hi at all, I develop an Tab based application, and I add activity in my tab in this way: mTabHost.addTab(mTabHost.newTabSpec(tab_test2).setIndicator(TAB 1).setContent(intent1)); mTabHost.addTab(mTabHost.newTabSpec(tab_test3).setIndicator(TAB 2).setContent(intent2));

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Yahel
When they rotate the screen several times, This is usually a symptom of a memory leak. Try to read this article from Romain Guy : http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/ It explains how they can happen from a single handle to the context. The fact that you

[android-developers] strange behavior getting content from Gallery on Droid X - sets wallpaper when it shouldn't

2010-12-02 Thread Warren
I had a user report this issue. The app is designed to have the user pick an image from the Gallery that gets put on the SD card for later use. However, the user reported that the app instead sets the picture as the wallpaper! Any ideas why this might happen? The code for calling the gallery

[android-developers] What is Process Name for mediaserver e.g. com.android.phone is for phone app.

2010-12-02 Thread Atul Raut
Hi, *What is Process Name for mediaserver e.g. com.android.phone is for phone app like same I want for mediaserver. Wanted to start mediaserver through process name I have tool which uses such naming convention. *

[android-developers] Attach debugger to app that is already running

2010-12-02 Thread Leigh McRae
When I use eclipse to launch a debug session on my device it takes 2-3 minutes just to load the game. I would like to be able to run my game, get to the point I'm interested in and then attach the debugger. Is this possible? -- You received this message because you are subscribed to the Google

[android-developers] Voice search/Record Error

2010-12-02 Thread Satya
Hi, I am new to Audio module and new to Android. I am getting the following error when I start Voice Search application. # W/InputManagerService( 965): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$S8 D/dalvikvm( 1196):

[android-developers] seekto is not displaying the video frame on mediaplayer, any help?

2010-12-02 Thread genxsol
Hi Dear, i made a simple application to play a video from position1 untill position2 when mediaplayer reaches at position2, i pause the mediaplayer and seek it to position1 again. now the problem is, mediaplayer still displays position2 video frame how can i set the mediaplayer back to frame

[android-developers] How to make glow effect around a bitmap?

2010-12-02 Thread Hongbo
The following code is what I got so far. However, there are 2 issues: 1. I want both inner and outer glow effects, which looking similar to the Photoshop's blending options. But I only managed to make the outer glow, if I set BlurMaskFilter.Blur.INNER or other value, the whole image is blocked,

[android-developers] App will not Install/Move to SD Card on HTC Desire HD

2010-12-02 Thread lloyd1949
Hi Folks: A user of my app has reported the following: Phone: HTC Desire HD with Android 2.2 with lots of room on the card. Android version 2.2 Baseband version: 12.28b.60.140eU_26.03.02.26_M Kernal version 2.6.32.21-g66cfb7a ht-ker...@and18-2 #1 Tue Oct 26 15:58:17 CST 2010 Build number:

Re: [android-developers] Attach debugger to app that is already running

2010-12-02 Thread Kostya Vasilyev
Yes: - Run your game. - In Eclipse, switch to DDMS perspective (green Android, top-right toolbar). - In the Devices window (top-left), select your process. - Click the green bug icon in the toolbar above. -- Kostya 02.12.2010 18:41, Leigh McRae пишет: When I use eclipse to launch a debug

[android-developers] Upload picture to php server

2010-12-02 Thread zeeshan mirza
I am trying to upload a picture to my php server from android application. Both are developed by me. I am getting error when i try to upload picture from my android app to php server. The error is 11-28 05:37:55.310: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address

[android-developers] Why on earth do the Android Ant tools use javac with encoding=ascii?

2010-12-02 Thread Matt Quigley
First of all, I find it odd that the encoding is even specified at all. Why not just leave it as the default system encoding? Secondly, if one is going to specify an encoding, then it should NOT be ascii. It should be UTF-8. After all, the files themselves are not ascii, they are UTF-8 (or

Re: [android-developers] Attach debugger to app that is already running

2010-12-02 Thread Leigh McRae
And there was much rejoicing... Thank you! On 12/2/2010 11:58 AM, Kostya Vasilyev wrote: Yes: - Run your game. - In Eclipse, switch to DDMS perspective (green Android, top-right toolbar). - In the Devices window (top-left), select your process. - Click the green bug icon in the toolbar

[android-developers] Proposal to Market Place

2010-12-02 Thread Leon Moreyn-Android Development
As a developer I find it difficult to understanding ratings sometime. 1 to 5 is a good scale. But here is the problem with scale you can have people give you a five for the sake of giving you a five or a person give you one just because they want to be jerks. I would like to propose a change to

Re: [android-developers] Proposal to Market Place

2010-12-02 Thread Kostya Vasilyev
Maybe it's just me, but I sometimes see 1-star ratings that do include well written, thoughtful, long, helpful, descriptive comments. Some are like dis suxx. Some are like Doesn't work on device XYZ (right above a 5-star that says Perfect on device XYZ). /sarcasm You can submit your

[android-developers] Missing instance state when restoring dialogs

2010-12-02 Thread Olivier Guilyardi
Hi, in my app, certain dialogs need some instance data when onPrepareDialog() is called. I am saving this data in onSaveInstanceState() and restoring it in onCreate(). This works fine according to my tests: I received the saved data in the bundle passed to onCreate(), and then the dialogs get

[android-developers] Re: Proposal to Market Place

2010-12-02 Thread Yahel
person give you one just because they want to be jerks. I would like to propose a change . Good luck proposing, nobody's listening :s to the market rating system where a rate of 1 or 5 must include comments What you'll get is : 1 star ratings with the following very helpful(but short to

Re: [android-developers] I'm using onSensorChanged(). What should I specify in uses-feature ?

2010-12-02 Thread TreKing
On Tue, Nov 30, 2010 at 9:54 PM, Kakyoin lgmc...@gmail.com wrote: Which one do I need to specify in my manifest? Or both? If nothing else, try none, either, then both, and see which way makes it work.

[android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread kiros88
Okay like where do u gets getView I dont see that function in the Listview class or the adapterView class so im not really sure where im suppose to be able to call getView. On Dec 1, 7:54 pm, Prakash Iyer thei...@gmail.com wrote: My 2c - you are over-complicating this.The getView is ONLY to

Re: [android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 2:06 PM, kiros88 ghui...@gmail.com wrote: Okay like where do u gets getView I dont see that function in the Listview class or the adapterView class so im not really sure where im suppose to be able to call getView. Generally, you do not call getView(). You implement

[android-developers] Re: What is Process Name for mediaserver e.g. com.android.phone is for phone app.

2010-12-02 Thread Dianne Hackborn
You can't start a Android/Dalvik process through a process name. Nor should you rely on these names, which are implementation details. On Thu, Dec 2, 2010 at 6:41 AM, Atul Raut atul.dr...@gmail.com wrote: Hi, *What is Process Name for mediaserver e.g. com.android.phone is for phone app

[android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread kiros88
Okay wait so i get the concept tthat u do a getView from an ArrayAdapter but what i tried this before during the i called the adapter i used ArrayAdapter adapt = new ArrayAdapterString(this,android.R.layout.simple_list_item_1 , songs); then after its already created i do public void

Re: [android-developers] Listview with section headers shows same data under each of the them.

2010-12-02 Thread TreKing
On Wed, Dec 1, 2010 at 12:34 AM, umakantpatil umakantpat...@gmail.comwrote: Can some one help me out please? What does you adapter look like? My guess is you're returning the same view for each row.

Re: [android-developers] Re: Proposal to Market Place

2010-12-02 Thread Frank Weiss
Good ideas, but as has been said, good luck with that. Some observations, if I may: 1) A developer shouldn't rely so much on ratings for feedback. Built-in bug reporting, email, a user network, a marketing site with user comments all provide a better dialog than the market's half-ass rating

Re: [android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread Mark Murphy
Of course. Again, ordinarily, you do not call getView(). You are going about your problem in the wrong way. You are attempting to change your UI directly by grabbing some row out of a ListView and changing it. That's not going to be reliable at all, since that row might not exist. Rather, you

Re: [android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread Frank Weiss
Admittedly, I haven't read this thread in detail. It seems to me, that using an MVC approach is called for. The controller (the click handler) shouldn't be calling the view directly. The controller should call the model. The model will update the view accordingly. -- You received this message

Re: [android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread Prakash Iyer
You need to do setText in your implementation of getView. In the item clicked, store your state and call notifyDatasetChanged (check the exact name). Do not call getView... On Dec 2, 2010 2:18 PM, kiros88 ghui...@gmail.com wrote: Okay wait so i get the concept tthat u do a getView from an

[android-developers] Re: Proposal to Market Place

2010-12-02 Thread Maps.Huge.Info (Maps API Guru)
...did you know you can download your app, rate it and comment it under your google market account ? A far better use for this tactic is to answer negative comments with a preface like Developer Comment: I've tested the app completely on the XYZ and it works perfectly. or something to that

[android-developers] Re: Selling app from own website

2010-12-02 Thread mot12
Are you still in need for an answer? 1) Updates I have a simple file on my website just containing the current version number and then the apk itself. By checking against the version number, the app determines if an update is available and, if the user wants to update, downloads this file in the

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Eyvind Almqvist
Thanks, I read the article. Then I saw that I had a global reference to a context, which I didn't need. I removed it and then it worked much smoother. I think this fixed the leak. I don't have any reference to a context at all now. I mailed you my app. Hope it works like it should on your HTC! On

Re: [android-developers] Missing instance state when restoring dialogs

2010-12-02 Thread Frank Weiss
Use the onRestoreInstanceState() callback, not just onCreate(). -- 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] Can i prevent RecognizerIntent to prompt user to Retry or Abort in case of RESULT_NO_MATCH, and handle the error myself ?

2010-12-02 Thread mrqzzz
Hi, I am developing a hands-free app that uses Google's Voice recognition intent. In case of RESULT_NO_MATCH error, the Voice Recognition dialog prompts the user if he wants to retry or abort and that breaks the hands- free rule. Is there a way to call the intent and eventually handle any

[android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread kiros88
Okay so i guess this kinda makes sense I'm not really sure how am i suppose to change my data model. I did ((TextView)adapt.getView(0, null, parent)).setText(hello); adapt.notifyDataSetChanged(); but nothing changed ? On Dec 2, 11:28 am, Mark Murphy mmur...@commonsware.com wrote: Of course.

Re: [android-developers] how to zoom camera through code

2010-12-02 Thread TreKing
On Wed, Dec 1, 2010 at 5:59 AM, Atik atik0...@gmail.com wrote: but what exactly should i need to do to achieve the same. Setting the zoom change listener will tell you when the zoom has changed, it won't change it. Look at the other methods for camera - one of them apparently does exactly

Re: [android-developers] Missing instance state when restoring dialogs

2010-12-02 Thread Olivier Guilyardi
The onRestoreInstanceState() doc does not say that: http://developer.android.com/intl/fr/reference/android/app/Activity.html#onRestoreInstanceState%28android.os.Bundle%29 From what I read, onCreate() is all what is needed. Implementing onRestoreInstanceState() doesn't seem necessary in my case.

[android-developers] Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Tommy
Hi everyone, I have a strange issue that I can't seem to find a resolution to. I am working on an app using Eclipse Galileo on my laptop Windows 7 64bit. I decided to break my app down and pull out a specific section along with the activity's and services that went with that section. I moved them

Re: [android-developers] Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Kostya Vasilyev
Tommy, Since it works when you move the project to another computer (the notebook), you could try and do the same on your desktop. Copy the contents of src, res, assets (if you use them) and the manifest to a safe location. Delete the project, including the old directory. Create a new

[android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-12-02 Thread Dennis R .
Is using GPolygon() the only way ? No, you can just use this: Canvas.drawCircle(). Canvas.drawCircle is completely different from GPolygon. GPolygon draw the polygon with different sizes taking into account zoom level. I think that GPolygon it is not available on Android :( Anyone can

RE: [android-developers] Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Tommy
I tried thatDidn't workBUT I am now having the issue on both computers... -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Thursday, December 02, 2010 3:23 PM To:

Re: [android-developers] Re: onItemClick(AdapterView? parent, View view,

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 3:05 PM, kiros88 ghui...@gmail.com wrote: Okay so i guess this kinda makes sense I'm not really sure how am i suppose to change my data model. I did ((TextView)adapt.getView(0, null, parent)).setText(hello); adapt.notifyDataSetChanged(); but nothing changed ? You did

[android-developers] Free version to Paid version

2010-12-02 Thread Brill Pappin
I've got a situation a lot of us do, where I have released a free version and now need to make a Paid version of the same app. As those who have tried will know, you can't change an app from Free to Paid (a silly feature of the Market). So, what I'm planning to do is release a Plus version that

[android-developers] Re: System Font Files

2010-12-02 Thread burton miller
Ping. I know there are some brainiacs that can answer this with two lines of code:) I have already spent a couple of hours on it - or I wouldn't have posted:) On Nov 30, 4:41 pm, burton miller burton.mil...@gmail.com wrote: Anybody know how to get to thesystemfontfilesprogramatically? I am

Re: [android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-12-02 Thread TreKing
On Thu, Dec 2, 2010 at 12:34 PM, Dennis R. danielrodrigues6...@gmail.comwrote: Anyone can help with this? Help with what? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

[android-developers] Re: Listview array adapter gives me Null pointer exception.

2010-12-02 Thread Brion Emde
You still have a bug in your code. The convertView variable may contain a recycled view, as described in the documentation. You are inflating a view every time, even when convertView is non-null. Please review the documentation for the ArrayAdapter and only inflate a new view when convertView ==

[android-developers] Right value getRefreshRate in android devices ..

2010-12-02 Thread Dan Raaka
What is the expected value for this API on android devices ? http://developer.android.com/reference/android/view/Display.html#getRefreshRate() Should it match the claimed screen display refresh rate or 60 ? -Dan -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Problem in communicating from tabActivity to Child Activity

2010-12-02 Thread TreKing
On Wed, Dec 1, 2010 at 8:21 AM, cool.manish mannishga...@gmail.com wrote: Please help me in doing it. In doing what? You've outlined quite a few different things there. - TreKing

Re: [android-developers] Re: Restricted location in publisher GUI is not working on some devices

2010-12-02 Thread dan raaka
I am seeing this disappearing issue on some of my apps as well. -Dan On Thu, Nov 25, 2010 at 4:28 AM, Chister Nordvik cnord...@gmail.com wrote: I changed location to All countries and it appeared... so something is amiss here. But now I have all the other problems with apps disappearing,

[android-developers] NullPointerExeption during addTab to TabHost

2010-12-02 Thread Vladyslav Namashko
Hi all. I have TabActivity, whose tabs are added during onCreateMethod. Something like this: tabHost = getTabHost(); tabHost.addTab(tabHost.newTabSpec(main_tab1).setIndicator(...)); ... It works fine, but sometimes I get NullPointerExeption when trying to add tab using addTab. This problems

RE: [android-developers] FIXED But 1 question: Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Tommy
It turns out that for some reason when I do a myTextView.setText(Html.fromhtml()) it errors out BUT ONLY on the new application. On the old application (where I copied the source code exactly from) the FromHtml method works just fine. In order to fix this I had to add this:

[android-developers] Re: Restlet api

2010-12-02 Thread biokys
So I make another step, I can succesfully call this method from client: User user = resource.getUser(Test); On the server side it looks like: @Put public User getUser(String msg) { return new User(John + msg, Locke + msg); } So I can pass String param to method getUser and receive object

Re: [android-developers] Passing objects to new intents

2010-12-02 Thread John C. Bland II
Just reporting back. It works perfectly. I had a couple glitches but that was bad coding. :-D Thx guys! --- John C. Bland II Blog: http://www.johncblandii.com Company: http://www.katapultmedia.com Twitter: @johncblandii On Tue, Nov 30, 2010 at 11:22 AM, John C. Bland II

[android-developers] Loading external images with basic auth and url redirects

2010-12-02 Thread John C. Bland II
http://mysite.com/imageslug It redirects to: http://mysite.com/path/to/some/image.jpg. I also need to use basic auth. I'm using the Apache HttpUrlConnection and Base64. Any tips? --- John C. Bland II Blog: http://www.johncblandii.com Company: http://www.katapultmedia.com Twitter:

[android-developers] Intent filter targeting specific SDK version

2010-12-02 Thread Kwisatz
Problem: I have an Activity with an Intent-Filter that must be always active, but only when the application is running on devices above Froyo, Is there a way to: 1. Permanently add Intent-Filters? or 2. Permanently remove Intent-Filters? or 3. Make the intent-filter target specifically an

Re: [android-developers] Attach debugger to app that is already running

2010-12-02 Thread if05041
Yes. You can select the process from ddms and then attach the debugger to process. Powered by Telkomsel BlackBerry® -Original Message- From: Leigh McRae leigh.mc...@lonedwarfgames.com Sender: android-developers@googlegroups.com Date: Thu, 2 Dec 2010 07:41:30 To: Android

[android-developers] Custom Drawable Type refrerenced from XML

2010-12-02 Thread Greg Giacovelli
Hi I was wondering if something like this is possible { public class Foo extends Drawable { public void draw(Canvas canvas) { ... custom draw routine } } ... some_layout.xml ... View android:id=@+id/view1 android:background=@drawable/Foo / ... I know the second syntax doesn't work.

[android-developers] Detect when the screen is locked

2010-12-02 Thread Peter Eastman
How can I detect when the screen is locked? I'm writing a game, and have found that sometimes users will pause the game by just hitting the power button to turn off the screen. onPause() gets called then as expected. But onResume() gets called as soon as they turn the screen back on, causing my

[android-developers] Re: Free version to Paid version

2010-12-02 Thread Leon Moreyn-Android Development
pretty much thats the general method being used. One thing to consider is unpublishing the app and releasing a paid version in its place. But users may find that kinda a slap in the face. I would say do as your doing, add features to the app and call it app Plus and charge money for it. Remember

Re: [android-developers] Detect when the screen is locked

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 5:44 PM, Peter Eastman peter.east...@gmail.com wrote: How can I detect when the screen is locked? Watch for ACTION_SCREEN_OFF broadcasts -- it's the closest thing, AFAIK.  I'm writing a game, and have found that sometimes users will pause the game by just hitting the

Re: [android-developers] Intent filter targeting specific SDK version

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 5:29 PM, Kwisatz rui.mtd.ro...@gmail.com wrote: I have an Activity with an Intent-Filter that must be always active, but only when the application is running on devices above Froyo, Is there a way to: 1. Permanently add Intent-Filters? or 2. Permanently remove

[android-developers] Buttons supported in notification expanded view?

2010-12-02 Thread CrazyH
Hi, I am trying to get buttons to work in notification expanded view. The goal is to use the buttons to launch activities from the notification view. Is this even supported? Here is a very simple outline with irrelevant details omitted: 1. Create a RemoteView object using a layout with some

Re: [android-developers] Re: Free version to Paid version

2010-12-02 Thread TreKing
On Thu, Dec 2, 2010 at 4:46 PM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: What you can do is remove features in an update to your free app and keep them in your paid version. That is an awesome way to piss people off. :-)

[android-developers] Re: How to make a backwards compatible aidl?

2010-12-02 Thread Rohan
Bump. Any tips for me? On Nov 26, 2:25 pm, ANT rohan.martin@gmail.com wrote: I want to support multiple applications communicating with my service through aidl, but I will need to add IPC functions in the future while still supporting the old applications.  Adding a new function to the

Re: [android-developers] Re: How to make a backwards compatible aidl?

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 6:23 PM, Rohan rohan.martin@gmail.com wrote: Bump. Any tips for me? I don't think what you literally asked for (make a backwards compatible AIDL) is possible. What should be possible, though, is to support two different AIDL versions. I have not tried this, so your

[android-developers] Re: Listview array adapter gives me Null pointer exception.

2010-12-02 Thread Doug
On Dec 2, 12:52 pm, Brion Emde brione2...@gmail.com wrote: The convertView variable may contain a recycled view, as described in the documentation. You are inflating a view every time, even when convertView is non-null. I'm not aware of any documentation that says you are obliged to use

[android-developers] SyncAdapter questions: monitoring sync status; getting sync settings; sync icon

2010-12-02 Thread focuser
Hi, I am experiementing with SyncAdatpers and have a few questions that I could not find answers either in the documentation or this group yet. - How to monitor the status of sync after requesting it via ContentResolver.requestSync? For example, I need to refresh the UI when the requested sync

[android-developers] Re: Restlet api

2010-12-02 Thread Brill Pappin
Try it with a Post instead of a Put. Put isn't supposed to return anything but the request status. - Brill Pappin On Dec 2, 5:08 pm, biokys mulle...@gmail.com wrote: So I make another step, I can succesfully call this method from client:  User user = resource.getUser(Test); On the server

[android-developers] Re: Listview with section headers shows same data under each of the them.

2010-12-02 Thread Doug
On Nov 30, 10:34 pm, umakantpatil umakantpat...@gmail.com wrote: I have been facing the problem. I tried posting on stackoverflow too. Below is the link.http://stackoverflow.com/questions/4321329/listview-with-section-head... I have listview with headers. But it shows same list under each

[android-developers] Re: How to detect FPS (frame per second) in video ?

2010-12-02 Thread Doug
On Dec 1, 10:41 pm, Paddy Yao ispa...@gmail.com wrote: I use VideoView to play video . I can use getCurrentPosition() to get current run time . But I don`t know how to detect how many frames has play. Or I should use the other class but not VideoView ? Does anyone know this issue? You

[android-developers] How to update an ArrayAdapter

2010-12-02 Thread kiros88
Okay So im basically come to a problem and a question im trying to search online for. I know your going to have to notifyDataSetChanged to update your listView but im having a hard time finding an example of how to update my arrayAdapter when data would change is there and example of how to do

[android-developers] Re: Attach debugger to app that is already running

2010-12-02 Thread fadden
On Dec 2, 8:58 am, Kostya Vasilyev kmans...@gmail.com wrote: - Run your game. - In Eclipse, switch to DDMS perspective (green Android, top-right toolbar). - In the Devices window (top-left), select your process. - Click the green bug icon in the toolbar above. Also, if you want to wait at a

[android-developers] Re: Intent filter targeting specific SDK version

2010-12-02 Thread Kwisatz
Wow! Thank you so much, Mark. You really guided me to the right place. Here is what I come up with: In the manifest, I have my Activity, let's call it com.test.disable.TargetActivity, and it is set with one or more intent filters. So, during the app execution, somewhere in the code, I can see if

  1   2   >