I am writing a game for Android and I think I have a fatal flaw in my architecture and/or code.
The architecture is basically two threads, one that just continuously draws the screen and the other than controls the movement of the drawables on the screen based on the user's touch screen input.
In the latter thread, I'm basically doing ...
Hi,
I am trying to make a stacked layout with a fixed header, expandable body and fixed footer. I am very close however the body section with the webview displays behind the footer rather than between the header and footer. TIA
Jim
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/r...
this is the code for my custom provider,
mostly copied from the SDK notepad project
i cant understand why am i getting nullPointException,
why doesnt the provider instance get created?
thanks ! :)
RegistrationProvider.java
package alon.beginner.registerform;
import android.database.SQLException;
import java.util.HashMap;
import alon...
Hello,
I'm currently working on a game for android.
I have three ImageView's next to each other, they're positioned next to each other using the "android:layout_toRightOf". The views are located within a RelativeLayout tag. Each of these views are centered into the middle of the screen using "android:scaleType="fitCenter"" and they fil...
Hi,
I live near the border and work in another country. So I have selected my own network provider as the favorite. However, I notice that it sticks with the provider for as long as it can. So when I start from my country I keep my network even when I am across the border, however, when I go the other way around, it will keep the foreig...
I have a reservation wizard in android, when i say wizard i mean i have multiple activities (meaning screens) that are passed from one to another until booking is complete. in each step of the way my info may be invalid and so ill have to back track 2-3 activities and start all over, all the activities i back tracked should be destroyed,...
I have a view. I want to place a bitmap image as its background image. I was not able to do that.
//My code is below
Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.grape);
part1 = new View(this);
Bitmap map2 = Bitmap.createBitmap(targetWidth, targetHeight,Bitmap.Config.ARGB_8888);
canvas.drawBitmap( bitmapOrg,n...
I'm working on an Android application with an activity that uses a tab layout. There are two tabs which switch between the content being shown in a ListView below.
This means that the two tab specifications point to the same ListView for content, R.id.main_list:
<TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent...
I'm considering writing an internet filter app for Android which would allow parents to block objectionable web sites on their children's phones. I'm assuming this would also be useful on GoogleTV when it comes out. How would I even start? Is it possible to block access to specific sites without requiring the user to root their phone?...
I am trying to create an android app that will let me display images fullscreen with next and previous buttons on top to change between them.
Can anybody point me to some tutorials where i can find instructions on something similar?
If not, what is the best method to use to get the images into the app? I have tried several ways from cr...
Hi,
What is the difference between Uses-Permission and Permissions tag in AndroidManifest.xml .
I understood uses-permission tag as it is used to access Internet,Location from our application. But I did not understand when and why should we use permissions tag in Manifest file and what is its difference from uses-permission.
Thanks in...
Hello.
I'm very very new on Android development.
I have designed two xmls layouts (main.xml and secondpage.xml). I want to go from main.xml to secondpage.xml when the user click on a button.
I've found on android's documentation the following methods:
startActivity
startActivityForResult
and more and more methods...
Should may us...
I've got an app on the Android Market and have been using the SoundPool classes for the sound effects. I've noticed that, of all the parts of the Android API, this seems to have caused me the most problems. For example:
HTC Desire has problems playing WAV files (this causes it to lock up randomly). Using .ogg files fixes this
On the Dr...
My app used to use a standard ListView, and registerForContextMenu(getListView()) and everything worked just fine.
I needed to change my app to accommodate nested lists so I replaced the ListView with ExpandableListView. I changed the Activity to ExpandableListActivity. I also changed my adapter to a tree adapter and implemented a cust...
Hello, i have asked a question earlier which is similar to this and i got a solution which kind of works to an extent.but my problem is, the code in the else block never gets executes and that is where i want to cancel the alarm. cal.getTimeInMillis() is the set time for the an alarm to trigger an activity, while current.getTimeInMillis(...
I have a ViewFlipper with two ImageView widgets. I have set the in and out animation as android.R.anim.slide_in_left and android.R.anim.slide_out_right
Now when the two ImageViews have two different drawables, then the animation is sleek and smooth. But when I set the both the ImageViews to the same Drawable, the screen flickers. Why is...
I'm having trouble reading in from a .CSV file in an android app. Mainly a "FileNotFound" error. Where would be the easiest place to put the file, and what would be the address to it. I have been messing around with a few different places but have had no luck.
Can anyone point me in the right direction?
...
Several of my Android applications show the following type message in the logcat output:
I/UsageStats( 59): Unexpected resume of com.totsp.test while already resumed in com.totsp.test
In this case I created the default Hello World app by letting the ADT tool generate it, and it still gets this message. I am not doing anything specia...
I have a list view which uses a custom adapter in order to show my custom content. Its layout is the following.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:...
Hi, how can i change the text of a button programming a widget?
Tnks, Valerio
...