[android-developers] Re: In Call App Screen
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 Dhaliwal kavind...@gmail.comwrote: anyone? On Nov 4, 2:02 pm, Kavinder Dhaliwal kavind...@gmail.com wrote: Hi, I have done some research and it seems that on any android device the in call screen will be unchangeable...I am coming from developing in iphone, which basically has the same restriction. I was hoping android would be open to the ability to create a custom dialer that could handle the in call UI on its own Is this possible? 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Shared User ID and Signing
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 the app first. Any idea why that is? I already told you - both apps installed have to be signed with the same certificate. But this means *from device's perspective*, not yours, so it does NOT matter what you got on your PC hdd. It matters what's installed on device. If you i.e. got installed A.apk and then install B.apk and A is not signed while B is signed, how can you tell both are signed? You got clear error message and you even did some tests yourself that confirms and it still does not ring a bell? :) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to use bringchildtofront in List
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 30, 2010 at 11:55 AM, Dev Android devandroid1...@gmail.comwrote: Please suggest me how to use bringchildtofront in the listview of an activity. Please explain what you're trying to do. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?
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 be a waste of time with only a few devices supporting it? Peter -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] help test my game engine
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. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?
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 massivea amount of time to be almost decent in two players mode. If massive multitouch gestures is needed. Don't waste your time. Or be prepared to have only a very small share of the market and dreadful comments. I just realised : you said gesture. This might be different, my game uses only taps which are reported wrong almost everytime. In any case, you should prototype your gesture with a very simple app before and tests them on a nexus, a desire or a hero to see what happens for you. Yahel On Nov 6, 10:43 am, noriato fabri...@gmail.com wrote: 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 be a waste of time with only a few devices supporting it? Peter -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unlock Screen
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 problem is that the emulator starts with the screen locked and I'm unable to unlock it doing to the lack of the Menu key. Questions: 1) Is possible to start the emulator and pass through the lock screen? 2) There is a key combination (in the computers keyboard) that I can use to unlock the screen? (I'm using an Apple machine). 3) There is a way to configure non standard resolutions and still has the emulator skin shown? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Unlock Screen
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). I just use the mouse. That being said, F2 or PageUp should be the MENU button: http://developer.android.com/guide/developing/tools/emulator.html#controlling -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: More on dreaded Market install failures
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 clear the Market application's data. Not the Market Downloader, the actual Market application. You won't be losing anything important -- it still knows what's downloaded and what's not. I think that's probably all owned by the package manager. But it forgets about the downloads in progress and lets the market function again. On Nov 5, 1:22 pm, Eric F ericfrie...@gmail.com wrote: I've found that when this happens, going into the application in Market and just hitting install actually successfully updates the app even though the button said install and the app was already installed. Market has been really problematic of late. Recently also it has become stuck in the download state for an application and trying to cancel it causes Market to FC on a NPE. I reported the bug on b.android.com yet it has not even been looked at. -Eric On Nov 5, 12:35 pm, Kostya Vasilyev kmans...@gmail.com wrote: Some more information on this old topic: Sometimes Market fails up install application updates. The download is successful, but the actual installation fails. There is probably something in the logcat, but it doesn't help users. I just had this happen to me on my development phone (I use one to develop, and update another phone from a different account to verify the update). After this failure, Market lists the application as not installed, although the existing version (if there was one) actually stays installed. I was able to resolve the issue by uninstalling the application via Settings - Applications, then re-installing through Market. Hope this is useful. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android source code (complete)
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 ! What about classes in other packages like java.nio.channels,etc ?Where can i find thesourcefor these classes? -Adithya On Nov 3, 8:25 pm, letlite letl...@gmail.com wrote: ServiceManager.java is in frameworks/base/core/java/android/os. If in Unix, use the find command: find frameworks/base/core -name 'ServiceManager.java' On Nov 1, 10:25 pm, adithya 24adit...@gmail.com wrote: Hi all, I have downloaded some amount ofandroidsourcecode(for Bluetooth API's, wifi API's,etc)..I was just browsing through Bluetoothsource codein eclipse and bumped on this ServiceManager class whosesource codei couldn't read !! When i browsed through theandroid.jar i couldn't see thesourcecodefor few packages like java.nio ,etc.. I have downloaded git for windows and whateversourcecodei have is through the following command : git clone git://source.android.com/platform/frameworks/base and put all the java files into a 'sources' folder which worked.. How can i get thesourcecodefor aforementioned classes ?? Thanks, Adithya. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android source code (complete)
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: http://www.google.com/codesearch Search on: package:android ServiceManager For future assistance with the Android open source project, visit: http://source.android.com/community/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Shared code for free and paid app
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 apps, including resources (styles, strings, etc)? Greetings, Matthias -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Shared code for free and paid app
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 paid app with a different package name. Is there a way to share the same code for both apps, including resources (styles, strings, etc)? Use an Android library project: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject http://developer.android.com/guide/developing/other-ide.html#libraryProject -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Switching orientation crashes app with larger image.
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 returns! So the app eventually times out. Never throws an exception, just never returns. My code looks like this ImageView image1 = (ImageView) findViewById(R.id.ImageView_HeaderPlay1); ImageView image2 = (ImageView) findViewById(R.id.ImageView_HeaderPlay2); image1.setAdjustViewBounds(true); image2.setAdjustViewBounds(true); //Get the max size of the device Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); int max = width height ? height : width; max = max / 10; image1.setMaxHeight(max); image1.setMaxWidth(max); image1.setImageURI(selectedImageUri); image2.setMaxHeight(max); image2.setMaxWidth(max); try { image2.setImageURI(selectedImageUri); -DIES with this call TextView textView = (TextView) findViewById(R.id.lblEnterText); textView.setText(getResources().getString(R.string.image_instructions)); } catch(Exception e) { Log.i(ERROR, Exception caught trying to set text: + e); } } Has anyone else seen this? Sounds like a bug in the Android code more than something I am doing since it works fine for smaller images. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Drawing views in an AsyncTask
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); setContentView( R.layout.myView ); doBuild(savedInstanceState); } protected void doBuild( Bundle savedInstanceState ){ showDialog(drawingProgressDialogId); ScreenBuilder builder = new ScreenBuilder(); builder.execute(savedInstanceState); } private class ScreenBuilder extends AsyncTaskBundle , Integer , LinearLayout { @Override protected LinearLayout doInBackground(Bundle... SIS) { LinearLayout topLevelLayout = new LinearLayout(MyActivityClass.this); doDraw( SIS[0] , topLevelLayout ); // Adds a bunch of child views return topLevelLayout; } @Override protected void onPostExecute(LinearLayout topLevelLayout) { dismissDialog(drawingProgressDialogId); setContentView(topLevelLayout); super.onPostExecute(topLevelLayout); } } } This works the first time through, where savedInstanceState is null. But when there is a configuration change, like rotation and savedInstanceState is not null, the dismissDialog call does not work. The progress dialog remains on the screen. This is true even if doDraw is stubbed so that I'm not doing anything with the savedInstanceState. Any ideas why this behavior might occur? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing views in an AsyncTask
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. I set up the code like this: public class MyActivityClass { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView( R.layout.myView ); doBuild(savedInstanceState); } protected void doBuild( Bundle savedInstanceState ){ showDialog(drawingProgressDialogId); ScreenBuilder builder = new ScreenBuilder(); builder.execute(savedInstanceState); } private class ScreenBuilder extends AsyncTaskBundle , Integer , LinearLayout { @Override protected LinearLayout doInBackground(Bundle... SIS) { LinearLayout topLevelLayout = new LinearLayout(MyActivityClass.this); doDraw( SIS[0] , topLevelLayout ); // Adds a bunch of child views return topLevelLayout; } @Override protected void onPostExecute(LinearLayout topLevelLayout) { dismissDialog(drawingProgressDialogId); setContentView(topLevelLayout); super.onPostExecute(topLevelLayout); } } } This works the first time through, where savedInstanceState is null. But when there is a configuration change, like rotation and savedInstanceState is not null, the dismissDialog call does not work. The progress dialog remains on the screen. This is true even if doDraw is stubbed so that I'm not doing anything with the savedInstanceState. Any ideas why this behavior might occur? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 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. I set up the code like this: public class MyActivityClass { �...@override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView( R.layout.myView ); doBuild(savedInstanceState); } protected void doBuild( Bundle savedInstanceState ){ showDialog(drawingProgressDialogId); ScreenBuilder builder = new ScreenBuilder(); builder.execute(savedInstanceState); } private class ScreenBuilder extends AsyncTaskBundle , Integer , LinearLayout { �...@override protected LinearLayout doInBackground(Bundle... SIS) { LinearLayout topLevelLayout = new LinearLayout(MyActivityClass.this); doDraw( SIS[0] , topLevelLayout ); // Adds a bunch of child views return topLevelLayout; } �...@override protected void onPostExecute(LinearLayout topLevelLayout) { dismissDialog(drawingProgressDialogId); setContentView(topLevelLayout); super.onPostExecute(topLevelLayout); } } } This works the first time through, where savedInstanceState is null. But when there is a configuration change, like rotation and savedInstanceState is not null, the dismissDialog call does not work. The progress dialog remains on the screen. This is true even if doDraw is stubbed so that I'm not doing anything with the savedInstanceState. Any ideas why this behavior might occur? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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 the other using Handler./View.post(Runnable). On Sat, Nov 6, 2010 at 11:24 AM, Bret Foreman bret.fore...@gmail.comwrote: 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 toolkit (and the framework in general) is not thread safe. On Sat, Nov 6, 2010 at 10:21 AM, Bret Foreman bret.fore...@gmail.com wrote: 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); setContentView( R.layout.myView ); doBuild(savedInstanceState); } protected void doBuild( Bundle savedInstanceState ){ showDialog(drawingProgressDialogId); ScreenBuilder builder = new ScreenBuilder(); builder.execute(savedInstanceState); } private class ScreenBuilder extends AsyncTaskBundle , Integer , LinearLayout { @Override protected LinearLayout doInBackground(Bundle... SIS) { LinearLayout topLevelLayout = new LinearLayout(MyActivityClass.this); doDraw( SIS[0] , topLevelLayout ); // Adds a bunch of child views return topLevelLayout; } @Override protected void onPostExecute(LinearLayout topLevelLayout) { dismissDialog(drawingProgressDialogId); setContentView(topLevelLayout); super.onPostExecute(topLevelLayout); } } } This works the first time through, where savedInstanceState is null. But when there is a configuration change, like rotation and savedInstanceState is not null, the dismissDialog call does not work. The progress dialog remains on the screen. This is true even if doDraw is stubbed so that I'm not doing anything with the savedInstanceState. Any ideas why this behavior might occur? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: XMLHttpRequest on Android 2.1 repeats itself after 14 seconds
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 request to the server (which looks identical to the original one). I only know that two requests have been sent when I observe incoming requests on the server. Meanwhile, the output of adb logcat gives me this line: 09-13 20:59:43.912 W/browser (22847): Console: Error: NETWORK_ERR:XMLHttpRequestException 101 I'm seeing the same behavior in both galaxy tab (froyo) and on an upgraded htc hero (eclair). The only difference is that non froyo the error happens after 12s and on eclair after about a minute. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 much added complexity for such a simple thing. On Nov 6, 11:38 am, Romain Guy romain...@android.com wrote: 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 the other using Handler./View.post(Runnable). On Sat, Nov 6, 2010 at 11:24 AM, Bret Foreman bret.fore...@gmail.comwrote: -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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 very broad statement. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 there a standard way to notify the user that the UI is incomplete? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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 limitation imposed by the Android framework, others must have encountered it. Is there a standard way to notify the user that the UI is incomplete? Use Traceview and find where your performance issue lies. Then fix that problem. That way, you won't have to worry about all this other stuff, and you'll have happier users as an extra bonus. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 creating a pool of pre-built Views but there's no guarantee that it will be any faster than the current approach and such a pool is very complex to implement in the Android framework. On Nov 6, 12:01 pm, Mark Murphy mmur...@commonsware.com wrote: 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 very broad statement. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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 time to set up. How many Views are in this GUI? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?
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. Samsung Galaxy S phones (Vibrant, fascinate, etc) all support discrete touch points. Android 2.2 supplies a feature flag for discrete touch points so you will be able to tell programmatically if you can use a discrete-touch control scheme. A smart game programmer would develop 3 control systems: Single Touch, Discrete MultiTouch and Non-Discrete Multitouch. Ensure the game is playable with all 3 systems, then use given the following logic: If (AndroidVersion 2.0), use Single Touch If (AndroidVersion = 2.2 SupportsFeature(DiscreteMultiTouch)), use Discrete MultiTouch Else use non-discrete multitouch Educating the users as to what their phone does and does not support is not an easy task. I've been through the ringer on this issue and I'm in the camp now where the more simple control system you can devise for your game, the better. The more complex your controls, the taller the hill you will be climbing up trying to make it work nicely for everyone and manage people's expectations about their device. On Nov 6, 7:22 am, Yahel kaye...@gmail.com wrote: 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 massivea amount of time to be almost decent in two players mode. If massive multitouch gestures is needed. Don't waste your time. Or be prepared to have only a very small share of the market and dreadful comments. I just realised : you said gesture. This might be different, my game uses only taps which are reported wrong almost everytime. In any case, you should prototype your gesture with a very simple app before and tests them on a nexus, a desire or a hero to see what happens for you. Yahel On Nov 6, 10:43 am, noriato fabri...@gmail.com wrote: 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 be a waste of time with only a few devices supporting it? Peter -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 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 time to set up. How many Views are in this GUI? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Shared code for free and paid app
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 want to create a second pro (paid) app. According to http://developer.android.com/guide/publishing/licensing.html#app-publ... i have to publish the new paid app with a different package name. Is there a way to share the same code for both apps, including resources (styles, strings, etc)? Use an Android library project: http://developer.android.com/guide/developing/eclipse-adt.html#librar...http://developer.android.com/guide/developing/other-ide.html#libraryP... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 mmur...@commonsware.com wrote: 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)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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 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 mmur...@commonsware.com wrote: 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)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: unable to dismiss a progress dialog
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 through it fails to dismiss. There is no error in the logcat and no exceptions are thrown, but the dialog remains on the screen. If I run the code a third time, while the dialog is on the screen, a window leak exception is shown in the logcat when the code attempts to show the dialog, which is pretty much what you'd expect. The showDialog is called right before I call the execute method of an AsyncTask and the dismissDialog is called in the onPostExecute method of that AsyncTask. Any ideas? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 guessThats too much... -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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 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 guessThats too much... -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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 up 1000s of views on a screen. On Sun, Nov 7, 2010 at 1:35 AM, 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 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 guessThats too much... -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Drawing views in an AsyncTask
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) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Switching orientation crashes app with larger image.
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 darri...@gmail.com wrote: 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 returns! So the app eventually times out. Never throws an exception, just never returns. My code looks like this ImageView image1 = (ImageView) findViewById(R.id.ImageView_HeaderPlay1); ImageView image2 = (ImageView) findViewById(R.id.ImageView_HeaderPlay2); image1.setAdjustViewBounds(true); image2.setAdjustViewBounds(true); //Get the max size of the device Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); int max = width height ? height : width; max = max / 10; image1.setMaxHeight(max); image1.setMaxWidth(max); image1.setImageURI(selectedImageUri); image2.setMaxHeight(max); image2.setMaxWidth(max); try { image2.setImageURI(selectedImageUri); -DIES with this call TextView textView = (TextView) findViewById(R.id.lblEnterText); textView.setText(getResources().getString(R.string.image_instructions)); } catch(Exception e) { Log.i(ERROR, Exception caught trying to set text: + e); } } Has anyone else seen this? Sounds like a bug in the Android code more than something I am doing since it works fine for smaller images. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] USB Connection Check
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, do action B if connected to USB in charge mode, do action C if connected via USB Disk etc. Is this possible. Thank for your help -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Lazy load images into listview
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 blog: http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html And discovered that it is possible for this code to generate 100 asynctasks, Does anyone have a modified version of this they would be willing to share using a threadpool or some other mechanism to limit the number of background threads? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: guitar tuner
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 basics, but I'm having an issue figuring out some more advanced operations. I'm working a guitar tuner, which is a stepping stone to a chromatic piano tuner. There is no public API for frequency analysis, so I'm thinking I need to write into code a Fast Fourier Transform, and I'll assume I need to import a different package for this. Once I display the frequency of any given note, I need it to reference it's offset to a pre-measured Mhz. There is alot to write, I'm aware, but my first step is to try to figure out HOW to get the frequency, and display it in the UI. any help would be wonderful. Thanks. Dave -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Change Eclipse Layout Orientation
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 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Change Eclipse Layout Orientation
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 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 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Change Eclipse Layout Orientation
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 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 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 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] More complex Scrollview example needed.
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 from the database moving forward and backwards from the initial position in small steps. ListView seems to not work in this case, as ListView starts per default at ListAdapter position 0 and not at an arbitrary position in the (here virtual) list. The api-docs doesnt seem to specify some sort of start somewhere else and follow during scrolling. At least I haven't found that. So what I thought of is to use a ScrollView. Unfortunately I don't have a real understanding of how that could be realized with a huge number of records (and not just a handfull like in the examples). So, my questions are: - Is it possible to start a ListView at some defined position (without reimplementing {Abs}ListView) - Or can someone provide an example on how to implement a more complex ScrollView? Cheers, Rutton -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] More complex Scrollview example needed.
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: 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 from the database moving forward and backwards from the initial position in small steps. ListView seems to not work in this case, as ListView starts per default at ListAdapter position 0 and not at an arbitrary position in the (here virtual) list. The api-docs doesnt seem to specify some sort of start somewhere else and follow during scrolling. At least I haven't found that. So what I thought of is to use a ScrollView. Unfortunately I don't have a real understanding of how that could be realized with a huge number of records (and not just a handfull like in the examples). So, my questions are: - Is it possible to start a ListView at some defined position (without reimplementing {Abs}ListView) - Or can someone provide an example on how to implement a more complex ScrollView? Cheers, Rutton -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: More complex Scrollview example needed.
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. Well, this record information can simply be displayed. But I want something different (and therefore I ask here). I would like to display the Index (with the words from a to z) in a scrollable fashion starting with the before found index. Consider: Search for Monkey. Result - indexPosition = 12345 Move forwards to indexPosition 12344 or Move backwards to indexPosition 12346. This moving forwards/backwards from an initial position works in a unit test. There, I start with the last index-entry and move backwards to the beginning. Why it not works with a ListView/ListAdapter is, that this moving forwards/backwards is implemented recursively. So, what not works is the default ListView behaviour: Consider: Search for Monkey. Result - indexPosition = 12345 Start accessing the dataset at index position 0 That results in a StackOverflow, because of the recursive implementation. I ask myself, what to do now. I can do a simple solution and just displaying what is in the found record and display that. Or to ask, for a working solution that can be scrolled on display through the index. Cheers, Rutton. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom Protocol Handler
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/ This works in a command-line Java program if I correctly set the system property java.protocol.handler.pkgs, but it does not work in Android, probably because I cannot figure out where to define this system property. Defining the system property in the code does not work. I assume this is because it needs to be loaded when the application first starts. I have also attempted to use URL.setURLStreamHandlerFactory. This works for creating URL objects within the code, but it does not seem to be associated with the WebView. Any ideas on how to get this working? Cheers paulb -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to restart activity once configuration changed
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 changed, so I capture configuration changes event. and in onConfiguratonChanged, I restart activity as following: finish(); Intent intent = new Intent(this, getClass()); startActivity(intent); The issues occur: a), All activities in history stack will receive such event, so all activities will be restart immediately, and activities stack is reordered reversedly. b), When restarted activity, onCreate is invoked before onDestroy() my question is: If I myself handle configuration changes event, how to restart activity as Android does by default. Thanks very much! - Jiang -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Internal storage on emulator
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 search on the forums and found info on increasing the size of the internal storage but I'm not sure how the file system should be set up. Is this even possible? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to restart activity once configuration changed
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 something when the configuration changes, it can explicitly register for the configuration change broadcast. On Sat, Nov 6, 2010 at 6:38 PM, Jiang webs...@yahoo.cn wrote: 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 changed, so I capture configuration changes event. and in onConfiguratonChanged, I restart activity as following: finish(); Intent intent = new Intent(this, getClass()); startActivity(intent); The issues occur: a), All activities in history stack will receive such event, so all activities will be restart immediately, and activities stack is reordered reversedly. b), When restarted activity, onCreate is invoked before onDestroy() my question is: If I myself handle configuration changes event, how to restart activity as Android does by default. Thanks very much! - Jiang -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to use bringchildtofront in List
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 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 30, 2010 at 11:55 AM, Dev Android devandroid1...@gmail.comwrote: Please suggest me how to use bringchildtofront in the listview of an activity. Please explain what you're trying to do. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Controlling the movement of the android device using android emulator
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 the android device and see the real time movement of the device in the map ... like a dot moving in the map Is this possible to do using the android emulator??? when i googled this requirement, i came across SensorSimulator...But,this software shows the acceleration,magnetic field and temperature values... It doesnt display the co-ordinate values please let me know if my requirement can be met with android emulator 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Internal storage on emulator
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 PM, Mike mcmulle...@gmail.com wrote: 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 search on the forums and found info on increasing the size of the internal storage but I'm not sure how the file system should be set up. Is this even possible? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing views in an AsyncTask
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 the Android framework for me is that it handles (horizontal and vertical) scrolling very nicely even when some of the views need to be pinned (non-scrolling) and even for 1000 views of different sizes and shapes. But for that to happen, all the views need to be there in the hierarchy, not just those on the immediately visible screen. But more to the point, the whole thing is working beautifully without consuming undue heap or stack space. The _only_ issue is that it takes about 3 seconds to build the view hierarchy in the most extreme cases and I need to let the user know work is being done. So back to the issue at hand. It sounds like Romain is suggesting that I call showDialog and then have the handler post some work to the queue. What if I just put all 3 seconds of work in that one post? I can live with the progress dialog frozen for a few seconds as long as it gets on the screen before the posted work arrives. Can I be sure the dialog will get on the screen before the post hits? If not, what do you think is the best way to slice up the 3 seconds of work, maybe using postDelayed and do some work every 50 mS or so? What if I'm running on a slow (or otherwise busy) platform and the 50 mS slices get completely consumed by the drawing work such that the UI thread can't get the dialog up? On Nov 6, 1:11 pm, Mark Murphy mmur...@commonsware.com wrote: 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)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Tomcat on Android
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 pm, Hal dsheppar...@gmail.com wrote: I'm afraid I agree with the previous postings. This looks difficult under Android Java, you may be better off by creating you own component server. I would recommend a server based on MDP messaging and sockets: MDP and a distributed Component/Service Modelhttps://jt.dev.java.net/files/documents/5553/149793/MDPdistributedMod... This runs on Android. It is also lighter and more efficient. Marc Fleury wrote: I have seen other threads on the topic, most notably one asking about tomcat/jboss on android. Anyway, I am actually interested in hearing if people have successfully ported tomcat on android? the use case for me would be www.openremote.org. We distribute a controller that is written in java6. I have actually started porting parts of it to Android and in doing so got to thinking we could port the whole thing to android. As a dedicated controller in the wall (forget screens and such, this is not an smart phone) it would be quite killer. Has anyone succeeded? maybe I haven't searched hard enough? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: More complex Scrollview example needed.
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, Nov 7, 2010 at 5:06 AM, Rutton rut...@web.de wrote: 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. Well, this record information can simply be displayed. But I want something different (and therefore I ask here). I would like to display the Index (with the words from a to z) in a scrollable fashion starting with the before found index. Consider: Search for Monkey. Result - indexPosition = 12345 Move forwards to indexPosition 12344 or Move backwards to indexPosition 12346. This moving forwards/backwards from an initial position works in a unit test. There, I start with the last index-entry and move backwards to the beginning. Why it not works with a ListView/ListAdapter is, that this moving forwards/backwards is implemented recursively. So, what not works is the default ListView behaviour: Consider: Search for Monkey. Result - indexPosition = 12345 Start accessing the dataset at index position 0 That results in a StackOverflow, because of the recursive implementation. I ask myself, what to do now. I can do a simple solution and just displaying what is in the found record and display that. Or to ask, for a working solution that can be scrolled on display through the index. Cheers, Rutton. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Internal storage on emulator
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 files on there such that the media database scanner picks them up. -mike On Nov 6, 9:02 pm, paulb pbizan...@gmail.com wrote: 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 PM, Mike mcmulle...@gmail.com wrote: 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 search on the forums and found info on increasing the size of the internal storage but I'm not sure how the file system should be set up. Is this even possible? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Shared User ID and Signing
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 other's data. Note that on the first emulator, I originally had both apps installed without being signed, and perhaps that is the root of the problem (even though I deleted them later). However, I tried the same sequence on the new emulator (i.e. installed them unsigned, deleted them and installed them signed), and they still work fine. I cannot explain why the first one seems to be bugged, but perhaps it does not matter. I have not tried putting them on a real device yet, and hopefully I will not have any problems with that. Thanks for your help. On Nov 6, 1:28 am, Marcin Orlowski webnet.andr...@gmail.com wrote: 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 the app first. Any idea why that is? I already told you - both apps installed have to be signed with the same certificate. But this means *from device's perspective*, not yours, so it does NOT matter what you got on your PC hdd. It matters what's installed on device. If you i.e. got installed A.apk and then install B.apk and A is not signed while B is signed, how can you tell both are signed? You got clear error message and you even did some tests yourself that confirms and it still does not ring a bell? :) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Get View's siblings
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 to the ImageView's siblings (in this case there would be one; the CheckBox)? Regards, Julius. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get View's siblings
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 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 to the ImageView's siblings (in this case there would be one; the CheckBox)? Regards, Julius. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get View's siblings
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 coomar@gmail.com wrote: 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 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 to the ImageView's siblings (in this case there would be one; the CheckBox)? Regards, Julius. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en