A Follow up to this question: http://stackoverflow.com/questions/3488880/group-of-views-controls-on-multiple-screens
I have created a parent class and a child class that inherits from it. When I set the OnClickListener in the child class, the event fires when the button is clicked. When I move the set OnClickListener to the parent cla...
I'm trying to add SlideLock to my app for a version that I am putting on SlideMe. I am getting an error at mainActivityInstance for some reason and I don't know why. Any ideas what is wrong? Thanks.
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.home);
com.slideme.slid...
I have a few questions about creating a socket client for android devices.
1) what is the best object/method to use to handle the socket.getInputStream() method. I've seen a few different ideas and before I start playing around with them, I'd like to hear it here first as to what you all think the best approach to handling the InputStr...
Im opening a ListActivity with an xml called list with a ListView named list. I have an array adapter set up and working in another activity (not a list activity though, just a normal activity) and it all works fine. When I try to open this list activity though, I get an error saying that I need a ListView with the id android.R.id.list. ...
I have an android activity and a service implemented using aidl. Works like a champ, I have a callback setup to pass some thread notifications back to the UI, and that appears to work fine, with the exception of lots of
GREF has increased to 101, 201,301,401, 501.. etc, and GREF has decreased. I did some searching online and found that ...
What is the lifetime of a ContentProvider in Android? After onCreate() is invoked, will the ContentProvider persist unconditionally for the lifetime of the process?
My ContentProvider manages a list of records, but only 1 is designated "active" and will be accessed by different applications a lot. I was wondering if it's safe to cache ...
I draw a bitmap onto a canvas using the following call:
_playerImage = BitmapFactory.decodeResource(getResources(), R.drawable.player);
How can I now tint this image white?
I'm trying to make the image flash white like in top-scrollers when an enemy is hit by a bullet.
Do I need to use something other than BitmapFactory?
...
Hello All,
I'm using Eclipse 3.5.2 on win7 with latest sdk update. Every time i
create ninepatch image and copy it into drawable folders, the project
becomes error, seems that the file cause error and not supported. I use photoshop to create PNG-24 image then edit it using draw9patch tool.
Here is my draw9patch screenshoot : http://lon...
I keep getting the "Activity not found Exception" error message when I try to run the startActivity in my MenuList. One of the items on the list launches fine, but the other two give this same error message. I have checked and re-checked everything and I'm really stuck.
Thanks,
Bill
...
Android 2.1 update 1
Eclipse 3.5
I have a problem reading data from my 2nd activity that is called from the 1st activity using intent. I have androidmanifest.xml setup correctly.
My First Activity has the following code:
Intent myIntent = new Intent(MainMenu.this, Testmenu.class);
myIntent.putExtra("com.tweaktool.MyAge",40);
myInten...
Hi, guys. I am trying to build a voip app for android. I want to make use of the built-in android phone dialer. Can you guys give me some reference to it. I have been googling with no luck. Thanks
...
friends,
i am facing an issue related to android phone screen orientation
If i change the orientation of the phone, then it loses the context, if i am in middle of filling a simple form. So, the phone is vertical, I am using soft keyboard, I make it horizontal, so that I can use the keyboard easily again or something else, and kaboom,...
I am trying to create a ListView that will be populated with the entries from an array.
So this is my item layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="60dip" >
<ImageView android:id="@+id...
Logcat
08-17 06:37:22.264: ERROR/AndroidRuntime(1090): java.lang.RuntimeException: Unable to start activity ComponentInfo{one.two/one.two.Booking}: java.lang.NullPointerException
08-17 06:37:22.264: ERROR/AndroidRuntime(1090): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
08-17 06:37:22.264: ERROR/And...
K9 mail client is open source android application. Where can we get the source files ?
...
I've a border set around a drawable using LinearLayout (bg: rounded rectangle).
The drawable and the border is used as a tab view. I'd like to change the border color of the tab when it is selected.
How can I do this?
Color state list doesn't seem to work as the view being selected is not the shape (i.e border) but the tab. Drawable s...
Hi,
I have a slider that can be pulled up and then it shows a map. I can move the slider up and down to hide or show the map. When the map is on front, I can handle touch events on that map. Everytime I touch, a AsyncTask is fired up, it downloads some data and makes a Toast that displays the data. Although I start the task on touch eve...
hello guys,
i have a map file which has several tile images in the form of binary data. now i have to jump my index to different location of the file and read that tile. but i could not find anything helpful for me i also checked mark() and skip() methods.but not helping me.
is there any method or class which can do what exactly i w...
I created this folder, tab_bar, inside 'drawable' and added barbgnd.png. And then in my code, I tried to access it using
android:background="@drawable/tab_bar/barbgnd"
However, I got this error
error: Error: No resource found that
matches the given name (at
'background' with value
'@drawable/tab_bar/barbgnd').
My objective...
I have some difficulties finding the correct way to specify that a progress bar should have the small indefinite style.
I would be glad if somebody could provide an example for me and others that do a quick search for this information.
...