android

How to access a method of an Activity inside TabActivity

I would like to access the public method of an Activity run by a TabActivity using: TabHost tabHost = getTabHost(); Intent intentMsgsView = new Intent().setClass(this, TeamHuddleScreenMsgsView.class); tabHost.addTab(tabHost.newTabSpec("msgs").setIndicator("Messages").setContent(intentMsgsView)); Basically, what I what is to let the pa...

how to add data to xml file dynamically

hi i am new to android.What i did is i am creating a xml file with some data.Now i need to add some additional data to existing xml file dynamically.How can i done this.Pls help me.Thank u in advance. ...

Refresh a ListPreference

Hi. I have a ListPreference which I populate dynamically when clicking on the list to display it. The population works fine, but the values I populate is not displayed until the next time i click to open the list, but instead the values from the xml-file is displayed the first time. It feels like the list has already been populated befo...

How to do page flip/turn/curl effect in android

How to do page flipping/turning or curl animation in android ? Is is possible with cocos2d. Please provide any links or example if you know. ...

Playing multiple audio files in Android

I think I should know this, but my mind has gone blank. I'm making an app that has a few hundred small sound files and I want it to play a certain file dependent on a String I pass to the function. Where I hit the brick wall is getting the resId of the sound file. I am using this code: MediaPlayer mp = MediaPlayer.create(context, R.raw...

ANDROID: Parsing XML

I'm not a developer, I just dabble in programming. One area I never understand is XML parsing. Sadly, for my latest "project" I need to do this very thing for an android app. Its a prototype that I am doing for work. I have this XML (a mock-up file): <feed version="201010011221" > <period from="2010-10-01T10:08:34Z" to="2010-10-01T1...

How to modify android.inputmethodservice.Keyboard dynamically

Hi friends,I'm developing an app for constructing soft keyboards dynamically. So I'm using this constructor: Keyboard(Context context, int layoutTemplateResId, CharSequence characters, int columns, int horizontalPadding) But i want the keys with variable sizes( like Space, Delete larger than other keys). But using the above c...

I can't use my string in Java code. Where is my fault?

<string name="title_new">Yeni Kamera</string> I have this string in string.xml, public void SetTitle(String _title) { title.setText(_title); } And title is a TextView.. I want to take string for _title, how can I do? ...

Convert values form Sensor.TYPE_ORIENTATION to Euler angles?

I have to write a compass app in Android. The only thing the user sees on the screen is a cube with a red wall which has to point north. This is not important. What's important is that I need to rotate that cube accordingly to the rotation of the device itself so that the red wall continues to point north no matter how the phone is being...

Android Button over Bitmap

I am a beginner android developer and I am trying to have a button display on top of the bitmaps I am outputting. Here is what I have: my activity sets this: setContentView(new FrameView(this)); FrameView is a class that extends View: public FrameView(Context context) { super(context); setFocusable(false); Inside FrameView I ...

Android - How to set key icon from code

Hi frnds, When defining keyboard in xml , we use android:keyIcon attribute to set the key icon. But when setting the Drawable property - Key.icon, the icon is not getting displayed on the key. Instead, the image is getting displayed in the popup that appears when tapping the key.Is there any other way to set key icon from code? ...

How does Java generate signatures for Methods?

Hey there! I have an Java class with a static final method getAll: public static final Vector<Category> getAll(Context context, ContentValues where) { ArrayList<Integer> IDs = null; if(where != null && where.containsKey(DatabaseAdapter.KEY_PRODUCT)) { IDs = OvertureItem.getAll(context, DatabaseAdapter.TABLE_PRODUCT_CAT...

AIM client on android

Possible Duplicate: AOL IM api for android Hi All, i want to develop AIM client application in android ,is there any AIM api for android released?... Thanks in advance.... ...

Prompted for Bluetooth PIN when connecting to already paired device on Android

I am developing an Android app to connect to a simple device that supports the bluetooth serial port profile (SPP). I am able to successfully connect and exchange data, but each time I connect the user is prompted to enter the PIN for the device. In the bluetooth settings I can see that the device is 'paired by not connected'. The p...

Loading an Android project from git into Eclipse

I want to import a project from http://android.git.kernel.org/?p=platform/packages/apps/DeskClock.git;a=summary into Eclipse. What steps do I have to go through in addition to the downloading? ...

How do I write a Solo/Robotium testcase that uses the builtin camera to take a picture ?

From my activity I do startActivityForResult(MediaStore.ACTION_IMAGE_CAPTURE), and then I land in the builtin camera activity (in this case in the emulator). When I now do: "solo.clickOnButton(0);" in my testcase, it does not find ANY button (null is found for index=0). How do I write a Solo/Robotium testcase that uses the builtin came...

Android MapActivity thread question

How do I ensure code is or is not executed on the UI thread in an Android MapActivity project? I am developing an Android map-based application, but I have experienced some stability issues and my research has led me to believe I need to ensure that screen updates are carried out on the UI thread. My app has data coming in from a GPS l...

AOL IM api for android

Hi, So far any AOL IM api released for android? Thanks in advance... ...

Is the Android Browser capable of performing an xsl transform?

I have an xml file I wish to transform using an xsl-document, but I can't seem to make it work on even the latest available Android versions. I tried adding an tag to the xml, but that didn't work in either the native browser or in Dolphin Browser. Is there a way to script the transform to happen client-side, or is the only option to ...

How to develop a android unlock screen app

I am student and I want to develop a android unlock screen app. I want to know what android api can give me some helps and how can I set my app as the default unlock screen app. Thank you. ...