[android-developers] Re: In Call App Screen

2010-11-06 Thread Riyaz
Yes, its possible only custom build ROM, you can try cyanogenmod On Nov 6, 10:40 am, Kumar Bibek coomar@gmail.com wrote: Well, if you have to change that, you will have to have your own build installed on your own device. There's no other way. On Sat, Nov 6, 2010 at 5:34 AM, Kavinder

Re: [android-developers] Re: Shared User ID and Signing

2010-11-06 Thread Marcin Orlowski
On 6 November 2010 00:21, John Gaby jg...@gabysoft.com wrote: As an update, I created a new clean emulator, and I am able to get both apps to install, and they seem to be able to read each other's data. However, on the first emulator, I still cannot install either one, even if I delete all of

Re: [android-developers] How to use bringchildtofront in List

2010-11-06 Thread Dev Android
i've list view and i'm trying to change the order using bringchildtofront function. But i don't know whether it changes the order permanently or i need to change it again when scrolling is performed on the list. On Mon, Nov 1, 2010 at 10:50 PM, TreKing treking...@gmail.com wrote: On Sat, Oct

[android-developers] how many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?

2010-11-06 Thread noriato
Hi, so there's the multitouch issue with the Nexus One and HTC Desire. Is there some documentation on what other devices have this hardware error and what the total market share is? If you had a game idea that needs massive multitouch gestures, would you go for it on Android or would it currently

[android-developers] help test my game engine

2010-11-06 Thread luma
here is my game engine demo, require android 2.1 or higher download from android market, search cocos2d or wiengine view by cyrket http://www.cyrket.com/p/android/com.wiyun.engine/ I don't have enough device, so glad to hear some result from different rom, different model, different brand, etc.

[android-developers] Re: how many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?

2010-11-06 Thread Yahel
Hi, Sorry but it's not only the nexus or the desire, it's all the htcs and some other. The answer to your question is in the market : Almost no games are multitouch because it is so broken. Mine(Armaboing) which is as simple as it can gets is using a massive amount of logic and took me a

[android-developers] Unlock Screen

2010-11-06 Thread Antonello
Hi, I'm trying to test my App in several resolutions and screens densities, so I managed to create some non standard AVD configurations, like 240x400 resolution with screen density of 120dpi. By doing this the emulator shows only the screen and not the skin with the fake hardware keyboard. The

Re: [android-developers] Unlock Screen

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 8:23 AM, Antonello antonello@gmail.com wrote: 1) Is possible to start the emulator and pass through the lock screen? Not that I am aware of. 2) There is a key combination (in the computers keyboard) that I can use to unlock the screen? (I'm using an Apple machine).

[android-developers] Re: More on dreaded Market install failures

2010-11-06 Thread Bob Kerns
I had this problem, triggered by running out of disk space. Deleting the apps that downloaded but didn't install helped those, but didn't fix the NPE when you try to cancel the stuck downloads. I managed to google up a solution. Go into Settings / Applications / All Applications / Market and

[android-developers] Re: Android source code (complete)

2010-11-06 Thread adithya
I still haven't got any further from here..Can anyone please help me out ?? -Adithya On Nov 4, 9:09 am, adithya 24adit...@gmail.com wrote: No..I searched in the downloaded directories and found 'base\core\java \com\android\internal\os' but couldn't find ServiceManager.java inside the folder !

Re: [android-developers] Re: Android source code (complete)

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 9:04 AM, adithya 24adit...@gmail.com wrote: I still haven't got any further from here..Can anyone please help me out ?? Instructions for downloading all of the source code can be found here: http://source.android.com/source/download.html Or, use Google Code Search:

[android-developers] Shared code for free and paid app

2010-11-06 Thread mattelacchiato
Hi, i have published a free app on the market. Now i want to create a second pro (paid) app. According to http://developer.android.com/guide/publishing/licensing.html#app-publishing i have to publish the new paid app with a different package name. Is there a way to share the same code for both

Re: [android-developers] Shared code for free and paid app

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 12:13 PM, mattelacchiato mattelacchi...@googlemail.com wrote: i have published a free app on the market. Now i want to create a second pro (paid) app. According to http://developer.android.com/guide/publishing/licensing.html#app-publishing i have to publish the new

[android-developers] Switching orientation crashes app with larger image.

2010-11-06 Thread darrinps
I have an application that works fine with smaller images (say 1024x768 or so) but when you rotate the phone into a different orientation (say landscape to portrait) mode with a larger image on the screen, and then call ImageView.setImageUri() it goes into the BitmapFactory.class and never

[android-developers] Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
It takes some time to draw my views so I want to put up a progress dialog while I do it. I set up the code like this: public class MyActivityClass { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Re: [android-developers] Drawing views in an AsyncTask

2010-11-06 Thread Romain Guy
You should NEVER create or draw Views from a background thread. The UI toolkit (and the framework in general) is not thread safe. On Sat, Nov 6, 2010 at 10:21 AM, Bret Foreman bret.fore...@gmail.comwrote: It takes some time to draw my views so I want to put up a progress dialog while I do it.

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
What is the best way to handle the case where drawing takes a few seconds? I need to put up some sort of progress dialog while I work on building the screen. On Nov 6, 11:18 am, Romain Guy romain...@android.com wrote: You should NEVER create or draw Views from a background thread. The UI

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
I should point out, by the way, that Dianne Hackborn recommended my current approach in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/8c3fe5692fb6b0b0/79c04e8bf41843?q=#0079c04e8bf41843 -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Romain Guy
She did not suggest you crated the Views themselves in background thread, but that your computations were done in a background thread. You need to split the creation of the Views and whatever you are doing that's taking a long time to compute. You can also stream the UI by adding Views one after

[android-developers] Re: XMLHttpRequest on Android 2.1 repeats itself after 14 seconds

2010-11-06 Thread ff
On Sep 16, 3:12 pm, Chaitanya Gupta m...@chaitanyagupta.com wrote: Hi, There is a weird behaviour withXMLHttpRequestthat I have noticed in the default browser on Android 2.1: if the server takes a long time to respond to an AJAX request (more than 14 seconds), then the browser sends another

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
I see. Well, I'm not doing much in the way of computations. The time taken is just in building the view hierarchy itself - creating and initializing the Views takes a few seconds. So it looks like I'll have to stream the UI with a Handler as I build it. It's a shame that the framework imposes so

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 2:51 PM, Bret Foreman bret.fore...@gmail.com wrote: The time taken is just in building the view hierarchy itself - creating and initializing the Views takes a few seconds. Use Traceview and find where your performance issue lies. Building the view hierarchy itself is a

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
Streaming the UI creates an added complication - in what way should I notify the user that the UI is finished drawing? Partial data is going to confuse the user unless they know that more is coming. Since this is a limitation imposed by the Android framework, others must have encountered it. Is

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 3:04 PM, Bret Foreman bret.fore...@gmail.com wrote: Streaming the UI creates an added complication - in what way should I notify the user that the UI is finished drawing? Partial data is going to confuse the user unless they know that more is coming. Since this is a

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
I've used Traceview extensively on this code - it used to take 20 seconds and now it's down to 3, all of which is in the View constructors and the code where I set various drawing parameters. It's just a lot of Views and there is no smoking gun where a lot of time is being spent. I thought about

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 3:10 PM, Bret Foreman bret.fore...@gmail.com wrote: I've used Traceview extensively on this code - it used to take 20 seconds and now it's down to 3, all of which is in the View constructors and the code where I set various drawing parameters. Most Views take next to no

[android-developers] Re: how many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?

2010-11-06 Thread Robert Green
Some facts: All HTC phones up until the Incredible and EVO had the old synaptics touch screen which did not support discrete touch points. The new high end phones (including the incredible and EVO) have much better screens. Motorola Droid, Droid 2 and Droid X all support discrete touch points.

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
A few hundred Views in a typical case but it could be up to a couple thousand in some cases. On Nov 6, 12:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Nov 6, 2010 at 3:10 PM, Bret Foreman bret.fore...@gmail.com wrote: I've used Traceview extensively on this code - it used to take

[android-developers] Re: Shared code for free and paid app

2010-11-06 Thread mattelacchiato
Oh, thanks. I've tried this already but i guess, i've misconfigured it. Works like a charme :-) On Nov 6, 5:18 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Nov 6, 2010 at 12:13 PM, mattelacchiato mattelacchi...@googlemail.com wrote: i have published a free app on the market. Now i

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 3:29 PM, Bret Foreman bret.fore...@gmail.com wrote: A few hundred Views in a typical case but it could be up to a couple thousand in some cases. And what makes you think that a couple thousand is sensible, on any platform? -- Mark Murphy (a Commons Guy)

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
My Moto Droid builds the Views in a few seconds and everything else works great - scrolling is fast and pretty, memory utilization is modest. The _only_ problem is how to handle the brief delay while the Views are built. I'm not sure what you mean by sensible. On Nov 6, 12:44 pm, Mark Murphy

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Kumar Bibek
1000's of views I guessThats too much... On Sun, Nov 7, 2010 at 1:27 AM, Bret Foreman bret.fore...@gmail.com wrote: My Moto Droid builds the Views in a few seconds and everything else works great - scrolling is fast and pretty, memory utilization is modest. The _only_ problem is how to

[android-developers] Re: unable to dismiss a progress dialog

2010-11-06 Thread Kumar Bibek
A walkthru over your code could reveal something. On Nov 6, 3:44 am, Bret Foreman bret.fore...@gmail.com wrote: I've got a progress dialog that I'm unable to dismiss and I can't figure out why. The first time through the code, it shows the dialog and dismisses it perfectly. The second time

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
In what way is it too much? I'm not using much memory and the delay is only a few seconds. It will all be fine if I can figure out how to present the user a progress dialog or other indication that work is in progress. On Nov 6, 12:58 pm, Kumar Bibek coomar@gmail.com wrote: 1000's of views I

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Romain Guy
You can display a progress bar or even a progress dialog and still stream the UI. Have you thought about using a ListView instead btw? On Sat, Nov 6, 2010 at 1:05 PM, Bret Foreman bret.fore...@gmail.com wrote: In what way is it too much? I'm not using much memory and the delay is only a few

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Kumar Bibek
Well, if you were to show 1000s views on the screen, you would obviously need more memory. Try creating a list view (a dumb one which returns a new view every-time) and see if the amount of memory is substantial. Delay is fine, but I cannot think of a situation where someone might have to bring

Re: [android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Mark Murphy
On Sat, Nov 6, 2010 at 4:08 PM, Romain Guy romain...@android.com wrote: Have you thought about using a ListView instead btw? Agreed. Or any other AdapterView. Or writing your own AdapterView. Anything to reduce your heap and stack consumption. -- Mark Murphy (a Commons Guy)

[android-developers] Re: Switching orientation crashes app with larger image.

2010-11-06 Thread Kumar Bibek
No exception thrown? Are you sure your logcat doesn't say anything? I suspect, you might be getting OutOfMemoryException. Have you considered scaling your image? Or, do you have to preserve this resolution? If you can scale your images, perhaps, you can avoid it. On Nov 6, 9:32 pm, darrinps

[android-developers] USB Connection Check

2010-11-06 Thread Boardy
Hi all, I am currently looking into developing an application for the android platform. I was wondering if there was a way in order to perform an action when the phone is connected via usb. I want it to perform an action depending on the connection state, i.e. do action A if not connected to PC,

[android-developers] Lazy load images into listview

2010-11-06 Thread Open
I have an activity in my application that shows a listview of items with icons next two each item. I would like to lazy load icons for each item from the Internet using in memory caching and SD caching (very common Android use case). I have been using this code from the Google Android developers

[android-developers] Re: guitar tuner

2010-11-06 Thread Klunk
I realize you may be doing this because you want to but are you aware there is an app that does guitar tuning already on the market? On Oct 18, 2:30 am, Dave djfoste...@gmail.com wrote: I am looking for some help.  I'm new to android, and java developement.  I've got a pretty good handle on the

[android-developers] Change Eclipse Layout Orientation

2010-11-06 Thread Greg Mort
Hello I want to know how to change the orientation of my layout inside of eclipse in my manifest I have android:screenOrientation=landscape in my layout xml I have android:orientation=horizontal but when I click the layout button it still shows it as a vertical layout Thank You -- You

Re: [android-developers] Change Eclipse Layout Orientation

2010-11-06 Thread Kumar Bibek
On the layout editor, you will find an option to change the orientation, a drop down at the top On Sun, Nov 7, 2010 at 4:08 AM, Greg Mort gregm...@mortyg.com wrote: Hello I want to know how to change the orientation of my layout inside of eclipse in my manifest I have

Re: [android-developers] Change Eclipse Layout Orientation

2010-11-06 Thread Greg Mort
Well I thought this... however I have Devices (which has a custom which opesn up Device Configuration) Config (which is empty) Locale (which has ANY) and then a theme selector but thats it... On Sat, Nov 6, 2010 at 6:43 PM, Kumar Bibek coomar@gmail.com wrote: On the layout editor, you

[android-developers] More complex Scrollview example needed.

2010-11-06 Thread Rutton
Hello there, I am working on some sort of record lookup for a database. My code allows to search for some kind of string within an index (of that database) and returns the database-position of the found thing . With this found position my programm is then able to move to adjacent records

Re: [android-developers] More complex Scrollview example needed.

2010-11-06 Thread Kumar Bibek
I am sure that there can be better approaches to the problem. And, I think ListView indeed will be able to handle this situation. May be you can explain your requirement more clearly, and how are you trying to implement it. On Sun, Nov 7, 2010 at 4:38 AM, Rutton rut...@web.de wrote:

[android-developers] Re: More complex Scrollview example needed.

2010-11-06 Thread Rutton
Sure, I can do this. I am working on implementing a dictionary. The dictionary-database is a file that has an index, where each entry points to a concrete database record. What I do now is to search the index for a word, then get the result that points a database record with the dictionary-data.

[android-developers] Custom Protocol Handler

2010-11-06 Thread paulb
G'day guys, I am hoping to create my own protocol handler for urls in a webview. I have tried two approaches already. The first was to attempt something similar to the approach defined here to create a customer protocol handler. http://java.sun.com/developer/onlineTraining/protocolhandlers/

[android-developers] How to restart activity once configuration changed

2010-11-06 Thread Jiang
1, By default, if android system configuration is changed, only top activity is restarted (onDestroy is invoked, then onCreate is invoked) immediately, and other activities in history stack will defer to be restarted once they are resumed. 2, I need to do extra works once configuration

[android-developers] Internal storage on emulator

2010-11-06 Thread Mike
I have an app that pulls album art from the media store. It works fine on my N1 and other devices with external SD cards. However, I need to get it working on devices with internal storage and I don't have such a device to test on. How can I set up the emulator to reproduce such a device? I did a

Re: [android-developers] How to restart activity once configuration changed

2010-11-06 Thread Dianne Hackborn
I would strongly suggest not handling configuration changes yourself. The default behavior for them is to restart your activity. Let that happen. Turning that off, then trying to replicate the behavior, is just not going to work. If you have code separate from the activity that needs to do

Re: [android-developers] How to use bringchildtofront in List

2010-11-06 Thread Dianne Hackborn
If you are saying you are doing this on one of the children views of the list view -- do NOT do this. The ListView class *very* carefully manages its children itself. Trying to do things to them will break it. On Sat, Nov 6, 2010 at 1:30 AM, Dev Android devandroid1...@gmail.comwrote: i've

[android-developers] Controlling the movement of the android device using android emulator

2010-11-06 Thread hari
Hi I am working on an application where i will track the movement of the android device inside a building... suppose i display a map of the building in the android emulator... Now,i need to simulate the movement of the android device is there a way in which i can control the movement of

Re: [android-developers] Internal storage on emulator

2010-11-06 Thread paulb
G'day mate, I think you are looking for the emulator option -partition-size maybe. You can simply use your existing virtual device and invoke it like so: ~/android-sdk-linux_86/tools/emulator -avd MyEmulator -partition-size 1024 That creates a 1GB partition. On Sun, Nov 7, 2010 at 12:45

[android-developers] Re: Drawing views in an AsyncTask

2010-11-06 Thread Bret Foreman
Since the views are all different sizes, the various ListViews, GridViews, and Adapters don't work. Part of the secret sauce of my app is the algorithm for arranging the views in the most compact way to present the maximum amount of information in the screen space available. The main benefit of

[android-developers] Re: Tomcat on Android

2010-11-06 Thread gjs
Hi, Saw this as well - http://www.androidzoom.com/android_applications/communication/kws-android-web-server_hlfb.html Implementing a simple / custom webserver / appserver is pretty straight forward, don't understand why you'd need Tomcat (java servlet) capabilities ? Regards On Nov 6, 3:17 

Re: [android-developers] Re: More complex Scrollview example needed.

2010-11-06 Thread Kumar Bibek
Umm, have you tried adding elements to the top/bottom of the list when the user starts scrolling up or down? That should work. And initially, query and fetch, say, 10 results from your DB based on the search string. And keep adding elements to the top or bottom of the list accordingly. On Sun,

[android-developers] Re: Internal storage on emulator

2010-11-06 Thread Mike
Right, that increases the size but it doesn't tell me where and how I should set up the file system so that I can place music on it. I need it to work just like a Samsung Vibrant for instance which has 8GB of internal storage that's available for media storage. I need to place a bunch of music

[android-developers] Re: Shared User ID and Signing

2010-11-06 Thread John Gaby
And I told you that they are both signed with the same cert. I deleted BOTH apps from the emulator (in fact I deleted ALL the apps) and still I cannot install either. I can take the EXACT same .apk files and install them on the new clean emulator and they both install properly and can read each

[android-developers] Get View's siblings

2010-11-06 Thread Julius Spencer
Hi, I have a layout that includes an ImageView and a CheckBox and I am implementing onClick for the ImageView. I would like to alter the state of the CheckBox when the ImageView is 'clicked'. The state I am storing fine, but I would like the CheckBox to change. Is there a way I can get access

Re: [android-developers] Get View's siblings

2010-11-06 Thread Kumar Bibek
You can first get the parent of the ImageView and then get whichever child you want. But, I am not sure if you can get it directly. On Sun, Nov 7, 2010 at 11:15 AM, Julius Spencer jul...@msa.co.nz wrote: Hi, I have a layout that includes an ImageView and a CheckBox and I am implementing

Re: [android-developers] Get View's siblings

2010-11-06 Thread Sarava Kumar
1. store those each two elements inside single parent such as LinearLayout 2. you can get that ImageView's parent node by calling is getParent like method 3. then get those parent's(LinearLayout) second child by getChild(1).. I hope this help you... On Sun, Nov 7, 2010 at 11:18 AM, Kumar Bibek