Re: [android-developers] Being able to touch two buttons at once
If the version on which you are working on supports multi-touch, then.. http://developer.android.com/reference/android/view/ScaleGestureDetector.html(2.2 and up) Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Feb 16, 2011 at 4:44 AM, brian purgert brianpurge...@gmail.comwrote: So i have a view with two buttons in it set up in the xml, and in the java code what is an onclick listner and the other uses an ontouch listner. So they are both very simple, i want the player to be able to use both of the buttons at the same time with out having to lift a finger. So what's an easy way i can do this. I just want something simple because i wont be using swipe or anything like that. Also they both can just be on touch i don't really care. -- 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] Screen rotation clears TextView
Check if the text view has a id. Normally, the framework would save all the basic values such as TextViews and Edittexts after orientation change. But it looks like you haven't specified the value of the TextView in one of the orientations. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Feb 15, 2011 at 4:45 AM, d_a_parker parker.davi...@gmail.comwrote: Hello, For some reason, I have one Activity in my app which does not behave like the rest and seems to reset when the screen is rotated. I have this specified for all Activities in the manifest: android:configChanges=orientation None of the other Activities in my app have any problems when the device is rotated, they just change orientation and do not refresh. The Activity I'm having problems with has three sections contained in a LineraLayout: a TextView for the title, a TextView which acts as a console to display output from commands, and an EditText which is the command input box. Each time a command is run, its output is appended to the contents of the console TextView. However, when the device is rotated, the Activity resets and that TextView gets cleared. Does anyone know what the problem might be? Any way to make sure this Activity does not reset on rotation? I read the Handling Runtime Changes section of the SDK documentation, but neither onConfigurationChange() nor onRetainNonConfigurationInstance() seemed to solve the problem. Any help would be appreciated. Thanks! Dave -- 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: App with usb connectivity
Bumping this message, as I too would be very interested in this... On Feb 13, 10:16 am, neohacker arunscari...@gmail.com wrote: Hi all, I'm in the middle of an android app that need to check whether the device is connected to another system or pendrive through usb and if it is connected i need to send a copy of my database file through usb port. This sis for backing up my database. I have no idea how to prompt for usb connections. I searched the net. But no results!.Can anyone please help. Because i'm stuck here at my project. Thanks in advance. -- 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] Activities and Intents
On Tue, Feb 15, 2011 at 2:31 PM, DanielleM dmurkerso...@gmail.com wrote: I'm using an intent flag FLAG_ACTIVITY_CLEAR_TOP so that a child activity can be placed on top of the parent activity without covering up my tab navigation. You may want to explain this. I'm not sure what you mean by this and I'm thinking you may not actually want the functionality CLEAR_TOP offers. - 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] Patch available for Horizontal scrolling in Grid view ?
Guys, Is there any patch available for Horizontal scrolling in Grid view ? Please revert me with some suggestions. -- D -- 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 find name of all weekdays with their date
Indeed something like the code above, but with a different pattern for SimpleDateFormat: // for something like 'monday 14-feb-2011' new SimpleDateFormat(* d-MMM-*); -- 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: It's not the browser?
Hey DanH, good pt for the case of old data. But I am not getting any data at all and it is very curious as to why not. In summary: The client script running on the native browser (or Dolphin) makes call to a remote web service (REST or SOAP). On the server side I can see the call coming in, the service gets executed and the results are sent back to the client. But the browser never displays those results back in the client script. If I execute the same script on firefox on a laptop this works fine. Unfortunately I don't think there's a network analyzer app (Wireshark and the like) that I know off that can help see what comes in. So either the native browser implementation is expecting more than what a standard browser does (more bits, different http headers) or I am hitting security layers that don't allow the responses to reach the script. On Feb 15, 1:37 pm, DanH danhi...@ieee.org wrote: Are you getting old data, or no data at all? If old data it may be that a cache somewhere along the way (could be in the phone or in a router somewhere) is just sending the old data in response to the URL. The way to circumvent this, of course, is to generate a new URL for each interaction. On Feb 13, 12:18 am, kypriakos demet...@ece.neu.edu wrote: Hi all, I have tried a number of other browsers (Dolphin, Opera Mini, Opera Mobile) and although the last two falsely advertise that they implement cross-origin resource sharing solutions, Dolphin seems to work exactly the same as the native browser - it sends out the Ajax request to the remote web server, the web server executes the service call but the result does not get posted by the browser. This may indicate that it is a NOT a browser issue I am facing with but rather and Android OS-lever issue (http layers??) where for some reason the responses are not allowed to reach the browser. Would this be a correct assessment? From what I understand, Android OS does not implement a personal firewall correct? What else would be causing this disconnect? I will greatly appreciate any hints on this. 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: How earn money from android app free
There is no real answer on that. What someone else earns from their apk has nothing to do with what you can earn. Read more related articles. E.g. read about how much Angry bird is earning and why. On Feb 15, 3:57 pm, Nguyen Nghi nguyennghih...@gmail.com wrote: I had read a article about making money from android app. Model 1:http://www.androidguys.com/2009/09/14/40bizmodels/ so How much does the value of x%, y% , z% ? and I am a android developer come from Vietnam, Can I earn money from paid andoird? Thanks so much. -- 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] Do you know any open source game or media player on android phone?
Thank you very much. That's exactly the one I am looking for. On Thu, Feb 10, 2011 at 10:14 PM, Kevin Duffey andjar...@gmail.com wrote: Replica Island? That's a pretty decent game that you can view the source of I believe. On Thu, Feb 10, 2011 at 8:07 PM, xlshe dianyuangua...@gmail.com wrote: Hi all, Do you know any open source game or media player applications on android phone? Would you please tell me some if you know? Thank you very much. Best regards, Longsheng Xia -- 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 -- 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] Do you know any open source game or media player on android phone?
Thank you very much. That's exactly the one I am looking for. On Fri, Feb 11, 2011 at 4:51 AM, kavitha b kkavith...@gmail.com wrote: Media Player open source project is NPR.It is pretty good for streaming. On Fri, Feb 11, 2011 at 9:44 AM, Kevin Duffey andjar...@gmail.com wrote: Replica Island? That's a pretty decent game that you can view the source of I believe. On Thu, Feb 10, 2011 at 8:07 PM, xlshe dianyuangua...@gmail.com wrote: Hi all, Do you know any open source game or media player applications on android phone? Would you please tell me some if you know? Thank you very much. Best regards, Longsheng Xia -- 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 -- 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] session management in android
Hi everybody, Someone please provide some information (some links)about how to handle session management in android. -- 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] tcp dump of android phone through wifi..please help
hi, i want to study tcp dump for a school project.i have phone connected through wifi of my laptop(i used connectify on win7 as adhoc connections are not recognised by android phones,and i did not feel like rooting and then transfer it to laptop for analysing each time ). so i am using windump to get tcpdump.tried using the command windump -i 4 net ip address of device given by server but nothing happened and i got no packets ..am i using some wrong command???please help ..what should i do thanks so much -- 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] http://developer.android.com/resources/articles/timed-ui-updates.html Correction
http://developer.android.com/resources/articles/timed-ui-updates.html It worked for me OnClickListener mStartListener = new OnClickListener() { public void onClick(View v) { if (mStartTime == 0L) { //Change this line: mStartTime = System.currentTimeMillis(); mHandler.removeCallbacks(mUpdateTimeTask); mHandler.postDelayed(mUpdateTimeTask, 100); } Instead use mStartTime=SystemClock.uptimeMillis(); -- 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] Beta tester wanted for OCR application
Hi all, My Small OCR application is ready to be beta tested. For now it can (hopefully correctly) recognize and dial phone numbers in dark letters against light backgrounds. It utulises open source OCR library: http://sourceforge.net/projects/javaocr/ Signed APK can be downloaded from: http://www.pribluda.de/android/ocrcall/ I'm interested in reports from various devices and android versions. Please include ADB logs filtered by ocrcall in problem reports thaks, -- 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: Camera preview Api
Hi, My application is working just small mistake leads to error , In manifest file I gave permission inside another permission like below uses-permission android:name=android.permission.SEND_SMS uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / /uses-permission I closed permission for SMS after WRITE_EXTERNAL_STORAGE Thanks for your reply On Feb 16, 12:09 am, Mike C mchaber...@biometricgroup.com wrote: Jayanthi, I'm not exactly sure why you would get that error, but check these two things: (1) Declare in AndroidManifest.xml that your app uses the WRITE_EXTERNAL_STORAGE permission (2) Check that your SD card is mounted on the device when you try to write the file; for example, if your device is connected to your computer via USB when you're running the app, you can't have the SD card mounted on the device and on your computer at the same time. So if you're able to see your SD card as an external drive on your computer, then that means it's not mounted on the device. Read up athttp://developer.android.com/guide/topics/data/data-storage.html#file... Also, when you ask a question on the forum, it's wise to copy and paste the complete stack trace in your message. You can use adb -d logcat to see log messages while USB-debugging. Seehttp://developer.android.com/guide/developing/tools/adb.html -Mike C On Feb 15, 4:10 am, Jayanthi jaia...@gmail.com wrote: Hi, I am trying to save images in sd card which is taken from camera in emulator, the following is the code to save images in sd card path = String.format(/sdcard/%d.jpg, System.currentTimeMillis()); outStream = new FileOutputStream(String.format(/sdcard/%d.jpg, System.currentTimeMillis())); Log.e(TAG,b4 writing ); outStream.write(data); Log.e(TAG,after writing ); outStream.close(); But I get error that no file or directory . Can anyone tell me where i did mistake 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: Out of memory error While loading lot of images from sdcard ?
Hi, http://developer.android.com/reference/android/graphics/Bitmap.html#recycle() Regards On Feb 15, 5:32 pm, canny cann...@gmail.com wrote: Hi all, In my application , I have to display a large image using number of small images ( like gogle map tiling of views) . Exactly i need to draw all thes bitmaps on canvas at every time am loading images that r visible screen i.e while am scrolling updating new set of images . But some times getting a problem like out of memory error. Can any one tell me how to accomplish my task i.e i have to google map kind of view which has to scrolled horizontally and vertically and it has to be zoomed too. So please can any one help me to resolve this . Thanking u ? Thanks, 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] which path will system load a JNI library from
Hi, In my app, I'm using System.loadLibrary() to load my JNI library. It should load library from /data/data/myapp/lib/. Then I add a invocation of System.getenv(LD_LIBRARY_PATH), and found that this system env is /system/lib/. Does that means that system will load library from /system/lib/ first? I think it is TRUE for a system app, not my app. I'm confused. -- 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