android

Basic doubts about how "organize" my Android code

Hello. Im starting my first Android project so im still kind of n00b and not sure about how to organize some things to have a clean code :P I have my first screen with a spinner and a button. When you click the button i catch the spinner selection and the app will move to a new screen (Depending on the spinner selection). So now, i ha...

Android app: logging in using google ID?

Well hello guys. I am in progress of creating an android app that requires you to register and login. Now I was thinking, why register and login? Isn't it possible to automaticly login with the google account that is already on your device? Just like how you can use your google account to login to stack overflow? So my question is: is...

Posting to Facebook feed from Android app

Hi all, I am trying to enable users who have linked their Facebook account to be able to post to their wall with one button press as detailed in their docs. Specifically, I do not want to use the .dialog methods provided in the Facebook for Android library, as I want the Publish process to be as seamless as possible. The specific call ...

irregular displaying on a galaxy 3

Hi I have a problem with the displaying of buttons. when i switch to portrait the edges are irregular... not round another problem is the the listview loses borders.. the toast.makeText has a bad frame.. In the emulator everthing looks perfect but on the samsung galaxy 3 its awfull i think its because of the resolution or dpi, but i ...

RadioButton in ListView

I want to create a ListView with a RadioButton in every row. I'm using a CursorAdapter and I'm binding it in the right way, but I cannot manage correctly the RadioButton. I want that at any moment only one RadioButton to be checked (so when I check one, I would like the one that was checked before to uncheck). Furthermore, when I put the...

SoftKeyboard with unicode characters or custom font.

We're trying to build a SoftKeyboard for an android app. The characters to be shown on the keyboard are asian language characters. Any pointers will be helpful. ...

SurfaceView KeyEvents

I'm making great progress porting my Color Computer Emulator to Android. It works on a Droid 2 with a hardware keyboard but I'm unable to get the virtual keyboard to send KeyEvents to my SurfaceView subclass. I've included the setFocusable(true), setFocusableInTouchMode(true), requestFocus() and requestFocusFromTouch() in the View per su...

How to read sqlite file using cursor and display data in a listview

Hi im trying to read sqlite file which is placed in assets/databases folder i followed this link to read data from sqlite file http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ im getting error no such table : while compiling SELECT _id, name, address FROM stores Is there any permission ...

Interface for XML editor

http://www.youtube.com/watch?v=e1qG6z6BbYQ at 1:22, the way he edits the XML for resources is totally different from mine. Mine is only coding and his is more visual. Does he use a custom plugin? ...

How to know Android Phone is going to sleep?

How to know Android Phone is going to sleep? Please Help me with a sample code. Thanks for reading. ...

Get the genre of a Song.

How do i go about reading the genre that a song is associated to? I can read the song, but how do i grab the genre for that song, where is it stored? Thanks! ...

Does an Activity-managed Cursor invoke requery() on another thread?

From within an Activity I query my database from an AsyncTask, and I pass the result Cursor to startManagingCursor(). From the docs, a managed cursor will automatically invoke requery() when an activity is restarted. My question is, is requery() invoked from a background thread? If not and this runs on the UI thread and the query takes ...

How to create a completely custom Dialogue/Popup in Android (change overlay colour and dialogue window layout)

I would like to completely re-skin the default dialogue component in Android. Specifically I would like to do this: Change the semi-transparent overlay background from the default black to a semi-transparent white. Change the Dialogue window by removing the default windowed frame border, and replacing it with a layout defined in XML (...

Trouble sending Bundle with PendingIntent to a Broadcast Receiver, data lost.

Hello, I am adding some basic alarm functionality to my program via the use of AlarmManager and a BroadcastReceiver class (named AReceiver.java). My problem is that the data I add to the bundle attached to the Intent creating the PendingIntent appears to be lost. The only bundle data I can access in the AReceiver class is a android.in...

need help on mapview when search the mapview by click event.

friend's I have a mapview after launching my application and have search button in header to search location the search result to be displayed with new intent,i used same xml layout for both the activities,when i place the intent code in same activity instead of startActivity(),the view has not been changed to corresponding location...

hour/minute picker for android countdown timer

I'm trying to implement something like a countdown timer that plays an alarm at 0. I want to be able to set the amount of time to wait before the timer goes off and I'm wondering if there's a UI widget or element that provides this kind of selection functionality. Basically, does android have something like the iPhone's selection spinwh...

Android Widget with Ticket Kind of behavior

Hi. I have an Android widget which is suppose to show news headline. My idea is this: I have a widget on home screen with a news scrolling. Every 30 seconds it calls it's Provider's onUpdate method which in turns invoke a service. The service updates the view with next news item. My problem is that until I have new news available; ...

Android -- Twitter Oauth -- Many different methods, none seem to work. Help.

Hello, I can't get Oauth to work with Twitter. I have tried the following (all result in the same 401 error): jTwitter (using the default OauthSignpostClient) jTwitter using the commonshttp library (CommonsOauthProvider) instead of the "DefaultOauthProvider" jTwitter using the OauthScribeClient (instead of the OauthSignpostClient) oau...

Why doesn't my preferences page show the current values?

I have a preferences page which is defined by XML - including some default values. I use a PreferenceActivity to display and handle this page. Whenever I use this page to set the preferences the preference file on the file system is updated properly - I can see this via adb. However, whenever I go back to the settings page after have ch...

FQL using facebook android SDK

I'm trying to create an android application using the facebook android SDK (http://github.com/facebook/facebook-android-sdk). I'm trying to figure out if I will be able to use FQL using this SDK. If anyone has any experiences in this regard, please let me know. FQL can apparently be used using https://api.facebook.com/method/fql.query?q...