I have three xml layout pages, 1.welcome screen (with "next >>" button) and clicking on next button should bring second page 2.welcome page with ("register" button) this takes to another window/page 3. with name and other details. I have all the three pages GUI built i.e the xml file , how to put them all together and get them working.
...
I have learned that when using android:entries with a ListView, it uses android.R.layout.simple_list_item_1 as the layout for a list item and android.R.id.text1 as the ID of the TextView inside that layout. Please, correct me if I'm wrong.
Knowing this, I wanted to create my own adapter but use the same layout resources, in order to pro...
I know that when a row is selected in list view, the function onListItemClick() is called.
I want to know which function is called when a row in ListView is highlighted(not selected).
...
I want to create an app that has pictures Ive taken or created and allows users to browse through them. Ive got how to use buttons but I just cant figure out how to store the pictures within the apk file that gets uploaded to market. Im really new to android development and Ive been through some tutorials and have a couple books but for...
I am trying to build a new Android Test project, following along with Hello Testing Tutorial on the android dev site.
http://developer.android.com/resources/tutorials/testing/helloandroid_test.html
The problem is that when I do File--> New--> Project-->Android Test Project, the screen that comes up does not let me select a test target.
...
I need to rotate an ImageView by a few degrees. I'm doing this by subclassing ImageView and overloading onDraw()
@Override
protected void onDraw(Canvas canvas) {
canvas.save();
canvas.scale(0.92f,0.92f);
canvas.translate(14, 0);
canvas.rotate(1,0,0);
super.onDraw(canvas);
canvas.restore();
}
The problem is tha...
I have a database with which I wish to expose data with a ContentProvider. However, it is important that all the colums are not exposed, and also they should be renamed. Is there any good way of doing this? I was thinking maybe some kind of proxy-cursor which takes a cursor and translates its columns to the desired ones, and calls to clo...
Hello all,
Lets say I have 1 - 1,000 in a list and I click on 250. When I push the back button I want to go back to 250 not all the way back up to 1.
Is this possible?
...
Hello everybody,
I'm new in Android development and I have the next question/problem.
I'm playing around with the MediaRecorder class to record just audio from the microphone. I'm following the steps indicated in the official site: http://developer.android.com/reference/android/media/MediaRecorder.html
So I have a method that initiali...
Can I use other JVM languages besides Java (e.g. jruby, jython, clojure) to program for android, or is it java only?
There was a similar question asked over a year ago but I wasn't sure if there'd been any change since then.
...
I have a SQLite database, and several tables within that datbase. I am developing a DBAdapter for each table within the database. (reference Reto Meier's Professional Android 2 Application Development, Listing 7.1).
I am using the adb shell to interface with the database from the command line and see that the database is being populated...
I'd like to put a couple images on a surfaceview. I understand that the screen sizes of android devices can vary, so I don't think I can just use an x y position or I might end up placing it off different screens. Say I want to put two boxes in the center of the screen, a blue one and a red one. The blue one is to the left of the red ...
Applications can have any number of launchable activities. I know how to get the list of these activities via PackageManager.
Is there a way to determine which activities can be launched via startActivity?
For example, the Documents To Go app has different activities that will start Word, Excel, Powerpoint, PDF, etc... I am able to l...
I'm just getting started developing for Android and I'm running into a weird problem.
First off, I'm running Eclipse for Java devs v3.5.2 with the Android 2.1 SDK installed.
Basically, whenever I do just about anything the "gen" (R.java, etc.) folder will just disappear from the project. I'm seen some people online say that it was stil...
Hi all,
I'm working on an application that needs to perform recognition algorithms on raw PCM audio captured from the microphone. On all Android devices I've tested, the PCM data is usable (i.e., raw audio data.) This is not the case for the new Sprint EVO.
The Sprint EVO has AGC (Auto Gain Control) on the mic, which destroys the data ...
Why I can't implement OnKeyListener with parameter View such as on example where parameters are (View v, int keyCode, KeyEvent event) I'm forced to use parameters (DialogInterface dialog, int keyCode, KeyEvent event) but not the View as I want.
...
I'm working on a Push Notifications library for Android (http://deaconproject.org/) that needs to take action if network connectivity is interrupted or changed - namely, it needs to re-initiate a server connection or pause its operation until network connectivity is available. This seems to work fine using and Android BroadcastReceiver f...
in android browser menu, on clicking 'More', the next 2 lined list screen appears. How can I customize that 2 lined list screen?
or in android source code in which file the browser Menu click events are implemented?
...
How can I make an app or maybe service that looks like (Nexus One touch buttons) for the navigation keys (Home, menu,Back, Search)
The buttons should always be visibly and always stay on top and send the command to the app thats running.
Someone have ideas and sample codes how to do that?
*
I see an app with name (Smart Taskmanager) w...
I have an activity with two edittext controls. I am calling the requestFocus on the second edittext field since by default the focus goes to the first edittext control. The focus appears to be in the second edittext field (the second one gets the highlighted border), but if we try to enter any characters using the hardware keyboard the t...