Checking if android phone is simulator or real device
Dear all Like in Blackberry, do we have any API method (similar to DeviceInfo.isSimulator()) to check if device is simulator or real device? Thanks & Best Regards Sudhakar Chavali ...
Dear all Like in Blackberry, do we have any API method (similar to DeviceInfo.isSimulator()) to check if device is simulator or real device? Thanks & Best Regards Sudhakar Chavali ...
Hi, My activity has a set of buttons on the left half of the screen and a ListView on the right. Initially the focus is on the first button. When I browse the buttons by pressing DOWN arrow key and then press the RIGHT arrow key, the focus does not go to the topmost list item. Instead, the list item correspondingly on the right gets fo...
I just started android and went through most basics such as xml and some methods. My goal is to create a program that take N amount of inputs to do some statistics. User will be prompt to enter how many inputs he want, after that, the program will create corresponding number of EditText objects. Then the user will be able to put values i...
Hello, I'm trying to load/reference images from the app's assets folder from within a HTML page in a WebView. Unlike in most of the examples the HTML page itself is not located in the assets folder but is loaded from a server via http. The background of this question are some performance improvements which should reduce the loading time...
Hello. I have a database with 3 tables in it. They are "Projects", "Contacts" and "Project Types". I have a UI for creating (adding a record) a new project which adds a record to the "Projects" table. In that UI, I have a button to fetch Contact Names from the "Contacts" table which in turn displays a ListView of all Contacts. When the ...
I'm using android-opencv (android-opencv -- http://code.google.com/p/android-opencv/ -- ) , it was built successfully and worked like charm. Then I tried to use "cvCanny" to detect faces but the linker reported an error "undefined reference". I tried lot's of things to fix this, but couldn't solve it. /home1/apps/c/opencv-android/op...
I have some map pin in map view. i want to generate a callout on touch event over the map pin and want to show some info. in callout.. How to do it.. please give proper code.. thnx.. ...
Hi, Can somebody post some suitable png files that would look good as background to ListView items? Or maybe some link for it? -Kiki ...
I'm trying to create a "what's new" pop-up dialog when users update (or, I guess, install) my app. I have the following bit of logic to check that the last installed version was then compare it to the current version, then save the current version as the "last" version (this is called at the end of the onCreate() of my "first" Activity):...
hi i'm using a media player. i have the option for starting the player,stopping and pause. the problem i have is that i cannot find the option to resume the song from the point that it previously was paused.. please help.. ...
Is it a bad idea to use printStackTrace() in Android Exceptions like this? } catch (Exception e) { e.printStackTrace(); } ...
Hello, I'm trying to get the real size of an image displayed in an image view. Actually my image is larger than the screen and the imageview is resizing the image to diplay it. I'm looking for this new size. I've tried to override the onDraw method of the ImageView in a custom view but I'm not getting the correct height and width... p...
Hi. I'm new to android and I was wandering is there a way to show a stream or a pic to the screen directly even without the manifest? Or how do I load resources files without using the manifest on the Android platform? ...
Hi all, I try to do something like that on my MultiAutoCompleteTextView I try to use an ImageSpan but when I did it, my text disappear :/ Actually I use that : setSpan(new BackgroundColorSpan(getBaseContext().getResources().getColor(R.color.yellow)), 0, textStr.length(), 0)); , but is not "beautiful" , I wish use a drawable inste...
I'm using Matrix to scale and rotate Bitmaps. Now I'm wondering what the difference between preconcat & postconcat is, or more precisely the difference between: postRotate preRotate setRotate From what I could figure out so far setRotate always overwrites the whole matrix, while with preRotate and postRotate I can apply multiple chan...
Hello I want to connect DROID to two device via bluetooth(Nexus One and another bluetooth device(not mobile phone)) I've done succeful connection to Nexus One. As for example I 'm using BluetoothChat. Now I have problem with multiple connection. Could you help me please? How should I create and manage multiple connection via bluetooth? ...
Hi, I am Having 8 Screenns.I have prepared 8 Activities for that. In First Activity I have given this code To Switch from Ist Activity to IInd On Image Button gives On Clickpublic void onClick(View v) { Intent myIntent = new Intent(v.getContext(), Activity2.class); v.getContext().startActivity(myIntent); }); What to do to Switch ...
Hello, Is there a way to notify an activity/service of a force-close request right before it gets killed? I mean when the user hits the force close button in Menu>Settings>Applications>Manage applications>app name>Force Close. Thanks! ...
I'm writing an application that needs to work on a variety of Android devices, each with their own carrier-specific themeing. Unfortunately, there's a problem in that the tab themes for each device are incompatible --- stock Android uses light-background, dark-foreground for the selected tab, but the HTC Desire uses dark-background, lig...
I have a button which I want to occupy 75% of the screen: On a 480x800 resolution screen this would be 360 pixels wide. On a 280x320 resolution screen this would be 210 pixels wide. How do I go about specifying this in my layout XML file? I understand there is a DIP unit of measurement, but does that also work to scale screen ima...