android

how to read value from string.xml in android?

dear frineds, i have written line String Mess= R.string.mess_1 ; to get string value but instead of returning string it is giving me id of type integer can any one guide me how can i get its string value that i have mentioned in string.xml file?? any help would be appriciated. ...

how to use variable while calling new activity in intent?

dear friends, i have following code to call new activity now i want to use variable to call new activity String var1,var2,var3; var1="Login"; var2="Signup"; var3="more"; Intent i; i = new Intent(Favorites.this, Login.class); --> login.class with var startActivity(i); can any one guide me how to achieve this??? ...

android video, hear sound but no video

I have tried several different examples but I cannot get any video to show. I hear sound but no video. I thought maybe I just had a incorrect video format so I downloaded a fiat commercial in 3gp format and still no joy. I am using the eclipse JEE with android sdk and my app targets the 1.5 sdk (Api Level 3) without google api. Could som...

Android app that needs to use non-memory SD card

I'm contemplating making an android version of my iPhone app. One of the attractions is the availability of a micro/miniSD card from Spectec that has an Ant+ radio in it, to communicate with Ant+ protocol devices. The technical feasibility of this is not my question; but rather its practicality: This obviously involves taking out the ...

Is there way to get private signed keystore file from previous apk release file?

Hi, i have created the private signed keystore file using eclipse and i have released the apk files in android market website. after some days we got some issues from users and we have fixed the issues but i don't have private signed keystore file. while making the apk file i need to use previous version release used private signed keys...

Android Navigation Bar Top

How can i make a Navigation Bar at the top of my application? I would like something like the top bar in the photo: link text ...

Using android gesture on top of menu buttons

What I want is to have an options menu where the user can choose to navigate the menu between: 1) touching a button and then pressing down on the trackball to select it, and 2) drawing predefined gestures from Gestures Builder As it stands now, I have created my buttons with OnClickListener and the gestures with GestureOverlayView. Then...

Centered zoom on Android

Hi, I've managed to create a Zoom (extends View) in order to load a PNG into a Drawable object and have it on the screen with zooming and panning function. See the code of the View (Zoom.java) : public class Zoom extends View { private Drawable image; private int zoomControler = 200; private int shiftleft = 0; private int shiftup = 0 ;...

Android market URLs

Hi all, For my new released application I use the following url to get it on the Android market http://market.android.com/details?id=com.kamosoft.happycontacts From my Android device, when I click on this url, I'm well forwarded to the Market application , on my application page, that's work fine. But from a PC with a standard br...

WYSIWYG View Editor in 'Android'?

Duplicate: Is there any form designer available for Google Android? I would like to move a CheckBox, so it displays in a different location than the top-left corner under Absolute Layout inside main.xml, for 'Android'. I'm using Eclipse to edit my views. How would I do this? On an iPhone they have a tool called Interface builder ...

Why I can't purchase my own application on the Android market ?

Hi all, I just uploaded my application in the market, but I'm not able to purchase it (it's a pay app). I saw here that it seems to be made by design, but then why the error message is Server Error try again ? Is there a way to bypass that ? Thanks in advance ...

Android Custom Component Properties

I have made an component for Android, which uses two drawables. Using static values for the drawables in the code, the component works but now I want to declare the values in the properties (XML) does anyone know how to do this? *Edit; Is there a way to do this without using the attrs.xml? ...

In Android Browser link does not always execute onClick causing focus instead

I am trying to program a very standard JS behavior for a link using an HREF onClick handler, and I am facing a strange problem caused by what I believe to be focus/touch mode behavior on Android. Sometimes when I click on the link, instead of executing the action, it simply becomes selected/focused, with either just a focus rectangle or...

First Android Test Project does not start

I'm creating my first android application but it does not start at all. In my src > android.SampleApp I created a java file named Main.java with: public class Main extends Activity { // Will be connected with the buttons via XML public void myClickHandler(View view) { switch (view.getId()) { case R.id.btn1: ((EditText)...

CallLog - field type

I've written a test app to read the call log. The field type is for the 3 types -> incoming, outgoing, missed In the emulator i get typed missed after not picking up the phone. If i reject the call i get the type incoming. On my HTC Hero phone i get always the type missed. On not picking up and if i reject the type field is always miss...

Implementing a listview inside a sliding drawer with a listview already present

I have an app whose main class extends ListActivity: public class GUIPrototype extends ListActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Cursor c = managedQuery(People.CONTENT_URI, null, null, null, null); ...

Downgrading DB on Android

I tested that it is possible for Android to pass newVersion < oldVersion to SQLiteOpenHelper.onUpgrade() method, ie. it wants the application to downgrade its database. I don't want to handle this case, though I would like to notify the user somehow that there exists a newer version of my application (which she apparently had installed...

How do I ensure another Thread's Handler is not null before calling it?

My program threw a NullPointerException the other day when it tried to use a Handler created on another thread to send that thread a message. The Handler created by the other thread was not yet created, or not yet visible to the calling thread, despite the calling thread having already called start on the other thread. This only happens ...

TakeKeyEvents not working effectively (no focus window error)

My activity comes into play at screen off. I have logging for anytime it gains or lose focus. I have no indication that it has lost focus, however, I am seeing key events fall on the floor, and in the log the window manager reports- No focus window, dropping: KeyEvent (all the verbose details of what key it was). This is only occasional...

Android: Best way/library to write an app that simply gets/sets your Facebook status, sends Facebook messages, and requests friends?

I have the Android Facebook-Connect library running in my emulator and I'm able to set my status with the Facebook API I have setup. However, I don't know where to go from there? Am I supposed to use the session key that this library allows me to get and make some Facebook API calls? I haven't found any code examples to even see what the...