Hi, I am using a SurfaceView and a rendering thread to develop a game based on structure like LunarLander.
However, I faced many problems, and here I want to point them all out. I wish anyone who want to develop a game won't need to struggle with them anymore. And anyone who have a better idea of the structure can share their experienc...
For C2DM to work, a device clearly must be at API level 8. However, does this really require that the application be compiled at that level? None of the code to work with C2DM requires any APIs at level 8. So would it be possible to have an app at a lower level, maybe API level 4 or 6, and have it try to do the C2DM registration? Maybe t...
While my live wallpaper app is pulling data from the server, I want to draw a ProgressBar on top of my canvas. So far I got:
ProgressBar pbar;
@Override
public void onCreate()
{
super.onCreate();
pbar = new ProgressBar(this);
LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
pbar....
Hi everybody !
I am developing an application that use the GPS and the geolocalion. So, during the application launch, I have to be sure that the user has activated the network and GPS. If he didn't tested 2 solutions :
Ask the user to activate them himself (so the application quit, and the user has to reload it)
Redirect the user in...
Hi! I have next stuff:
private static final String DB_NAME = "MyDebts.db";
private static final String CREATE_DB_QUERY =
"CREATE TABLE " + Dao.CONTACTS_TABLE_NAME + " (ContactId varchar(64), Credit integer);\n" +
"CREATE TABLE " + Dao.SETTINGS_TABLE_NAME + " (Name varchar(64), Value varchar(64));"
;
@Override
public...
I have a working android app using TextView, some formatting (line breaks, rows of dashes) and Linkify to generate a primitive "ListView-like" display with clickable URLs in each "row". I'd like to move up to a real ListView, but I'm just not finding the sample/explanation that I need to take that next step.
I have successfully reprodu...
I can't manage to get my textSwitcher to be able to support superscript text. No matter what I try it shows up as regular size text.
Here is what I've tried:
Spanned span = Html.fromHtml("<sup>TM</sup>");
String subscript = span.toString();
mSwitcher.setText(getText(R.string.desc_about1) + subscript);
Then I ...
I'm attemping to add a new LinearLayout defined by xml on top of my opengl view.
I have this working by using pure java:
public class VortexView extends GLSurfaceView {
public boolean onTouchEvent(final MotionEvent event) {
show_something();
}
void show_something()
{
//context is the main activity object that gets passed i...
Hi all,
how to set tablelayout row background color programatically.
Please let me know...
Thanks in advance
...
Hi I have just finished debugging my first application and want to publish it. I would like to know if you have a checklist that you use prior to distribution.
For instance I have lots of Log.d() commands, must I remove them? I have rotated my screens as much as possible to cause stop/restart failures. These are the types of test I ...
I've got a dialog which shows a list of checkBoxes. I'd like to set different boxes checked each time the dialog is showed. But that only works the first time.. I want it work every time the dialog is showed! It would be great if anyone can help...
This is my code:
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
...
Hi Everyone, I am hoping you can help me:
I need to update my ui for an android app and I'm trying to use the Handler class to do it, using http://developer.android.com/resources/articles/timed-ui-updates.html and the android developer resources "Common Task" for using Handlers as guides.
Basically, I need something between the two - ...
Hey,
So say there's an app running (any app). I'd like to be able to get it's Activity from within a Service that will be triggered to run from a android.intent.action.SEARCH_LONG_PRESS.
Is this possible?
...
First off I am a beginner in Android development; I have been doing a lot of research into how to get the various tasks I am trying to complete. I have yet to find any similar issue to this, which is why I am asking it.
This is a multipart question.
Overview of program and problems: I have a program (for Android 2.1 and higher) that ha...
hello friend i am developing an alarm clock application.
I have created 2 user interfaces
- where user can enter details related to alarm like time, tone etc.
- the screen which will appear when alarm will ring.
My query is how to use services so that alarm rings at time as entered by user???
...
Is there any way to receive the installation date of an android app? Or any other suggestions on how to accomplish a 30 day free trial version? Thanks alot.
...
So right now I'm using the zxing barcode scanner in my app. Here is example code(generic):
if(position == 0){
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, 0);
}
public void onActivityResult(i...
Hi, I am working on an alarm app. I followed the Android AlarmController tutorial word for word with only some minor changes. For some reason my Broadcast Receiver's onReceive() method is not being called when the alarm goes off. Here's the code:
// the callback received when the user "sets" the time in the dialog
private TimePickerD...
Tried to export working android project from eclipse. The screen is frozen at page "Export Android Application". "Next" button is grayed out. Same project runs fine on emulator and HTC as well. Please help.
...
Hi,
When I install my application onto a device or emulator it appears multiple times in the apps menu, in my case I get 4 icons showing my application name.
It seems that each icon is representing an activity, and since my application contains 3 tabs(with activities) the first 3 icons on my menu go to a particular activity, and the 4t...