I have a couple activities in my app that I would like to utilize shared preferences. Initially, I created a method in each activity to utilize SharedPreferences, which worked fine. However, since there are multiple activities that use the same data, I’m basically tucking similar methods in multiple places. So it seemed like it made m...
Hello, I have the next xml layout file:
<ViewFlipper android:id="@+id/details"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- ListView que define la lista de noticias -->
<ListView
android:id="@+id/list"
android:cacheColorHint="@android:color/transparent"
android...
Hi there!
I'm using a listview with an adapter extending CursorAdapter.
The listitems contains a few TextViews which can contain arbitrary lengths of text.
The problem is now as the views (in the listview) are recycled, items might get alot higher than needed since a previous item in the view needed bigger space.
I guess that the soluti...
I have to place selected particular set of string from String Array into another array, here I need to combine both equalsIgnorecase with String startsWith method.
If I have comparator:
String a= "j";
if(a.startswith("j"))
it returns true only "j", but here i need "J" and "j" has case sensitive, how can I get this.
Thanks in advanc...
I need it specifically for image distortion (filters, blurring, etc also welcomed ;) ). Do you know some libraries with appropriate license (Apache, MIT, LGPL also), that I can use? Propriety libraries with reasonable prices - open to them also. Can be in C also.
thanks in advance,
danail
...
Hi,
How to instantiate a object of a class whole definition is present in Jar file. Jar file will be moved to /system/frameworks after building.
I am building it using Android tool chain. jar and the app are built one after the other.
How to use this jar?
...
Hi All,
I want to create an app which would monitor changes to data in a folder on SD card.
For example if a file is put in a folder, as soon as file is copied, my app would send this file to server and delete this file.
Is it possible to do this?
Thanks.
...
Hi,
Imagine I have the following code that runs as a background processor for an android application:
public class Background extends Service
{
public void popup (String message, int duration)
{
Toast.makeText(this, message, duration).show();
}
class BackgroundChecker extends TimerTask
{
public vo...
Does anyone have any suggestions for doing this? At the moment, a new row gets added to the database and I call requery(). I'd like any new rows to animate when they show up for the first time. Many row additions will happen in the middle of the list, and not at the top or bottom. I'd like these to animate somehow so the user can see...
To put it simply. From a context menu on a TabActivity how can I initiate executing the intent for the current tab? I am trying to force a refresh.
The tabs all initiate activities displaying a subset of people names. While in one list you call up an edit activity which allows you to associate the name to one of the other lists in the ...
I want do an app,i want it look the same as this one:
I don't know how to write the word "writing" as the red mark ,and how to add the app icon on
the screen.
...
I am trying to create a simple button example, but when I add this code:
mButton = (Button) findViewById(R.id.button1);
it wont update my R.id file. I've tried everything including making sure automatic build is on, cleaning the project, and updating the SDK. This happens in both 1.6 and 2.2 projects.
Here's what full code is looking ...
first:
10-26 17:43:07.454: WARN/dalvikvm(6371): threadid=3: unable to interrupt threadid=19
10-26 17:43:07.487: DEBUG/dalvikvm(6371): GC freed 279 objects / 259776 bytes in 208ms
10-26 17:43:07.487: WARN/WindowManager(2215): Attempted to add application window with unknown token HistoryRecord{46366130 spexco.hus.cepvizyon/.ViewCam}. Ab...
I'm developing an android app that creates a calendar on the phone the first time the application is installed. When I create an event, either programmatically or using the device itself, the event will show up in the calendar but its title is missing. I'm testing my code on HTC nexus one.
Since I'm getting the same behavior when creat...
I have a service that monitors a socket connection. When the connection is lost it needs to display a Toast informing the user that it is reconnecting. This works fine the first time. After that I see the enqueueToast in the log but the toast is not displayed. Any ideas are appreciated. I thought this was going to be an easy thing t...
Hello!
Is there an easy way to share a link from an android program to facebook, and twitter?
How to?
...
HI All,
i have multiple activities in my activityGroup under tabactvity.
I want to start the child actvity for result.
Intent i = new Intent(this, addstocks.class);
View view = stocksgroup.group.getLocalActivityManager()
.startActivity("show_city", i
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();
// Again, replace ...
This must be something I’m just overlooking or possibly my ADT install is out of date.
When I attempt to add a new drawable resource to my project I don’t see a type of Drawable in the “New Android XML file dialog.”
Here’s what I see when adding a resource:
http://img221.imageshack.us/img221/2977/drawable.jpg
What am I missing here?
...
Ok, I'm not great at explaining this as I'm new to Android so work with me.
I have tried everything I can find and I dont know how to make everything work together.
I have a Spinner to select an age group, a Radio group with Radio buttons to allow you to select Gender (male or female), I have an EditText that I will allow for numerical i...
My keystore is corrupt, therefore the Android Market is requiring me to rename the app and resubmit it. However, whenever I go to edit the package names in Manifest and throughout the files, it gives me tons of errors.
What's the proper way to change the application name?
Thanks!
...