Re: [android-developers] Re: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
You're probably using them incorrectly. You should consult with their support On Monday, November 19, 2012 8:35:44 PM UTC+2, Fran wrote: On 11/18/2012 12:56 PM, Piren wrote: It actually says it right there: 3 at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236) The user is clicking a hyperlink in a webview which is attached to the Application Context. Figure out which webview it is, set a webViewClient and override shouldOverrideUrlLoading to open the hyperlink properly. I am not sure about what to do, to be honest. There may be when the user clicks on an ad from Admob or Chartboost, the two ad networks I use, but in this case I think I couldn't do nothing since their libraries are closed. On Sunday, November 18, 2012 12:23:52 PM UTC+2, Fran wrote: Hi, I am getting many reports of crashes with this error condition: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? The problem is that the reported stack does not made reference to any line on my own code: 0 android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 1 at android.app.ContextImpl.startActivity(ContextImpl.java:618) 2 at android.content.ContextWrapper.startActivity(ContextWrapper.java:258) 3 at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236) 4 at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:331) 5 at android.os.Handler.dispatchMessage(Handler.java:99) 6 at android.os.Looper.loop(Looper.java:123) 7 at android.app.ActivityThread.main(ActivityThread.java:3652) 8 at java.lang.reflect.Method.invokeNative(Native Method) 9 at java.lang.reflect.Method.invoke(Method.java:507) 10 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 12 at dalvik.system.NativeStart.main(Native Method) So I am having real troubles to find the source of the problem. Does anyone have any idea on what methods called from my code may raise these kind of errors? TIA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
On Tue, Nov 20, 2012 at 3:33 AM, Francisco Marzoa fmmar...@gmail.com wrote: On 11/18/2012 12:56 PM, Piren wrote: It actually says it right there: 3 at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236) The user is clicking a hyperlink in a webview which is attached to the Application Context. Figure out which webview it is, set a webViewClient and override shouldOverrideUrlLoading to open the hyperlink properly. I am not sure about what to do, to be honest. There may be when the user clicks on an ad from Admob or Chartboost, the two ad networks I use, but in this case I think I couldn't do nothing since their libraries are closed. You can of course decompile and patch :) This error was quite common with one of the previous releases of the AdMob library. Upgrade to the latest version, it is fixed there. I don't know anything about Chartboost though. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Application installed from Eclipse or adb
Having the same issue - my app seems to work fine when i launch that from eclipse. I get the toast when i try to do it from the launcher. This happens with ICS and above. Works fine with GB. On Sunday, January 8, 2012 1:48:20 AM UTC+5:30, Chris White wrote: For some reason when I Run/Debug the application from eclipse the application will pull up just fine in the emulator and I can successfully connect and debug if need be. If I try to relaunch the application outside of eclipse though, I receive a Toast message that states App isn't installed when trying to launch. The application shows fine in the Apps list of the device. I thought maybe eclipse was screwing something up (hard to believe i know...), so i copied my entire bin directory to the platform-tools directory (for simplicity) and ran adb install mypackage.apk after completely uninstalling the application on the device itself first. Once again, the app gets listed in my Apps list, but when I try and execute it, I recieve The app isn't installed toast message. The only way I can get this app to run is via eclipse run/debug. Any ideas? Chris White -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ImageMagick and NDK
Same question from me 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
Re: [android-developers] BillingService.java
Thx twiggle, I also found this: http://code.google.com/p/marketbilling/issues/detail?id=14 Pretty disgraceful that they know about this but did not fix. Not to be insulting, but this would NEVER have happened with iOS. If it did, it would be fixed the same day. By my estimate, every year, hundreds of housand customers do not receive what they pay for. Bram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Text display in the bottom of emoji
Try android:layout_gravity 发件人: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] 代表 Live Happy 发送时间: 2012年11月16日 21:20 收件人: android-developers@googlegroups.com 主题: [android-developers] Text display in the bottom of emoji I display emoji in EditText using spannable, but the problem is that the text appears in the bottom of the emoji picture, not in the middle of it (see picture). So, how to make it display in the middle? Inline image 1 EditText android:id=@+id/et_tInput android:layout_width=0dip android:layout_height=match_parent android:layout_weight=1 android:inputType=textCapSentences|textMultiLine android:maxLength=2000 android:maxLines=4 android:textColor=@android:color/black android:textCursorDrawable=@drawable/black_cursor/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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=enimage001.png
[android-developers] mixing localization on app
hi toghether, i am facing a very strange problem. on my small app i support 2 languages (string.xml under /res/values and /res/values-de). on most devices (like Galaxy Nexus, Samsung S2) the app is correctly working with the correct language displayed on the main page. in htc legend or samsung ace the main page is in english and the following pages are in german. i also tested it on the testroid cloud. screenshot attached was the result. i am on the end of any ideas. i logged with Locale.getDefault().getDisplayLanguage()); the setting, and this is in de on all appliances do you have any ideas to help me big thx helmut -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: snap.jpg
[android-developers] Purchases not appearing in Merchant Account
I have an app that has been on the market for less than 1 month. I know a particular purchase has been made, but it's not showing up in my Merchant Account. The purchase was made 3 days ago. Any thoughts? Thank you 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] AppData Folder - How to recreate it
Hello, I have deleted the C:\Users\Your user name\*AppData*\Local\Android\ android-sdk deletefolder. Even when I re-install the Android SDK, it does not recreate. How can I make a complete fresh installation and have that folder back with all its contents again? As IDE I am using Sybase unwired Platform. Many 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] Seaching contact on Jelly Bean 4.1 and 4.2
Hello, I meant to complain about this for a while and now I decided it's time. When I am searching for a contact I have, contact that has more than one email address or google profile I endup getting 3-4-5 results for it. When I go to my google account and search for the same contact I don't get dups.I did find and merged all my contacts so is not data! It's actually very annoying. Let's say you have a friend and he has 3-4 email addresses yet you are looking to find his address that will make you go thru all the results one by one and see if has the address. Absolutely annoying. It can't be just me! Thanks! C Ps. I couldn't find an official issue reported on this matter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
Great, thx for making it harder for us devs (again and again) to troubleshoot problems... Ruined my afternoon but why would you care... On Sunday, July 8, 2012 9:26:47 PM UTC+2, Ievgenii Nazaruk wrote: Hi all, I've been working on an application for developers that uses DropBoxManager. The DropBoxManager requires READ_LOGS permission to be granted in order to query information from it. Today I've tested my application on newest (api 16) emulator before releasing it to Google Play. It turned out that Android now refuses to grant this permission to 3rd party applications. This is weird because I've looked through all Jelly Bean's documented changes and couldn't find anything that mentions READ_LOGS permission. So basically my questions: - Did anyone see this change documented? - Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on it (the one released to attendees of Google I/O)? And questions to someone from Android team: - Why this breaking change wasn't described in documentations like READ_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGEwas? - What should developers and testers do in order to use those handy utility applications that require READ_LOGS to be useful? Is there any way to allow READ_LOGS to 3rd party applications without making custom build (i.e. something in Developer Options that I could've missed)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SDK for Motorola Atrix Fingerprint Reader
Hello, I was wondering if anyone knows where I can find the SDK that will let me build an app that uses the fingerprint reader installed in the Motorola Atrix. It looks like Authentec stopped taking developers so a work around would be appreciated. Conversely, if someone knows of another phone with a fingerprint reader that will work that I can develop and test an app on that uses the reader that would also work. 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] How to play a recording with a path using Intent
Hi, I am a beginer in Android platform and I would like to ask you a question about intent. I have a button that when clicked, it allows a user to record his voice and it comes back to my application; at the same time the path of the recored file is saved as iSCanvas title. I would like a user to play that recording if the user press that button again. Below is my failed attempt. So I have the path of the file that the user recorded. My question is how can you start voice recording activity so that the voice recording activity plays the recording from the given path right away. Is this possible? Thank you very much, Inho Hwang private OnClickListener VoiceBtnClickListener = new OnClickListener() { public void onClick(View v) { if (iSCanvas.getTitle().equalsIgnoreCase()) { Intent recordIntent = new Intent( MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(recordIntent, REQUEST_CODE_RECORD); } else { Intent recordIntent = new Intent( MediaStore.Audio.Media.RECORD_SOUND_ACTION); recordIntent.putExtra(iSCanvas.getTitle(), true); startActivityForResult(recordIntent, REQUEST_CODE_RECORD); } } }; ActivityforResult. else if (requestCode == REQUEST_CODE_RECORD) { Uri recording = data.getData(); String recordingPath = recording.getPath(); iSCanvas.setTitle(recordingPath); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Accessing SyncResult from Activity
Hi I am new to Android and need some help!. I have a SyncAdapter, which uses the SyncResult SyncStats to pass information back to the Android SyncManager, during a sync e.g.: public void onPerformSync(final Account account, Bundle extras, String authority, final ContentProviderClient provider, final SyncResult syncResult) { ... ++syncResult.stats.numInserts;... } It would be useful to have access to these stats in my Activity so that I can display some of them to the user. How can I get access to the SyncResult SyncStats from my Activity when a sync is complete? Is there a way to do this?. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In search of Nexus 10 ADB drivers
The SDK USB driver works with both the Nexus 7 and Nexus 10. Just go to your device manager, update driver and point it to that directory. On Monday, 19 November 2012 19:37:05 UTC, JP wrote: I can't seem to find the Nexus 10 ADB drivers, assuming they are out there. - I have the SDK USB Drivers at Rev 7. (SDK Manager reports this as the latest) - I've installed the latest version of Kies And yes I've enabled USB debugging on the device, but no luck. Anybody know if the ADB drivers are out and where they are? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make my Android a GPRS server to be accessed from the Internet?
Hello.I am new android developer and i want to make a simple application to acesss byte data from one file into my webserver(www.mydomain.com/Ledstate.txt and store to a string.I want out the data to bluetooth or to usb for command my arduino board(example on off led).I want help.code for this.If i want sent my temp sensor data how i do it?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] Bluetooth Thetering
Hello all, Someone can tell me where I find something documentation about tethering over bluetooth? I searched in developer.android.com but I not found there. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
At what point will Sony do the right thing and allow the unlocking of Xperia TL, regardless of ATTs foolish stance... As an owner, I fully understand what I'll lose, what I'd gain and should be the phone owners right to do as such. just saying On Thursday, April 14, 2011 3:11:13 AM UTC-4, Carl wrote: Hi, It is now possible to unlock the boot loader for certain series of Sony Ericsson 2011 Android™ Gingerbread phones. Go to http://unlockbootloader.sonyericsson.com to get instructions and a key to unlock the boot loader. Please note that you may void the warranty of your phone if you unlock the boot loader. See your phone’s warranty statement for details. More information is available on the unlock boot loader web site. For any questions, Sony Ericsson will monitor this thread on Google groups. However, we cannot guarantee an answer for every question asked in this forum. Please remember that you are unlocking the boot loader at your own risk. Br, Carl Johansson Sony Ericsson Developer World -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: example for ResourceCursorTreeAdapter
Hi, I know it's too late... But I hope this could help someone: - Project LDReader http://code.google.com/p/ldreader/: GroupSubListActivityhttp://code.google.com/p/ldreader/source/browse/trunk/src/org/jarx/android/livedoor/reader/GroupSubListActivity.java - In history of project Google IO 2009http://code.google.com/p/googleio2009/: SessionsListActivityhttp://googleio2009.googlecode.com/svn-history/r6/trunk/googleio2009/src/com/example/googleio/SessionsListActivity.java Cheers, Lai On Wednesday, 6 August 2008 14:05:44 UTC+7, Faiz wrote: Hi Everyone, Can anyone provide me an example for ResourceCursorTreeAdapter. My requirement is to implement Expandable List VIew. On expansion of items in the list, i want to show a spinner as a child. Regards, Faiz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 lock Live Wallpaper in Landscape?
I'm really stuck on this issue and would appreciate any help very much. I have searched and tried everything I could find on this topic, and still have not been able to lock my Live Wallpaper to Landscape. An Earth map forms the basis of my wallpaper, so you can see why it needs to be oriented to fill the longest axis of the screen side to side. The wallpaper also requires a three image overlay with clipping, so I'm drawing directly to the Canvas using .drawBitmap, and setting the .clipPath. For some reason using .rotate on the Canvas is ignored. Due to the nature of the wallpaper I can only rotate after the image have been drawn. Being a live Wallpaper, I cannot use remapCoordinateSystem since it only allows one Activity for setting the wallpaper and android:screenOrientation=landscape does not work for the same reason remapCoordinateSystem does not work. I can very easily determine the current orientation, and if the natural orientation for the device is portrait (typically phones) or landscape (typically tablets) by comparing the orientation with the screen dimensions (width height rotation = 0 or 180, it's a tablet) Now all I need to do is figure a way to lock the screen in the correct orientation. Is there any other way to ensure the orientation of a Live Wallpaper will always be in Landscape mode? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 variable global in a Runnable object
Hello can I use variables or other objects instantiated externally to an object of type Runnable? 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] YouTube Android Player API
A YouTube Android Player API was 'pre-announced' at Google I/O. Anybody knows where to download this new API? 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] ASUS Tranformer Infinity, Android 4.1.1, bluetooth audio access issue
ASUS Tranformer Infinity Android 4.1.1 Kernel 3.1.10 Build number: JR003C.WW_epad-10.4.4.20-20121026 Pad EC version: PAD-EC20T-0216 When I'm using a VOIP apps(ROAMbaby by babyTEL or Bria), in a call and I m using a bluetooth audio device AudioManager - setBluetoothScoOn(true) and startBluetoothSco() I don't hear anything(speaker) and on the other end(microphone) nothing too... I keep seeing the error message until I desactivated the bluetooth option: E/nvaudio_hw(121) : cannot open pcm: cannot open device '/dev/snd/pcmC1D2p': No such file or directory E/nvaudio_hw(6669): cannot open pcm: cannot open device '/dev/snd/pcmC1D2c': No such file or directory I tryed with differents bluetooth devices, that works with other Android device (Galaxy Nexus) I have the same result: no audio, error messages. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: positioning a Toast
Hi Coren, I know this is a very late reply, however might still help others. You can set the margins like this. toast.setGravity(Gravity.TOP, 50 // x-offeset, 20 // y-offest); Regards, LL Partners On Monday, February 25, 2008 8:58:05 AM UTC, corem wrote: Hi, Is there any way to position a Toast to a specific location on the screen? I know about gravity, but it is not enough. I've tried to set margins but it doesn't work. Toast toast = Toast.makeText(MyActivity.this, Hi, Toast.LENGTH_SHORT); toast.setGravity(Gravity.TOP); toast.setMargin(50, 20); toast.show(); Any help will be appreciated. Corem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Play Problem
I want to sell android app. But Google is not supported for Merchant from Bangladesh. Any one can 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] Playing a part of the video
I have a video of duration 180 seconds. I want to play only 30 seconds of this video starting from 60th second. i.e. only a part of the video needs to be played.(Start time : 60 sec, End time: 90 sec). Can this be doable in android? I have done the same on iOS but not able to find equivalent apis on android. It looks like MediaPlayer allows us to supply only the start time (i.e. seekto()) but not allows us to set the end time or the duration of the video. Any input on this would be great help to 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] Open image folder in gallery with intent action_view
I`m trying to open a image folder in native android gallery. This is my code: File folder = new File(/sdcard/myfolder/); SCAN_PATH=Environment.getExternalStorageDirectory().toString()+/myfolder/+allFiles[0]; private void startScan() { if (conn != null) { conn.disconnect(); } conn = new MediaScannerConnection(this, this); conn.connect(); } @Override public void onMediaScannerConnected() { conn.scanFile(SCAN_PATH, image/*); } @Override public void onScanCompleted(String path, Uri uri) { try { Log.d(onScanCompleted, uri + success + conn); if (uri != null) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(uri); startActivity(intent); } } finally { conn.disconnect(); conn = null; } } Insede onScanCompleted I receve uri = content://media/external/images/media/267830 and a path not null too the problem is: when I call startActivity(intent); I receive this error: No Activity found to handle Intent android.intent.action.VIEWFailed to get type for: content://media/external/images/media/267830 (Unknown URL : content://media/external/images/media/267830) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ynt: Gallery view image zoom option in multi touch..
ragupathi how can you chive this please reply On Sunday, September 18, 2011 12:26:01 PM UTC+5:30, ragupathi ragupathi wrote: Hi, Sorry for the delay im tried your code its showing error on the getScaleX() and getScaleY() methods. If u dont any other 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
Re: [android-developers] Convert a view (layout) to a Bitmap
People deserve respect when not being nice, but if you want to attack Guy I would suggest you watch him on YouTube and as mentioned, Google him. He helps answer questions to share from his depth of knowledge, so if you factually disagree be to the point and show where he erred, without the attacks. On Nov 17, 2012 3:19 PM, Justin Buser justin.bu...@gmail.com wrote: I don't understand why I keep finding different posts by you about forcing layout passes. The View instance this person is referring would never go through a layout pass, regardless of the point at which his code was executed for several reasons, most notably because it's never even added to the display list. Additionally, even if it *was* added to the Window correctly, calling layout() would not force the layout, you would call forceLayout() for that but even that would be pointless because the View doesn't have a layout assigned to it or even have anything to layout in the first place. The truly aggravating thing however is the fact that neither the question itself, nor the *actual* answer ever have anything to do with forcing layouts. Do you understand that when other people come across invalid/irrelevant information like this and believe it (if not because you claim to be a developer then simply because they don't know any better) then it's no longer a forgivable case of simply being wrong about something. At that point you are responsible for every adverse reaction your bad information results in. Every application crash/exception thrown/hour lost/dead kitten/etc... that occurs when someone tries your solution and it doesn't work is on your head. As a human being you should feel morally obligated to not present anything as fact unless you are 100% confident that it is indeed so. At the very least you should have first hand experience as it pertains to the information you are providing and if not then test / verify it before hand. Although each individual failure in this may seem relatively insignificant, the aggregate result will ultimately have a negative impact on our evolutionary progress as a species. As far fetched as you may find this to be the vast multitude of problems that threaten our very existence are at some level caused by ignorance, as such it should not be taken lightly at *any* level. On Monday, November 17, 2008 11:20:41 AM UTC-5, Romain Guy wrote: Hi, If you do this in onCreate(), then the View didn't go through a layout pass yet, so its size is null (0 by 0 pixels.) You need to either wait for the first layout, or force the layout by calling layout() on the View. On Mon, Nov 17, 2008 at 2:34 AM, Jose Cortes jbee...@gmail.com wrote: Hello everybody. I am working with OpenGL and Android, and I was wondering if there is any way to create a Bitmap or a Drawable using a view (layout). The purpose is to use this Bitmap as Texture for an OpenGL figure. All I have untill now is: ** I create a new view from the context and the Id. View l = new View(context); l.findViewById(R.layout.main); ** I used DrawingCache...but dont know if it is well used: l.setDrawingCacheEnabled(true)**; Bitmap bmp = l.getDrawingCache(); this bmp is null... Any idea? Thanks -- Romain Guy www.curious-creature.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to put ads in live wallpapers?
I tried with different notification durations, but it didn't make any difference. People still complained about the notifications. I have now implemented ad solutions from startapp and appbrain. I am using their solutions in some of my live wallpapers. These get around 1500 downloads each day. I am only getting about 8$ from startapp and 2$ from appbrain for all of these downloads. This is far too small, I got 300% better with notification commercials. But I can't use push ads, cause they cause bad reviews and decrease the ratings. Does someone know a more effective way of monetizing live wallpapers? Please contact me about this in that case, I want to cooperate with a companies who have good solutions for this. On Sunday, November 18, 2012 12:26:09 PM UTC+1, jitendra shah wrote: what was the notification duration(or how many notification does your app pushes around in a day) you used in your wallpaper? I added 2 notification a day and 1 for every reboot of phone.It worked but still got some bad reviews... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Beginner question on layouts
So I am new to Android development and have a question on layouts. When I create my app in Eclipse I have it set up so that I can see what it would look like on a Nexus S (4 in., 480 x 800). This looks great when I open it on my Exhibit 2 4G (3.7 in., 480 x 800), however it looks terrible when I open it on the Nexus 7. The buttons are in the wrong places and things just don't look the same. I am assuming this has to do with layouts? When I create a Windows application in java I use a layout such as the border layout, grid layout, flow layout, etch... and then add it to the frame. That way no matter how big I resize the window, it always looks the same. How do you do this in Android? Also, kinda off topic, but when displaying numbers in a textbox how do you make it so that it only shows up to the hundredths place? I am starting out creating apps that deal with tips, sale prices, etch, and don't need the final calculated price to be to the 5th decimal place. Thanks in advance! Brandon Samsung Exhibit 2 4G (T-Mobile) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In-app Subscription: Purchase Token and purchase time uniqueness
I have a couple of questions regarding purchase tokens. 1) Is the purchase token supposed to be unique for each user per subscription product or just for each user? (In my tests, I have purchased two subscriptions, and both have the same purchase token. I just want to verify that this is correct behavior.)2) When the purchase state would have been changed to expired (but has instead auto-renewed), does the auto-renew change the purchase time? Thanks for the insight! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 with ActionBar
Dear developers, I have an actionbar with only one item. I want the title to be displayed and have added the withText attribute. The title however won't show up. I would also like to change the view's title in the action bar and the title of the item when I click a button. Does anyone know how to do this? Rob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In-app Subscriptions: Can users resubscribe after a refund or cancellation?
Do users retain the ability to change their minds. If they cancel their subscriptions, then are they blocked from ever being able to re-subscribe again? Or do they still get the option to undo their cancellations? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: adt-bundle-windows download from developer.android.com
Hello John, I received the same error... On searching a bit, i found that my system is a 32 bit Windows XP, and the Eclipse provided in the bundle is 64 bit (check in the eclipse.ini file, 4th line). A 32 bit option should also be provided. :) Regards, Rohan. On Friday, November 16, 2012 4:04:52 AM UTC+5:30, john brown wrote: Hello, I downloaded the Android Developer Tools (adt-bundle-windows.zip) from developer.android.com today. I followed the directions Setting Up the ADT Bundle. It was simple download and un-zip although it does take a while. When I run c:\mydir\adt-bundle-windows\eclipse\eclipse.exe, I get the following Error: c:\mydir\adt-bundle-windows\eclipse\eclipse.exe is not a valid Win32 application The computer is a Win XP. I could not find any specifications about the Eclipse version on developer.android.com. Any suggestion would be appreciated. Thanks for your 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] Reply template for Messages (SMS)
Hi All, It would be nice to have common reply templates for SMS that we recieve, for e.g. If recieve message from my friend Are you comming to my party? then i should simply select reply with template option send message with one click (in this case Yes or No). What i'm suggesting is similar to Reject call with SMS feature only for messages. the common templates can be: Yes No Ok Will do I will be late etc. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 + phonegap: cannot access soap webservice
Hi Michael Potter . Have you solved the problem you mention in your post??- I'm in the same situation and I've spent like 3 days trying to invoque a web service from phonegap and I can't find a solution. Please, comment. On Wednesday, June 27, 2012 11:22:56 AM UTC-5, Michael Potter wrote: 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
[android-developers] Re: How long does it take for published Android app to process on to Google Play?
It currently takes about 2 to 6 hours, with updates seeming to take a little bit longer. There is also sometimes a slight crossover for a while where it is possible to see your app listed by searching for your developer name but visiting the app through that pathway takes you to a Google Play content-not-found page. On Monday, August 6, 2012 7:52:09 PM UTC-5, Muhammad Saeed wrote: Also where could I find a direct link for my app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth HDP source code
Hey, I am looking for the HDP code for the source side (source - Bluetooth device, sink - mobile) Is someone know where can i find it? 10x 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] Re: Is in-app billing subsction purchaseToken persistent?
I believe that the purchaseToken persists, and it only changes its purchase state. It should not be possible to buy twice. When I have attempted a purchase request with the product id of an item already subscribed, it pops up with a message that indicates that I already own it and cannot purchase again. Another safeguard to ensure that the situation never arises anyway is to update your UI to disable controls that trigger purchase requests. I hope this info helps. On Wednesday, September 26, 2012 4:15:24 AM UTC-4, Klymentiy Haykov wrote: Will subscription purchaseToken be changed after user buys expired/canceled subscription again? Subscription is managed item, but it's possible to buy it twice, so it's behavior is not clear. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Monitor Energy
Hello everybody, I need to monitor changes in battery Android 1.5. But the instructions I found on the android site, found nothing for the 1.5. Does anyone have any information. I need to know if the phone is connected to power or not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] PhoneGap SqlLite getting around 5mb limit
I have a question regarding how to get around the 5mb limit for sqllite in phonegap. Most of the answers on Stack didn't meet my needs, so that's why I'm asking this. Basically, I'm wondering if you can split your data out into 2 databases and have double the limit -10MB. This phonegap app will be on both Android 2.3+ and IOS 5+, so we can't make any assumptions on higher device-specific limits. Also, we don't have the time to convert our code to use the SQLite Phonegap plugin, which I know would otherwise be a solution. Splitting the data into 2 DB's seems like the quick solution, but I'm not sure if the embedded browser still looks at the TOTAL storage used for the app in general. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Null exception: No authentication header information - even setting .setUserToken(auth_token)
Even I am getting the same error. I am using 3 legged oauth and have almost similar code. I will appreciate any help. On Friday, March 16, 2012 10:34:39 AM UTC-4, Bogdan Petran wrote: I have the below method: public String tryGoogleAuthentication(String auth_token){ ContactsService contactsService = new ContactsService(.); contactsService.setUserToken(auth_token); IFeed feed = null; try { feed = contactsService.getFeed(new URL(https://www.google.com/m8/feeds/ contacts/default/full?max-results=1), ContactFeed.class); } catch (IOException e) { e.printStackTrace(); return CONST.GOOGLE_AUTH_INVALID_TOKEN; } catch (ServiceException e) { e.printStackTrace(); return CONST.GOOGLE_AUTH_INVALID_TOKEN; } catch (NullPointerException e) { e.printStackTrace(); return CONST.GOOGLE_AUTH_INVALID_TOKEN; } if (feed == null) return ; String externalId = feed.getId(); IPerson person = feed.getAuthors().get(0); String email = person.getEmail(); String name = person.getName(); String nameLang = person.getNameLang(); System.out.println(externalId: + externalId); System.out.println(email: + email); System.out.println(name: + name); System.out.println(nameLang: + nameLang); return CONST.STATUS_OK; } and I get the error: java.lang.NullPointerException: No authentication header information at com.google.gdata.util.AuthenticationException.initFromAuthHeader(AuthenticationException.java:96) at com.google.gdata.util.AuthenticationException.init(AuthenticationException.java:67) at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:600) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535) at com.google.gdata.client.Service.getFeed(Service.java:1135) at com.google.gdata.client.Service.getFeed(Service.java:998) at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631) at com.google.gdata.client.Service.getFeed(Service.java:1017) at ro.servlet.data.ClientAuthenticator.tryGoogleAuthentication(ClientAuthenticator.java:96) Please tell what shoud I set to contactsService(except setUserToken) in order to work proper? I really need to finish this task, so please, if anyone knows how this can be fixed, help me ! Thank you, Bogdan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Message get disappeared when add SingleChoiceItems to alert dialog
I think your problem is (was) caused by the fact that you use -1 as the index for the initially chosen item. Try using 0.. your last index. On Thursday, 12 May 2011 13:11:35 UTC+3, ABS wrote: Hi I am working on android app. but i stuck at one point when i tried to add SingleChoiceItems to alert dialog the alert message gets disapear.,i dont know why this happens here is my code snippet. //builder.setMessage(alertMessage).setCancelable(false); builder.setSingleChoiceItems(alertChoices , -1, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub } }); builder.setPositiveButton(Continue, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialogRunning = false; dialog.cancel(); } }); I want to add both message and singlechoiceitems to alert dialog thanks in advance Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] db.insert inserts only auto incremented ID in database
I'm not getting why db.insert inserts only ID in database. Rest of the columns remain empty. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SIP Stack registration packet with authorization
Hi , We also tried registering to OpenIMS from Android SIP Stack (using SipDemo sample ) and we get exactly the same error 400 Bad request P-Visited-Network- ID Header missing . and we see that Authorization field is missing in the reg packet . @matej148 : Any success in resolving the issue ? On Tuesday, 13 March 2012 13:22:23 UTC-4, matej148 wrote: Hi to all, we want to create SIP application on Android 2.3.3 and have some issues with android.sip stack (default sip stack). Our mobile app sends register sip packet, but 1.) by default OpenIMS core responds 400 Bad request P-Visited-Network- ID Header missing 2.) in the case that we set port number to 4060 -PCSCF / builder.setPort(4060)/ OpenIMS core sends this request from 4060 to 4060 (same port, same IP, same CSCF, same packet) and this is cykling until OpenIMS core send respond to mobile app - 504 Server Time-out. We also tried SipDemo, CSipSimple and we had same problems. When we tried Monster Communicator or IMSDroid, then it works! There is one difference between working and problematic applications - working apps send register packet also with Authorization field. Part of the code: public SipManager mSipManager = null; public SipProfile mSipProfile = null; SipProfile.Builder builder = new SipProfile.Builder(username, domain); builder.setPassword(password); builder.setDisplayName(username); builder.setProfileName(username + @ + domain); port = Integer.parseInt(4060); builder.setProtocol(protocol); mSipProfile = builder.build(); ... try { mSipManager.open(mSipProfile);} catch (SipException e) { ...} try { mSipManager.register(mSipProfile, 30, new SipRegistrationListener() { public void onRegistering(String localProfileUri) { } public void onRegistrationDone(String localProfileUri, long expiryTime) { } public void onRegistrationFailed(String localProfileUri, int errorCode, String errorMessage) { } }); } catch (SipException e) { } How to give authorization field to register packet in classic SIP stack? We also tried J-SIP but it display error: Conversion to dalvik format failed with error 1. Every answer would be very appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can i develop a C++ library to be used by my android App on windows/eclipse?
Hi; I have a C++ library which runs on windows, and i would like to port to Android. This library will have native implementations that my app will be using; this is ofcourse something i will need to do using the NDK; my question is; can i do the development on windows/linux? is this something i can later debug using the emulator? I am asking since i am not sure that compiling against Bionic or other android apps is available on windows/eclipse? do i still need Cygwin if i am using eclipse? Rami -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to execute Bluetooth HDP Demo
I have the same problem with Nonin 9560 pulse oximeter device. I tried to use BluetoothHDPService demo provided by android SDK, however, I even cannot get connect to it. When I first click the Register App button it shows 0 (means successful) in the status message bar. But then when I click Connect button and choose my paired device, it says -1 (failed) in the status message. Can anybody please help me in this case? By the way, I am registering with 0x1004 (pulse oximeter) code. Thanks in advance. On Friday, December 16, 2011 11:31:16 AM UTC+1, Raul Ruiz wrote: Hi Jorge, What device are you using? I have a same problem using Nonin 9560BT pulseoximeter. It conects and disconnects and any data had received in the Android. Do you have any solution? Thanks On Dec 15, 6:30 pm, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I'm executing the BluetoothHDPDemo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone is unable to open the channel connectionHDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of the Bluetooth Health Profile API? Any ideas? Thanks. Regards. [1] http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 12-15 16:41:00.034: E/BluetoothService.cpp(147): getChannelApplicationNative 12-15 16:41:00.044: E/bluetooth_common.cpp(147): dbus_func_args_timeout_valist: D-Bus error in Acquire: org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ chan3115 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Mdl is not created) 12-15 16:41:00.074: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6001 12-15 16:41:00.214: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6000 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of Property is: MainChannel Value:/org/bluez/278/hci0/ dev_00_80_25_14_A1_BC/chan3115 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] issue Android NDK OpenGL ES 2.0 +VBO
Hi everyone! I had a problem with VBO on OpenGL ES 2.0. glGenVertexArraysOES, glGenVertexArrays - does not work's Maybe someone has solution for resolve it. Because without VBO I can't do more faster app :( 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] How to open notepad on a pc by clicking a button on my Android?
Hi I want to make an application which is some kind of a remote control for the PC. Suppose I want to do it on a home computer with a known IP and my Android is using the same wireless network. How can I connect to the PC and make the pc listening to this connection? Do you guys have a link to a website that explain this type of connection or a book? Thanks, Mo. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 regarding talking tom application
Hello All, I want to develop an application similar to talking tom, does anyone have source code for that application or any link pls share. Thanks in advance for any help related to this type of application. Thanks Regards, Santosh Kumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Virtual Device Manager fails to load
Hey guys, Since yesterday I've got some major problems with AVD manager. It does not seem to load anymore. Everytime when I try to click on the AVD Manager icon it does not start, it doesnt do anything at all! It is weird because the first time it worked when I tried to run the standard HelloWorld code. But now it simply doesnt load. Im going crazy right now because I've tried everything; unistalled all Java components and reinstalled it again. Does anyone has a sollution for it? Many thanks in advance! Su -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 register with play store
I created an account, and went to pay my fee but it asked me to go through a verification process instead. So I have gone through this 3 times now uploading my drivers license, bank statements, etc The message said allow 1-3 days for processing. It's now been about a month and I have go no response. I emailed them and they responded back after weeks saying for me to verify myself again if i haven't done so and that they will be in touch. I've done this and emailed them numerous times but no response back and I'm still left waiting to be able to upload my app. Anyone else have this problem? Can anyone make any suggestions to me on what I may be doing wrong or how I can get an update on my status? S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 ad hoc wifi network connection
Hi Danielle, *WiFi-Direct is not pure Ad-hoc*. Check this in it's FAQ: http://www.wi-fi.org/sites/default/files/uploads/files/faq_20101021_Wi-Fi_Direct_FAQ.pdf Q: Is WiFi-Direct the same as Ad Hoc mode? A: No, this is not Ad-Hoc mode (also known as IBSS) but an extension to the ubiquitous infrastructure mode of operation that can operate without a dedicated access point. Ad Hoc, or IBSS, mode is a legacy protocol for Wi-Fi devices, and Wi-Fi Direct is a new innovation. With the technology underlying Wi-Fi Direct, a device can maintain a simultaneous connection to an infrastructure network – this isn’t possible with Ad Hoc. So, basically, the problem comes back to the ground zero. I'm also looking for a viable solution where in I can access an Ad Hoc network without rooting the device. Cheers! On Tuesday, October 23, 2012 5:01:25 PM UTC+8, Daniele Santanche wrote: Hi bob, Thanks for your reply. I've tried to enable the Wi-Fi Direct from UI but I cannot see my Windows CE device. My WindowsCE device supports the IBSS ad hoc wifi connection. I've tried to detect the ad hoc network using an iPad and, in this case, I was able to discover and connect. So there is some other thing I've to do in order to detect ad hoc IBSS networks with Android? Best regards On Monday, October 15, 2012 4:53:49 PM UTC+2, bob wrote: Yes, it's called Wi-Fi Direct™. http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html On Monday, October 15, 2012 8:44:50 AM UTC-5, Daniele Santanche wrote: Hi all, I need to directly connect to a Windows CE device, through wifi connection. This device supports the ad hoc wifi connection, but it seem that android platform doesn't officially supports this kind of connection. I've searched a lot on the network in order to find a way to connect an android device to ad hoc networks, but i've found only solutions which need a rooted. This in not acceptable form me. So my question is simple, is there official android support for adhoc wifi networks? Best Regards Daniele -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Developing a Loading Bar after Confirm Dialog Click
Hi All, I am developing a utility and facing an issue. The following describes what i intend to achieve: 1. User will click on SubmitButton. 2. User will be prompted a confirm dialog box. 3. On No , it will return. 4. Yes click will take it to a method which does some processing. 5. As processing can take sometime, i want to show loading bar after user clicks Yes in confirm dialog box. 6. However, When i click Yes; the dialog box remains there and i can't see th progress bar. Request you to please help me 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] Trip advisor multiple apps, 1 per city. Why do it like that?
I am looking to write an app that allows the user to download 'data packs' into a shell app so the functionality is in the one shell app and only needs to be downloaded once. It will be very similar to the way trip advisor has done their city guides, except they have decided to create a stand alone app for each city. I think this is messy and could end up with 20 or 30 city guide apps on your device. Why do you think they didn't just do one central app where you could (un)install each city separately? Also, if I do my app with the one central app, should I have the city guides as apk files that are basically just content providers, or install each data pack into one central DB? Thanks for reading Russ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HID Absolute coordinate data support in Android
Hi, I have developed a HID digitizer solution which gives absolute coordinate data to Host. When I use it on PC, it works fine. However, when I use it on ICS 4.0.1 android Host, absolute data is not recognized by the Host. However, I can control the tip switch on/off . Is this a known issue on android. Does android support absolute coordinates? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
I do not see the TL listed, this is why I wrote in the first place. I understand the warranty would be voided and although the device is not listed, is the process of unlocking possible? Thank you for responding. On Nov 20, 2012 4:44 AM, Henry Klak hsk...@gmail.com wrote: At what point will Sony do the right thing and allow the unlocking of Xperia TL, regardless of ATTs foolish stance... As an owner, I fully understand what I'll lose, what I'd gain and should be the phone owners right to do as such. just saying On Thursday, April 14, 2011 3:11:13 AM UTC-4, Carl wrote: Hi, It is now possible to unlock the boot loader for certain series of Sony Ericsson 2011 Android™ Gingerbread phones. Go to http://unlockbootloader.**sonyericsson.comhttp://unlockbootloader.sonyericsson.comto get instructions and a key to unlock the boot loader. Please note that you may void the warranty of your phone if you unlock the boot loader. See your phone’s warranty statement for details. More information is available on the unlock boot loader web site. For any questions, Sony Ericsson will monitor this thread on Google groups. However, we cannot guarantee an answer for every question asked in this forum. Please remember that you are unlocking the boot loader at your own risk. Br, Carl Johansson Sony Ericsson Developer World -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Addind an avd
You did not install the ARM EABI v7a System Image for Android 4.2 in your SDK Manager. On Fri, Nov 16, 2012 at 9:58 AM, Imri Persiado imripersi...@gmail.comwrote: Hello everyone, I'm trying to add an avd but the ok button is disabled: https://lh6.googleusercontent.com/-JpGgiP5hTzs/UKZUjKvvuhI/AAw/e6ofBRxl8FI/s1600/%D7%9C%D7%9C%D7%90+%D7%A9%D7%9D.png Any idea why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to record multimedia audio
I don´t know why my last 2 post were deleted :( I said in those posts: I dont want to record from voice sound,(voice,cars,birds at the park,my brother laughing) i only want to record multimedia sound from the app, not from mic. I want to record piano sound because later i want to play piano with this sound recorded for make more complicated songs. I want to use the recorded sound like chords. Must be a way to record only multimedia sound without outer sounds Have a nice day -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I fix this error
On Mon, Nov 19, 2012 at 10:56:55PM -0600, Kevin Brooks wrote: If you don't consider his choice of words rude, then perhaps you also need some lessons in interpersonal skills. Honestly, if you consider Lew's words rude, you probably consider it rude if someone says hi to you. The way I read his response, he was pointing you in the right direction, and pointing out that it was pretty obvious. If you think that's rude, you must be completely new to the 'net (and you won't last long). Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | There it was, right in the title bar: spooky1...@gmail.com | Microsoft Operations POS. Running Mac OS X Lion | ICBM / Hurricane: | Never before has a TLA been so appropriately 30.44406N 86.59909W| mis-parsed. (alt.sysadmin.recovery) Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Monitor Energy
If you need this information on demand, call registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)) and examine the resulting Intent. There will be extras (keys are defined on BatteryManager) for that info. On Mon, Nov 19, 2012 at 4:24 PM, Rodolfo Ramos rodolfocl...@gmail.com wrote: Hello everybody, I need to monitor changes in battery Android 1.5. But the instructions I found on the android site, found nothing for the 1.5. Does anyone have any information. I need to know if the phone is connected to power or not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.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
Re: [android-developers] db.insert inserts only auto incremented ID in database
hi SajidCheck my blog for SQLiteDatabse there you can find the answer... http://ramscreative.blogspot.in/2012/04/sqlitedatabase1.html On Sun, Nov 18, 2012 at 5:03 PM, Saliha Sajid salihasa...@gmail.com wrote: I'm not getting why db.insert inserts only ID in database. Rest of the columns remain empty. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Rambabu Mareedu 9581411199 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HttpUrlConnection no print data to my screen
I am new android developer. I am trying this code for access data from my webserver @Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); URL url; try { url = new URL(http://www.mysite.net/LEDstate.txt;); HttpURLConnection urlConnection = (HttpURLConnection) url .openConnection(); InputStream in = urlConnection.getInputStream(); InputStreamReader isw = new InputStreamReader(in); int data = isw.read(); while (data != -1) { char current = (char) data; data = isw.read(); //System.out.print(current); TextView t = (TextView) findViewById(R.id.ledstate); t.setText(current); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } @Overridepublic boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true;} } But data is not appearing on Screen.There is no change in Textview. I have checked Permissions they are ok. Any help? 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: db.insert inserts only auto incremented ID in database
Saliha Sajid wrote: I'm not getting why db.insert inserts only ID in database. Rest of the columns remain empty. how do you call db.insert()? any code snippet? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ffmpeg converted video not working on default player
Thanks a lot, Pedro. It helped me achieving my task, as I found http://www.badllama.com/content/convert-video-android-ffmpeg. Regards, NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to share resource folder independently in project ?
I have one proper library project, it contais all resources and class files, this project contais all theme related images, I am sharing my library project for creating new Projects, all works fine. But when I want to change app theme related images, I need to update my library project images, but my library project already shared with some other projects so I dont want to touch it. There is one more way that I can add all new set of image in my New project but its increasing my project size and unnecessary I am shipping two sets on images. Is there any way to share resource folder independently with project? so depends on requirement I can share my resource folder with respected project. So it will be like this Library Project | |__ class files | |__ resource folder(contais all drawables and layouts) Can I choose specific resource folder at compile time ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do I fix this error
I'm with the other guys ... his response was not rude at all. Not only was it not rude, it's also correct. In fact, the way you replied to others, is actually rude. I'm pretty sure that part of how to win friends and influence people is not to attack the people you're asking to help you. On Tuesday, November 20, 2012 7:00:11 AM UTC+2, Bear35805 wrote: If you don't consider his choice of words rude, then perhaps you also need some lessons in interpersonal skills. On 11/19/2012 9:19 PM, William Ferguson wrote: Actually, considering the info you gave I think Lew's response was quite appropriate and not at all rude. Perhaps you should consider rephrasing your question and providing some more detail next time. William On Tuesday, November 20, 2012 11:39:07 AM UTC+10, Bear35805 wrote: Lew, I find your flat out rudeness very unprofessional. Perhaps you would be served by reading a copy of How To Win Friends and Influence People. Of course that was my first clue, and I have attempted to track down what file is causing the problem. So if you have any more rude comments please keep them to yourself until you learn to give some respect. On 11/18/2012 10:39 PM, Lew wrote: Bear35805 wrote: I am getting the following error. DescriptionResourcePathLocationType The project was not built due to A resource exists with a different case: '/AlcoholTracker/bin/classes/com/DBIndustries'.. Fix the problem, then try refreshing this project and building it since it may be inconsistentAlcoholTrackerUnknownJava Problem Any ideas how to fix this one? Well, the error message tells you that the file is named in a different case. Doesn't that hint to you to spell it in the same case? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In search of Nexus 10 ADB drivers
On Nov 19, 12:38 pm, Claudius Golumbina c.golumb...@gmail.com wrote: The SDK USB driver works with both the Nexus 7 and Nexus 10. Nexus 7 yes, Nexus 10 No. Not for 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
Re: [android-developers] issue Android NDK OpenGL ES 2.0 +VBO
Hi, Here's a link to Apple Dev site which shows how to generate VBOs using default buffers. Maybe it gives an alternative for exact vertex buffer usage; http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/TechniquesforWorkingwithVertexData/TechniquesforWorkingwithVertexData.html -- H On Nov 10, 2012, at 11:19 PM, Vladimir Boichentsov sakri...@gmail.com wrote: Maybe someone has solution for resolve it. Because without VBO I can't do more faster app :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
You are right, it is a bug on Admob that was solved on version 6.1.0, and I am using the 6.0.1 exactly the previous one... :-| https://developers.google.com/mobile-ads-sdk/docs/rel-notes I should looked at that release notes before... Well, it is easy to solve then. Thanks, On 11/20/2012 09:31 AM, Nikolay Elenkov wrote: On Tue, Nov 20, 2012 at 3:33 AM, Francisco Marzoa fmmar...@gmail.com wrote: On 11/18/2012 12:56 PM, Piren wrote: It actually says it right there: 3 at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236) The user is clicking a hyperlink in a webview which is attached to the Application Context. Figure out which webview it is, set a webViewClient and override shouldOverrideUrlLoading to open the hyperlink properly. I am not sure about what to do, to be honest. There may be when the user clicks on an ad from Admob or Chartboost, the two ad networks I use, but in this case I think I couldn't do nothing since their libraries are closed. You can of course decompile and patch :) This error was quite common with one of the previous releases of the AdMob library. Upgrade to the latest version, it is fixed there. I don't know anything about Chartboost though. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maintaining scroll position of a ListView
Hi guys, I'm having a similar issue on rotating the device, and since the activity, the contained fragment and the list view get re-created on rotate, I don't think Android can take care of retaining the scroll state of the list view. Is there a way to do this without the need to set the activity not to re-create in the manifest? Best regards, Mihai On Tuesday, April 7, 2009 9:00:01 PM UTC+3, Romain Guy wrote: ListView handles that already. The problem is that you are creating a new adapter every time you reload the data. That's not how you should use ListView and its adapter. Instead of setting a new adapter (which causes ListView to reset its state), simply update the content of the adapter already set on the ListView. And the selection/scroll position will be saved for you. On Tue, Apr 7, 2009 at 7:36 AM, DavidG dgu...@gmail.com javascript: wrote: In my app, my main class extends ListActivity and calls a fillData() function to reload the list whenever changes are made. I'm still getting the hang of this, so I borrowed that concept from the Android Notepadv1-Notepadv3 tutorials. Everything works great, however whenever I need to change the list (remove an item, re-sort it, edit an item), the ListView refreshes and loses its scroll position. The scroll position is reset to the top after each fillData() call. I saw the following thread a similar issue, but can't wrap my head around the solution: http://groups.google.com/group/android-developers/browse_thread/thread/0b648ce2fe622463/7d40155d450d1196?lnk=raot It appears to be resetting the scroll position to the top because I'm using setListAdapter() each time in fillData(), setting it to a new SimpleCursorAdapter. How can I get the list to update in place, where the scroll position is seamlessly maintained to the user? I tried heading down the items.changeCursor(cursor) path, but that didn't seam to do much for me. Any help would be appreciated. Here's the code: private void fillData(boolean sortOption) { Cursor itemCursor = mDbHelper.fetchAllItems(sortOption); startManagingCursor(itemCursor); String[] from = new String[] { DbA.KEY_ITEM, DbA.DESCRIPTION, DbA.KEY_CHECKED }; int[] to = new int[] { R.id.itemText, R.id.itemDescription, R.id.content }; SimpleCursorAdapter items = new SimpleCursorAdapter (this,R.layout.item_row, itemCursor, from, to); items.setViewBinder(new ItemBinder()); setListAdapter(items); } -- Romain Guy Android framework engineer roma...@android.com javascript: Note: please don't send private questions to me, as I don't have time to provide private support. 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] Disabling DisplayList creation by Views
I've created a bunch of custom views that draw themselves really fast, especially with HW acceleration enabled. I have several of these views in my application, spread out over many panes. I'm trying to keep as much as possible in memory to avoid reloading data when swiping between panes. My problem is that Android keeps creating a DisplayLists for each of my views, even though the do not really need it. They don't have any children and draw directly to their canvas, so DisplayLists should have little or no effect on performance. But they sure do take up a lot of memory. Sometimes 2 MB per view, which adds up to a lot. Is there any way to disable DisplayList creation without disabling HW acceleration? Thanks, Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: issue Android NDK OpenGL ES 2.0 +VBO
glGenVertexArraysOES creates VAOs not VBOs to create VBOs use glGenBuffers. http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenBuffers.xml VAOs are not part of the standard OpenGL ES 2.0 specification. They *may be * provided as OES extensions. On Saturday, November 10, 2012 9:19:29 PM UTC, Vladimir Boichentsov wrote: Hi everyone! I had a problem with VBO on OpenGL ES 2.0. glGenVertexArraysOES, glGenVertexArrays - does not work's Maybe someone has solution for resolve it. Because without VBO I can't do more faster app :( Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do I fix this error
Kevin Brooks wrote: Lew, I find your flat out rudeness very unprofessional. Perhaps you would be served by reading a copy of How To Win Friends and Influence People. I find your snarkiness and poorly-constructed questions very unprofessional. Perhaps you would be served by reading a copy of http://www.catb.org/esr/faqs/smart-questions.html and not biting the hand that feeds you help. I didn't post to win friends or influence people. I posted to answer the question as asked. If you don't like my answer, ask your question better. Besides, I gave you the right answer, you're welcome very much. You should be thanking me. -- Lew Of course that was my first clue, and I have attempted to track down what file is causing the problem. So if you have any more rude comments please keep them to yourself until you learn to give some respect. When you earn it, you'll get it. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Disabling DisplayList creation by Views
No you cannot disable DisplayLists. They are required by the UI toolkit. 2MB if display lists seems excessive. Apps like Launcher use in the order of 15 kB. On Nov 20, 2012 7:22 AM, hanni hann...@gmail.com wrote: I've created a bunch of custom views that draw themselves really fast, especially with HW acceleration enabled. I have several of these views in my application, spread out over many panes. I'm trying to keep as much as possible in memory to avoid reloading data when swiping between panes. My problem is that Android keeps creating a DisplayLists for each of my views, even though the do not really need it. They don't have any children and draw directly to their canvas, so DisplayLists should have little or no effect on performance. But they sure do take up a lot of memory. Sometimes 2 MB per view, which adds up to a lot. Is there any way to disable DisplayList creation without disabling HW acceleration? Thanks, Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpUrlConnection no print data to my screen
Try changing this: t.setText(current); to this: t.setText(test string); On Tuesday, November 20, 2012 6:43:41 AM UTC-6, Antonis Kanaris wrote: I am new android developer. I am trying this code for access data from my webserver @Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); URL url; try { url = new URL(http://www.mysite.net/LEDstate.txt;); HttpURLConnection urlConnection = (HttpURLConnection) url .openConnection(); InputStream in = urlConnection.getInputStream(); InputStreamReader isw = new InputStreamReader(in); int data = isw.read(); while (data != -1) { char current = (char) data; data = isw.read(); //System.out.print(current); TextView t = (TextView) findViewById(R.id.ledstate); t.setText(current); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } @Overridepublic boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true;} } But data is not appearing on Screen.There is no change in Textview. I have checked Permissions they are ok. Any help? 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] Port Android SDK and ADT tools and emulator to Linux ARM platform
That way we can use Chromebook ARM using Ubuntu ARM to develop android apps! Better yet emulator could use a15 hw virtualization to execute at full speed similar to Intel HAXM in x86.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Port Android SDK and ADT tools and emulator to Linux ARM platform
Wrong group, try one of these groups: http://source.android.com/community/index.html On Tuesday, November 20, 2012 5:52:54 PM UTC, oscar barenys wrote: That way we can use Chromebook ARM using Ubuntu ARM to develop android apps! Better yet emulator could use a15 hw virtualization to execute at full speed similar to Intel HAXM in x86.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] install and run PHP script on apache tomcat server
Hi All, can anybody please tell me how can I install and run PHP script of apache tomcat server. Since there are couple of tutorials are there but nothing seems to be worked...If apache tomcat is not suitable then whihc type of server I should setup in order to upload from file from my android application??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HttpUrlConnection no print data to my screen
Hey Can you please tell me what kind of server did you setup for this code...I am trying to do something similiar on my apche tomcat server...but in order to do that i nedd to install php on my tomcat...but I am not able to do this...any help would be great about server setup since I have little knowledge about servers..thanx On Tuesday, November 20, 2012 7:43:41 AM UTC-5, Antonis Kanaris wrote: I am new android developer. I am trying this code for access data from my webserver @Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); URL url; try { url = new URL(http://www.mysite.net/LEDstate.txt;); HttpURLConnection urlConnection = (HttpURLConnection) url .openConnection(); InputStream in = urlConnection.getInputStream(); InputStreamReader isw = new InputStreamReader(in); int data = isw.read(); while (data != -1) { char current = (char) data; data = isw.read(); //System.out.print(current); TextView t = (TextView) findViewById(R.id.ledstate); t.setText(current); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } @Overridepublic boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true;} } But data is not appearing on Screen.There is no change in Textview. I have checked Permissions they are ok. Any help? 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] Emulator parameters for different devices
Hi there, Is there any kind of page or archive or whatsoever that has parameters on several Android devices so they can be copied into emulator instances to be as close as possible to their config? It is not difficult to find things like image resolution, display size (so dpi), RAM, etc. but other things really important like the max vm heap size per application it is not so easy to found. Best regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: example for ResourceCursorTreeAdapter
Or in SDK's samples, you can have a look at this file: - ApiDemos/src/com/example/android/apis/view/ExpandableList2.java It uses SimpleCursorTreeAdapterhttp://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter.html, but it's useful... On Wednesday, 6 August 2008 14:05:44 UTC+7, Faiz wrote: Hi Everyone, Can anyone provide me an example for ResourceCursorTreeAdapter. My requirement is to implement Expandable List VIew. On expansion of items in the list, i want to show a spinner as a child. Regards, Faiz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Marvell OLPC : test-librsloader_intermediates/test-librsloader error
Hi There, Could some one help me fix this Android build error: PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=4.0.1 TARGET_PRODUCT=full TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7-a HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=ITL41D vendor/marvell/generic/graphics/hgl/Android.mk:12: warning: overriding commands for target `out/target/product/generic/system/lib/egl/egl.cfg' build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/generic/system/lib/egl/egl.cfg' host Executable: test-librsloader (out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader) out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Signals.o): In function `PrintStackTrace': android_working_dir/external/llvm/lib/Support/Unix/Signals.inc:219: undefined reference to `dladdr' android_working_dir/external/llvm/lib/Support/Unix/Signals.inc:231: undefined reference to `dladdr' make: *** [out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader] Error 1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: install and run PHP script on apache tomcat server
Sounds like you want an FTP server. On Tuesday, November 20, 2012 12:31:58 PM UTC-6, shikha kejariwal wrote: Hi All, can anybody please tell me how can I install and run PHP script of apache tomcat server. Since there are couple of tutorials are there but nothing seems to be worked...If apache tomcat is not suitable then whihc type of server I should setup in order to upload from file from my android application??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maven nar-apklib integration?
There is a C++ library which I would like to use in Android. I started to write JNI bindings using the NDK, but before I finished I learned that JNI bindings already existed, so I want to leverage them. The trouble is that the JNI bindings which exist come with a build system that uses maven and the FreeHEP NAR plugin. I don't have any experience with NAR, and almost none with JNI itself, so I'm a little daunted. As it happens I do have maven set up and building for Android already (in addition to, but not integrated with, Eclipse). So my question is, how can I set the nar package which is constructed containing the JNI code as a dependency which will be properly pulled into an apk? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: problem with jar file
Ali Ahmadi wrote: i [sic] made a android [sic] app, which works correctly. now i put some parts of my application into a library and as a jar file. now my code is not working i read some values through this command: suProcess = Runtime.getRuntime().exec(ls /sdcard/folder*'); DataOutputStream oStream = new DataOutputStream(suProcess.getOutputStream()); The 'Process' output stream from an ls will not be a 'DataOutputStream'. DataInputStream osRes = new DataInputStream(suProcess.getInputStream()); Likewise the input stream. ls is a text-oriented command. DataInputStream errStream = new DataInputStream(suProcess.getErrorStream()); if (null != oStream null != osRes null!= errStream) { while (errStream.available()0) errVal += errStream.readLine(); while (osRes.available()0) retval = osRes.readLine(); } but nothing would return as output. why this happens just when i use jar file? Did you set up the project that generates the JAR as an Android library project? http://developer.android.com/tools/projects/index.html#LibraryProjects Did you create a /libs directory within your Android project directory and copy the JAR file to that directory? http://mobile.tutsplus.com/tutorials/android/jar-for-android/ Did you google for an answer? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I fix this error
Kevin Brooks wrote: I find your flat out rudeness very unprofessional. Perhaps you would be served by reading a copy of How To Win Friends and Influence People. Of course that was my first clue, and I have attempted to track down what file is causing the problem. So if you have any more rude comments please keep them to yourself until you learn to give some respect. It looks like it's the file /AlcoholTracker/bin/classes/com/DBIndustries, based on the error message. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 2012 october payout report
I am also waiting, just as my co-developer. It's not normal that it's this late. Normally before the 10th of the month or so... :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to share resource folder independently in project ?
Makrand wrote: I have one proper library project, it contais all resources and class files, this project contais all theme related images, I am sharing my library project for creating new Projects, all works fine. But when I want to change app theme related images, I need to update my library project images, but my library project already shared with some other projects so I dont want to touch it. There is one more way that I can add all new set of image in my New project but its increasing my project size and unnecessary I am shipping two sets on images. Is there any way to share resource folder independently with project? so depends on requirement I can share my resource folder with respected project. So it will be like this Library Project | |__ class files | |__ resource folder(contais all drawables and layouts) Can I choose specific resource folder at compile time ? I am not an expert on library projects, or even Android projects generally, but that said, I offer that the point of libraries is that they are common to multiple projects. You can't have both common to multiple projects and specific particularly to each at once in the same library. If your resources are particular to a particular project, they belong in that project, not the library. If your resources are common to some subset of projects that use the main library, would it work for you to create multiple libraries? Let's say you have a universe of projects U:{p0, p1, ..., pN} for which you need the main library, call it MainLib. Let's say you have subsets of that universe, A, B, C, etc., such that all projects in each subset need some common resources, but not the same ones as those used by other subsets. So you have resources {rA0, rA1, rA2, ..., rAm} for the projects in A, {rB0, rB1, ..., rBn} for projects in B, and so on. You could create libraries ALib, BLib, ..., to support those subsets. So a project like rB2 would pull in libraries MainLib and BLib. Something like that seems like it could become a nightmare quickly. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I fix this error
Maybe see this: http://stackoverflow.com/questions/13108465/a-resource-exists-with-a-different-case On Sunday, November 18, 2012 4:18:52 PM UTC-6, Kevin Brooks wrote: I am getting the following error. DescriptionResourcePathLocationType The project was not built due to A resource exists with a different case: '/AlcoholTracker/bin/classes/com/DBIndustries'.. Fix the problem, then try refreshing this project and building it since it may be inconsistentAlcoholTrackerUnknownJava Problem Any ideas how to fix this one? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] debugging crashes on some systems ( not all )
Hi, I have a kind of chat and game client, it connects to a board game server and is a tabbed android app. There is a telnet thread and it feeds through concurrently linked queues 3 worker threads that update a game board, a text console and i have a lists tab. The problem is i've had 2 users now complain that the program has crashed on them, one said it froze his phone. I can't be clear if the program crashed or if its something with their phones, one was a samsung s3 i think the other some kind of acer tablet if i recall. But how would i evaluate this? It's never crashed for me on my tablet or phone. What kind of things could cause a crash like this but only intermittent or on certain devices which could have to do with the resources available on the devices and mix of what is happening on that device. One user says he always hard stops it before running it but it still crashed on him which kind of dismisses its a state issue with it being up to long. Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] BitmapFactory.decodeFileDescriptor
I believe I'm seeing weirdness in the behavior of BitmapFactory.decodeFileDescriptor. tl;dr: I can get a bitmap from a stream, but not from a related fd. There are four snippets of code, below. The first two succeed, the second two fail. The respective error messages for the 3rd and 4th snippets are: 11-20 15:43:29.656: D/skia(2960): --- SkImageDecoder::Factory returned null 11-20 15:41:38.876: D/skia(2868): --- decoder-decode returned false FWIW, I have evidence that I can make the 4th snippet will work if I simply including the following code -- which also produces a valid bitmap -- somewhere nearby: BitmapFactory.decodeFileDescriptor(ParcelFileDescriptor.open(*new*File(getFilesDir(), logo.png), ParcelFileDescriptor.MODE_READ_ONLY).getFileDescriptor()); Anyone else seen anything like this? I discovered the it while trying to build a content provider that returns a ParcelFileDescriptor for an asset, if it exists, or an external file, if not. -blake // asset stream: works fine try { bm = BitmapFactory.decodeStream( getAssets().open(logo.png)); } catch (Exception e) { Log.e(TAG, failed opening asset stream, e); } ((ImageView) findViewById(R.id.image_1)).setImageDrawable(new BitmapDrawable(rez, bm)); // external file stream: works fine try { bm = BitmapFactory.decodeStream( new FileInputStream(new File(getFilesDir(), logo.png))); } catch (Exception e) { Log.e(TAG, failed opening file stream, e); } ((ImageView) findViewById(R.id.image_2)).setImageDrawable(new BitmapDrawable(rez, bm)); // assets file descriptor: fails try { bm = BitmapFactory.decodeFileDescriptor( getAssets().openFd(logo.png).getFileDescriptor()); } catch (Exception e) { Log.e(TAG, failed opening asset file desc, e); } ((ImageView) findViewById(R.id.image_3)).setImageDrawable(new BitmapDrawable(rez, bm)); // assets file descriptor: fails try { bm = BitmapFactory.decodeFileDescriptor( new FileInputStream(new File(getFilesDir(), logo.png)).getFD()); } catch (Exception e) { Log.e(TAG, failed opening file desc, e); } ((ImageView) findViewById(R.id.image_4)).setImageDrawable(new BitmapDrawable(rez, bm)); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: install and run PHP script on apache tomcat server
bob wrote: Sounds like you want an FTP server. shikha kejariwal wrote: can anybody please tell me how can I install and run PHP script of apache tomcat server. That is too broad a question, and not an Android issue. Since there are couple of tutorials are there but nothing seems to be worked...If apache tomcat is not suitable then whihc type of server I should setup in order to upload from file from my android application??? I'm sure Tomcat would work just fine, but you are too vague about your difficulties. Could you give details? Nothing seems to be worked [sic] tells us nothing. What did you try? Which tutorials did you follow? Provide links. What failed? Copy and paste (do not paraphrase) the error messages into your post. How did you try to connect your client? Did non-Android clients work? Would a doctor be able to cure you if you only told them, I feel ill. There are a number of articles on health out there but none of them seem to work. How do I feel better? Give us specifics. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [Issue] Android diplays wrong system time
Hi all, I am meeting an issue while developing ICS the android phone. After factory reset, the phone displays system time wrong. This is the CDMA phone, so that the phone can update its system time from its network. However, the phone display the time that belongs to another timezone (in UK). I cannot find where I can fix this issues, Please give me some advices. Thanks, Dale -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BitmapFactory.decodeFileDescriptor
I have one more bit of information on this. I'm pretty sure, now, that assets are different from the files that generated them. I've seen a bunch of stuff around, about renaming files .mp3 in order to keep them from being compressed. There are even postings of lists of file types that should not be compressed. None the less, if I copy the asset to the .../files directory, I cannot create a bitmap from the resulting file. If, on the other hand, I adb push the original file, to the .../files directory, everything works fine. pffft... -blake -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 virtualization (for massing real world simulation)?
I have an Enterprise Android application that I wish to test and am looking for some resources on how to virtualize an android device (need 1000's). The Android application sends information via Internet to my webapp based application, the data is processed and put into a database. Is there a way to fire up 1000+ virtual headless Android devices, have it launch the client application (also headless, runs in the background) to start sending data? --- Ideally I am looking for a way to script or programatically generate or create the 1000 Android devices (that I can create different settings or different MAC's for each and other properties) and push a button to have them all launch one or ten at a time depending on the capability of my system. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I fix this error
You're kidding, right? Lew was nice enough to offer some advice, and your responses were rude. Here's some more friendly advice: be a man and apologize. On Nov 19, 2012 8:57 PM, Kevin Brooks bear35...@gmail.com wrote: If you don't consider his choice of words rude, then perhaps you also need some lessons in interpersonal skills. On 11/19/2012 9:19 PM, William Ferguson wrote: Actually, considering the info you gave I think Lew's response was quite appropriate and not at all rude. Perhaps you should consider rephrasing your question and providing some more detail next time. William On Tuesday, November 20, 2012 11:39:07 AM UTC+10, Bear35805 wrote: Lew, I find your flat out rudeness very unprofessional. Perhaps you would be served by reading a copy of How To Win Friends and Influence People. Of course that was my first clue, and I have attempted to track down what file is causing the problem. So if you have any more rude comments please keep them to yourself until you learn to give some respect. On 11/18/2012 10:39 PM, Lew wrote: Bear35805 wrote: I am getting the following error. DescriptionResourcePathLocationType The project was not built due to A resource exists with a different case: '/AlcoholTracker/bin/classes/**com/DBIndustries'.. Fix the problem, then try refreshing this project and building it since it may be inconsistentAlcoholTrackerUnknownJava Problem Any ideas how to fix this one? Well, the error message tells you that the file is named in a different case. Doesn't that hint to you to spell it in the same case? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android virtualization (for massing real world simulation)?
The kind if resources you're talking about would be enormous. You'd be better off writing a multi-threaded app the simulates the calls that your app would make. Write a single function that makes the various requests your server handles in some random order, with pauses of random length in between, and logging the results, then spawn as many of threads as possible running that function. The time it takes to write that short of test utility is worth it. On Nov 20, 2012 7:04 PM, JavaSrvcs jvsr...@gmail.com wrote: I have an Enterprise Android application that I wish to test and am looking for some resources on how to virtualize an android device (need 1000's). The Android application sends information via Internet to my webapp based application, the data is processed and put into a database. Is there a way to fire up 1000+ virtual headless Android devices, have it launch the client application (also headless, runs in the background) to start sending data? --- Ideally I am looking for a way to script or programatically generate or create the 1000 Android devices (that I can create different settings or different MAC's for each and other properties) and push a button to have them all launch one or ten at a time depending on the capability of my system. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] good videos
Run it in the emulator, then use Camtasia or something similar. Of course, that assumes the emulator can keep up with your game's graphics. On Nov 13, 2012 1:01 PM, bob b...@coolfone.comze.com wrote: That does actually work for recording. Not so sure about the mouse and keyboard control though. Couldn't get that working. On Saturday, November 26, 2011 11:54:43 PM UTC-6, Tommy wrote: This works pretty good. http://code.google.com/p/**androidscreencast/http://code.google.com/p/androidscreencast/ -Original Message- From: android-d...@**googlegroups.com [mailto:android-d...@**googlegroups.com] On Behalf Of bob Sent: Saturday, November 26, 2011 9:58 PM To: Android Developers Subject: [android-developers] good videos What can I use to make good videos of my Android games? I tried filming my tablet, but those videos are kind of low quality. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en