Re: [android-developers] Could anyone tell me how to add an item dynamically to the gridview
Sandeep, follow the process - 1. Read WS (as JSON or xml format) 2. extract info from that 3. store into DB 4. create services 5. on DB change, read the total item 6. update no of item at code (getItem) 7. add 1 by 1 item to gridItem 8. update your gridvirew On Fri, Jun 29, 2012 at 11:26 AM, Sandeep Venkat sand...@believecreative.in wrote: Hi TREKING I created my own db in Mysql consisting of some images and retrived in JSON format with the help of php..I've given my url path in the url connection.. -- 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 Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- 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] Could anyone tell me how to add an item dynamically to the gridview
Thank you Rakesh -- 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] Could anyone tell me how to add an item dynamically to the gridview
how you are adding items if you use Sqlite you can add dynamically data to the gridview On Fri, Jun 29, 2012 at 11:38 AM, Sandeep Venkat sand...@believecreative.in wrote: Thank you Rakesh -- 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] Could anyone tell me how to add an item dynamically to the gridview
Basically, grid is nothing but a kind of list. you can fetch sqlite data thr cursor and update your list. On Fri, Jun 29, 2012 at 11:47 AM, Dinesh kumar dragonfir...@gmail.comwrote: how you are adding items if you use Sqlite you can add dynamically data to the gridview On Fri, Jun 29, 2012 at 11:38 AM, Sandeep Venkat sand...@believecreative.in wrote: Thank you Rakesh -- 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- 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 we store a downloaded image in a filesystem of android
How to store a image that is downloaded into a particular filesystem in my app -- ThanksRegards *Sandeep MNVVB* * * -- 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: Edit contact programmed sync
can anyone help me ? On Thu, Jun 28, 2012 at 12:26 PM, Live Happy livehap...@gmail.com wrote: i used android:supportsUploading=true in the sync contacts adapter to can edit the of contact my application account type but it only show first and last name in the 2.3 so is possible to make the other filed appear and in the ics i cant edit anything so is there another way to can edit the sync contact in the ice cream sandwish version wish someone can help -- 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 can we store a downloaded image in a filesystem of android
you can store in sd card. On Fri, Jun 29, 2012 at 11:52 AM, Sandeep Venkat sand...@believecreative.in wrote: How to store a image that is downloaded into a particular filesystem in my app -- ThanksRegards *Sandeep MNVVB* * * -- 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] Renderscript Deprecated
The latest reference documentation for Renderscript shows half of the API now being deprecated. It appears to be directed toward the graphics functionality. I just built an entire 3D rendering engine on this API and am concerned that it is deprecated so soon after being released. What is it being replaced with?! The developer guides and release notes don't say anything about this change. The graphics section was removed from the developer guide, which now only describes the compute functionality. I only see it in the reference docs. http://developer.android.com/reference/android/renderscript/package-summary.html Thanks, Jason -- 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] floating window with actionbar
Hi, I'm trying to place an activity in a floating window, with an action bar. Something similar to this: http://dl.dropbox.com/u/168185/floating-action-bar.jpg If I set the theme of my activity to Holo.Light.Dialog, getActionBar() returns null. If I create my own theme, inherit from Holo.Light, and the only change I make is to set windowIsFloating to true, the app crashes when accessing the action bar, with: java.lang.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layout E/AndroidRuntime( 9266): at com.android.internal.app.ActionBarImpl.init(ActionBarImpl.java:159) E/AndroidRuntime( 9266): at com.android.internal.app.ActionBarImpl.init(ActionBarImpl.java:137) E/AndroidRuntime( 9266): at android.app.Activity.initActionBar(Activity.java:1822) E/AndroidRuntime( 9266): at android.app.Activity.getActionBar(Activity.java:1803) E/AndroidRuntime( 9266): at com.litl.TestFloating.FloatingActivity.onCreate(FloatingActivity.java:12) E/AndroidRuntime( 9266): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime( 9266): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/AndroidRuntime( 9266): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919) I've created a test case at https://github.com/jobi/android-test-code/tree/master/TestFloating 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] Why no repositories for upgrade?
Hello, sorry for my english. I would like wirte something about, new versions in Android. Who use Linux/Debian or other distributions, know that, you can use comand like: apt-get update apt-get upgrade apt-get dist-upgrade, and, magic, the operative system, up to version. What do you think about Android can have repositories and you can upgrade version? 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: setSpeakerphoneOn with AudioTrack
I have used the following permission to solve this issue: uses-permission android:name=android.permission.WAKE_LOCK/ uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS / i invoked the am.setSpeakerphoneOn() in following manner if (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) { am.setSpeakerphoneOn(true); } Hope it will help you. On Tuesday, July 5, 2011 8:58:36 PM UTC+5:30, Sarbyn wrote: Hi! I have a class that play a stream from internet, using an AudioTrack. I want to route the audio to the speakerPhone, using: AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); am.setSpeakerphoneOn(aActive); But the permission user-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS/ , in my manifest, doesn't work. LogCat says that 07-05 16:20:11.749 1324 1328 W AudioService: Audio Settings Permission Denial: setSpeakerphoneOn() from pid=5724, uid=10092 Any idea? -- 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't fetch xml files from google
I've downloaded SDK call $ android sdk and it can't fetch xml files I got this errors: Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-6.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refused Done loading packages. I try to open that file in the browser bug got Connection Timeout I found this on stackoverflow: http://stackoverflow.com/questions/8910359/failed-to-fetch-url-http-dl-ssl-google-com-android-repository-addons-list-1-xm but this have nothing to do with Java, it's server problem. How Can I install SDK then, Is it temporary, location based or what? Will I be able to install it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Indic language support in Jelly Bean
Hi, http://developer.android.com/about/versions/jelly-bean.html says 3 more indic languages added in Jelly Bean. Other types of new language support include: - Additional Indic languages: Kannada, Telugu, and Malayalam But looking at 4.1 SDK and exploring fonts in /system/fonts of emulator, I don't see any Malayalam font. Please see the screenshot of available fonts from DDMS/File Explorer https://plus.google.com/u/0/107112618359517885031/posts/gcgSjvyrC9q. I also tested it by creating a sample app with Malayalam content and Malayalam Unicode characters are not getting displayed. Can someone explain why the font is missing in 4.1 emulator. Thanks, Jeesmon -- 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 own map for application on android
Now I'm developing an application Map of University on Android. I use google map api The problem is that I found on the Google Map does not show the buildings. And routing services. The University has a total area of only there's a way to solve these problem,however. Sample or not. how to create geo, the building and routing services in the university Map Picture http://imgur.com/a/anoAx/rearrange I mean about polygon and polyline. Thank you For answer -- 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] cannot find my app in the file system
Im currently in the process of byuilding an app with phonegap on android. I Prepared a spoof app with tests of some functionnalities i wanted to try before starting to develop fully. I built my app and signed it so i may install it on my phone with the apk. The problem is , my app works fine but i cant find the file system of the app in any of the devices i tested the app on. I wanted to retrieve the SQLite database or a file i created but i cant because i cant find the filesystem of the app in the device. Is there anyway other than rooting the device to see my app in the phone filesystem when plugged with usb? Or is there any way i can retrieve easily the databases my app created on the phone? my devices dont have SDCARDS and doesnt support SDCARDS either and i definitely cannot root the 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 SharedPreferences saving state
Hello, quick question, Im begginer so don't mock if is stupid one.I understand that using shared preferences I save state of some variables inside app, So if I understand right, I can save some variable type lets say boolean inside one activity to be true, and call it by name in other activity and use it for condition or something, it will give me most up to date value??? Just asking to see if I understod it right? -- 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] App opens with nfc-tag only?
How can I make an andriod app only works if the mobile touches the nfc tag not otherwise ? -- 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] ContentValues issue
First, as a long-time Java developer I'm now learning Android. I have an app in which I use the ContentValues class to supply data to a Class that extends ContentProvider. Here's the issue. I'm 'put'ing 5 values (from a layout) into the ContentValues class. The problem - not all values are getting assigned. All values are of type String and they are valid values. Here is my code: int numColumns = 5; ContentValues newRideValues = new ContentValues(numColumns); newRideValues.put(KEY_RIDEDATE, rideDate); newRideValues.put(KEY_DURATION, rideDuration.getText().toString()); newRideValues.put(KEY_WEATHER, weather.getText().toString()); newRideValues.put(KEY_DISTANCE, distance.getText().toString()); newRideValues.put(KEY_EXERCISE_TYPE, radioExerciseButton.toString()); rideDate never gets assigned and the other values seem to not be assigned in order ie; distance may end up being the second element, when I would have expected rideDate to be the first and distance to be the fourth. This is how I use the newRideValues collection. new BikingLogsContentProvider().insert(CONTENT_URI, newRideValues); Any ideas and suggestions would be very welcome. -- 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] onSearchRequested gives null pointer exception when called from an OnItemClickListener's onItemClick member function
Hi all. This is driving me nuts. I setup search in my application and it works great if you hit the search button on the device or if I call onSearchRequested() from the onStart method of my activity. But I have a listview that has a onItemClickListener that implements the onItemClick listener. If I call onSearchRequested() from there, I get a NullPointerException. I have tried using a handler to send a message and for the handler to execute the onSearchRequested(), but I get the same error. the code is up over at stack overflow too: http://stackoverflow.com/questions/11247880/calling-search-dialog-from-onitemclicklistener Thanks, -James -- 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] Broadcast receiver starts a new thread, do I need to kill it?
Every 30 seconds my broadcast receiver starts a service thread like this: Thread t = new Thread(){ @Override public void run(){ Intent intent = new Intent(context, AlarmService.class); context.startService(intent); } }; t.start(); Is this thread killed after 10 secs along with the broadcast receiver or do I need to kill it manually? -- 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] Unlocking bootloader Xperia Ray under Linux, bootloader unlocking allowed: yes
Hi! By accident I hit enter without putting the key: ./fastboot -i 0x0fce oem unlock 0x Now I get the message Failed when I try to unlock with the key supplied by Sony: # ./fastboot -i 0x0fce oem unlock 0x28318E0F640EBE00 ... (bootloader) Unlock phone requested FAILED (remote: oem unlock failed!) finished. total time: 0.003s How can I get out of that mess and unlock the bootloader after that mistake? Rgs, jl -- 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: onMeasure() endless loop with Theme.Dialog
use eclipse to set breakpoint at ViewRoot.scheduleTraversals(), you can find which action will result the infinitely onMeasure. Good luck! On Friday, June 10, 2011 11:37:40 PM UTC+8, michael wrote: Hi, I'm trying to write a custom component that should scale as follows: - some preferred size (e.g. 30) if wrap_content is specified - fill parent if fill_parent is specified - exact size if some size is specified. To do so, I have tried to override the onMeasure() method accordingly (slightly adapted from http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/), as shown in the code below. This seems to work fine as long as I put the component into a LinearLayout of a normal activity. However, once I change the theme of the acitivty to dialog (android:theme=@android:style/Theme.Dialog) in the manifest, my onMeasure() method seems to be called infinitely, i.e. the Log.d() output (see code) fills up my logcat. The component is drawn correctly, though. Can somebody tell me, how I can fix this behavior, such that onMeasure is called only once (or twice or so), even when putting it into an activity with dialog theme? Thanks, Michael - Code: @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { Log.d(TAG, Width spec: + MeasureSpec.toString(widthMeasureSpec)); Log.d(TAG, Height spec: + MeasureSpec.toString(heightMeasureSpec)); int widthMode = MeasureSpec.getMode(widthMeasureSpec); int widthSize = MeasureSpec.getSize(widthMeasureSpec); int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); int chosenWidth = chooseDimension(widthMode, widthSize); int chosenHeight = chooseDimension(heightMode, heightSize); setMeasuredDimension(chosenWidth, chosenHeight); } private int chooseDimension(int mode, int size) { if (mode == MeasureSpec.AT_MOST || mode == MeasureSpec.EXACTLY) { return size; } else { // (mode == MeasureSpec.UNSPECIFIED) return getPreferredSize(); } } // in case there is no size specified private int getPreferredSize() { return 30; } -- 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: Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml and Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml
I have the same problem and I notice that this don't work on my system but work on my hosting account $ wget https://dl-ssl.google.com/android/repository/addons_list-1.xml I check this command (on GNU/Linux) $ host dl-ssl.google.com it show 4 servers (their IP) and I add one to /etc/hosts (on Windows there are the same file, I don't remember where) and It work. W dniu sobota, 10 grudnia 2011 23:16:54 UTC+1 użytkownik Piyush Dixit napisał: Hi, I am trying to run Android SDK Manager since past one week but getting same issue every time I tried both http and https but it is same. Please find the error details I am getting mentioned below: Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: Connection to https://dl-ssl.google.com refused Done loading packages. Please suggest what shall I do. There is nothing on the trouble shooting website of yours. Regards, Piyush -- 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 load offline maps in android
I am using the Droyd SDK to develop a navigation android app but I can't seem to load the maps that I downloaded. Any help pls. :) http://www.droyd.org/installation/ --- This is the link of the installation -- 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] adb connection over USB to Android Tablet ( Host App)
Hi, I am developing an android App in 4.0.3 and want to use the tablet as a host to a MSP430 MCU. I am having trouble talking to my tablet, which is a Camel Digital CM-M703 MID. I am not sure if this is a problem with OEM USB Driver or my Windows 7 problem. I am wanting to test my app using adb.exe over wifi to communication of the tablet to MCU. however, when I plug my tablet into my pc and run adb devices i do not pick up any devices connected. is this a OEM USB driver 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
[android-developers] Re: Localization of large amount of resources, updates and design
If you want the user downloading only one language, you have to handle that yourself i.e. the apk downloads the language it needs post- install from some servers somewhere onto external storage. For some critera (e.g. SDK supported) you can upload different APKs to Market and Market gives the user the relevant APK, but I don't think language is a possible criteria, would be happy to be corrected. The other question is, when you have large application, and you detect a bug, fix it and then republish it, what does user get as an application update, whole .apk or only classes thet are changed? Currently the whole apk. I notice in JellyBean (newest Android version) they're starting with incremental updates however. Pent -- 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: emulator won't run with -gpu on
Hi, On Monday, May 28, 2012 10:04:31 AM UTC+2, Android007 wrote: Hi, When I try to run the emulator with hardware acceleration (on Ubuntu 10.04), the emulator gets stuck and I receive this message: Failed to create Context 0x3005 destroyOpenGLSubwindow not implemented for separate renderer process !!! [...] What do I need to do in order to test applications with hardware acceleration on (if I want to use the emulator)? To use GPU acceleration, you need a ...GPU. You must have a working opengl driver loaded. If opengl is already installed, I bet you are using a 64 bits Linux, so you need to install the 32 bits driver also, because the emulator is a 32 bits program. @see http://code.google.com/p/android/issues/detail?id=28565 http://www.andengine.org/forums/gles2/no-eglconfig-found-t6129-40.html Hope it helps. -- 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 SDK won't install, says can't find Java
I've installed the Java 6 JDK but it can't see it for some reason. I've added an environment variable called JAVA_HOME that points to the Java root directory and I've tried pointing to java.exe. I've added Java to the PATH variable as well. None of this works. Is there an SDK download that doesn't involve using this installer? -- 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] Merge Contact
Friends, My app is like that I want to merge one contact to other contact .its possible if yes then any idea about 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] Re: PNG loading that doesn't premultiply alpha?
The ByteArray solution sounds good, it could easily wrapped into a Buffer an handed over to glTexImage2d(). A disadvantage of the ByteArray would be that you have to build an Image out of it again, if you want to rescale (often needed to ensure textures are power of two). Flipping is also often needed for OpenGL (horizontal and vertcial) but shouldn't be a problem with either a byte array nor an Image. Another big issue similar to alpha-premultiply is that 32Bit ARGB Images are changed to 16Bit after scaling (especially if all alpha values are 255), without some dirty tricks. This is a big issue to, it's far away from the precission needed for good normal mapping. By the way combining greyscale-images into RGBA images, including the alpha channel isn't such a good solution, when it comes to texture compression with etc1, which doesn't support alpha. But in some cases like a normalmap in rgb and height in the alpha-component, it makes absolutly sence, because compression couldn't be done (precision loss) and a parallax shader needs 2 texture-lookups instead of one per iteration if the height isn't combined into normals. And parallax mapping on todays android-hardware isn't a problem, it would be disappointing if the SDK is the handicap for doing such things. Am Mittwoch, 20. Juni 2012 22:42:06 UTC+2 schrieb Romain Guy (Google): Bitmap and BitmapFactory work only with premultiplied alpha values. We know it is annoying in some cases for GL developers and we've started thinking of various solutions. I don't think we want to add support for non-premultiplied bitmaps, which means we would either have a new method in BitmapFactory that returns images as non-premultiplied byte arrays or offer new APIs in GLUtils to let you upload resources directly into non-premultiplied textures. I'd be happy to hear your suggestions on the topic of course. On Wed, Jun 20, 2012 at 1:25 PM, arberg arb...@gmail.com wrote: On Behalf of Marcus Mengs (mame8282): I'm using textures of combined grayscale images, for example a normal map with normal in RGB-components and height in A-component. So the described issue is a big problem for me. I've treid several fixes including yours or rewriting the createScaledBitmap() Method (to prevent premultiplying while scaling) etc. I coulld finally solve the problem. I no more rely on BitmapFactory- methods, instead I'm decoding the PNG myself. A good example how to do this, is the PNGDecoder.java from the LWJGL-backend of libgdx. It runs on Android with nearly no change needed. http://code.google.com/p/libgdx/source/browse/trunk/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/PNGDecoder.java?r=845 With BitmapFactory it's nearly impossible to do this, because if you follow the source of decodeStream(), you'll get to a native method and thus to SKIA, which hard-coded the alpha-premultiply in the correspondending method. Marcus On Thursday, 12 August 2010 14:09:54 UTC+2, arberg wrote: I just realized the Bitmap-class behaviour is screwed. If I use the following method for decoding the bitmap then I get alpha- premultiplied pixels when calling Bitmap.getPixels: InputStream is = context.getResources().openRawResource(texture.resource); try { bitmap = BitmapFactory.decodeStream(is, null, sBitmapOptions); } finally { is.close(); } If I use bitmap = BitmapFactory.decodeResource(context.getResources(), texture.resource, sBitmapOptions); then as mentioned Bitmap.getPixels returns non alpha-premultiplied pixel values. Another difference between these two decode-methods is that the latter (in my experience) throws out-of-memory exceptions more frequently than the former, so either the BitmapFactory.decodeResource-method uses more memory, or it uses more memory when used in conjunction with my manual texImage2D loading algorithm. Of cause nothing is mentioned in the Android javadoc for Bitmap. Alex On Aug 12, 10:50 am, arberg arb...@gmail.com wrote: Regarding the big-endian comment in the code, I meant little-endian. If we use IntBuffer to write ABGR ints to ByteBuffer on a little- endian-phone we get byte order we RGBA. However the same code running on a big-endian phone should produce ABGR byte order, which is not whatopenglexpects. So don't use intbuffer. The following should also work, and allocates less memory, but I don't quite trust it since I don't have a big-endian phone, and since I cannot test it on a big-endian emulator: private static final boolean IS_LITTLE_ENDIAN = (ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN); private void myTexImage2D(GL10 gl, Bitmap bitmap) { // Don't loading using GLUtils, load using gl-method directly
[android-developers] Playback Speed
Hi all I want to write an app that adjusts the playback speed of mp3s. Many applications are already doing it, but which classes do they use? I have tried SoundPool and AudioTrack, but to no avail. SoundPool only buffers for a very short amount of time, while AudioTrack doesnt support mp3s. Any suggestions? -- 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] SystemClock.elapsedRealtime() drifts by up to ~1 second when the phone is in sleep mode
I am writing an app that relies on precise clock synchronization between devices. I can sync up the clocks using NTP with good precision, and they stay in sync as long as the phones are plugged in. However, if either phone becomes disconnected from power and goes through a few sleep/wake cycles (e.g. by pressing the power button or letting it time out), the clocks will be out of sync by 0.3 - 0.7 seconds, whereas I need millisecond precision. My understanding was that *S*ystemClock.elapsedRealtime() should be immune to sleep / deep sleep states. What might be going on, and is it possible to fix this behavior? In my test code, I simply have a loop inside a thread that constantly looks at elapsedRealtime and updates UI if necessary. My test devices are HTC Hero with CM7 / Gingerbread, and Nexus S 4G with ICS.* --l * -- 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] Battery usage per app
Hi, Anything new about this? Its been alsmost a year since this post On Monday, September 26, 2011 10:33:15 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Sun, Sep 25, 2011 at 1:41 AM, vaibhav agrawal agrvaib...@gmail.com wrote: Is there any way in which I can get the detail that how much battery a particular app is using? There are no documented and supported APIs for this, sorry. I wish there were. -- 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
[android-developers] help needed regarding styling and theme
hi all, first time drop by here and has been in android about few montn from now i'm been facing seriously problem on custom styling and theme on android. 1. alertdialog required extend class in order get color and design i wanted but the button could not custom especially when on pressed it use system highlight color. how it could be the sdk lock the dialog styling? 2. most of form widgets can be custom but time and date does not provide enough custom yet it use system color again when press if anyone willing share complete custom theme for app use it i'm very appreciate it. mean without a system color... i'm struggle to complete my app for company use because facing stylling issues and could not work it out as simple as ios can do. i'm not the game programmer which could draw and layout and design without using default widget. -- 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 share the audio played on android device to multiple audio devices
I am planning to implement a simple application that will share the current audio being played on android device, to be played on another android device. It will be a great help if anyone can tell me how to copy the audio out buffer so that I can share same audio track that is running on the first Android device. Please reply to me with all your suggestions and implementation details -- 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] Give me your suggestions !
Dear All, I am novice in Android Development field and i would like to seek solutions to following errors. I was able to run the android project before, but after importing few projects following errors prompts up, please provide me your valuable suggestions: *[2012-06-26 16:51:25 - SplashScreen] Re-installation failed due to different application signatures. [2012-06-26 16:51:25 - SplashScreen] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2012-06-26 16:51:25 - SplashScreen] Please execute 'adb uninstall Ksy.wang.Directory' in a shell. [2012-06-26 16:51:25 - SplashScreen] Launch canceled!* many many 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
[android-developers] Google Cloud Message can't parse intent
Hi! I am trying to create project using Google Cloud Messaging (not C2DM - it's deprecated). I use this code from demo app to get message text in onMessage method: String data = intent.getExtras().getString(GCM_EXTRA_MESSAGE); And I get null. Message even doesn't has message extra. What's wrong? 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] Someone stole my sound effects
Sorry if this isn't the right spot. I have an app on the market place (currently #1) it is a collection of bird sounds. About half of them are mine and half are public domain. There's a new app on the market that is in 3rd place. The guy basically took my apk file and took the sounds out and put them in his. I don't care about the public domain sounds, but the others I spent a while creating. This isn't big time, but it is annoying. I was under the impression that the work becomes copyright when it is created, but I have no proof that I made any of them except that my app has been up since Feb. and his just came up this month. Can I do anything? I thought about filling out the google trademark form but I have no proof except my app is older. Anyone have experience with this? or should I just forget about it. I'm looking for a way to prevent him from stealing any new sounds I create, but I am still new to app creation/programming. 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 ICS VpnService
Hi, I have been trying to use VpnService new feature in android ICS. I got it working, but I use to think that there must be a remote server for the VPN, and that the mobile application have to route all traffic to that remote server and get the responses back. This complicates the design a lot. Recently, I found some applications that use VpnService, but without using a remote server. These applications can even establish the VPN with no internet connectivity at all. I really need to get this thing happening, but I have no idea how to forward the traffic to the Internet. I tried to find any hints or examples, but in vain. Any help? Regards, Kareem -- 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] doubt in accessing database in /data folder
hi i want to develop an app for synchronizing notes between an android app in my android mobile and my PC. I want this app to be accessible for other android users also. I am using android 2.3.6 and my mobile is samsung galaxy ace. The IDE is eclipse and OS is windows 7. i have rooted my phone. When i try to access the database of this app which is stored in /data/data/app_package_name/databases/app_database_name, I get an error Could not create or open database. I don't understand why this is happening. I am able to access the same database from adb shell in command prompt but when i want to access via eclipse it doesn't seem to work. Also, I am not able to see the list of sub-folders of /data folder in the file explorer of eclipse. I even changed the access rights of /data/ folder and the relevant sub folders but..alas..my phone crashed after that! So after recovering my data, I changed the access rights of only the app_database to read-only. Any help would be greatly appreciated! Regards Kruthika -- 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] Not able to connect to REST service from application in device
Hi, We are creating an Android App which receives data from REST service. When we run app in emulator it works fine but when I run/debug it on device, it gives error Connection Refused. Please tell me how can I consume REST service from application running on device. -Sunil -- 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] AppWidgetHostView in gridview. Posible?
Hi! A have a problem. I need to inflate view (AppWidgetHostView) into my gridview by adapter. I have error addView(View, LayoutParams) is not supported in AdapterView when i try to add view. Anybody know somthing? -- 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] Battery usage per app
No. The way this is done is very complicated, using an ever-evolving set of measurements of various operations applications are doing and computing them against a device-specific power profile to construct the UI. This is only intended to provide rough estimates as shown in the UI, this is not a facility for applications to use. On Thu, Jun 21, 2012 at 10:20 PM, kapex kapua...@gmail.com wrote: Hi, Anything new about this? Its been alsmost a year since this post On Monday, September 26, 2011 10:33:15 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Sun, Sep 25, 2011 at 1:41 AM, vaibhav agrawal agrvaib...@gmail.com wrote: Is there any way in which I can get the detail that how much battery a particular app is using? There are no documented and supported APIs for this, sorry. I wish there were. -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 SharedPreferences saving state
SharedPreferences is for persisting state to storage. If you just want to shared data between activities, it may not be the best choice. If you don't need to persist stuff to storage, you shouldn't be doing that. On Mon, Jun 25, 2012 at 3:15 AM, djedjica jelenka1...@gmail.com wrote: Hello, quick question, Im begginer so don't mock if is stupid one.I understand that using shared preferences I save state of some variables inside app, So if I understand right, I can save some variable type lets say boolean inside one activity to be true, and call it by name in other activity and use it for condition or something, it will give me most up to date value??? Just asking to see if I understod it right? -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 camera preview data while MediaRecorder is recording video
I have an app that does some processing to camera preview frames before displaying them to the user. I'm currently using preview callbacks to access the image data, but the problem I have is that the onPreviewFrame() function stops getting called if you start recording video using a MediaRecorder, and I want the processing to continue when video is being recorded. I've tried doing the following: public static Bitmap convertViewToBitmap(View view) { Bitmap bitmap = Bitmap.createBitmap(view.getWidth(),view.getHeight(), Bitmap.Config.ARGB_); view.draw(new Canvas(bitmap)); return bitmap; } to convert the preview surface to a bitmap, but when I pass the preview SurfaceView to the function it returns an all-black bitmap (it works when I test it on normal views though). Is there any other way I can access the image data if preview callbacks are not available? Any buffer or bitmap somewhere that I can read? -- 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] ADK support/adding adk support for tablet
Hi, I'm java programmer and I also like Arduino. So I devised an application that will do for Arduino ADK. Unfortunately, nothing from the beginning does not work. Demokit written in 2011 uses a different library, so I modified it according to the documentation. Unfortunately that did not work after uploading to Android tablet demokit (ICS) to connect ADK freezes. Android Accessory does not work, MICROBRIDGE communication / adb is working. Can I add the missing tablet ADK support? ADK seems to be no longer without support :( -- 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] Fortumo ANE
Hello, I've developed an Adobe Native Extension that allows you to include Fortumo (billing system) in your application (on Android), it's here: https://github.com/jrouwe/FortumoANE Let me know if it is of any use to you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Enabling accessibility in a WebView
I would like to get the answer too.. -- 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: WCF web service- use in android
Hello, I am working for the wcf webservice access. But have one more issue regarding Serialization. Can any one help me for this issue I will share our code with you On Monday, 11 June 2012 14:13:41 UTC+5:30, shashi asanka wrote: Please give me Sample code for access WCF web service from android client ... and good ksoap2 jar files I'm fedup with 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] Restore an phone /efs data to an emulator
Short story, my phone got stolen, and cops asked me if I had noted the IMEI. I don't, but I got an backup of the /efs folder using this : http://forum.xda-developers.com/showthread.php?t=1138873 My first tough would be to try to push back the file to an emulator, but it gave me an read-only error. Could I have help on finding back what's my IMEI? -- 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] Purchase App Source Code
Hi, I purchased app source code from a developer changed a phew things and published my app. 5 days later my account got suspended. The email stated previous account violations. I'm thinking this dev may have been suspended previously. Can anyone give some insight on what could have happened? Best Regards Mitchell -- 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] Heyzap ANE
Hello, I've developed an Adobe Native Extension that allows you to include Heyzap in your application (on iOS/Android), it's here: https://github.com/jrouwe/HeyzapANE Let me know if it is of any use to you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Questions on implementing a scripting language in an Android game project
Hi there At first my problem: I'm developing a game engine and at the moment I'm working on a particle system. The implementation uses a particle object , with an update method which is called in every logic loop per particle. It's possible to load values like the emitter color etc. from a dataset or file or whatever. But when it comes to the update I'm doing things like newParticleColor = noise3d(particlePosition) or newParticleColor = startColor * (1-particleAge) So the system is flexible as long as I write a new class with an own update method, for every particleSystem I want. But I don't want to do so, especially I don't want to loose the flexibility of providing new particle systems after compile time. Thus I'm searching for a way to provide logic components as assets. First I searched for a way to compile code at runtime from a file which could be provided as a resource or asset. This seems nearly impossible. In the second place I thought about embedded scripting, which seems to be a proven way to do program logic (also game logic) without recompiling code and shipping again. Now my questions: 1) Could a scripting language give the performance to do the logic of the particle-update method which is called about 50 times per sec for about 3000-6000 shown particles (30 times per second). 2) Are there languages which compile the scripts to bytecode for Dalvik (DEX, not for Desktop JVM) 3) It seems Android Scripting Engine is build for another scenario (writing code into the interpreter and call Android SDK methods via RPC with JSON), but could components be utilized for my scenario. 4) From my first search LUA seems to be the best solution for things like this one (even it could be to slow for my particle updates, ingame-scripting could be used for many things like AI). Has anybody used it 5) -- 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] use the android MediaController in xml layout
Im on the computer for few hours, searching for this answer on android developers, google, youtube and every other source. I tried to search on this site but I got nothin. when I go to the main.xml file and add MediaController to the layout, I have only these options: MediaController android:id=@+id/mediaController1 android:layout_width=wrap_content android:layout_height=wrap_content / there is no value to put the sound path in it all the tutorials show how to do it in the code and not the xml, and I learned xml is better m I missing somethin? I already have a sound in the project folders. Eclipse, android API level 3, fedora linux 16 sorry about my bad english -- 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 SMS notification for teachers and students
Hello everyone, I'm looking for someone in this forum who can help me developing an android application, it's basically a system where students and teachers will exchange SMS, but both the teachers and students have different view of the system. Students, will have to register, then enroll to a specific subject at school in order to start receiving SMS specifically from that teacher(from the subject they enrolled to). Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Eclipse USB and Linux
After a LOT of Googling I am not finding any answers to this question I have, so hopefully someone here has forged this path and can enlighten me? I have set up Eclipse to develop for Android and gotten some success with using a couple of the Android simulators. (Most don't seem to work out of the box BTW) Anywise I now would like to use a real Android device (I have an ASUS pad to play with, will be getting an Android phone shortly though I dunno yet which one) and understand I can do so using a USB connection. I presume (correct me if I am wrong!) I must use a peer to peer (also called a host to host or crossover) USB cable with Type A connectors on each end? (at least for the pad, dunno what sort of connector the phone will have...) Looking around I found several companies selling crossover cables but all I can find are supported with Windows drivers. From what I can grok, it appears that one must have a special driver in order to have a protocol that will allow communication to take place between two hosts making each appear as a device to the other, hence the need for a special driver. Trouble is, I am developing under Linux (openSuSE12.1 to be exact) so before I go and order one of these cables I would like to know if A) Does Linux/Eclipse support these cables out of the box? B) If not, can someone recommend a cable the is supported under Linux/Eclipse? C) If so, I would still appreciate recommendations on what cables others have had a good experience with Marc.. -- 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] runtime compilation of dalvik bytecode
I'm writing a game engine including a particle system. Every particle uses an update function ones per per logic cycle, to update it's state (position,color etc.) To keep it flexible,a own update function should be provided for every particle system,but I don't want to implement a own class for every possible system configuration. It's important for me that a new possible system could be provided after compilation, including a new update function. Thus runtime code compilation is needed. A first naive approach using luajava was far to slow for a method called about 5k times per frame. I need a way to compile to Dalvik bytecode at runtime. Has anybody done sth like this, it seems impossible without the javac class? A scripting language supporting compilation to Dalvik DEX code would also help. -- 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] Problems while transfering photshop design on Android layout
I have a photoshop design, which has 1280x800 resolution which I'd like to transfer in Android application. I've created a layout file and added a couple of images that I'd cut previously. After that I tested it on Samsung Galaxy tab which also has 1280x800 resolution. I can't understand why those images look smaller than on my photoshop design layout - the resolutions are equal. 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 tab, not supporting usb dongle
We have purchase one android 2.3 tablet pc from china. As per product description it support 3G usb modem. We tried all mobile companies modem available in india. When we insert the modem the screen displays searching, but nott supporting. Please set right the 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
[android-developers] getLoaderManager().initLoader() doesn't accept 'this' as argument though the class (ListFragment) implements LoaderManager.LoaderCallbacksCursor
I'm having trouble following a guide( http://www.vogella.com/articles/AndroidSQLite/article.html) on using SQLite in Android. I'm using a ListFragment instead of a ListActivity(as in the example), so I have the ListFragment implement LoaderManager.LoaderCallbacksCursor instead. Then, in the fillData() method in the ListFragment: private void fillData() { // Fields from the database (projection) // Must include the _id column for the adapter to work String[] from = new String[] { NotesSQLiteHelper.COLUMN_TITLE }; // Fields on the UI to which we map int[] to = new int[] { R.id.label }; getLoaderManager().initLoader(0, null, this); //error adapter = new SimpleCursorAdapter(getApplicationContext(), R.layout.notes_row, null, from, to, 0); setListAdapter(adapter); } I get the error: The method initLoader(int, Bundle, LoaderManager.LoaderCallbacksD) in the type LoaderManager is not applicable for the arguments (int, null, NotesActivity.ArrayListFragment) on the marked line even though this implements LoaderManager.LoaderCallbacksCursor. Thank you for any ideas. -- 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] Google Cloud Messaging (GCM) issues.
We are in the final stages of developing an app that had utilized C2DM for push notification, and decided to swap over to the new GCM since we hadn't released yet and it seemed like a good idea. However, this is proving to be a giant headache. We have the JSON and headers formatting correctly and we get back a valid response, but the failed count is always 1 and the error message is UNAVAILABLE. The documentation says to just try again, but this has proved pointless as it always returns the same result. I have seen several posts on stackoverflow and other sites that list a similar problem. Has anyone been able to get the new GCM stuff working? We are using a php backend to handle the push notifications. We are using the standard CURL library, and as far as I can tell the JSON is valid, and works as we do get a result. Prior to swapping out the old message attribute with the new data attribute it would fail to return any result, so I am pretty confident we have it right. Any thoughts would be 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] Separate design based on resolution. Android 2.3
I'm implementing an application which must support multiple screens and provide devices with different layout designs. My task claims that layout design separation must be based on device resolution: for those devices with 1024x800 resolution use design a and for = 1024x800 - design b. I need to say that a and b differ not only in structure(listviews vs. gridviews) but also in resources they incorporate such as images. For instance, splash screens look completely different. I've been looking into multiple screens guidehttp://developer.android.com/guide/practices/screens_support.htmland, indeed, it says that a developer shouldn't base separation of design on resolution, but what if I have to ? At first, I was hoping that size-based separation is the same as resolution but it seems that it's not: there're handsets with high resolution and tablets with low. At this point I can only figure out resolution and use a layout for either of those designs. In each of those layouts I'd like to make references to appropriate design elements(images) like this: /main_480x800.xml ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/IMAGE_480x800 / /main_HIGH_480x800.xml ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/IMAGE_480x800 / I hope there's a better way of implementing it - please, give me your suggestions. Best regards, Dmitriy F. midnight@gmail.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] Need help - hidden GPS monitoring app
Hello, I am rather new to Android, and I need some information and opinions. I intend to develop an application which would run on some Android phone, seeminglessly in the background, and send periodic messages to a server, regarding its current position (GPS coordinates). The most important aspect here would be that: - the application is intented to be preinstalled on a bunch of phones, before they will be used by a specific group of people. - the user must not be able to stop/kill the application without some kind of password - the user must not be able tu turn off his GPRS/3G internet connection. I am aware that there are some security restrictions for developing such an app, but still my question is wether or not it would be possible to do it. I assume that if not, the next best thing would be to customize the Android OS with these changes, and deploy it on the set of phones :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
[android-developers] Re: android in-app billing sandbox
You have the static responses only to test in a sandbox environment. Once that is working you can test with real payments only. Honestly I don't see (m)any reasons why to complain about this setup. -Ali -- 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: Purchase App Source Code
What kind of app was it ? On Friday, June 29, 2012 12:07:13 AM UTC+2, Mitchell wrote: Hi, I purchased app source code from a developer changed a phew things and published my app. 5 days later my account got suspended. The email stated previous account violations. I'm thinking this dev may have been suspended previously. Can anyone give some insight on what could have happened? Best Regards Mitchell -- 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] Edit application sync adapter contact
i used android:supportsUploading=true in the sync contacts adapter to can edit the of contact my application account type but it only show first and last name in the 2.3 so is possible to make the other filed appear and in the ics i cant edit anything so is there another way to can edit the sync contact in the ice cream sandwich version and i find this method to create my own activity to can add contact to my sync contact activity android:name=.uractivity intent-filter action android:name=android.intent.action.INSERT / category android:name=android.intent.category.DEFAULT / data android:mimeType=vnd.android.cursor.dir/contact/ /intent-filter /activity and try to do same with edit contact by use this action android:name=android.intent.action.EDIT / but it didn't work so can anyone help me with a way to catch the intent of edit contact to edit the contact in my edit activity wish someone can help -- 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: may i declare uses-permission in the AndroidManifest.xml of the test project?
I think you need to add this permission in app mainfest. On Monday, June 25, 2012 2:55:42 PM UTC+5:30, tiger meng wrote: hi all, i created an Android project and a test project. my test cases want to access network, e.g. upload test log to my log server. my app doesn't access network, however. uses-permission android:name=android.permission.INTERNET / so where shall i declare above uses-permission ? in application's manifest or in test project's manifest? according to my test, i works only when i put it in application manifest. when i put it in test project, i got permission denial security exception... what shall i do? -- 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] Is it possible to see the display of my android device in a PC?
Hi, I want to stream the display output of my Android device to my PC. I Know that we can capture screenshots but I want to stream the live video of my device in my PC. Is it possible? (Viewing the output at the original resolution) Thanks a lot 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
[android-developers] How to change Bluetooth Visibility timeout to always discoverable for ICS?
Can anyone help me? I need know how to programmatically set the Bluetooth visibility timeout to always discoverable for android devices running ICS. I'm using the the snippet of code that you can find on the android dev sit for Bluetooth. When the code runs the enabling discoverability dialog will say always discoverable but discoverability will still timeout. One thing of note, if I manually change the Bluetooth visibility timeout to Never time out things work as expected. But I can't expect a user to manually make this change for my software to work. Any help would be 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] 'Roll your own' view layout for activity - best approach?
I am new to Android, but not to software development. This could be considered a beginner level question, but it is a bit involved, so I didn't put it on stack overflow. I've written a test app, testing out all the technologies I need to use in my first real app, found out basically how Android works and so on, all seems fine. However, the real app has a rather complex layout in one activity: it will need to have 2 text areas, 22 buttons of varying sizes and a graphic area - never mind why! The topography of all this and size of the various elements will have to be determined depending on the X/Y size of the display are, whether it is portrait or landscape, and so on. I cannot find an already existing ViewGroup type that will allow me to define all this sufficiently well in a layout, so I conclude it will have to be done by code at the point the activity finds out how much space it has to play with. I am in a quandary about how to achieve this. One way would be to just define one view, filling the entire available area, and then in its size setting override, calculate everything, working out rectangular areas for all elements and just handle everything in the one view. I know this would work OK as that is what is done in the Windows platform it is being ported from. However, I cannot help feeling it would be more modular and rather neater if it was done with 2 TextViews, 22 Buttons and 1 special purpose view I'll create myself. What I cannot figure out is how to go about this latter approach. I can create all the views in the activity's onCreate(), but then what do I do with them? How do I find out how much screen real estate is there? I can find out about the full screen, but do I necessarily get all of it? It seems not given the 3.0 replacement for the menu button. Am I right in thinking that actually the way I have to do this is create my own derivation of ViewGroup, and then get that to do all the laying out of the elements? Comments appreciated. (I really do need those elements on the screen, so suggestions that I might want to rethink the whole app, what it does and how it does it are unnecessary). -- 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] Im getting this error - the application has stopped unexpectedly .. Please help me.
Here is my code: when i click the button it says the error message .. package test.TOE; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class TOEActivity extends Activity { /** Called when the activity is first created. */ Button start; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.table); start = (Button) findViewById(R.id.button1); start.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(v.getContext(), Table.class); startActivityForResult(intent, 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] What is the actual problem in RTSP streaming in Android Emulator?
Hi All, Everyone knows that if we try to play RTSP video streams in emulator, we will get a result *Sorry, this video cannot be played* What is the in-depth reason that it is not able to play. And i found in some threads that it could be because of the following reasons: *1) The media framework does support RTSP with RTP payloads. The OpenCore code includes an RTSP/RTP client built on sockets that will handle buffering and transport controls.* Now a days the android is using *Stagefright *framework. Even this one also has the same limitation like OpenCore as it is mentioned above *2) It does not work in the emulator environment due to some firewall issues in the emulator network layer. * * * * *Is the above statement true? * 3) It has some decoding and Rendering issues in emulator* * * * ** *Is the above statement true? The above statements are not convincing one. It would be grateful if i get the in-depth reasons. Can anyone of you guys tell me the exact reason why android emulator is not capable of playing streaming videos especially via RTSP? Thanks in advance... -Madhu * * -- 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] FAILED Binder Transaction !
Hi , I am also facing same problem while launching the new game application after downloaded from Google Play. Following logs are displayed :: 6[ 463.271731] c1 binder: 1977:2001 transaction failed 29189, size 116-4 6[ 463.384665] c0 binder: 6532:6544 transaction failed 29189, size 200-0 Please help. -- 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] Is there any way of providing a prebuilt database within an app?
We are building an app which contains a list or translations. Currently, on first run, we have to build the database from an XML source file, which contains our words to watch for and the appropriate translation word. This building of the database is starting to take quite a while as our list of words increases in size. The question is this: Is there a way that we can create a Database file containing our words, during development and then use that database within the app, rather than having to build the database on first launch? Thanks for any pointers! -- 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: Locale for Spanish missing?
what about FILIPINO DIALECT ? do you how to get into 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] Samsung Galaxy 3 - USB Debuging
Hello, I post because i have a really important issue. I work on an application and I want to test it on my phone (a Samsung Galaxy 3). I've installed the Samsung's driver. But my computer does'nt detect the phone. I work with Windows XP. I try a lot of solutions from the web ans I'm looking for solution, please. 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: Need help - hidden GPS monitoring app
I don't think it can be done! Terry kl. 12:03:08 UTC+2 onsdag 27. juni 2012 skrev Mihai Popescu følgende: Hello, I am rather new to Android, and I need some information and opinions. I intend to develop an application which would run on some Android phone, seeminglessly in the background, and send periodic messages to a server, regarding its current position (GPS coordinates). The most important aspect here would be that: - the application is intented to be preinstalled on a bunch of phones, before they will be used by a specific group of people. - the user must not be able to stop/kill the application without some kind of password - the user must not be able tu turn off his GPRS/3G internet connection. I am aware that there are some security restrictions for developing such an app, but still my question is wether or not it would be possible to do it. I assume that if not, the next best thing would be to customize the Android OS with these changes, and deploy it on the set of phones :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
[android-developers] Using BroadcastReceiver to listen for an intent and suppress/silence the intent dialog.
I am new to all of this, but I am doing the best I can. Okay so, basically I want to do the following: 1. User taps on a url in say the sms app they are using. 2. The URL intent comes up 3. My activity or service or something is listening and then can know if the URL intent was called. 4. Not super necessary, but I am curious, could at this stage you simulate a back button or something once you know an intent has been called? Effectively killing or dismissing the intent dialog back to the screen that called it? Some similar functionality to what I am talking about takes place with https://play.google.com/store/apps/details?id=com.carrotapp.protectpronewhl=en if a user taps an app, it intercepts that app opening and asks the user for a password. Could you basically make this same application, but for intents instead of specific apps? If it isn't possible with just a normal app, are there any other workarounds maybe with having the launcher replaced first and doing it through that somehow? -- 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: path to internal storage memory of phone
could u send some sample code On Tuesday, June 19, 2012 3:31:46 PM UTC+5:30, shruti gupta wrote: Hi, I am developing an app in which some data is stored in a file in internal storage of phone, i now want to acess the data in some c program whose binary is loaded in phone. please tell me how to access the file stored in the internal storage. Thanks Shruti -- 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] Do professional Android games almost entirely rely on the Canvas element?
Hi there, I am currently in the stage of designing an Android application (more specifically, a game). I was wondering, out of interest, whether most/all professional Android games use Canvas for all drawing of on-screen elements, and just accept input through 'onTouchEvent' on the main game panel? If so, is this also true for all of the menus? For my game, I've just been using Canvas and onTouchEvent, but it recently occurred to me that there is a smorgasbord of different pre-built buttons (and similar) that could help with things like menus. Many thanks, Will. -- 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: ListView inside a tabhost not displaying content initially
I had the exact same setup in my app (multiple tabs using the same ListView and had the same issue as you observed). My initial work-around was to quickly switch the tab to 1 and then back to 0 but, the way my app handled tab changes, this has some nasty side-effects. What I ended up doing instead is toggling the visibility of the ListView in onStart(): mListView.setVisibility(View.GONE); mListView.setVisibility(View.VISIBLE); and that took care of my problem. Good luck, bob -- 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] Multiple checkbox in on row from listview
Hi, Here i am trying to add three check box in one cell through listview, but its made many problems.kindly help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] problm on spinners
how to connect 2 spinners together. Meaning, the items inside 2nd spinner will depend on whatever item is chosen for the 1st spinner -- 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] Customize suggestions in android keybord
Hi, I am using android ICS. Android shows contacts in the suggestions area of keyboard. I am writing an application in which for a given EditText these contact name values make no sence, for example text field for part names of an vehicle here I will provide list of such part names then the suggestions will be displayed there. If you could provide some example it would help. Thanks in advance. ~Nilesh -- 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] Battery usage per app
Probably this is already known but you can use powertutor app (available for some devices) or build your own from powertutor.org to get details of power consumed per app. It also provides hardware component level breakdown of each app. :-) Sent from my iPad On 29-Jun-2012, at 12:53 PM, Dianne Hackborn hack...@android.com wrote: No. The way this is done is very complicated, using an ever-evolving set of measurements of various operations applications are doing and computing them against a device-specific power profile to construct the UI. This is only intended to provide rough estimates as shown in the UI, this is not a facility for applications to use. On Thu, Jun 21, 2012 at 10:20 PM, kapex kapua...@gmail.com wrote: Hi, Anything new about this? Its been alsmost a year since this post On Monday, September 26, 2011 10:33:15 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Sun, Sep 25, 2011 at 1:41 AM, vaibhav agrawal agrvaib...@gmail.com wrote: Is there any way in which I can get the detail that how much battery a particular app is using? There are no documented and supported APIs for this, sorry. I wish there were. -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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] problm on spinners
On Fri, Jun 29, 2012 at 1:51 PM, Ina Gupta ina.mc...@gmail.com wrote: how to connect 2 spinners together. Meaning, the items inside 2nd spinner will depend on whatever item is chosen for the 1st spinner Have you tried it before asking? If yes, what problem are you facing in that? Just use *onItemSelected()* of first spinner, and then inside it, set the items in second spinner. If you expect some better answer, please clarify your 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
[android-developers] Code to send mail not working
Button b2=(Button)findViewById(R.id.btnmail); b1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(Intent.ACTION_SENDTO); Uri uri = Uri.parse(mailto:priya.mehta...@gmail.com;); intent.setData(uri); intent.putExtra(subject, my subject); intent.putExtra(body, my message); startActivity(intent); } }); -- 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] Share to unlock functions
Hi, So I have an idea for making my app more popular. It's a free app, but some functions are not available by default. To unlock them, you would have to type in a key. You can get this key by sharing a link to the app's Google Play page and as soon as 5 friends of you have clicked on it, you receive the unique key via email. So, my main concern is, whether this strategy is allowed for apps at Google Play? -- 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 with google calender
Hi, im looking to create an app that would display a calender synced with google calender so that it will display new entry's on the phone and also able to change/add dates from the phone side.. is this possible? if so know any guides etc? 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] Impressora Bluetooth
Bom dia, Estou tentando desenvolver um app para se conectar com uma impressora via Bluetooth e que imprima um EditText. Só estou começando agora na area de desenvolvimento e gostaria de alguma dicas ou sites para eu estar dando uma olhada, pelo menos pra começar. Att. Ícaro Oliveira. -- 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] Where do I register?
I'm new to this and trying to find out where to register to publish products to google play. I didn't see any on the google play website when I clicked on developer. Also I am planning on utilizing unity 3d engine to create a game, but I am curious about tutorials utilizing the SDK's for android and java which I have already downloaded. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I set Fragment Id?
I'm developing an Android 3.1 Tablet application which uses * android.support.v4.view.ViewPager* and *android.support.v4.app.Fragment*. I have two classes which extends fragment. These classes are added to a ViewPager. This works fine, but when I try to get a specific fragment with * getSupportFragmentManager().findFragmentById();* I don't know which id to use. *This is my fragment adapter*: public class FillEReportFragmentPagerAdapter extends FragmentPagerAdapter { public FillEReportFragmentPagerAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int index) { Log.v(FillEReportFragmentPagerAdapter, getItem: + index); switch (index) { case 0: return FactoryInfoFragment.newInstance(); case 1: return ItemsFragment.newInstance(); default: return null; } //return fragments[index]; } @Override public int getCount() { return 2; } @Override public Object instantiateItem(ViewGroup container, int position) { Log.v(FillEReportFragmentPagerAdapter, instantiateItem: + position); int id = 0; switch (position) { case 0: id = R.id.frag_general_info_factory; case 1: id = R.id.frag_general_info_items; } container.setId(id); return super.instantiateItem(container, position); } } Where do I have to set an Id to each fragment? As you can see, I set an Id on instantiateItem(ViewGroup container, int position) but it doesn't work. If you need more details, please tell me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SQLite custom file
Hello! Is there a way to put a custom made sqlite file in the assets folder and simply open it without having to copy it on another database? 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
[android-developers] send message
how can i send message in the background without any notification to 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] Android + phonegap: cannot access soap webservice
Android Crew, Although this problem has to do with phonegap, I am posting it here because phonegap uses the native browser and so there may be a solution to my problem that is more tied to Android rather than phonegap. I have an problem with accessing a webservice using android. I have no problem accessing it using iOS. The enclosed code uses a public webservice so you can try the code if you are so inclined. On iOS we get a xmlhttp.status == 200 and returned data. On Android we get a xmlhttp.status == 0. We are using cordova-1.8.1.jar We have the white list set in res/xml/cordova.xml like this: access origin=.*/ I am bring that up because I am suspicious that our white list is not working. Here is the code: function testweather(){ var xhr= new XMLHttpRequest(); xhr.onreadystatechange = function(){ alert(xhr.readyState); if(xhr.readyState == 4){ if(xhr.status == 200){ $( #result ).append( xhr.responseText ); } else{ alert(can't get response. a.status:+xhr.status); } } } var url = http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php;; xhr.open(POST, url,true); xhr.setRequestHeader(SOAPAction, http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgenByDayLatLonList ); xhr.setRequestHeader(Content-Type, text/xml;charset=UTF-8); xhr.setRequestHeader(Content-Length, 1536); xhr.setRequestHeader(Access-Control-Allow-Origin, *); xhr.setRequestHeader(Accept, application/soap+xml, application/dime, multipart/related, text/*); xhr.setRequestHeader(User-Agent, IBM Web Services Explorer); xhr.setRequestHeader(Cache-Control, no-cache); xhr.setRequestHeader(Pragma, no-cache); xhr.setRequestHeader(Connection, close); var soapEnv = '' + 'soapenv:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; xmlns:ndf= http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl;' + ' soapenv:Header/' + ' soapenv:Body' + ' ndf:NDFDgenByDayLatLonList soapenv:encodingStyle= http://schemas.xmlsoap.org/soap/encoding/;' + ' listLatLon xsi:type=dwml:listLatLonType xmlns:dwml= http://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd;35.4,-97.6/listLatLon' + ' startDate xsi:type=xsd:date2012-06-27/startDate' + ' numDays xsi:type=xsd:integer3/numDays' + ' Unit xsi:type=dwml:unitType xmlns:dwml= http://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd;e/Unit' + ' format xsi:type=dwml:formatType xmlns:dwml= http://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd;24 hourly/format' + ' /ndf:NDFDgenByDayLatLonList' + ' /soapenv:Body' + '/soapenv:Envelope'; xhr.send( soapEnv ); } -- 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 solve 'ClassNotFoundException' on 'BackupAgent'??
Subject: Re: [android-developers] How to solve 'ClassNotFoundException' on 'BackupAgent'?? From: har...@gmail.com Date: Mon, 25 Jun 2012 10:53:15 +0300 To: android-developers@googlegroups.com On Jun 25, 2012, at 10:07 AM, Build Account wrote: 1. when it downloaded from the app Google Play?(Google Play itself?) Most likely default application installer on the device. The same that does installation if you choose an .apk via file explorer. 2. when run debugger through Eclipse, which module save into? adb command line installer. But bear in mind that .apk produced once debugging or running your application from Eclipse is not obfuscated. Only signed or unsigned exports will be. -- 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 -- 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: How to solve 'ClassNotFoundException' on 'BackupAgent'??
Date: Mon, 25 Jun 2012 00:07:13 -0700 From: newandroi...@gmail.com To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'?? Hi. Oh, is it? understood. Then..to investigate further..here is several questions, Do you know...which module/app save an apk into '/data/app/' 1. when it downloaded from the app Google Play?(Google Play itself?) 2. when run debugger through Eclipse, which module save into? 3. Is that always overwrote prior same apk successfully? Could you share your opinion about above? On Monday, June 25, 2012 6:50:48 AM UTC+9, RichardC wrote: On Sunday, June 24, 2012 10:35:12 PM UTC+1, Build Account wrote:hi. Yes you are correct but the point of question was(which is not so clear) why OS looking for the apk in that path because of?? why not from installed/extracted binary?? The contents of of an APK are not extracted/installed. APKs are just zip files which the Android-OS can read (using ZLIB), it therefore does not need to extract or install their contents. -- 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] Way to promote android apps.
Hi All, We are fairly new to app development and see that apps get lost the moment they enter the google play market.With major players controlling the app market and its next to impossible for small/new developers like us to even get a few downloads. Admobs is one way of doing it, but its quite costly. The return are not justified. Here is the link to my app. https://play.google.com/store/apps/details?id=com.gameadu.sanelane Can anyone suggest some ways to do so? Any feedback/reviews are welcome. -- 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] Way to promote android apps.
Hi All, We are fairly new to app development and see that apps get lost the moment they enter the google play market.With major players controlling the app market and its next to impossible for small/new developers like us to even get a few downloads. Admobs is one way of doing it, but its quite costly. The return are not justified. Here is the link to my app. https://play.google.com/store/apps/details?id=com.gameadu.sanelane Can anyone suggest some ways to do so? Any feedback/reviews are welcome. -- 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: Problems with ListView scroll.
Can you post your code? On Tuesday, June 26, 2012 9:00:37 AM UTC+1, Put_tiMe wrote: I have a ListView, and a custom adapter. I have setup listeners for click, and long-click. The problem:: I can scroll, but the moment I take my finger off the screen, it scrolls back to the top of the list view. How can I fix this 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