I create a Spinner depending on some rules of my app. So, its created dynamically. How can I retrieve which item was selected? Spinner mySpinner = (Spinner)linearMoreInfo.getChildAt(1); Using this code to retrieve the created dynamically spinner. But got no idea of how I can handle its click/select item. Any helps? ...
I have a RelativeLayout with 12 buttons, I want to align them nicely in the center of the screen and with equal distance to each others and equal left and right margins (like calculator buttons or telephone buttons). What I have done is in this XML file and the result ...
I have a probleam. When i starting an activity the onStop method is not always executed. Sometimes i get the following after i start the activity: onPause -> onStop -> onActivityResult -> onRestart -> onStart -> onResume But other times i get only this: onPause -> onActivityResult -> onResume I used this code: Intent intent = new ...
I've been doing some research on security vulnerabilities with Android custom keyboards, and noticed something interesting. When I install a keyboard on my Sharp Aquos Gingerbread phone, it tells me that it "may be able to collect all the text you type including passwords". However, on my Samsung Galaxy Tab ...
I am creating an android app using titanium mobile. how do I integrate java code and libraries monetation like 'airpush'? thanks in advance for all your help. jeremy ...
Hi I'm working on an android app in eclipse. I create the android project with the test project. I worked on the android test. Now the main project folder haven't classes and files. There is only the manifest. How can release and convert the test project into the main project? ...
i am developing an Android APP with the lastest SDK. I'm developing the app for Api 4 (android 1.6). My project haves a proguard-project.txt file (this is the proguard config file for the lastest versions of Android SDK) and the project.properties file haves uncomented the line for proguard, so proguard is ...
I am writing a simple activity to record and save audio, preferably to a folder within my application, but, for simplicity, to the SD card. The line of code that's giving me trouble is String path = Environment.getExternalStorageDirectory().toString() + "/" + "tempAppFiles/"; String filename = "test"+".mp4"; recorder.setOutputFile(path + filename); where recorder is an instance ...
I'm making a view and an activity extending SherlockMapActivity and using SlidingMenu libraries to make my main view to scroll like Google+ does. I've added the SlidingMenu by XML and my view scrolls perfectly showing the hidden menu but it only scrolls the view below the action bar. In Google+ app ...
Hi hopefully this fulfils the criteria for being a well written question. I'm new to programming and I've been trying to write an application for climbers on android that tells the user what they should be climbing based on their current ability for a training period. The app requires the user ...
I am writing an Android app that connects to a Bluetooth device, reads data sent from the device, adds it to an AChartEngine graph, and displays the data in a TextView. My Bluetooth code is quite similar to the threaded implementation in the BluetoothChat sample code (it comes with ...
I'm considering some layout fixes to my app, and I came across this tab layout inside the activity - from skype : Tab-picture I want my app to be similar to this, specially the "Account" & "Profile" tabs. What is the easiest way to make those tabs? TabHost? ...
I've created a Custom Component in layout/XML which has 2 TextViews and 2 Buttons. In its supporting class I simply have buttons increment and decrement the value of one of the TextViews public void onClick(View v) { switch(v.getId()){ case R.id.btnIncrement: ...
A few days ago, I began working on my first Android game. I opted to use OpenGL ES 2.0 since it was the most familiar alternative. However, I am currently unable to test the game on a real device, so I decided to use AVD instead, using a 4.0.3 virtual ...
Have set up a storage adapter (Contextual) for help creating and managing a single database and table. Trying to access the table from a new thread for reading records and transmitting them via HTTP in the background. Other access to the database is activity based and insert only. Although the ...
Having Troubles making this customer dialog box look correctly. Here is my layout code <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_root" android:orientation="vertical" android:layout_width="fill_parent" ...
My boss decided that, as a web developer, I must also know how to program mobile apps. So I have been assigned a project in which I have very little knowledge. I've created a web app using jQuery Mobile. Works great. I've even managed to build a working APK using PhoneGap. One ...
Sorry for this not exactly being a coding related question, but it seems relevant being there's many android app developers here. I'm releasing an ABC toddler app (my first app) shortly and I'm uncertain of how I should release it in terms of maximizing potential for profit. I see the following ...