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
Re: [android-developers] Re: intent Value
thanks ,, but i put this map like *intent.putExtras(mapidentifier,map); ,,, how i can put this mapping as listview in second activity * On Mon, Feb 27, 2012 at 9:19 AM, kalandar kasimk...@gmail.com wrote: hi, if you want to pass the same HashMap value for two activity means you can create the HashMap object in common static object. like class Common { public static HashMap map = new HashMap(); } now you can use this map in your entire activity. like Common.map.put(, ); otherwise you can pass the map object to intent.putExtras(mapidentifier,map); i hope this will help you... On Feb 26, 1:15 pm, hazem omies hazem.om...@gmail.com wrote: hi, how to passing intent value from listview activity that using HashMap to another listview as follow : the main activity contain listview getting value from xml using HashMap ,,i need to passing this value to another arraylist to be view in listview how i can do this , -- 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 -- 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] Re: intent Value
hi ,,, Note,,the value has been passed successfully ,,,but without listview !!! On Mon, Feb 27, 2012 at 10:39 AM, hazem omies hazem.om...@gmail.com wrote: thanks ,, but i put this map like *intent.putExtras(mapidentifier,map); ,,, how i can put this mapping as listview in second activity * On Mon, Feb 27, 2012 at 9:19 AM, kalandar kasimk...@gmail.com wrote: hi, if you want to pass the same HashMap value for two activity means you can create the HashMap object in common static object. like class Common { public static HashMap map = new HashMap(); } now you can use this map in your entire activity. like Common.map.put(, ); otherwise you can pass the map object to intent.putExtras(mapidentifier,map); i hope this will help you... On Feb 26, 1:15 pm, hazem omies hazem.om...@gmail.com wrote: hi, how to passing intent value from listview activity that using HashMap to another listview as follow : the main activity contain listview getting value from xml using HashMap ,,i need to passing this value to another arraylist to be view in listview how i can do this , -- 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 -- 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] Re: Is NFC card emulation possible on Galaxy Nexus and OS 4?
Hallo Roman, I have another question regarding card emulation. Do you know whether the UICC is physically connected to the NFC controller (SWP) on the Galaxy Nexus or not? Unfortunately, I don't know for sure. I would assume that the SWP pin is connected to the NFC controller (just as it is the case with the Nexus S) but I had no chance to test this yet. br Michael -- 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] Re: Communicate with GSM modem
I'm sorry, and thanks for your answer. On Feb 24, 6:21 pm, Kristopher Micinski krismicin...@gmail.com wrote: From the Android SDK this ins't remotely possible.. If you want to do this you'd have to modify the RIL at system level. If you want to do this, this is the wrong list to ask, as this list is for developing applications with the Android SDK. kris On Fri, Feb 24, 2012 at 3:37 AM, Tiago Teixeira teiti...@gmail.com wrote: Thanks for your answer. But what I'm trying to do is tocommunicatewith themodem, send text commands to it over aGSMcall and receive the response data. How can I use the Android RIL? Thanks in advance! On Feb 24, 7:52 am, Tor tor.hough...@gmail.com wrote: You need to read up on the Android RIL (Radio Interface Layer) if you want tocommunicatedirectly with themodem(e.g. send AT commands). But if all you want to do is send and receive SMS, you can do that using the SmsManager class. e.g.http://mobiforge.com/developing/story/sms-messaging-android On Feb 22, 12:08 pm, Tiago Teixeira teiti...@gmail.com wrote: Hello, I'm trying to develop an Android application that connect to aGSM modem. I like to know if it's possible to start the connection with themodem(overGSM) and send text commands to themodemand listen for it's response. Thanks in advanced. -- 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 -- 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] Unable to Upload new apps
Kumar, Pls change your clock date n time and try once. It will work out. Rahul, Nops nuthing to do with logcat.! Thanks On Sun, Feb 26, 2012 at 7:39 PM, Raghav Sood raghavs...@androidactivist.org wrote: Have a look on what the LogCat is suggesting, it can be for many reasons. Since when do we get LogCat messages when uploading new apps? Did I miss an update to the market? Thanks -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 -- 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] Re: Run application in background
Hi, There are two way to do this 1. service funda 2. transparent activity selection will be based on ur requirement Moktarul On Feb 27, 10:11 am, Juned Khan jkhan6...@gmail.com wrote: hii all developers, how do i keep my application running on background until it manually closed or exited by the user. -- 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] Re: nested listview
Hi, In in android there is something expandable list view. better use that and in subitem also use list view Enjoy Moktarul On Feb 26, 7:25 pm, hazem omies hazem.om...@gmail.com wrote: hi,,, how i can make nested listview as follow : main activity contain a listview binding from web servers XML parser ,,my issue is when click on item ,,the seconed listview open related to this item as nested ,,?? -- 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] Re: UML tool for Android?
Balsamiq Mockups has nothing to do with UML.. On 27 Feb., 03:04, Li Qing study.qing...@gmail.com wrote: Balsamiq Mockups ,a good tool for ui design -- 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] Re: Is NFC card emulation possible on Galaxy Nexus and OS 4?
Are you interest in investigating this assumption with me? Another option would be to ask Samsung. That reduces a lot of overhead regarding compiling, flashing, debugging etc. Cheers, Roman On 27 Feb., 09:57, Michael Roland mi.rol...@gmail.com wrote: Hallo Roman, I have another question regarding card emulation. Do you know whether the UICC is physically connected to the NFC controller (SWP) on the Galaxy Nexus or not? Unfortunately, I don't know for sure. I would assume that the SWP pin is connected to the NFC controller (just as it is the case with the Nexus S) but I had no chance to test this yet. br Michael -- 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] PackageManager installPackage method throwing IllegalArgumentException
Hi, I have one apk stored on sdcard .I am trying to install that apk on phone using PackageManager installPackage method.But I am getting IllegalArgumentException .. method.invoke(pm, new Object[] {apkFile, observer, INSTALL_REPLACE_EXISTING, null}); (using reflection..) I have following permission in the manifest:: uses-permission android:name=android.permission.INSTALL_PACKAGES/ uses-permission Thanks Regards, Ashiq Sayyad -- 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] Re: Run application in background
thanx Kalandar On Monday, February 27, 2012 10:41:30 AM UTC+5:30, Juned Khan wrote: hii all developers, how do i keep my application running on background until it manually closed or exited by the user. -- 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] Re: Run application in background
thanx Kalandar -- 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] Re: Run application in background
thanx for your reply *Moktarul* i know about services but what is transparent activity ? can you explain me about it or any link for that? * * -- 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 show Geo location on click event of Google map
Hi all, I want to show the geo locations (latitude , longitude) according to my clicked position on Google Map. Help me to achieve that. With Regards, NSR -- 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] switching views
try fragments... On Mon, Feb 27, 2012 at 4:26 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends, How to create switching views in android in the same activity ,like the attached snapshot of iPad..Please give any clue or any links which will help me to proceed further. Thaanks -- Regards, Vani Reddy -- 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 -- 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] switching views
No . I want to do in phone. On Mon, Feb 27, 2012 at 4:34 PM, nageswara rao rajana nagu.raj...@gmail.com wrote: try fragments... On Mon, Feb 27, 2012 at 4:26 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends, How to create switching views in android in the same activity ,like the attached snapshot of iPad..Please give any clue or any links which will help me to proceed further. Thaanks -- Regards, Vani Reddy -- 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 -- 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 -- Regards, Vani Reddy -- 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] Re: finishActivity on the YouTube app in ICS
Sorry, left out the intent. Updated the code below: On 24 Feb, 17:29, Fredrik H fredrik.henrics...@gmail.com wrote: I'm starting the YouTube app with a request code (1) and try to finish it after 30 seconds. However, in ICS 4.0.3 the finishActivity call does not finish the YouTube app. Logcat output shows nothing related to the finishActivity call and onActivityResult in my activity is not called. This worked in Gingerbread and I believe it worked in earlier versions of ICS. Is there any other way to achieve the same functionality? (mDataSource is a video ID, e.g. y8Kyi0WNg40) Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(vnd.youtube: + mDataSource)); intent.putExtra(VIDEO_ID, mDataSource); final int REQUEST_CODE = 1; startActivityForResult(intent, REQUEST_CODE); Log.d(LOG_TAG, We sleep for 30 seconds while the video plays and then close the YouTube app.); SystemClock.sleep(3); Log.d(LOG_TAG, Finishing YouTube app...); finishActivity(REQUEST_CODE); -F -- 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] Re: Add to recent application list
oke,. in onclick method save intent in to database and i think u also know this.. Actually i want to see which launcher r u modifying ? is is adwlauncher ? give me reply then i will send u complete code Enjoy Moktarul On Feb 27, 9:06 am, elham elhamna...@gmail.com wrote: Yes i am working on launcher application On Feb 24, 2:49 pm, moktarul anam mokta...@gmail.com wrote: R u working on launcher application ( adwLauncher)? Moktarul On Feb 24, 11:24 am, elham elhamna...@gmail.com wrote: Dear All, I have a requirement to add a activity into therecentapplist. Is it anyway possible to add new RunningTaskInfo obj into the list . I know there are no api's to do it directly but could anyone suggest any other approach to hack the list . Kindly let me know .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] Android pdf viewer
can u suggest me any good android pdf viewer jar library? actually i want to use this jas as a pdf viewer library in my application moktarul anam -- 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] switching views
You can try with tabhost instead of Dialog. On Mon, Feb 27, 2012 at 4:48 PM, vani reddy vani.reddy.bl...@gmail.comwrote: No . I want to do in phone. On Mon, Feb 27, 2012 at 4:34 PM, nageswara rao rajana nagu.raj...@gmail.com wrote: try fragments... On Mon, Feb 27, 2012 at 4:26 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends, How to create switching views in android in the same activity ,like the attached snapshot of iPad..Please give any clue or any links which will help me to proceed further. Thaanks -- Regards, Vani Reddy -- 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 -- 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 -- Regards, Vani Reddy -- 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 Regards, T.M.S.VIJAYKUMARR BloG:http://iamvijayakumar.blogspot.com/ -- 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] Re: switching views
Hi Vani , better u create separate activity for display attach file and make that activity android:theme=@android:style/Theme.Dialog Moktarul anam On Feb 27, 3:49 pm, vani reddy vani.reddy.bl...@gmail.com wrote: Hi friends,, How to create switching views in android ,like in the attached snapshot from the iPad. -- Regards, Vani Reddy photo.PNG 454KViewDownload -- 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] Re: Is NFC card emulation possible on Galaxy Nexus and OS 4?
Hallo Roman, Are you interest in investigating this assumption with me? Another option would be to ask Samsung. That reduces a lot of overhead regarding compiling, flashing, debugging etc. I assume that it will be easier to modify the firmware than to get a definitive answer from Samsung^^. However, testing if SWP is available should be rather easy (even without firmware modifications) if you have an SWP-enabled UICC. I expect that SWP will be initialized even if emulation mode is not switched to the UICC. So I guess you could just measure the voltage signal on the SWP pin (that's the communication from CLF to UICC) with an oscilloscope. SWP initialization should be performed during phone startup. br Michael -- 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] Re: switching views
Hi Vani, Better 2 use GestureDetectors so that u can fling the multiple views... Thanks and Regards, S.Seshu On Feb 27, 4:32 pm, moktarul anam mokta...@gmail.com wrote: Hi Vani , better u create separate activity for display attach file and make that activity android:theme=@android:style/Theme.Dialog Moktarul anam On Feb 27, 3:49 pm, vani reddy vani.reddy.bl...@gmail.com wrote: Hi friends,, How to create switching views in android ,like in the attached snapshot from the iPad. -- Regards, Vani Reddy photo.PNG 454KViewDownload -- 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] Re : Fetching data from postgres
Hi members, I m having my collection of records in Postgres database, After login i want to fetch the details from the database and display it in next page.Here my primary key will be userid which i used in login page.I want to know how to fetch data from postgres database ? -- 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] Re: sqlite database storage data
I just went through this and believe I can help. It's on the device. It's also in the virtual device, but it's a lot harder to get at (google UnYaffs) I tried to use UnYaffs and gave up after a few days, as it did not compile on my machine (it's C++). The easiest way is to root your phone. Once your phone is rooted, you can easily get to your SQLite DB... adb pull /data/data/com.example/databases/whatever.db . Then it will be on your computer's drive and you can open it... Rooting your phone can be a headache, but I found it the easiest way. JJ On Feb 25, 12:35 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello, i want to know the sqlite database at where store the data?It is on application device or on the pc.Because i need the data will be remain with project. -- 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] change background in html page at runtime (android)
HI all, I was straucted at displaying background image dynamical in HTML page please share me any one have idea on that . -- 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] Long click in expandable list group items.
Hi! im currently using an expandable list as an n-tree level list, and i use the long click to select any element, either group or childs, the problem is that the group row has a gradient gradient backgroup so translates in it not having any kind of highlight. i managed the normal click color, but im not getting any luck with the long click animation: This is my group row xml: *LinearLayout android:id=@+id/LinearLayout01* * android:layout_width=fill_parent android:layout_height=45dip* * xmlns:android=http://schemas.android.com/apk/res/android* * android:background=@drawable/expandable_group_item* * TextView * * android:id=@+id/tvGroup * * android:layout_width=fill_parent* * android:layout_height=45dip * * android:text=Groups * * android:gravity=center_vertical|right* * android:paddingLeft=5dip * * android:paddingRight=5dip* * android:textColor=# * * android:textStyle=bold* * android:textSize=17dip * * /TextView* */LinearLayout* * * This is the expandable_group_item_selector: *selector xmlns:android=http://schemas.android.com/apk/res/android;* * item android:state_window_focused=false android:drawable=@android:color/transparent /* * * *item android:state_focused=true android:state_pressed=true* * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=false android:state_pressed=true* * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=true* * android:drawable=@+drawable/list_selector_background_focus /* *item android:state_focused=false* *android:drawable=@+drawable/gradient_dialog_header /* */selector* The focus and long click animation still dont work any ideas? regards, -- 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] Swipe Images
Hi all thx already for helping me; i have small question but it looks hard to me i want to swipe a number of images how can i do 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
Re: [android-developers] Fwd: sax parsing
What is the problem so we can help u?? Regards, Rami N. Makhamreh www.realmadridarabia.com On Sat, Feb 25, 2012 at 10:54 PM, arun kumar hariarun2...@gmail.com wrote: hai suraj visit www.arunkumarpd.blogspot.in you find sax parser example. -- WITH REGARDS ARUN KUMAR P D +91-9663471079 -- 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 -- 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] Re: Long click in expandable list group items.
Basically what i want is default behaviour in all states but with my own backgroud gradient:S On Monday, February 27, 2012 2:14:45 PM UTC, Bluemercury wrote: Hi! im currently using an expandable list as an n-tree level list, and i use the long click to select any element, either group or childs, the problem is that the group row has a gradient gradient backgroup so translates in it not having any kind of highlight. i managed the normal click color, but im not getting any luck with the long click animation: This is my group row xml: *LinearLayout android:id=@+id/LinearLayout01* * android:layout_width=fill_parent android:layout_height=45dip* * xmlns:android=http://schemas.android.com/apk/res/android* * android:background=@drawable/expandable_group_item* * TextView * * android:id=@+id/tvGroup * * android:layout_width=fill_parent* * android:layout_height=45dip * * android:text=Groups * * android:gravity=center_vertical|right* * android:paddingLeft=5dip * * android:paddingRight=5dip* * android:textColor=# * * android:textStyle=bold* * android:textSize=17dip * * /TextView* */LinearLayout* * * This is the expandable_group_item_selector: *selector xmlns:android=http://schemas.android.com/apk/res/android;* * item android:state_window_focused=false android:drawable=@android:color/transparent /* * * *item android:state_focused=true android:state_pressed=true* * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=false android:state_pressed=true* * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=true* * android:drawable=@+drawable/list_selector_background_focus /* *item android:state_focused=false* *android:drawable=@+drawable/gradient_dialog_header /* */selector* The focus and long click animation still dont work any ideas? regards, -- 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] Re: Long click in expandable list group items.
What you can do is: 1) Add another layout to your group item layout, make sure its size matches the entire group item. FrameLayout is probably easiest. 2) Specify your own state-list background drawable for this layout. 3) In this state-list drawable, specify transparent color for pressed / focused / selected state, and the color you want for normal state as the default. The way this'll work is that the color from your state-list drawable will be used only if the item is not pressed / focused / selected. For those states, your drawable will turn transparent and let the android list item drawable show. You'll also need android:duplicateParentState on the layout added in step 1. -- Kostya On 02/27/2012 06:31 PM, Bluemercury wrote: Basically what i want is default behaviour in all states but with my own backgroud gradient:S On Monday, February 27, 2012 2:14:45 PM UTC, Bluemercury wrote: Hi! im currently using an expandable list as an n-tree level list, and i use the long click to select any element, either group or childs, the problem is that the group row has a gradient gradient backgroup so translates in it not having any kind of highlight. i managed the normal click color, but im not getting any luck with the long click animation: This is my group row xml: *LinearLayout android:id=@+id/LinearLayout01* *android:layout_width=fill_parent android:layout_height=45dip* *xmlns:android=http://schemas.android.com/apk/res/android http://schemas.android.com/apk/res/android* *android:background=@drawable/expandable_group_item* *TextView * *android:id=@+id/tvGroup * *android:layout_width=fill_parent* *android:layout_height=45dip * *android:text=Groups * *android:gravity=center_vertical|right* *android:paddingLeft=5dip * *android:paddingRight=5dip* *android:textColor=# * *android:textStyle=bold* *android:textSize=17dip * */TextView* */LinearLayout* * * This is the expandable_group_item_selector: *selector xmlns:android=http://schemas.android.com/apk/res/android http://schemas.android.com/apk/res/android* *item android:state_window_focused=false android:drawable=@android:color/transparent /* ** *item android:state_focused=true android:state_pressed=true* * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=false android:state_pressed=true* * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=true* * android:drawable=@+drawable/list_selector_background_focus /* *item android:state_focused=false* * android:drawable=@+drawable/gradient_dialog_header /* */selector* The focus and long click animation still dont work any ideas? regards, -- 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 -- 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] Wich is the correct way to change the texture of a polygon?
I need a little help to achive something with OpenGL ES 1.1 I have a symple square polygon (from nehe tutorials) with a texture. The polygon haves a bitmap and the method loadGLTexture(GL10 gl, Context context) is called once, when the polygon is created, to load the texture. I need to add the functionality to my app to change the texture of the square. Wich is the best way to change the texture of a polygon? can't find the right way on google... thanks all -- 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] Swipe Images
use frame layout .. populate all the images initially and then you can apply some animations to control the images . On Mon, Feb 27, 2012 at 7:50 PM, Rami Makhamreh stan55...@gmail.com wrote: Hi all thx already for helping me; i have small question but it looks hard to me i want to swipe a number of images how can i do 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 -- 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] Re: Long click in expandable list group items.
i changed the expandable_group_item to this: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_window_focused=false android:drawable=@android:color/transparent / item android:state_focused=true android:state_pressed=true android:drawable=@android:color/transparent / item android:state_focused=false android:state_pressed=true android:drawable=@android:color/transparent / item android:state_focused=true android:drawable=@android:color/transparent / !-- the default item -- item android:drawable=@+drawable/gradient_dialog_header / /selector Didnt change the row layout like you said, but it seems to be working as expected. Any reason to change like you said? regards On Monday, February 27, 2012 2:39:22 PM UTC, Kostya Vasilyev wrote: What you can do is: 1) Add another layout to your group item layout, make sure its size matches the entire group item. FrameLayout is probably easiest. 2) Specify your own state-list background drawable for this layout. 3) In this state-list drawable, specify transparent color for pressed / focused / selected state, and the color you want for normal state as the default. The way this'll work is that the color from your state-list drawable will be used only if the item is not pressed / focused / selected. For those states, your drawable will turn transparent and let the android list item drawable show. You'll also need android:duplicateParentState on the layout added in step 1. -- Kostya On 02/27/2012 06:31 PM, Bluemercury wrote: Basically what i want is default behaviour in all states but with my own backgroud gradient:S On Monday, February 27, 2012 2:14:45 PM UTC, Bluemercury wrote: Hi! im currently using an expandable list as an n-tree level list, and i use the long click to select any element, either group or childs, the problem is that the group row has a gradient gradient backgroup so translates in it not having any kind of highlight. i managed the normal click color, but im not getting any luck with the long click animation: This is my group row xml: *LinearLayout android:id=@+id/LinearLayout01* * android:layout_width=fill_parent android:layout_height=45dip* * xmlns:android=http://schemas.android.com/apk/res/android* * android:background=@drawable/expandable_group_item* * TextView * * android:id=@+id/tvGroup * * android:layout_width=fill_parent* * android:layout_height=45dip * * android:text=Groups * * android:gravity=center_vertical|right* * android:paddingLeft=5dip * * android:paddingRight=5dip* * android:textColor=# * * android:textStyle=bold* * android:textSize=17dip * * /TextView* */LinearLayout* * * This is the expandable_group_item_selector: *selector xmlns:android=http://schemas.android.com/apk/res/android;* * item android:state_window_focused=false android:drawable=@android:color/transparent /* * * *item android:state_focused=true android:state_pressed=true* * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=false android:state_pressed=true * * android:drawable=@drawable/list_selector_background_transition /* *item android:state_focused=true* * android:drawable=@+drawable/list_selector_background_focus /* *item android:state_focused=false* *android:drawable=@+drawable/gradient_dialog_header /* */selector* The focus and long click animation still dont work any ideas? regards, -- 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 -- 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] Re: Long click in expandable list group items.
On 02/27/2012 06:57 PM, Bluemercury wrote: Didnt change the row layout like you said, but it seems to be working as expected. Any reason to change like you said? regards I remember needing an extra layout in a similar case so that the highlight background used by the list view and the state-list with custom background wouldn't step on each other, but... ... no reason to change something that works :) -- K -- 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] Re: Long click in expandable list group items.
Hi again Kostya, seems that the cursor focus isnt working althought that's not the most important thing it still is default behaviour so im wondering why it doesnt work. Also the extra layout was something like this?: LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=45dip xmlns:android=http://schemas.android.com/apk/res/android; *android:background=@drawable/expandable_group_item* *LinearLayout* *android:layout_width=fill_parent * * android:layout_height=fill_parent* * android:duplicateParentState=true* TextView android:id=@+id/tvGroup android:layout_width=fill_parent android:layout_height=45dip android:text=Groups android:gravity=center_vertical|right android:paddingLeft=5dip android:paddingRight=5dip android:textColor=# android:textStyle=bold android:textSize=17dip /TextView */LinearLayout* /LinearLayout ididnt understand if the new layout would wrap the textview like that. regards, On Monday, February 27, 2012 3:17:12 PM UTC, Kostya Vasilyev wrote: On 02/27/2012 06:57 PM, Bluemercury wrote: Didnt change the row layout like you said, but it seems to be working as expected. Any reason to change like you said? regards I remember needing an extra layout in a similar case so that the highlight background used by the list view and the state-list with custom background wouldn't step on each other, but... ... no reason to change something that works :) -- K -- 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] Request for Ideas: how to handle a major upgrade to my App
Hi All... I'm working on v2 of my app. Although the basic operation of the app is the same, it is very different in terms of appearance and UI interaction (much better - I think!). I've got a couple of thousand users who rely on the app on a daily basis as a key part of their jobs and I'd like to be able to offer them the opportunity to migrate to the new version at a time that suits them rather than suddenly forcing them to learn the new ways of doing stuff. - although much of what happens 'under the covers' is the same as the current app, the UI is very different. I can't gradually enhance v1 to become v2, it's going to be a step change - I don't want to post v2 as an update to the existing apk in the market: most of the users are so loyal they will just upgrade without thinking and for many of them the change will be a shock! - I'd really like to post v2 as a new package in the market - I don't care too much about transferring the feedback, but I'd like to have some way that I can move over the folks who have purchased the app without requiring them to pay again. any ideas/recommendations/experiences from the community? Nick -- 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] null phone numbers
Can someone help me understand why the phone numbers all show up as null with this? private void queryContactPhoneNumber() { String[] cols = new String[] {People.NAME, People.NUMBER}; Uri myContacts = People.CONTENT_URI; Cursor mqCur = managedQuery(myContacts,cols,null,null,null); if (mqCur.moveToFirst()) { String myname = null; String mynumber = null; do { myname = mqCur.getString(mqCur.getColumnIndex(People.NAME)); mynumber = mqCur.getString(mqCur.getColumnIndex(People.NUMBER)); Toast.makeText(this, myname + + mynumber, Toast.LENGTH_SHORT).show(); } while (mqCur.moveToNext()); } } It's from this book: Android Apps for Absolute Beginners -- 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] Re: Long click in expandable list group items.
On 02/27/2012 07:25 PM, Bluemercury wrote: Hi again Kostya, seems that the cursor focus isnt working althought that's not the most important thing it still is default behaviour so im wondering why it doesnt work. Also the extra layout was something like this?: LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=45dip xmlns:android=http://schemas.android.com/apk/res/android; *android:background=@drawable/expandable_group_item* *LinearLayout* * android:layout_width=fill_parent * *android:layout_height=fill_parent* *android:duplicateParentState=true* Right - that's the backgrounds stepping on each other that I mentioned earlier. The extra layout should be set up like this: LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=45dip xmlns:android=http://schemas.android.com/apk/res/android; LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent *android:background=@drawable/expandable_group_item* android:duplicateParentState=true The top-level layout will have its background modified by the expandable list view, to show selected / pressed state. The second layout has your custom color / gradient, and because it becomes transparent when the item is selected / pressed, the background of the top-level item will show through. -- Kostya -- 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] Re: Long click in expandable list group items.
Ok ive made the change but the normal focus doesnt seem to be working, here's the expand_custom_row_group_layout: *LinearLayout* *xmlns:android=http://schemas.android.com/apk/res/android* *android:id=@+id/LinearLayout01* * android:layout_width=fill_parent * * android:layout_height=45dip* * LinearLayout* *android:layout_width=fill_parent * * android:layout_height=fill_parent* * android:background=@drawable/expandable_group_item* * android:duplicateParentState=true* * TextView * * android:id=@+id/tvGroup * * android:layout_width=fill_parent* * android:layout_height=45dip * * android:text=Groups * * android:gravity=center_vertical|right* * android:paddingLeft=5dip * * android:paddingRight=5dip* * android:textColor=# * * android:textStyle=bold* * android:textSize=17dip * * /TextView* * /LinearLayout* */LinearLayout* * * Here's the expandable_group_item: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_window_focused=false android:drawable=@android:color/transparent/ !-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -- item android:drawable=@android:color/transparent android:state_pressed=true android:state_enabled=false android:state_focused=true/ item android:drawable=@android:color/transparent android:state_enabled=false android:state_focused=true/ item android:drawable=@android:color/transparent android:state_pressed=true android:state_focused=true/ item android:drawable=@android:color/transparent android:state_pressed=true android:state_focused=false/ item android:drawable=@android:color/transparent android:state_focused=true/ *!-- the default item --* item android:drawable=@+drawable/gradient_dialog_header / /selector Am i missing something the in selector file? regards, On Monday, February 27, 2012 3:41:04 PM UTC, Kostya Vasilyev wrote: On 02/27/2012 07:25 PM, Bluemercury wrote: Hi again Kostya, seems that the cursor focus isnt working althought that's not the most important thing it still is default behaviour so im wondering why it doesnt work. Also the extra layout was something like this?: LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=45dip xmlns:android=http://schemas.android.com/apk/res/android;http://schemas.android.com/apk/res/android *android:background=@drawable/expandable_group_item* *LinearLayout* *android:layout_width=fill_parent * * android:layout_height=fill_parent* * android:duplicateParentState=true* Right - that's the backgrounds stepping on each other that I mentioned earlier. The extra layout should be set up like this: LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=45dip xmlns:android=http://schemas.android.com/apk/res/android;http://schemas.android.com/apk/res/android LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent *android:background=@drawable/expandable_group_item* android:duplicateParentState=true The top-level layout will have its background modified by the expandable list view, to show selected / pressed state. The second layout has your custom color / gradient, and because it becomes transparent when the item is selected / pressed, the background of the top-level item will show through. -- Kostya -- 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] Re: Long click in expandable list group items.
On 02/27/2012 07:53 PM, Bluemercury wrote: Am i missing something the in selector file? regards, Yes - the selector should only use @andorid:color/transparent for state_pressed or state_focused true. Something like: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:drawable=@android:color/transparent/ item android:state_pressed=true android:drawable=@android:color/transparent / *!-- the default item --* item android:drawable=@+drawable/gradient_dialog_header / /selector This is it, no other items or states. What this does is - lets the framework's list item background show through when the item is pressed or focused, and shows your own gradient when it's not. -- Kostya -- 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] MediaPlayer setDisplay
Hi we're creating an application for a radio station. The concept of the application is a little bit different than a normal radio application. When the user hits the play button, a video starts playing (webcam) and with the audio in the background. To accomplish this, a have a background service with a Mediaplayer object. From activity A, I start the service and connect a surfaceview to it with the 'setDisplay' method. When navigating from Activity A to Activity B, in 'onPause', I disconnect the surfaceview from the mediaplayer. When Activity B is created, you can stil hear the audio from the video stream playing in the background (that's a good thing!). When the user hits the back button, Activity B is finishing and Activity A resumes. In 'onResume', I reconnect the surfaceview with the mediaplayer (which is playing in the background surface). But now the surfaceview stays black, the audio is stil playing though. I don't have this issue on my Galaxy nexus (Android 4), but I wonder if anyone has a solution for this 'bug'? Thanks in advance! Cliff -- 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] How to show Geo location on click event of Google map
On Mon, Feb 27, 2012 at 4:59 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: I want to show the geo locations (latitude , longitude) according to my clicked position on Google Map. Help me to achieve that. There is a MapView tutorial and sections in the documentation dealing with Location. Read that, try something, then let us know how it's going and if you get stuck. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Android App publisher
Hi, Is it legal to publish an app on behalf of someone and take commission on per sale ? something like http://www.androidpublisher.com/ Please advise . Regards -- 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] Re: Long click in expandable list group items.
Okay, even after those changes i still get the focus color behind the gradient background. i just putted round corners in the gradient and i can see it behindlet me show what i have now then: *expandable_group_item.xml:* ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:drawable=@android:color/transparent/ item android:state_pressed=true android:drawable=@android:color/transparent / !-- the default item -- item android:drawable=@+drawable/gradient_dialog_header / /selector *expand_custom_row_group_layout.xml:* LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=45dip LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/expandable_group_item android:duplicateParentState=true TextView android:id=@+id/tvGroup android:layout_width=fill_parent android:layout_height=45dip android:text=Groups android:gravity=center_vertical|right android:paddingLeft=5dip android:paddingRight=5dip android:textColor=# android:textStyle=bold android:textSize=17dip /TextView /LinearLayout /LinearLayout *gradient_dialog_header:* ?xml version=1.0 encoding=utf-8? !-- gradient used for grey header view element to match original android default type-- shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle gradient android:startColor=#C4D82D android:endColor=#99A923 android:angle=90 / corners android:bottomRightRadius=7dp android:bottomLeftRadius=7dp android:topLeftRadius=7dp android:topRightRadius=7dp / /shape regards, On Monday, February 27, 2012 3:58:51 PM UTC, Kostya Vasilyev wrote: On 02/27/2012 07:53 PM, Bluemercury wrote: Am i missing something the in selector file? regards, Yes - the selector should only use @andorid:color/transparent for state_pressed or state_focused true. Something like: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android;http://schemas.android.com/apk/res/android item android:state_focused=true android:drawable=@android:color/transparent/ item android:state_pressed=true android:drawable=@android:color/transparent / *!-- the default item --* item android:drawable=@+drawable/gradient_dialog_header / /selector This is it, no other items or states. What this does is - lets the framework's list item background show through when the item is pressed or focused, and shows your own gradient when it's not. -- Kostya -- 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] Re: Long click in expandable list group items.
On 02/27/2012 08:13 PM, Bluemercury wrote: Okay, even after those changes i still get the focus color behind the gradient background. i just putted round corners in the gradient and i can see it behindlet me show what i have now then: Here is my selector: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:drawable=@android:color/transparent android:state_pressed=true/ item android:drawable=@android:color/transparent android:state_selected=true/ item android:drawable=@color/message_list_read_background_dark/ /selector I think you're missing android:state_selected in yours. Sorry about the confusion - I was typing from memory and just now went to look at the code. -- Kostya -- 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] Reading and Writing xml file to Internal Memory
Hi guys, My app needs to learn user words and store them in XML files. So I wrote a test method: public void writeWordXmlFile() { myWords = new ArrayListWord(); myWords.add(new Word(Diversability)); myWords.add(new Word(Theate)); try { FileOutputStream fos = new FileOutputStream(mywords.xml); XmlSerializer serializer = Xml.newSerializer(); serializer.setOutput(fos, UTF-8); serializer.startDocument(null, Boolean.valueOf(true)); //set indentation option serializer.setFeature(http://xmlpull.org/v1/ doc/features.html#indent-output, true); serializer.startTag(, Words); for( int i=0; imyWords.size(); i++) { serializer.startTag(, WordPair); serializer.startTag(, word); serializer.text(myWords.get(i).getWord()); serializer.endTag(, word); serializer.startTag(, count); serializer.text(Integer.toString(myWords.get(i).getCount())); serializer.endTag(, count); serializer.endTag(, WordPair); } serializer.endTag(, Words); fos.close(); System.out.println(mywords.xml file written.); } catch (IOException e) { System.out.println(e); } } This appears to work fine. So I wrote a SAX Xml parser and I kept getting a File Not Found exception. So a wrote a simple file reader method : public void parseMyWordXmlFile() { myWords = new ArrayListWord(); Word wHandler = new Word(); String sIn; //create an InputSource from the XML document source try { System.out.println(Reading mywords.xml); BufferedReader bin = new BufferedReader( new FileReader( mywords.xml)); while ((sIn = bin.readLine()) != null){ System.out.println(sIn); } } catch (Exception e) { System.out.println(NOT Reading mywords.xml + e); } } Again, I get a FileNotFound Exception. Doesn't Android read and write to the same path in internal memory? Thanks. Chris -- 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] switching views
On Mon, Feb 27, 2012 at 5:18 AM, vani reddy vani.reddy.bl...@gmail.comwrote: No . I want to do in phone. On Mon, Feb 27, 2012 at 4:34 PM, nageswara rao rajana nagu.raj...@gmail.com wrote: try fragments... You can use Fragments in phone. That's kind of the point of them. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Re: Long click in expandable list group items.
Ahh that was it, you only need the state_pressed and state_selected it seems, i had pressed and focused. Many thanks, this was very useful. Still i have the impression this should be more simple than it actually is. :) regards, On Monday, February 27, 2012 4:18:27 PM UTC, Kostya Vasilyev wrote: On 02/27/2012 08:13 PM, Bluemercury wrote: Okay, even after those changes i still get the focus color behind the gradient background. i just putted round corners in the gradient and i can see it behindlet me show what i have now then: Here is my selector: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:drawable=@android:color/transparent android:state_pressed=true/ item android:drawable=@android:color/transparent android:state_selected=true/ item android:drawable=@color/message_list_read_background_dark/ /selector I think you're missing android:state_selected in yours. Sorry about the confusion - I was typing from memory and just now went to look at the code. -- Kostya -- 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] Re: Long click in expandable list group items.
On 02/27/2012 08:33 PM, Bluemercury wrote: Ahh that was it, you only need the state_pressed and state_selected it seems, i had pressed and focused. Many thanks, this was very useful. Still i have the impression this should be more simple than it actually is. :) It would be easier if ?android:attr type references were allowed inside a drawable state-list... Now if one day you decide to add activated state indication on top of this for 3.* / 4.*... :) :) :) regards, -- 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] Request for Ideas: how to handle a major upgrade to my App
On Mon, Feb 27, 2012 at 9:39 AM, Spiral123 cumis...@gmail.com wrote: but I'd like to have some way that I can move over the folks who have purchased the app without requiring them to pay again. You can't do that. Consider releasing a minor, incremental update to your existing app without the fancy new UI that does nothing more than show a popup warning of the upcoming change. Wait a week or a month, or whatever, then drop the bomb. They can't say you didn't warn them. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 App publisher
On Mon, Feb 27, 2012 at 10:13 AM, riz rizcs...@gmail.com wrote: Is it legal ... Please advise . Consult a lawyer. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Reading and Writing xml file to Internal Memory
On Mon, Feb 27, 2012 at 10:27 AM, Dancing Fingers batym...@gmail.comwrote: Doesn't Android read and write to the same path in internal memory? Read this. http://developer.android.com/guide/topics/data/data-storage.html#filesInternal - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] SensorManager constants
Are all of these constants in SensorManager a joke? Is there any use for any of these? (except maybe GRAVITY_EARTH) public static final float GRAVITY_DEATH_STAR_I Since: API Level 1 Gravity (estimate) on the first Death Star in Empire units (m/s^2) Constant Value: 3.5303614E-7 public static final float GRAVITY_EARTH Since: API Level 1 Earth's gravity in SI units (m/s^2) Constant Value: 9.80665 public static final float GRAVITY_JUPITER Since: API Level 1 Jupiter's gravity in SI units (m/s^2) Constant Value: 23.12 public static final float GRAVITY_MARS Since: API Level 1 Mars' gravity in SI units (m/s^2) Constant Value: 3.71 public static final float GRAVITY_MERCURY Since: API Level 1 Mercury's gravity in SI units (m/s^2) Constant Value: 3.7 public static final float GRAVITY_MOON Since: API Level 1 The Moon's gravity in SI units (m/s^2) Constant Value: 1.6 public static final float GRAVITY_NEPTUNE Since: API Level 1 Neptune's gravity in SI units (m/s^2) Constant Value: 11.0 public static final float GRAVITY_PLUTO Since: API Level 1 Pluto's gravity in SI units (m/s^2) Constant Value: 0.6 public static final float GRAVITY_SATURN Since: API Level 1 Saturn's gravity in SI units (m/s^2) Constant Value: 8.96 public static final float GRAVITY_SUN Since: API Level 1 Sun's gravity in SI units (m/s^2) Constant Value: 275.0 public static final float GRAVITY_THE_ISLAND Since: API Level 1 Gravity on the island Constant Value: 4.815162 public static final float GRAVITY_URANUS Since: API Level 1 Uranus' gravity in SI units (m/s^2) Constant Value: 8.69 public static final float GRAVITY_VENUS Since: API Level 1 Venus' gravity in SI units (m/s^2) Constant Value: 8.87 -- 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] double tab on single image
hi all , can somebody help me with the double tab on images i tried with gesture listener but it taking on button -- 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] bootup app invoking app has error - No Activity found to handle Intent
I need to have an bootup app call another app and while the bootup app appears to work, the second app cannot be found? The NLauncher was derived from another thread start at boot app gives instantiationException: in which it took a lot conversation to resolve and I thank all concerned. I added some debug statements to help isolate the problem. Thanks in advance to all. Tom B Error: Intent { act=com.needham.helloworld }W/System.err( 191): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.needham.helloworld }W/System.err( 191): logcat with debug statements _ D/EAS SyncManager( 181): !!! EAS SyncManager, onStartCommandD/ dalvikvm( 29): GC freed 45 objects / 2016 bytes in 359msD/EAS SyncManager( 181): !!! EAS SyncManager, stopping self first debug statement D/NLauncher1( 191): act: android.intent.action.BOOT_COMPLETED *I/ActivityManager( 51): Starting activity: Intent { flg=0x1000 cmp=com.needham.NLauncher/.SubLauncher }D/dalvikvm( 29): GC freed 2 objects / 48 bytes in 347ms Second Debug ** D/NSubLauncher1( 191): HelloworldIntent: Intent { act=com.needham.helloworld } I/ ActivityManager( 51): Starting activity: Intent { act=com.needham.helloworld }W/System.err( 191): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.needham.helloworld }W/System.err( 191): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1408)W/System.err( 191): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1378)W/System.err( 191): at android.app.Activity.startActivityForResult(Activity.java:2749)W/ System.err( 191): at android.app.Activity.startActivity(Activity.java:2855)W/ System.err( 191): at com.needham.NLauncher.SubLauncher.onCreate(SubLauncher.java:21)W/ System.err( 191): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047)W/System.err( 191): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2459)W/System.err( 191): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2512)W/System.err( 191): at android.app.ActivityThread.access $2200(ActivityThread.java:119)W/System.err( 191): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)W/ System.err( 191): at android.os.Handler.dispatchMessage(Handler.java: 99)W/System.err( 191): at android.os.Looper.loop(Looper.java:123)W/ System.err( 191): at android.app.ActivityThread.main(ActivityThread.java:4363)W/ System.err( 191): at java.lang.reflect.Method.invokeNative(Native Method)W/System.err( 191): at java.lang.reflect.Method.invoke(Method.java:521)W/System.err( 191): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860)W/System.err( 191): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)W/ System.err( 191): at dalvik.system.NativeStart.main(Native Method)D/ AndroidRuntime( 191): Shutting down VMW/dalvikvm( 191): threadid=3: thread exiting with uncaught exception (group=0x4001b188)E/ AndroidRuntime( 191): Uncaught handler: thread main exiting due to uncaught exceptionE/AndroidRuntime( 191): _ bootup package com.needham.NLauncher; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class NLauncher extends BroadcastReceiver { private static final String TAG = NLauncher1; @Override public void onReceive(Context c, Intent i) { // check and handle registerable actions String act = i.getAction(); Log.d(TAG, act: + act ); if( act.equals(i.ACTION_BOOT_COMPLETED) ) { Intent si = new Intent(c, SubLauncher.class); si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); c.startActivity(si); } } // onReceive } _ Intent part package com.needham.NLauncher; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.os.Bundle; import android.util.Log; public class SubLauncher extends Activity { /** Called when the activity is first created. */ private static final String TAG = NSubLauncher1; public void onCreate(Bundle savedInstanceState) { Intent helloworldIntent = new Intent (com.needham.helloworld, null); try { Log.d(TAG, HelloworldIntent: + helloworldIntent ); startActivity(helloworldIntent); } catch (ActivityNotFoundException e) { e.printStackTrace(); }
Re: [android-developers] bootup app invoking app has error - No Activity found to handle Intent
The Android runtime is entirely correct. This code: public class SubLauncher extends Activity { /** Called when the activity is first created. */ private static final String TAG = NSubLauncher1; public void onCreate(Bundle savedInstanceState) { * Intent helloworldIntent = new Intent (com.needham.helloworld, null);* ... creates the Intent using this constructor: publicIntent(String http://developer.android.com/reference/java/lang/String.htmlaction,Uri http://developer.android.com/reference/android/net/Uri.htmluri) Since:API Level 1 http://developer.android.com/guide/appendix/api-levels.html#level1 Create an intent with a given action and for a given data url. Note that the action/must/be in a namespace because Intents are used globally in the system -- for example the system VIEW action is android.intent.action.VIEW; an application's custom action would be something like com.google.app.myapp.CUSTOM_ACTION. The hello world manifest does not specify an intent filter with action = com.needham.helloworld, thus the error. I believe you probably meant to create your intent with explicit package and class names. To do that, create an empty intent first, then call setClassName(String packageName, String className). It might find it useful to spend some time reading the docs on Intent and intent matching. -- Kostya On 02/27/2012 10:19 PM, Thomas wrote: I need to have an bootup app call another app and while the bootup app appears to work, the second app cannot be found? The NLauncher was derived from another thread start at boot app gives instantiationException: in which it took a lot conversation to resolve and I thank all concerned. I added some debug statements to help isolate the problem. Thanks in advance to all. Tom B Error: Intent { act=com.needham.helloworld }W/System.err( 191): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.needham.helloworld }W/System.err( 191): -- 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] Hamada Ali wants to chat
--- Hamada Ali wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-59fcc31f00-5bffe81611-YXdYMGhZm_8tpM3wIWaNdUKjQpI You'll need to click this link to be able to chat with Hamada Ali. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with Hamada Ali, visit: http://mail.google.com/mail/a-59fcc31f00-5bffe81611-YXdYMGhZm_8tpM3wIWaNdUKjQpI Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). -- 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] SensorManager constants
They are Easter eggs, nothing more. On Mon, Feb 27, 2012 at 12:14 PM, bob b...@coolfone.comze.com wrote: Are all of these constants in SensorManager a joke? Is there any use for any of these? (except maybe GRAVITY_EARTH) public static final float GRAVITY_DEATH_STAR_I Since: API Level 1 Gravity (estimate) on the first Death Star in Empire units (m/s^2) Constant Value: 3.5303614E-7 public static final float GRAVITY_EARTH Since: API Level 1 Earth's gravity in SI units (m/s^2) Constant Value: 9.80665 public static final float GRAVITY_JUPITER Since: API Level 1 Jupiter's gravity in SI units (m/s^2) Constant Value: 23.12 public static final float GRAVITY_MARS Since: API Level 1 Mars' gravity in SI units (m/s^2) Constant Value: 3.71 public static final float GRAVITY_MERCURY Since: API Level 1 Mercury's gravity in SI units (m/s^2) Constant Value: 3.7 public static final float GRAVITY_MOON Since: API Level 1 The Moon's gravity in SI units (m/s^2) Constant Value: 1.6 public static final float GRAVITY_NEPTUNE Since: API Level 1 Neptune's gravity in SI units (m/s^2) Constant Value: 11.0 public static final float GRAVITY_PLUTO Since: API Level 1 Pluto's gravity in SI units (m/s^2) Constant Value: 0.6 public static final float GRAVITY_SATURN Since: API Level 1 Saturn's gravity in SI units (m/s^2) Constant Value: 8.96 public static final float GRAVITY_SUN Since: API Level 1 Sun's gravity in SI units (m/s^2) Constant Value: 275.0 public static final float GRAVITY_THE_ISLAND Since: API Level 1 Gravity on the island Constant Value: 4.815162 public static final float GRAVITY_URANUS Since: API Level 1 Uranus' gravity in SI units (m/s^2) Constant Value: 8.69 public static final float GRAVITY_VENUS Since: API Level 1 Venus' gravity in SI units (m/s^2) Constant Value: 8.87 -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] SensorManager constants
On the other hand, this one: http://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION is real. upon completing the dispatch, the object must make a cup of tea, return it to the caller, and exclaim jolly good message old boy! I have a little app with a button that executes said transaction, and use it whenever I get thirsty while working. -- K On 02/27/2012 11:35 PM, Mark Murphy wrote: They are Easter eggs, nothing more. On Mon, Feb 27, 2012 at 12:14 PM, bobb...@coolfone.comze.com wrote: Are all of these constants in SensorManager a joke? Is there any use for any of these? (except maybe GRAVITY_EARTH) public static final float GRAVITY_DEATH_STAR_I Since: API Level 1 Gravity (estimate) on the first Death Star in Empire units (m/s^2) Constant Value: 3.5303614E-7 public static final float GRAVITY_EARTH Since: API Level 1 Earth's gravity in SI units (m/s^2) Constant Value: 9.80665 public static final float GRAVITY_JUPITER Since: API Level 1 Jupiter's gravity in SI units (m/s^2) Constant Value: 23.12 public static final float GRAVITY_MARS Since: API Level 1 Mars' gravity in SI units (m/s^2) Constant Value: 3.71 public static final float GRAVITY_MERCURY Since: API Level 1 Mercury's gravity in SI units (m/s^2) Constant Value: 3.7 public static final float GRAVITY_MOON Since: API Level 1 The Moon's gravity in SI units (m/s^2) Constant Value: 1.6 public static final float GRAVITY_NEPTUNE Since: API Level 1 Neptune's gravity in SI units (m/s^2) Constant Value: 11.0 public static final float GRAVITY_PLUTO Since: API Level 1 Pluto's gravity in SI units (m/s^2) Constant Value: 0.6 public static final float GRAVITY_SATURN Since: API Level 1 Saturn's gravity in SI units (m/s^2) Constant Value: 8.96 public static final float GRAVITY_SUN Since: API Level 1 Sun's gravity in SI units (m/s^2) Constant Value: 275.0 public static final float GRAVITY_THE_ISLAND Since: API Level 1 Gravity on the island Constant Value: 4.815162 public static final float GRAVITY_URANUS Since: API Level 1 Uranus' gravity in SI units (m/s^2) Constant Value: 8.69 public static final float GRAVITY_VENUS Since: API Level 1 Venus' gravity in SI units (m/s^2) Constant Value: 8.87 -- 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 -- 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] Request for Ideas: how to handle a major upgrade to my App
Here's a way you can migrate your paid users... Release your new app as free with in-app purchase and create a way to use an unlock code. You'll need a server interface to check the validity of the code and a way of telling your existing customers about it. Using an unlock code will make it possible for paid users to download your new free app and use it without having to pay again. -John Coryat -- 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] Mute button in call
I am trying to have a app mute the call when the camera button is pressed. I have that part of the code working, but I can not for the life of me figure out if there is a way to change the state of the mute button in the call so you know that it is currently muted. Anyone know how to do that? -Brian -- 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] Does Market Recognize Internationalization?
If I put up a new version of my app that includes support for new languages -- for example, with a /values-fr directory -- will the Market indicate this in any way to users who have this language selected? Is there any way to note this feature other than the update comments in the Market description? Doug Gordon GHCS Software -- 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] Custom IME for custom component
Hi, I'm looking to have a custom component (an extended EditText) that uses its own input method. I've created the input method and the custom component without issues, but I'm having trouble getting the component to use the input method. I can use the input method with the component if I use it as the default IME for the system...but I only want to use it for this component type, not everything in the system, or even everything in the app. In particular, if I specify the android:inputMethod in the XML when laying out the component, it can't find the class when it loads the component: com.test.z800h.display.control.ValidatedNumber ... android:inputMethod=com.test.z800h/.Z800HInput ... / leads to: 08-01 19:55:45.620: E/AndroidRuntime(5059): Caused by: java.lang.ClassNotFoundException: com.test.z800h/.Z800HInput I've also tried com.test.z800h.input.Z800HInput and com.test.z800h/ input.Z800HInput. The fully qualified class name is com.test.z800h.input.Z800HInput. This is strange, because this code works: Class? c; try { c = Class.forName(com.test.z800h.input.Z800HInput); } catch (ClassNotFoundException ex) { throw new RuntimeException(ex); } Maybe TextView uses a different class loader that doesn't index the app's package. Of course, I know android:inputMethod is deprecated. From what I can tell, there really isn't another way to specify an exact input method for a control. I'd be happy to do it in a non-deprecated way if there is one. Thanks, Todd Sjolander -- 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] Does Market Recognize Internationalization?
On Feb 27, 2012, at 10:49 PM, Doug Gordon wrote: Is there any way to note this feature other than the update comments in the Market description? I would put this into version history for sure. And no, I would expect there's no automated indication about this change on Market but users using their phones in French should get these localized values into use without prior notice. -- H -- 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] unsubscribe
http://markmail.org/message/wydbqdugoh46hrdpunsubscribe -- 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] Re: double tab on single image
ANKUR GOEL wrote: hi all , can somebody help me with the double tab on images i tried with gesture listener but it taking on button http://developer.android.com/reference/android/view/GestureDetector.html#setOnDoubleTapListener(android.view.GestureDetector.OnDoubleTapListener) pskink -- 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] Re: UML tool for Android?
No android specific by I have been using BOUML (http://www.bouml.fr/) and it works. However, if you want round trip integration, it might not be the tool. On Feb 27, 4:50 am, sniper sniper260...@gmail.com wrote: Balsamiq Mockups has nothing to do with UML.. On 27 Feb., 03:04, Li Qing study.qing...@gmail.com wrote: Balsamiq Mockups ,a good tool for ui design -- 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] What is the maximum size of Heap in Android with API levels.
Could anyone provide Heap size limitations with API levels. I heard 16MB is the max limit in latest API 15 level. Could you correct if I am wrong. BR Srinivas -- 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 make this complex view
Hi guys, I have come to a requirement of an application that requires the following view and its associated action: I want a listView that takes up all space on the screen, populated with numbers, say from 1 to 20. Thats no issue. The listView should have a dragable semi-transparent box on top of it with width equal to the listView. The box should also stretchable, it can take 1/4 to 3/4 of the height of the listView. To expand/contract the box, a user would be required to use two fingers, just like how one would zoom in/out on a picture. To slide the box up or down the listView, user may drag it with one finger. And on single tap on the box, it should sum up all those numbers on the listView that the box is covering. I can't figure out how to implement such a view and functionality. If you do, please share your idea. I would love it if you could provide with keywords that i should look into. Thanks in advance. Regards, Farhan -- 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]
-- 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] Debugging on a Pantech Pocket?
Is it possible to debug on a Pantech Pocket phone? The web page for drivers is useless. (it's in korean, and is untranslateable.) -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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] Debugging on a Pantech Pocket?
This: http://www.pantechusa.com/support/download/3NOS_kY1bCHDAseCRcCbfelrK_CZNWT4xkcTnbz3mvxehigVV5lpz0EgIcqbxKI- seems to be in English, not Korean ... This does too: http://androidforums.com/pocket-all-things-root/476448-pantech-pocket-rooted.html ... see the bottom message. 28.02.2012 3:36 пользователь John Lussmyer johnlussm...@gmail.com написал: Is it possible to debug on a Pantech Pocket phone? The web page for drivers is useless. (it's in korean, and is untranslateable.) -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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 -- 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] Motorola Atrix's Task Manager
I am just gleaning this from a customer report and other forum postings that I have seen. Is it true that the Motorola Atrix task Manager will shut down any app that is using battery life for more than 45 minutes and that there is nothing the customer can do about it? And before you bring it up, I am using a service, it is using battery life, and the customer *wants* it to run for more than 45 minutes. And no, using alarmmanager, etc, would not solve the problem. What a load of crap. Presumably to protect their customers from malicious software, they preinstall malicious software. -- 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] Debugging on a Pantech Pocket?
Thanks, those aren't the links provided on the OEM USB Drivers page. That one is all Korean. And the PantechUSA page you provided has a bad link for the download. I had to get back to the specific model phone support page to get a good link. http://www.pantechusa.com/support/pocket 2012/2/27 Kostya Vasilyev kmans...@gmail.com This: http://www.pantechusa.com/support/download/3NOS_kY1bCHDAseCRcCbfelrK_CZNWT4xkcTnbz3mvxehigVV5lpz0EgIcqbxKI- seems to be in English, not Korean ... This does too: http://androidforums.com/pocket-all-things-root/476448-pantech-pocket-rooted.html ... see the bottom message. 28.02.2012 3:36 пользователь John Lussmyer johnlussm...@gmail.com написал: Is it possible to debug on a Pantech Pocket phone? The web page for drivers is useless. (it's in korean, and is untranslateable.) -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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 -- 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 -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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] What is the maximum size of Heap in Android with API levels.
On Feb 28, 2012, at 12:22 AM, Srinivas Nainala wrote: Could anyone provide Heap size limitations with API levels. I heard 16MB is the max limit in latest API 15 level. Could you correct if I am wrong. Apparently there's no such thing as heap size per API level but per device instead (if it differs from baseline 16MB); http://stackoverflow.com/questions/2630158/detect-application-heap-size-in-android/2634738#2634738 -- H -- 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 can I convert a double to a string without notation and with a high amount of accuracy in Java?
I'm trying to convert a double to a string without notation, and tried this: f= Double.valueOf(c.getString(c.getColumnIndex(NotesDbAdapter.KEY_VALUE))); NumberFormat formatter = new DecimalFormat(###.##); However, the value of 7^3^7 is returning as: 558546 opposed to 558545864083284007. As always help would be greatly appreciated. -- 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] Can I get navigation information from the GoogleMaps Navigation app?
Hi guys, Can I get navigation information from the GoogleMaps Navigation app such as turn right at the next intersection? is it possible? Regards, -- 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] Re: Motorola Atrix's Task Manager
This is one forum entry I have seen on the subject: http://www.atrixforums.com/forum/motorola-atrix-help/5335-task-manager-gps.html I am not the SportsTrackLive app, but I see this affecting other apps. -- 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] Re: Beginner Question
As you say, this structure is kind of messy, and even the name for it may strike you as a little 'messy';) It is called an anonymous class. You might want to look it up in the classic online tutorials originally created by Sun and now maintained by Oracle. I found it messy too, and I still find the standard indentation of the anonymous class annoying. But I decided to learn to live with it because 1) it is extremely common, and that not just in Android Java 2) there is one big, good thing it does for us: it spares the reader from having to track down all references to the class to verify that it really is instantiated only in that one place. This really does simplify debugging. It also explains why it is heavily used in Swing and JavaFX as well as Android. In fact, that is pretty much what the above-mentioned tutorials says at http://docs.oracle.com/javase/tutorial/uiswing/events/generalrules.html#innerClasses. On Feb 22, 8:58 am, rhaazy rha...@gmail.com wrote: Hi everyone. I'm not sure if this question belongs here but here goes.. I am a professional asp.net developer looking to get into android dev. I have been going through tutorials and having fun so far! I have a question related to how the tutorial is asking me to structure my code. The code is from a tutorial where I create a gridview and set up a click listener event: gridview.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View v, int position, long id) { Toast.makeText(HelloGridViewActivity.this, Position: + position, Toast.LENGTH_SHORT).show(); } }); To me this structure is kind of messy, what I would like to do is have the function, public void onItemClick be by itself, so that I can do something more along the lines of: (psudo code) gridview.setOnItemClickListener([somehow reference the function here]); Is what I'm asking possible? Does my question make sense? Is there a more appropriate group to ask this kind of question? Thanks very much for your time. -- 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] Re: How to read EXIF Data from Image File on Android?
Thank you for the response. Highly appreciated. On Feb 25, 7:04 am, gjs garyjamessi...@gmail.com wrote: Hi Use the androidexifclass in the sdk Regards On Feb 25, 3:17 am, Jaison Brooks jaisonbro...@gmail.com wrote: So I'm trying to develop a application of my own that can take any image and read itsEXIFdata and use it to do something. Display it or using a intent send data to another application that can read its data. I've searched and I've searched and I just can't find a way to write this code. Any ideas would be great. -- 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] Help with alignWithParentIfMissing in Relative Layout
http://developer.android.com/resources/articles/layout-tricks-efficiency.html I have a ListView with the list items laid out in list-item.xml. Each item has a title, an optional description and an optional image. According to the article referenced above the title should become centered vertically in the parent if the description is missing, however it does not work for me. Thank you. Regards, Brian 8 list-item.xml 8 ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget115 android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:padding=6dip xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/icon android:layout_width=wrap_content android:layout_height=fill_parent android:layout_alignParentBottom=true android:layout_alignParentRight=true android:layout_marginLeft=6dip android:contentDescription=@string/icon_content_desc android:src=@drawable/icon / TextView android:id=@+id/secondLine android:text=@string/sample_text_second_line android:layout_width=fill_parent android:layout_height=26dip android:layout_alignParentBottom=true android:layout_alignParentLeft=true android:layout_toLeftOf=@id/icon/ TextView android:id=@+id/titleLine android:text=@string/app_name android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_alignParentLeft=true android:layout_toLeftOf=@id/icon android:layout_above=@id/secondLine android:layout_alignWithParentIfMissing=true android:gravity=center_vertical/ /RelativeLayout -- 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] Fwd: Email formating
-- Forwarded message -- From: Dhaval Varia dhavalkva...@gmail.com Date: Feb 26, 2012 1:30 PM Subject: Email formating To: android-developers@googlegroups.com android-developers@googlegroups.com Dear All I wanted to apply some formatting to email like color and put picture I Am using following code http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-a/2033124#2033124 here the string which I'm sending does not have any kind of formating. Please help me how to achieve this? -- 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] Re: bootup app invoking app has error - No Activity found to handle Intent
Changed things around and now have a new error *** Error W/System.err( 621): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.thomas.needham/.HelloWorld}; have you declared this activity in your AndroidManifest.xml? It is unclear which manifest the error is referencing as the log seems to indicate Displayed activity com.thomas.needham/.HelloWorld for intent code and the HelloWorld code. Here's some revised code Hello World -- package com.thomas.needham; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloWorld extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(Hello, Android Once More!!); setContentView(tv); } } --Hello World Manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.thomas.needham android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 / application android:icon=@drawable/ic_launcher android:label=@string/app_name activity android:name=.HelloWorld android:label=@string/app_name intent-filter action android:name=com.thomas.needham.HelloWorld / /intent-filter intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest - Revised Intent Program - package com.needham.NLauncher; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.os.Bundle; import android.util.Log; public class SubLauncher extends Activity { /** Called when the activity is first created. */ private static final String TAG = NSubLauncher1; public void onCreate(Bundle savedInstanceState) { Intent helloworldIntent = new Intent(); helloworldIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); helloworldIntent.setClassName(com.thomas.needham, .HelloWorld); try { Log.d(TAG, HelloworldIntent: + helloworldIntent ); startActivity(helloworldIntent); } catch (ActivityNotFoundException e) { e.printStackTrace(); } - NLauncher manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.needham.NLauncher android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 / uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:debuggable=true activity android:name=.SubLauncher android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity !-- android.intent.action.BOOT_COMPLETED -- receiver android:name=com.needham.NLauncher.NLauncher intent-filter action android:name=android.intent.action.BOOT_COMPLETED / /intent-filter intent-filter action android:name=.HelloWorld.LAUNCH_APP / !-- action android:name=com.needham.NLauncher.LAUNCH_APP / -- /intent-filter /receiver /application /manifest --Logcat D/dalvikvm( 97): GC freed 123 objects / 5072 bytes in 80ms * HelloWord starts I/ActivityManager( 51): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.thomas.needham/.HelloWorld } I/ActivityManager( 51): Displayed activity com.thomas.needham/.HelloWorld: 488 ms (total 3909291 ms) W/KeyCharacterMap( 501): No keyboard for id 0 W/KeyCharacterMap( 501): Using default keymap: /system/usr/keychars/ qwerty.kcm.bin W/KeyCharacterMap( 97): No keyboard for id 0 W/KeyCharacterMap( 97): Using default keymap: /system/usr/keychars/ qwerty.kcm.bin D/dalvikvm( 501): GC freed 281 objects / 16824 bytes in 154ms *** NLauncher starts I/ActivityManager( 51): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.needham.NLauncher/.SubLauncher } I/ActivityManager( 51): Start proc com.needham.NLauncher for activity
[android-developers] EditText input into array
I have an input box (EditText1) 1. that i want to keep adding values and save them to an Array 2. then when am done, i can click the done button and it can take me to the next screen and I can display the values or call the values of the array.. this is what i have so far 1. Done Button Works 2. Add more button and storing to array doesn't quite workHELP PLZ, Thanks public class Screen2 extends Activity { private EditText txt1; String ag; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.screen2); // edittext1 or textview1 txt1 = (EditText) findViewById(R.id.editText1); ag = txt1.getText().toString(); // done button // -done button--- Button done = (Button) findViewById(R.id.button2); done.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { if(txt1.getText().length() != 0){ String ag = Players:, +txt1.getText().toString(); Toast.makeText(getBaseContext(), ag, Toast.LENGTH_SHORT).show(); Intent myIntent = new Intent(view.getContext(), Screen3.class); startActivityForResult(myIntent, 0); }else if (txt1.getText().length() == 0){ String ag = Error!! Enter Player Name; Toast.makeText(getBaseContext(), ag, Toast.LENGTH_SHORT).show(); }} }); //add more items button need help on how to go about the array Button more = (Button) findViewById(R.id.button1); more.setOnClickListener(new View.OnClickListener() { public void onClick(View view){ Intent myIntent = new Intent(view.getContext(), Screen2.class); startActivityForResult(myIntent, 0); } }); }} -- 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] split the string in three parts...
I am trying to split the below string into three parts String _books = |||###Chapter 01###ONE###INDEX 1|||###Chapter 02###TWO###INDEX 2|||###Chapter 03###THREE###INDEX 3|||; so the above code should print like this: chapter: chapter 01 title: ONE page: INDEX 1 chapter: chapter 02 title: TWO page: INDEX 2 . . for(String book: _books.split(|||)) { String[] parts = book.split(###); System.out.println(chapter: + parts[0]); System.out.println(title: + parts[1]); System.out.println(page: + parts[2]); } -- 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] Losing memory on tablet but not phone
The following eats away the heap on the Toshiba Thrive but not on the LG G2X: byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); I've tried byteBuf.clear, byteBuf.reset, making byteBuf static, System.gc, and combinations of these, but nothing works. I wonder why this is only a problem on the Toshiba but not the LG? -- 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] Re: Two listview
hi.. Ok now i understood you have only one xml file. and this file contains some sub category values. first you are collect the main category values and display that values in listview. when the user clicks the list item this will open another activity and has to show the sub category values of that particular clicked list value. i think this is your need.. i have the solution for this... public class XMLSourseLoader { Document doc; public HashMapObject,Object main = new HashMapObject, Object(); public XMLSourseLoader(String filename) { try { File fXmlFile = new File(filename); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); doc = dBuilder.parse(fXmlFile); doc.getDocumentElement().normalize(); NodeList nList = doc.getElementsByTagName(maincatagory); System.out.println(nList.getLength()); for(int i=0;inList.getLength();i++) { Element e1 = (Element)nList.item(i); System.out.println(getTagValue(title, e1)); NodeList node1 = e1.getElementsByTagName(subcatagory); //this is the sub category map HashMapObject,Object catagory = new HashMapObject, Object(); for(int j=0;jnode1.getLength();j++) { Element e2 = (Element)node1.item(j); System.out.println( +getTagValue(subtitle, e2)); catagory.put(getTagValue(subtitle, e2), books); } main.put(getTagValue(title, e1), catagory); } } catch(Exception e) { System.out.println(e.toString()); } } public HashMapObject,Object getMainMap() { return(main); } public String getTagValue(String sTag, Element eElement){ NodeList nlList= eElement.getElementsByTagName(sTag).item(0).getChildNodes(); Node nValue = nlList.item(0); return nValue.getNodeValue(); } } the model xml file is main maincatagory title/title subcatagory subtitle/subtitle /subcatagory subcatagory subtitle/subtitle /subcatagory /maincatagory /main i just store the HashMap object inside the HashMap. it is pretty easy. i hope this will help you... if you have any clarification let me know let me know this helps you or not. have a happy coding On Feb 27, 12:20 pm, hazem omies hazem.om...@gmail.com wrote: Many thanks kalandar , yes , as you mentioned at first the,,, second listview in another activity that related to first see my xml : music item id.../id title./title Description.. /Description a1. /a1 duration../duration duration2/duration2 thumb_url../thumb_url shortcodeZ/shortcodeZ commandZ/commandZ /music that when click in item in the first listview the go to aother listview ,,,how i can make this listview ? thanks,,, On Mon, Feb 27, 2012 at 8:45 AM, kalandar kasimk...@gmail.com wrote: hi hazim omies. I understood your code. But still i didn't understand what is your need. If you want to pass the clicked HashMap value to another activity means you can use this code Intent in = new Intent(getApplicationContext(), SingleMenuItemActivity.class); in.putExtra(mapvalue, map ); map is the object name of your HashMap. or else you want to create another listview in the same activity means let me know the xml values. better explain your need clearly... regards kalandar On Feb 25, 6:09 am, hazem omies hazem.om...@gmail.com wrote: hi kalandar , i make the first listview using HashMap but i cant make the seconed list because i need to pass value from one list to another related to one ,,,plz see my code below package test.packag; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import aljamal.packag.R; import aljamal.packag.XMLParser; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView;
[android-developers] Home screen Widget moves during android boot process.
Home screen Widget moves during android boot process. My application home screen widget moves during android boot up process. How does the Android Framework handles? Is there any way to fix the issue? -- 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] beginner
hai Android devolepers... am Vishnu... am doing my academic project on Android... am a beginner on Android.. my project is devoleping a mobile banking app... hence my question is that which database can i devolep this app... and how can i connect the database and the app... please sent me your suggestions on vishnubbala...@gmail.com please help me... with regards vishnu -- 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] Re: Add to recent application list
No i am not modifying adwlauncher . We are updating the default android launcher. In which table should i insert the intent ? Actually my activity(call it LaunchActivity) is not the main activity of the application . The requirement is whenever LaunchActivity is started it should be appended to the recent list which is shown on long click of home button. Help will be appreciated ! thanks On Feb 27, 4:24 pm, moktarul anam mokta...@gmail.com wrote: oke,. in onclick method save intent in to database and i think u also know this.. Actually i want to see which launcher r u modifying ? is is adwlauncher ? give me reply then i will send u complete code Enjoy Moktarul On Feb 27, 9:06 am,elhamelhamna...@gmail.com wrote: Yes i am working on launcher application On Feb 24, 2:49 pm, moktarul anam mokta...@gmail.com wrote: R u working on launcher application ( adwLauncher)? Moktarul On Feb 24, 11:24 am,elhamelhamna...@gmail.com wrote: Dear All, I have a requirement to add a activity into therecentapplist. Is it anyway possible to add new RunningTaskInfo obj into thelist. I know there are no api's to do it directly but could anyone suggest any other approach to hack thelist. Kindly let me know .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] Re: JavaMail API
Hi members, I have done a sample application for sending mail from android using the JavaMail API using Gmail authentication and it is working fine,but in this application i need to hardcore my user name and password then only it is working.Is there any other way to do without hardcore? -- 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] beginner
Vishnu, Better than posting a mail in this group, A simple google sear will give you more results. Android uses SQL Lite database and connectivity do a google search .. Thanks On Tue, Feb 28, 2012 at 10:38 AM, RIT-MCA-2009 vishnubbala...@gmail.comwrote: hai Android devolepers... am Vishnu... am doing my academic project on Android... am a beginner on Android.. my project is devoleping a mobile banking app... hence my question is that which database can i devolep this app... and how can i connect the database and the app... please sent me your suggestions on vishnubbala...@gmail.com please help me... with regards vishnu -- 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 -- 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] Re: Add to recent application list
see i will suggest ... create new table and insert there. Moktarul On Feb 28, 10:09 am, elham elhamna...@gmail.com wrote: No i am not modifying adwlauncher . We are updating the default android launcher. In which table should i insert the intent ? Actually my activity(call it LaunchActivity) is not the main activity of the application . The requirement is whenever LaunchActivity is started it should be appended to the recent list which is shown on long click of home button. Help will be appreciated ! thanks On Feb 27, 4:24 pm, moktarul anam mokta...@gmail.com wrote: oke,. in onclick method save intent in to database and i think u also know this.. Actually i want to see which launcher r u modifying ? is is adwlauncher ? give me reply then i will send u complete code Enjoy Moktarul On Feb 27, 9:06 am,elhamelhamna...@gmail.com wrote: Yes i am working on launcher application On Feb 24, 2:49 pm, moktarul anam mokta...@gmail.com wrote: R u working on launcher application ( adwLauncher)? Moktarul On Feb 24, 11:24 am,elhamelhamna...@gmail.com wrote: Dear All, I have a requirement to add a activity into therecentapplist. Is it anyway possible to add new RunningTaskInfo obj into thelist. I know there are no api's to do it directly but could anyone suggest any other approach to hack thelist. Kindly let me know .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
Re: [android-developers] switching views
Hi...you have to try TabHost it is a better option for show multiple activities in one screen or as your requirementall the best -- 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] Re: sqlite database storage data
Narendra sir guide well ...it should be like that ...why are u not applying that. -- 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] Polarize effect in realtime
Someone know if is possible to apply polarize effect in realtime on the camera? -- 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 Communcating two projects data...... and I want my apk file that set my other apk settings.
As such i want to communicate i have one apk to other I develop one apk that configure other and other is my main application so i want to that if setting is done in Seeting of the main menu. Thkx for help.. in adance. -- 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] regarding tabhost
Hello, Please anyone have complete tabhost code so that i can develop my application with the help of that. I don't know how to identify which tab is clicked and hoe to set the click event on it. so please help me please send me complete code -- 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