I'm learning about using Custom Views from the following:
http://developer.android.com/guide/topics/ui/custom-components.html#modifying
The description says:
Class Initialization As always, the
super is called first. Furthermore,
this is not a default constructor, but
a parameterized one. The EditText is
created with these...
Ey guys,
I am wondering if it is possible to retrieve device's phone number via the Android API(specifically 1.5 API). Thanks in advance!
...
Hi,
I wish to simulate camera in the android emulator using the webcam. Basically I need to only take photos with the camera in the emulator (live preview is not needed i.e if it makes it any easier)
I followed the tutorial here which is the only one I could find that was close to my requirements
But many of the libraries used in tha...
Looking to do iphone, android, and possibly windows phone development on a Mac Pro. What are the pluses and minuses of using a Mac Pro and a dual boot. Unlike most, Windows 7 will be the primary OS since most supporting software will be done with Visual Studio 08/10 over the next year. I have found driver issues from a few years ago. ...
I have an Android game that has an activity for the menu, and then another activity for the game that creates a SurfaceView and Thread to deal with canvas drawing and game logic. When you exit the game and start it up again too much or if you open and close the keyboard (thus restarting the activity), the game runs out of memory, usually...
Is it possible to create a ColorDrawable object without using xml? I would like to be able to change the backgroundColor of a view programmatically, using setBackgroundColor() or setBackgroundDrawable() or setBackgroundResource(), but I want to be able to specify the RGB values in code, not XML. Is this possible?
...
Hi,
I'm new to game programming. But I'v got an ide for what I think would be a fun game for the Android platform.
My question is, where do I start? Anyone got some good sites to recommend or perhaps a book or two. I'v got medium skills when it come to programming but i'v got a masters of science degree in computer engineering so i'm ...
Hi!
I've started to develop in Android 2 weeks ago and until now, I like it!
Currently I am working on a project where I have to display an individual map (not a google maps view, I'd like to display the map of a building's interior) with which the user can interact(mark positions, etc.).
Is there a framework or an existing app that I co...
Long story short: I want to add the --core-library flag at compile time to include a library that depends on some javax libraries that aren't included in the android platform. I have attempted the walkthrough here: http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android.html but nothing ever changed on the emulator.
I don't...
I have a bit of a dilemma and wanted to get some other developers' opinions on it and maybe some guidance.
So I have created a 2D game for Android from the ground up, learning and re factoring as I went along. I did it for the experience, and have been proud of the results. I released it for free as ad supported with AdMob not really ex...
So I did the Notepadv1 tutorial. It worked great. No problems. I would however like some explanation on why the mNoteNumber remembers the last number of the item I created.
So the class starts as follows:
public class Notepadv1 extends ListActivity {
private int mNoteNumber = 1;
That's fine, I understand that. The only other ...
I am one step away from making the method described here:
http://stackoverflow.com/questions/2761443/targeting-android-with-scala-2-8-trunk-builds
work with a single project (vs one project for scala and one for android).
I've come across a problem. Using this input file (arguments to) proguard:
-injars bin;lib/scala-library.jar(!MET...
hi
my application objective is to save location updates every ,let say, 20 minuets .
I used service and it worked fine , but when i lock the screen or it is locked automatically the service stop running .
when i unlock it , service runs again.
highlight on my code:
Service()
onCreat(){
call timer();
}
timer(){
code
}
How ...
Hi,
I have the following linear layout. What I don't understand is if I set the background to another image, the padding information are reset. Is there a way to prevent this?
<LinearLayout android:id="@+id/aPanel"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:b...
I want to deploy my application with Android 2.1 features. I placed an application icon in PNG format in the drawable-ldpi,and drawable-hdpi folders. When I installed to the device, it is not showing the application icon on the home screen of the device.
Please help me how to solve this issue?
...
Hello,
I have a square grid, for a turn based game ( grid is similar to the chess board ), but the moves in the games are different based on whether you have lapped your opponent pawn at least once or not.
i.e if you have not lapped (beaten any of the opponents pawns) in the outer most grid as below
if you have lapped your opponen...
I have a Button with an OnClickListener. For illustrative purposes, consider a button that shows a modal dialog:
public class SomeActivity ... {
protected void onCreate(Bundle state) {
super.onCreate(state);
findViewById(R.id.ok_button).setOnClickListener(
new View.OnClickListener() {
public void onClick(View v...
Hello all,
I was wondering if its possible to reference one android project from another android project. I have two projects, test1 and test2. I have added test2 in the project properties of test1 under the projects tab. Unfortunately it keeps throwing a NoClassDefFoundError. Also, would the second android project (test2) be install...
Anyone have any idea what this is or where I can get it? I thought it would just be some function on the activity or something but all I can find is an API key for google maps when I try to search for help with this. Any ideas?
...
I read here ( http://androidlittle.blogspot.com/2009/08/intent-filter-for-share-link.html ) what intent-filter is required to handle the "share link" intent that the android web browser sends. I have placed this inside an block in my AndroidManifest.xml like so:
<activity android:name=".ShareLink">
<intent-filter>
...