I am trying to make a sniper style game where the user looks through a scope to see a large image that he can navigate. The user can only see part of the image at a time. The image is supposed to be much larger than the screen size that way he has to actually navigate and look for the enemy. How do I use an image that is larger than t...
I need to create two views programmatically (because I need to access the ondraw of one of the views). For some reason, no matter what I do to add the views to the contentview, they don't show up vertically stacked, one below the other.
I can do it just fine using the XML using a RelativeLayout and layout positioning, but with the XML ...
Hi,
Here's the problem I'm facing : I've got a custom slider that controlls the volume and a label "volume" that I combine together in a liniar Layout to obtain a volume control setting. In the emulator and on a G1 phone these look pretty ok , however , when put on a Xperia mini
the label and the slider overlap . What should I do obtai...
How to add bubble counter on tabs in an Android application? Same has been done by eBuddy Android application.
...
I want one sample code for startActivityForResult().
Please explain how it works?
...
I've been having issues with this for far too long. This code should output dx,dy,dz for the accelerometer, and a running total of the dx. It should also output azimuth, pitch, and roll.
I've used info from http://bit.ly/codeUsed, but to no avail.
This code does not correctly output pitch, azimuth, or roll. It outputs 0.0, -0.0, -0....
Hi......
How can we read birth date from contact list in SDK-1.6 and 1.5??
Any help will be appreciated.......
Thanks in Advance
Nemat
...
I'm having trouble getting my widget to stop hogging so many resources.
I setRepeating on the AlarmManager to update. When the widget is deleted (onDisabled()), I call .cancel() on the service, but the service still shows up in the android "running processes" making me believe I'm doing something wrong. Any guidance?
Also, should I be ...
I am looking to add a completely new type of bluetooth device to android. I am wondering if there is an SDK or a way to build device support into and application.
Thanks,
Ed
...
I know how to setup an alarm to fire repeatedly, but the alarm stops firing after my application is killed.
How do I make sure the alarm continues to fire as it was setup?
...
I want to quit application in Android. Just put a "quit" button, which kills my app.
I know I shouldn't do this. I know that this is not the philosophy of the OS.
If you know how it can be done, pls share.
In the app, I have many opened activities, so "finish()" will not do the job.
Thank you for your information in advance.
Danail
...
Hi,
If someone asks me the below questions
What an Android Framework is?
What does it do?
How should I answer?
Also what is the role of API's such as Activity Manager, Location Manager etc in the Framework?
...
Hello,
I'm new to opengl-es and I wonder how people are able to draw these much detailed OpenGL ES graphics, e.g. on Android OS. It's already hard to draw a single squre, because it's composed of triangles due to the reason that OpenGL ES obviously cannot draw anything else than triangles.
I thought about this approach:
Drawing and ren...
Hi,
I am using a LinearLayout to display some Text and image. I have the images at drawable/ and i am implimenting this with ListActivity with some onListItemClick functionality. now i wants to change the image for the rows which are processed by onclick functionality to show the status as processed. can some one help me in this issue to...
When you click the Google universal search box on the home screen it animates upwards on the screen until it has reached the top and from there the search area and keyboard is opened.
The animated widget is animated "on" the home screen because it slides under other widgets.
It is easy to see this behavior if one puts the search box a...
google Directions API
I read this guide now I can build a correct request to receive the xml file containg the directions from address A to address B. What I need is some instructions and example on how to read this xml to draw the obtained directions on an Android MapView. I'd like also to know what represents this tag in the xml:
<o...
How to pass data between activities in an Android application?
...
I run an app in fullscreen mode where fullscreen is defined as a theme in xml for the entire app.
<style name="MyAppTheme" parent="android:Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowBackground">@null</item>
</style>
Generally it works ...
I've never built a game before, and I've not programmed for Android before but am looking to do so over the summer by building a game.
What type of object do I use for a shape that I want the user to be able to drag around the screen for instance using touch gestures? How do I tie together the MotionEvent, View and Graphics2D to make o...
What is the importance of "res" and "src" folders in eclipse-android while creating android project.
...