[android-developers] Google Plus Integration For Sharing Posts.
Hi, Is there any API available for sharing message in Google Plus for Android App. I had intregated G+ in my App but I stucked in message share. -- Thanks and regards. Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android: value of one spinner depends on value of other spinner
Hi, Use OnTouchListener for spinner instead of using setOnItemSelectedListener. Spineer excutes its setOnItemSelectedListener in onCreate so you getting this problem. On Fri, Dec 30, 2011 at 5:34 PM, vinitvikash vinitvik...@gmail.com wrote: I have a problem on Android Spinner.In my application I created two Spinner on main layout. 'State' Spinner and 'District' Spinner. All the data on Spinner are stored in SQLite database. I want do display list of 'District' on second spinner depending on selection of particular 'State' in the first spinner. Example: Suppose when I select Karnataka in the first spinner then application first retrieve all the district from SQLite database related to karnataka state and then it display on second Spinner. For this I do all the database activity correctly means creating two table 'state' and 'district' in which one column in district table is foreign key which is refereed to one of the primary key of 'state table' db.execSQL(create table +STATE_TABLE+ (+ STATE_ID+ integer primary key autoincrement not null, + STATE_NAME+ text+)); db.execSQL(create table +DISTRICT_TABLE+ (+DISTRICT_ID+ integer primary key autoincrement not null,+DISTRICT_NAME + text,+STATE_ID+ integer, FOREIGN KEY( +STATE_ID+) REFERENCES +STATE_TABLE +(+STATE_ID+)+)); Now in the Activity Class: spinnerState = (Spinner)findViewById(R.id.spinner1); spinnerDistrict = (Spinner)findViewById(R.id.spinner2); stateList = new ArrayListString(); districtList = new ArrayListString(); **Suppose all the data are all ready stored in database.** Now I need to retrieve all the 'State' data from database and add it in the statelist which is ArrayList. Cursor stateCursor = database.query(STATE_TABLE, new String[] {STATE_ID, STATE_NAME}, null, null, null, null, STATE_NAME); stateCursor.moveToFirst(); if(! stateCursor.isAfterLast()){ do{ int id = stateCursor.getInt(0); String stateName = stateCursor.getString(1); stateList.add(stateName); }while(stateCursor.moveToNext()); } stateCursor.close(); after this I create one ArrayAdapter and put this state list into this. spinnerState.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_spinner_item, stateList)); Next i put the following code in the activity class: spinnerState.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView? parent, View v, int pos, long id) { } @Override public void onNothingSelected(AdapterView? arg0) { // TODO Auto-generated method stub } }); **Now My problem is here:** 1. How I get the StateId for executing the select query for taking all the district related to particular state. 2. How the adepter will generate for District. 3. where I put all these code. Here what I need creating the districtList after getting the value from state Spinner. Similar Question which asked earlier in this website, what they do: they already create two adapter for two spinner and then apply setOnItemSelectedListener. Please Help me because here my mind totally stop working. I refer lot of book and website but not they even mention these type of problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and regards. Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Concatenating two or more audio files in single audio file.
hi is it possible to concatenate audio files in android framework. Or, anybody knows how to pause and resume audio recording in android framework. Thanks regards Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ExpandableListView And Fragment
Hi, Please suggest me how to use ExpandableListView and Fragments in same layout. If possible please give me right link or example. Regards Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to disable setting tools of default camera.
Hi, Please tell me how to disable setting tools of default camera. Regards. Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using ExpandableListView and Fragment in same layout.
Hi, I want to use ExpandableListView and Fragment class in same XML layout as ExpandableListView on left of screen and Fragment on right. I had done same with ListView And Fragment and its works well but with ExpandableListView its not working. Please suggest me. Regards Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Pause MediaRecorder
Hi, Is there any way to pause MediaRecorder while recording. Or any alternate for doing that. Regards Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Removing unused resources.
I am looking for an efficient way to find out if a resource (mostly a drawable) is used in java or in an XML file.The problem is, that on my current project the drawables are changed often and now I have some drawables, which might never be used.Is there a tool/way to find those unused drawables without search each filename in the whole project? Best Regards. Mani. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Tabhost background image
Hello, Am using tabhost in my application .In its tab I had put background images. Now I want to increase size of its background image.But images of all px get wraped inside it.Please guide me. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Video Recording Code
hiI need source code for video recording , my code had some problem its urgent... thanks... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Position of dialog box
hi... am using a dialog box in my application.I want to locate dialog box just above a button on click of that button is located on right bottom corner of screen.Now that button is created in another xml layout. I don't want to hard code X,Y coordinates.Am thinking to use id of that button and use method like below above in my code. I had go through many tutorials in few hour but all of them are just scrap . Please suggest me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] UI
hianybody please suggest me how to make such GUI that will show properly on all screens thanks.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Generating DTMF tone
hi.Please guide me how to generate DTMF tone and sending it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with loading Google Map
when am using user-library tag inside application tag in my manifest.xml == uses-library android:name=com.Google.android.maps/ it gives console error --- == Installation error: INSTALL_FAILED_MISSING_FEATURE Please check logcat output for more details. Launch canceled! am using Android sdk2.2 and i had include all permissions and activities in my manifest. BUT when i use user-library tag outside application tag my application runs but Google Map not loads in both conditions. Please guide me. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en