how to acces the files in a directory
hi i am new to android programming, can someone please tell me how to get access to the files in a directory , i am using Environment.getExternalStorageDirectory() method? ...
hi i am new to android programming, can someone please tell me how to get access to the files in a directory , i am using Environment.getExternalStorageDirectory() method? ...
Hi, i have read on the market support that "If you have previously published an application for free, you cannot change it to have a price." But I was wondering, if at the contrary I change my app from payed to free and some time after i want to re change it from free to payed! Can I? And if yes, Have I to wait some period (I have read ...
I am attempting to use a custom font for a TextView on Android, following the guide here and here. Using the same font, same code, same everything, I get this in adb logcat: W/dalvikvm( 317): threadid=1: thread exiting with uncaught exception (group=0x4001d800) E/AndroidRuntime( 317): FATAL EXCEPTION: main E/AndroidRuntime( 317): ja...
Has anyone already used Flot in Android? I've been reading this http://rapidandroid.org/wiki/Graphing and i've re-used a code that i had that is working on a web site. The problem is that the graphic doesn't render. Something like this: -------------- JAVASCRIPT THAT GETS THE DATA -------------------- if ($('#newsStatsCheckbox'...
Greetings, I'm trying to create a single-choice android control, in a horizontal layout, by making use of the RadioGroup behaviour. I can assign the drawable just fine, but i would like to position the label of each RadioButton inside the drawable, is this possible using the standard APIs? <RadioGroup android:id="@+id/switchcontai...
The layout is basic: an EditText at the top followed by a ListView. EditText has a TextWatcher.onTextChanged implemented so that ArrayAdapter.getFilter.filter is called with the entered text. ArrayAdapter's data is refreshed asynchronously on resume (see code snippet below). Easy enough, works just fine too... right up until the screen o...
Hi This is with regards to post here I am able to connect my PC to the local tigase server setup locally(I am using Smack API). Now I am facing problems when I want to connect Android Phone to that server over Wi-Fi. I am able to connect to the local server by using client Beem for android.My XMPP Domain name of the server is my PC name...
I have a ListView. When I select an item in the ListView, I would like to have a Subview slide in from the right, the way that it does in many Apps. I have been searching for tutorials on this topic but am spinning my wheels. Maybe Android uses a term different than "Subview" ? Here's what I ended up doing: Create a New Class for t...
I want to upload a txt file to a website, I'll admit I haven't looked into it in any great detail but I have looked at a few examples and would like more experienced opinions on whether I'm going in the right direction. Here is what I have so far: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpContext localContext = new ...
Why is this soo hard to find out? public boolean onTouch(View v, MotionEvent event) I need to convert float event.getY() to and int. Is this possible. event.getY().intValue() will not work at all. Any ideas? ...
How to show a combobox in ANDROID? ...
I'm running into an issue with the Quick Search Bar that I'm hoping someone can help me with. My application includes a Searchable activity used to provide search behavior within my application. That search activity is designed to trigger a separate Intent when the search item is clicked on so as to cause a different Activity to handle...
I have an ImageButton in my app and I need to change the tint of the image when the button is pressed/focused. I have the ImageButton set to get its src from an XML file which as follows: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <!-- pressed --> <item ...
I'm using Eclipse and have an emulator running Android 2.1 and my IntentService. I'd like to step through my onHandleIntent() overridden function. I've put in a breakpoint on the first statement of the function, which is Context context = getBaseContext();. When the intent is called the program just fails and does not go to debug view...
I have this App, which will help tune camera to to zoom in or zoom out and adjust contrast and stuff, but the image that camera focuses on is displayed with swapped vertical and horizontal axis. So when I run this app and focus on vertical text it is displayed as portrait and vice versa. It is not problem with the way we hold camera but ...
I'm loading navigation from a website, where each item has a title, description, and image. I want to have all of the titles and descriptions centered along the same axis. I'm using the following layout for each item in a ListView. It works fine when the images are half as wide as they are tall, but not if they are any wider - the text ...
PLease anyone provide a sample code to connect,insert and select data from database in ANDROID? ...
I'm creating a game and I would like to display a simple "score"-animation to the player when credits are given to him. This is the view I throw onto the screen: public class Score extends FrameLayout { public Score(Context context, int score) { super(context); TextView txt = new TextView(context); txt.setText(String.valu...
In my app I bring up a context menu on long click in a ListActivity. One of the options "Priority" pops up an AlertDialog with 3 radio button choices. The problem is, it displays an empty dialog box without my 3 choices, or the message that I set. Here is my code.. protected Dialog onCreateDialog(int id) { AlertDialog dialog; ...
Hi, I'm trying to create a setup activity for my Android application which my users would see the first time they opened the app, but never again unless they wanted to redo the setup. How do I create this setup activity as the first activity without giving it MAIN/LAUNCHER intent-filters? (I want to use those for my home activity.) ...