[android-developers] Re: start binded service from broadcast receiver
Is your BroadcastReceiver trying to bind to the service? If so, I do not think you are allowed to do that (hence the exception). Broadcast receivers should only perform quick tasks. Try starting your own service from the receiver, that binds to the AIDL. BroadcastReceiver - start your own service --- bind via AIDL remote service. Give it a shot :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: start binded service from broadcast receiver
Edit: http://developer.android.com/reference/android/content/BroadcastReceiver.html Read the Life Cycle part. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: More Market questions
Just a comment on the quality of the comments: In my (liimted) experience, it appears to be quite cultural. U.S. buyers seems to either leave glowing comments or really negative comments. But users from other countries, Russia and Brazil to come to mind, seem to be generally more constructive in their commenting and overall feedback. It's pretty hard to get a 5-star from a Russian guy. For example, in my app: overall out of 598 star ratings, I have 477 5- stars, which is 80%, but if I counted the Russian ratings, my guess is that it would be no more than 50-60% 5-stars.But on the other hand, I don't remember getting a 1-star from a Russian user either, so it goes both ways. On Jul 4, 3:13 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On Jul 3, 2011 4:08 PM, Spooky spooky1...@gmail.com wrote: Sorry for this...more Market questions. 1) Is the download count that users see in the Market app based on total installs, or active installs? looks like total 2) If it's based on active installs, and given that active install counts are still broken (showed zero for a while when I had confirmed that at least one user has definitely not uninstalled), how does anyone maintain a consistent number? Or do they? Statistics on active installs also show no installs from India, which means it's missed at least one (Yes, I've already been told that the statistics are basically useless...still curious how all of this is SUPPOSED to work.) :-) it's updated with some sort of delay. 3) Here's a big one: in individual categories/subcategories (in my case, Apps/Photography), how many installs (or would that be active installs) does an app need to survive? 0 4) Same question, except regarding the number of ratings/comments, not installs. 0 5) If there is such a number, and an app falls below it, is there a way to revive it, re-publish it in the Market, etc.? Or is it just dead? it stays (most likely) forever, unless you unpublish it (or google remove it for any tos violation). 6) Am I correct in my assessment that most users only leave comments when they're either very satisfied or very disssatisfied? (i.e., far fewer comments from users who fit between those two) i do not see any sane pattern in my case. Great app acompanied with just 3 stars is one example. 7) And finally, is there a way to view what the user sees on their device in the Market for my app via a web page? Or do I only have the developer's console? the see the same you see on your device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add a new framework
Hi Mark n Kumar, Thanks for your comments. Currently i'm developing Android applications with legacy API's using socket. 1) Am adding my application on mydroid/packages/apps folder which is communicating with legacy C code(Some 3rd party library) using Socket/ JNI. 2) Am not clear about the correct method to access the legacy code from my appliaction. 3) I need to add somepart of my code to mydroid/frameworks/base so in future some one can access the those from the application level and use it to build their custom application. 4)Is their any guidelines/procedure to add a part of code in mydroid/ frameworks/base level of the Android source. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Multiple authenticator services in one app?
Hi, Is it possible to share an authentication service for different accounts (and also share the service's intent action for authentication). Can the account-authenticator tag be used only once in the associated xml resource? For example - the second account-authenticator... / here is junk ?xml version=1.0 encoding=UTF-8? account-authenticator xmlns:android=http://schemas.android.com/apk/ res/android android:accountType=com.sf.sf3 android:icon=@drawable/icon android:smallIcon=@drawable/icon android:label=@string/label android:accountPreferences=@xml/account_preferences / account-authenticator xmlns:android=http://schemas.android.com/apk/ res/android android:accountType=com.sf.sf3.recorder android:icon=@drawable/icon android:smallIcon=@drawable/icon android:label=@string/label android:accountPreferences=@xml/account_preferences / In a nutshell - do I have to write a service, authenticator and authenticator activity(+ related xml) for each account I authenticate even if these are managed in the same app? This came up in the context of writing a syncadapter for data to be consumed within the same package but off a different account type. Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] multiuser application, managing of custom back stack.
Hello, community! I`m working on multiuser application, which is rest client. So when I launch it the 1st activity offers you to log in. e.g. I have 10 activities and LoginActivity. I can go through all of them in different orders: LoginActivity - Activity1 - Activity2 - Activity3 ... - Activity7 .. - Activity2 and so on. From each activity I can do logout and go to LoginActivity to log in with another user name. Possible next situation: 1) I do log in with username1: LoginActivity - Activity1 - Activity2 - * Activity3**(logout)* - LoginActivity. 2) then username2 logged in and does his work: LoginActivity - Activity1 - Activity2 - ... - Acivity9*(logout)* - LoginActivity. 3) when username1 wants to resume his work, he logs in and application must show activity he logged out from: LoginActivity - *Activity3.* Also each user wants to see only relevant for him data. I thought about how to implement this, and have 2 ideas: 1. Use of sharedpreferences separate for each user, e.g. prefs_nameuserId file name. Store all user specific settings there. 2. Use *custom* back stack after logging in. Questions: q1) Is there already defined way to implement mustiuser apps in android platform? q2) is it possible to use *explicitly launched custom* back stack, beginning after LoginActivity? let`s discuss this. p.s. if you don`t understand smth. please do ask. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Page Turning effect
Sir, Please suugest me how i am use any effect for going one page to another page for better User Interference. Please Help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 3D graphing on an Android Phone
Hi We are currently working up an app that will take data recived by a transmitting device via bluetooth. We then need the resulting data points of XYZ to be displayed as a 3D graph. What are my options to work with? We have a Nexus S handset to work with. Thanks Bizeasset -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fragments
The Google IO app has its source available. (http://code.google.com/p/iosched/source/checkout). They make a good use of fragments in there. On Fri, Jul 1, 2011 at 10:08 AM, Jayanthi jaia...@gmail.com wrote: Hi All, I am doing application in Honeycomb but i am not clear with Fragments 1.How Fragments is used 2. When the activity call fragments refered lots of article yet not clear all the article have same listview as example can you please few more example like button with onclickListener Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- bryanl http://smartic.us -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Force hdpi drawables on mdpi-xlarge devices
Yes Dianne, that's obvious to you and me. I didn't mean to insinuate that there is something wrong. Just wanted to clarify for people who might not know what a mipmap is. Are mipmaps used for enlarging any other parts of the UI or is it only for launcher icons? On 4 Juli, 05:42, Dianne Hackborn hack...@android.com wrote: Yes as I said this is some initial work on doing mipmaps, and oh hey look at that if you are doing a mipmap there is a larger bitmap there that can be used if you want a larger size image. On Sun, Jul 3, 2011 at 2:16 PM, nadam a...@anyro.se wrote: Just tested this on my Motorola XOOM with Android 3.0.1 and it is using the icon.png from res/drawable-hdpi even though the device is mdpi. On 3 Juli, 10:05, Federico Carnales fedecarna...@gmail.com wrote: On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote: Don't force the Xoom to use hdpi. You will be inconsistent with every other app, all of which are using the Xoom's correct density which is mdpi. Why do you want to do this? As I've said, Galaxy Tab made a design decision to use a larger density and thus have a blown up UI. Again use the density the device reports so you are consistent with the UI in the rest of the device. Trying to play games like this is only going to lead to pain. Use the density the device reports. Doesn't the stock Honeycomb Launcher force HDPI drawables for the app icons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to set the target as ARM-v7 on eclipse under Linux
HI All, How to set the target as ARM-v7 on eclipse for developing android application , by default it supports ARMv5 arch.I am using Eclipse under Linux. PLz assist, Rgds, Saurabh ..pain is temporary.quitting lasts forever.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Enforcing security on broadcast receiver without access to calling package
Is there any way to get the calling package when the BroadcastReceiver receives an intent? I have been searching around and am under the impression that this is impossible. The situation is that I don't have access to the calling package and cannot manipulate the manifest in any way. I am familiar with requiring a signature or permission to call the receiver but that isn't possible in this instance. I thought that granting a temporary permission to the calling package would work but I have found very little documentation on this. Additionally, from what I have read, I don't believe I can even grant temporary permissions to an application outside of my permission tree namespace. Is there any way to do this? Any help would be appreciated. Thanks in advance, Corey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding BroadCast Receiver
You should create a service to start the activity instead. Your broadcast receiver should call the service. On Jun 2, 2:50 am, Incredible success.anil...@gmail.com wrote: Can't we invoke an activity usingBroadcastreceiver. The onReceive forBroadCastreceiverwill be triggered whenever user presses power button. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Recognize the shape of object from a bitmap image?
Hi All, Recently, I worked with a paint project. First of all ,I need to select a color. When I touch the image then selected color will be replaced with same color region of bitmap image. How I can recognize the shape of same color region in the image. Sincerely, Habib -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 aqndroid apps in EClipseIDE using Maven framework
Hi, I have been stuck with this problem for 3 days.I want to develop an android app in Maven framework using Eclipse.I have no idea about Maven framework.I am using apache maven.I followed the instructions in installing,its showing the version etc,but when i try to set path to repo,I am getting this in my console C:\Users\377759cd mvn -Declipse.workspace= eclips e:add-maven-repo Access is denied. And if give the path without angular brackets,this is what I get.. C:\Users\377759mvn -Declipse.workspace=C:\Users\377759\Desktop\Repo eclipse:add -maven-repo [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file: repo1.ma ven.org [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 14 seconds [INFO] Finished at: Fri Jul 01 05:38:44 GMT 2011 [INFO] Final Memory: 1M/3M [INFO] C:\Users\377759 Why is this??What do I do??Actually I need to know the basics,like how to package my files in maven,the functions of different files,how to build and run,what to put in 'test' etc.Can anyone plzzz help?? Thanks a looot 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] emulator for Samsung Galaxy S and Device configurtaion
Hey i want to create emulator for galaxy S in AVD and also to configure new device that i could work with Eclipse designer (Graphical Layout) that fit the emulator. can anyone guide me? tnx gil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Back Ground Sound in Android
For Playing different sounds I have made a class SoundManager using soundpool now I can play a wanted sound on button click by my activities.But I want a back ground sound which will play through out my whole game ,from one activity to other.So how can I do it using SoundPool and where I have to write code to play it in my Activities. Actually I am new to Android if is there any other better way for playing background sounds through out all activities please tell me Here is my SoundManger class Code. package com.Tutorial.Sound; import java.util.HashMap; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; public class SoundManager { static private SoundManager _instance; private static SoundPool mSoundPool; private static HashMapInteger, Integer mSoundPoolMap; private static AudioManager mAudioManager; private static Context mContext; private SoundManager() { } static synchronized public SoundManager getInstance() { if (_instance == null) _instance = new SoundManager(); return _instance; } public static void initSounds(Context theContext) { mContext = theContext; mSoundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0); mSoundPoolMap = new HashMapInteger, Integer(); mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); } public static void addSound(int Index,int SoundID) { mSoundPoolMap.put(Index, mSoundPool.load(mContext, SoundID, 1)); } public static void loadSounds() { mSoundPoolMap.put(1, mSoundPool.load(mContext, R.raw.starwars, 1)); mSoundPoolMap.put(2, mSoundPool.load(mContext, R.raw.terminator, 1)); mSoundPoolMap.put(3, mSoundPool.load(mContext, R.raw.soundfcgo, 1)); mSoundPoolMap.put(4, mSoundPool.load(mContext, R.raw.soundfc1, 1)); mSoundPoolMap.put(5, mSoundPool.load(mContext, R.raw.soundfc2, 1)); } public static void playSound(int index,float speed) { float streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); streamVolume = streamVolume / mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); mSoundPool.play(mSoundPoolMap.get(index), streamVolume, streamVolume, 1, 0, speed); } public static void stopSound(int index) { mSoundPool.stop(mSoundPoolMap.get(index)); mSoundPool.pause(mSoundPoolMap.get(index)); } public static void cleanup() { mSoundPool.release(); mSoundPool = null; mSoundPoolMap.clear(); mAudioManager.unloadSoundEffects(); _instance = null; } } If you have any example on this back ground sound topic , it will be great full 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] How to keep a service running to get SCREEN_ON broadcast?
Hello, I have an application which monitors various components of the Android system: CPU, Memory, SD, apps, etc... The users can select to have a widget or a notification displayed on their device or even both. The notifications are able to display CPU load or CPU frequency and are provided as additional APK receiving intents from the main app (background service + broadcastreceiver with scheduled alarms). So, my app registers to receive SCREEN_ON and SCREEN_OFF broadcasts to disable widget/notification refreshes when screen is off. So during screen off, the app is actually not doing anything at all, but only waiting for the SCREEN_ON intent to restart refreshing widgets/ notifications! The problem is that for some users, after an overnight in standby, the widgets and notifications do not refresh anymore! I suspect it's because the app was killed and the SCREEN_ON registration is lost? So I tried to have the app killed when screen goes off... Well on my device at least it works as I want, app is restarted so is the refresh of widgets/notifications! Having another app acting more or less the same, I know from experience that only alarms are not lost when the app is killed by the OS, even though I've always been unable to reproduce this manually, if the app has no alarm scheduled on regular intervals it ends up being permanently killed by the OS (?) Can someone tell me how the SCREEN_ON registration is affected when the app is killed by the OS, and how can I make sure it will receive the SCREEN_ON broadcast? Some users have already reported the issue of widget/notification not being refreshed anymore! After searching the web I understood that only the following will keep the app running: - An alarm is scheduled at regular intervals - Use of the startForeground() with a notification - The app activity is in the forerground I can't use any of the above because an alarm will constantly wake-up the app and the phone when there's actually nothing to do, the notifications are optional (user may only have the widget) and the app activity is obviously not always in the foreground. Another note/question: the app has an option to record the data, scheduled every 5 minutes, when this is on the app keeps running appropriately and widget/notification are not lost, though if the app gets killed I loose the past recording! Is there anyway to keep my service running and keep the SCREEN_ON registration at all time? Sorry for the long question, I'm trying to be exhaustive about 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] Problem permission Gingerbread 2.3.3 Coby Kyros MID7015
Hello everybody I'm new here still do not understand much more to me struggling android. 2.3.3 In the gingerbread Tablet coby MID7015 everything is almost perfect, only that it agrees to forward applications to the SD memory card. The problem is allowed in both the card and in the NAND memory. Behind it deems could analyze init.rc the attached file to see if there is something wrong? thanks http://hotfile.com/dl/122788514/454ae2f/init.rc.html Ps: Sorry for ma english, i use trasnlate -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Broadcast Receiver not working immediately after package installation
I am currently working on an app that receives the BOOT_COMPLETED action using a Broadcast Receiver. The receiver is statically registered in the AndroidManifest.xml. It works on the next boot after installation for android 2.2 but not 3.1. With 3.1 I have to start the app once before the broadcast receiver gets the BOOT_COMPLETED action when booting. I suspect that something changed in 3.1 that is causing my receiver to be inactive until the app is started once. Has anyone ever seen this before or know how to stop this behavior? Any Help would be greatly appreciated. Thanks, Tom. AndroidManifest.xml: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.test.receiver android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=12 / uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.MainActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity receiver android:name=TestReceiver android:enabled=true intent-filter action android:name=android.intent.action.BOOT_COMPLETED / /intent-filter /receiver /application /manifest TestReceiver.java: package com.test.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class TestReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.i(TestReceiver, onReceive() was called); } } MainActivity.java: package com.test.receiver; import android.app.Activity; import android.os.Bundle; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] PC as USB Host for Android 2.3.4
First, hello all! Now my issue. I'm trying to get basic comms over USB working between Android 2.3.4 devices (dev device is a Nexus One with 2.3.4 upgrade) and my PC has the USB Host (PC is an OSX box, but am also testing on an Ubuntu11 box) using libusb-1.0. I'm doing this in order to develop an communication API without needing actual accessories in hand, mostly. I've detailed the issue in a StackOverflow post, no answers yet: Any hints would be greatly appreciated. Thanks! http://stackoverflow.com/questions/6524891/android-adk-with-pc-as-usb-host-with-libusb-bulk-transfer-error Colin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Offline installation of Android packages
I am a android first timer and had similar problem two nights ago. I tried to download and install Android SDK on older Windows XP machine using the recommended install package at http://developer.android.com/sdk/index.html, but the install kept failing. ( Android install could not find the Java JDK package even though it was installed) I was about to write for help when I decided to use the Windows zip package. After many hours of installation download time, the zip package worked! Once you have android SDK installed, your installed SDK will be in the offline mode. Because of the lengthy download time, I backed-up the 1.6GB installation onto a thumb-drive. To re-create my android SDK, I just need copy files from the thumb-drive to a new folder on my Desktop. For a completely offline installation, I suggest that you have a friend upload the SDK folder to a Dropbox shared folder and, Internet access permitting, and download the folder. You can directly invoke android SDK from the downloaded folder. If poor Internet service prevents you from downloading, then have the friend copy the SDK folder to DVD and snail-mail the DVD to you. Regards - a new day, a new software problem :-) -edgar On Jul 3, 6:47 am, Samuel jrl...@gmail.com wrote: Hi, Is there a way to install Android packages offline. I never success install them through SDK manager since the internet connection in my home is not stable. thanks, Samuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with clicking on list
Hi everyone. I have a problem with my custom list. I`ve created my own adapter and everything works great. I have a nice list. But no I want to add an OnClickListener so I can click on a row and actualy do something. I`ve created the listener and added it to the one item of my row BUT it works only at the second click/touch. On the first nothing happens. I mean that I need to click 2 times on a item to get some action Below my adapter, onclick and row.xml @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if(v == null) { LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.row, null); } News news = this.items.get(position); if(news != null) { TextView tt = (TextView) v.findViewById(R.id.toptext); TextView bt = (TextView) v.findViewById(R.id.bottomtext); if (tt != null) { tt.setText(Name: + news.getName()); tt.setOnClickListener(new TestOnClick(news)); } if(bt != null){ bt.setText(Status: + news.getUrl().toString()); } } return v; } } private class TestOnClick implements OnClickListener { News news; public TestOnClick(News n) { this.news = n; } public void onClick(View v) { Log.i(testy, this.news.getName()); } } ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:padding=6dip ImageView android:id=@+id/icon android:layout_width=wrap_content android:layout_height=fill_parent android:layout_marginRight=6dip android:src=@drawable/icon / LinearLayout android:id=@+id/item android:orientation=vertical android:layout_width=0dip android:layout_weight=1 android:layout_height=fill_parent TextView android:id=@+id/toptext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / TextView android:id=@+id/bottomtext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / /LinearLayout /LinearLayout Please help Best regards Dawid Fixus Pacholczyk -- Dawid Pacholczyk tel: 502-054-334 gg: 5564051 skype: dpacholczyk http://typo3blog.pl (only polish version at the moment) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom list and onClick
Hi everyone. I have a problem with my custom list. I`ve created my own adapter and everything works great. I have a nice list. But no I want to add an OnClickListener so I can click on a row and actualy do something. I`ve created the listener and added it to the one item of my row BUT it works only at the second click/touch. On the first nothing happens. I mean that I need to click 2 times on a item to get some action Below my adapter, onclick and row.xml @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if(v == null) { LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.row, null); } News news = this.items.get(position); if(news != null) { TextView tt = (TextView) v.findViewById(R.id.toptext); TextView bt = (TextView) v.findViewById(R.id.bottomtext); if (tt != null) { tt.setText(Name: + news.getName()); tt.setOnClickListener(new TestOnClick(news)); } if(bt != null){ bt.setText(Status: + news.getUrl().toString()); } } return v; } } private class TestOnClick implements OnClickListener { News news; public TestOnClick(News n) { this.news = n; } public void onClick(View v) { Log.i(testy, this.news.getName()); } } ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:padding=6dip ImageView android:id=@+id/icon android:layout_width=wrap_content android:layout_height=fill_parent android:layout_marginRight=6dip android:src=@drawable/icon / LinearLayout android:id=@+id/item android:orientation=vertical android:layout_width=0dip android:layout_weight=1 android:layout_height=fill_parent TextView android:id=@+id/toptext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / TextView android:id=@+id/bottomtext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / /LinearLayout /LinearLayout Please help Best regards Dawid Fixus Pacholczyk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is checking view in adapter is needed ?
Hello, I`m learning about creating own ArrayAdapter because I want to put some custom object in my List view. I`ve read this article: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ Now the question is about small part of code: if (v == null) { LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.row, null); } What is it for ? For example I would like to put my own adapter in diffrect package, class. But I can`t cause getSystemService is from ListActivity. Is this really neaded ? Can I in other class make something liek this ? ListActivity la = new ListActivity() if (v == null) { LayoutInflater vi = (LayoutInflater)la.getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.row, null); } Best regards, Dawid Pacholczyk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Offline installation of Android packages
I am a android first timer and had similar problem two nights ago. I tried to download and install Android SDK on older Windows XP machine using the recommended install package at http://developer.android.com/sdk/index.html, but the install kept failing. ( Android install could not find the Java JDK package even though it was installed) I was about to write for help when I decided to use the Windows zip package. After many hours of installation download time, the zip package worked! Once you have android SDK installed, your installed SDK will be in the offline mode. Because of the lengthy download time, I backed-up the 1.6GB installation onto a thumb-drive. To re-create my android SDK, I just need copy files from the thumb-drive to a new folder on my Desktop. For a completely offline installation, I suggest that you have a friend upload the SDK folder to a Dropbox shared folder and, Internet access permitting, and download the folder. You can directly invoke android SDK from the downloaded folder. If poor Internet service prevents you from downloading, then have the friend copy the SDK folder to DVD and snail-mail the DVD to you. Regards - a new day, a new software problem :-) -edgar On Jul 3, 6:47 am, Samuel jrl...@gmail.com wrote: Hi, Is there a way to install Android packages offline. I never success install them through SDK manager since the internet connection in my home is not stable. thanks, Samuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom ArrayAdapter in ListView and OnClickItem
Hello List, I`ve created my own adapter for ListView and now I would like to click on the items but I can`t. I`ve created something like this NewsArrayAdapter naa = new NewsArrayAdapter(NewserActivity.this, R.layout.row, news); setListAdapter(naa); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { // When clicked, show a toast with the TextView text Toast.makeText(getApplicationContext(), ((TextView) view).getText(), Toast.LENGTH_SHORT).show(); } }); But when I click on item I get error: 06-30 10:19:12.514: ERROR/AndroidRuntime(2578): at fixus.core.NewserActivity$1.onItemClick(NewserActivity.java:48) The error is in this line: Toast.makeText(getApplicationContext(), ((TextView) view).getText(), Can anybody help me ? best regards, Dawid Fixus Pacholczyk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] touch and click listeners
Hello, I have a short question. Should I use in same time OnTouch and OnClick listeners ? If I`m correct one is for touch screens and other is for devices with out it. Am I wrong ? If not should I use both listeners to secure both kind of devices ? Best regards Dawid Fixus Pacholczyk -- Dawid Pacholczyk tel: 502-054-334 gg: 5564051 skype: dpacholczyk http://typo3blog.pl (only polish version at the moment) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Where to unregister Media Button event receiver when process is killed explicitly
Our application uses registerMediaButtonEventReceiver() to listen to remote control events, say from Bluetooth headset. And we call unregisterMediaButtonEventReceiver() to remove the listener in onPause() and onDestroy(). It works well for most of the times. However, if the process of our App is killed explicitly, there is no chance to call unregisterMediaButtonEventReceiver() anywhere in the App. And this will leave a zombie receiver in the RC stack of AudioService. Any suggestions? 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] In-App billing and Lodsys patent issues
Hey Guys, In the case of the in-app billing and Lodsys patent issues, how are you guys modelling your new paid apps? Are you still using in-app billing? Or have you reverted to using a different app download to unlock the free app? Hope to hear how some of you are dealing with the billing issues now. Thanks, Ferd -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Receivers and Prefereces
1. I Have a broadcast receiver that need to talk with a activity when data or wifi connection status is changed. How i do that in a correct manner? Need to use indent or can call direct? Someone can give a exemple? 2. Thats a simple question. I have a preferenceActivity but i dont know how to save the settings and load it when my app start. If someone can make me a exemple of this, it will be great. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to dynamic render account settings preference screen?
Hi all, I am currently working on account settings. When user added an account, he also can edit the account, like gmail, there is always an account setting page. In the SampleSyncAdapter, we need a preference xml to describle the preference screen. However, the screen is static, created in design time. I want to create the preference screen in runtime, like what google does, in google gmail account settings page, it will add an item google notebook if google notebook is installed. How can do it in Java code instead of xml, 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] cannot setup google account although network is working
Android 2.2/Linux version 2.6.29 I have a device without grps and no wifi around. I created a connection via usb via pppd. When I open the browser, it displays an error message telling me that there is no connection - then I can surf without problems. I cannot set up my google account for the device since the connection fails. However the connection is definitely working. Is there something that I'm missing? Any help would be highly appreciated. This is the adb shell: # ping www.google.com PING www.google.com (209.85.148.103) 56(84) bytes of data. 64 bytes from www.l.google.com (209.85.148.103): icmp_seq=1 ttl=56 time=149 ms # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.1 0.0.0.0 255.255.255.255 UH0 0 0 ppp0 0.0.0.0 192.168.0.1 0.0.0.0 UG0 0 0 ppp0 # getprop|grep net [net.bt.name]: [Android] [net.change]: [net.interfaces.defaultroute] [net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208] [net.tcp.buffersize.wifi]: [4095,87380,110208,4096,16384,110208] [net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208] [net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040] [net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680] [ro.product.name]: [Archos A28 Internet Tablet] [net.interfaces.defaultroute]: [] [net.ppp0.dns1]: [192.168.2.1] [net.ppp0.dns2]: [] [net.ppp0.local-ip]: [192.168.0.254] [net.ppp0.remote-ip]: [192.168.0.1] [net.dns1]: [192.168.2.1] [net.dns2]: [] -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SoundPool and DualCore (Samsung Galaxy S2) : Random Crashes ingame
I am seeing the same behavior in our game as well! Has anybody come up with a workaround for this problem or are we just at the mercy of Samsung to push out a bug fix? On Jun 22, 1:12 pm, Andy m...@tekx.de wrote: I preload my Sounds via loadso that i didn't have to reload on runtime... but even then only py using .play(.) something is wrong on the S2. The SoundPool uses a native SoundPool in the Background...i expect a bug there If someone know a workaround it would be very much 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] Contact info needed for Android@Home technical support and new development
I'm a Electronics Design Engineer doing delevopment using WiFi on Android phones and need some help. There are a number of questions about the current capabilites that Android phones have in supporting 802.11b/g/n communications. Is there someone I can contact directly to get answers? Ideally it would be someone in the Android@Home group, since this is what my project is related to. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to disable the Clear Data button in Application info of Manage appliaction.
I am working on android 2.2, In a Application tab of android manifest provide the option of Allow clear data to set true or false. But after setting it to False, my application can't disable the button of Clear data in application info of Manage application. I am facing this problem when application contains database in Data/Data/packge-name/ databases/. I already spend my 2 days for this issue, but result is zero,. I have to protect my application database from user. Please 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] Need help with custom view object
I am trying to create a custom view object that I can display on the screen. I have been able to display the object but and I now trying to add this view to a gallery type thing so that I can horizontally scroll through a few of them. I am wondering if I can just add them directly to the gallery somehow or do I have to construct a new class that would extend a gallery view. I am unsure on how to do either one of these and would like any assistance you are willing to give. The custom view that I created is below. I have not done much on the visual aspect of this project because I am unsure about custom views. class Domino extends View { public Domino(Context context) { super(context); } @Override public void onDraw(Canvas canvas) { Bitmap _dom = BitmapFactory.decodeResource(getResources(), R.drawable.domino_image); canvas.drawColor(Color.BLACK); canvas.drawBitmap(_dom, 20, 20, null); } } I know by using the drawBitmap() method I am just drawing all images on top of each other. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 does ResolverActivity or ChooserActivity gets list of applications ?
Hi, I have an application that can open text files. If I click preview for my Gmail text file attchment, ResolverActivity lists my application. It displays my application Icon and Name The name is specified in androidManifest.xml using android:label. Is there any way that I can supply my additional info that ResolverActivity can display to user ? Thanks Rk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CalledFromWrongThreadException
Hi, I have the following problem: in my main activity I've created a linearlayout vertical with 3 views, a title view, a game view and a score view. Game view is update with a thread in order to keep a constant framerate, this thread call the method onDraw of the game view, so far so good, the problem appears when just after calling onDraw of the gameView I make a setText in the ScoreView (kind of TextView), then a CalledFromWrongThreadException appears saying: Only the original thread that created a view hierarchy can touch its views. Can I not have a single thread for updating all the views? What can I do? Thank you very much, I really appreciatte your support. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Accessing Android application from Remote PC
I want to access a program or a service running in android device form my remote pc. briefly I want to access an application in android from my pc and android app will give some results back to pc.can any one give solution for 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: start binded service from broadcast receiver
Hi , thanks for the information. can we make service not to be stopped by the user if it can be my requirement will be done as this is a mobile theft tracker application the service running should not be stopped by the user . can u plz suggest me anything idea how to do this On Jul 4, 11:48 am, dnkoutso dnkou...@gmail.com wrote: Edit:http://developer.android.com/reference/android/content/BroadcastRecei... Read the Life Cycle part. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Custom list and onClick
Hi Dawid Fixus ; It should work for single click . . . Have you put the breakpoint in method public void onClick(View v) { Log.i(testy, this.news.getName()); } and see if the control is coming into this method on single click . . .. On Fri, Jul 1, 2011 at 9:47 PM, fixus dpacholc...@gmail.com wrote: Hi everyone. I have a problem with my custom list. I`ve created my own adapter and everything works great. I have a nice list. But no I want to add an OnClickListener so I can click on a row and actualy do something. I`ve created the listener and added it to the one item of my row BUT it works only at the second click/touch. On the first nothing happens. I mean that I need to click 2 times on a item to get some action Below my adapter, onclick and row.xml @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if(v == null) { LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.row, null); } News news = this.items.get(position); if(news != null) { TextView tt = (TextView) v.findViewById(R.id.toptext); TextView bt = (TextView) v.findViewById(R.id.bottomtext); if (tt != null) { tt.setText(Name: + news.getName()); tt.setOnClickListener(new TestOnClick(news)); } if(bt != null){ bt.setText(Status: + news.getUrl().toString()); } } return v; } } private class TestOnClick implements OnClickListener { News news; public TestOnClick(News n) { this.news = n; } public void onClick(View v) { Log.i(testy, this.news.getName()); } } ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:padding=6dip ImageView android:id=@+id/icon android:layout_width=wrap_content android:layout_height=fill_parent android:layout_marginRight=6dip android:src=@drawable/icon / LinearLayout android:id=@+id/item android:orientation=vertical android:layout_width=0dip android:layout_weight=1 android:layout_height=fill_parent TextView android:id=@+id/toptext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / TextView android:id=@+id/bottomtext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / /LinearLayout /LinearLayout Please help Best regards Dawid Fixus Pacholczyk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 :* *Muhammad Nasir Aftab* --- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] External data an persistence across uninstall
Is there a standard place on external storage that we can write to that won't be wiped when uninstalled? RdTFM, Googled it, can't seem to find a consensus. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [URGENT] How to open a sms thread by thread id or sender number
Hi guys! I need an experience to open a sms thread programmatically from my mms or sms inbox queried by thread id or sender id. Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Failed to load properties file for project 'HelloAndroid'
Hello everybody, I'm newbie and weak programming but try to study about android so I start every step by step in http://developer.android.com/resources/tutorials/hello-world.html and I got this problem eclipse.buildId=M20110210-1200 java.version=1.6.0_24 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=th_TH Command-line arguments: -os win32 -ws win32 -arch x86 Error Fri Jul 01 02:45:57 ICT 2011 Failed to load properties file for project 'HelloAndroid' Thank for help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: start binded service from broadcast receiver
Actually i am running my own service that binds tha AIDL from the broadcast receiver but as i saw in the documentation it is not allowed . On Jul 4, 11:48 am, dnkoutso dnkou...@gmail.com wrote: Edit:http://developer.android.com/reference/android/content/BroadcastRecei... Read the Life Cycle part. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Save new contact in a custom account
i created a custom syncadapter (based on samplesyncadapter) to synchronize contacts with a custom server-application. This works without problems. The only problem is when adding a new contact via contact editor, i cannot select this custom account to save the new contact. When i explore the contact-database i can see that the synchronised contacts have reference to the custom account. So why doesnt the custom account show up in the account-List ? Furthermore i am synchronizing calendar-events. There the same problem exists. maybe someone has a clue about this? thanks, Fugee47 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] External data an persistence across uninstall
On Mon, Jul 4, 2011 at 4:57 PM, Chris crehb...@gmail.com wrote: Is there a standard place on external storage that we can write to that won't be wiped when uninstalled? RdTFM, Googled it, can't seem to find a consensus. The 'standard place' on external storage is /Android/data/package_name/files/ If you are running Froyo or above it will be deleted on uninstall. If not, it won't. Any other directory you create, won't be deleted automatically. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem with clicking on list
Hi Dawid, read this tutorial http://developer.android.com/resources/tutorials/views/hello-listview.html it actually contains the solution for your problem. Best regards, Filip Havlicek 2011/7/1 Dawid Pacholczyk dpacholc...@gmail.com Hi everyone. I have a problem with my custom list. I`ve created my own adapter and everything works great. I have a nice list. But no I want to add an OnClickListener so I can click on a row and actualy do something. I`ve created the listener and added it to the one item of my row BUT it works only at the second click/touch. On the first nothing happens. I mean that I need to click 2 times on a item to get some action Below my adapter, onclick and row.xml @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if(v == null) { LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.row, null); } News news = this.items.get(position); if(news != null) { TextView tt = (TextView) v.findViewById(R.id.toptext); TextView bt = (TextView) v.findViewById(R.id.bottomtext); if (tt != null) { tt.setText(Name: + news.getName()); tt.setOnClickListener(new TestOnClick(news)); } if(bt != null){ bt.setText(Status: + news.getUrl().toString()); } } return v; } } private class TestOnClick implements OnClickListener { News news; public TestOnClick(News n) { this.news = n; } public void onClick(View v) { Log.i(testy, this.news.getName()); } } ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:padding=6dip ImageView android:id=@+id/icon android:layout_width=wrap_content android:layout_height=fill_parent android:layout_marginRight=6dip android:src=@drawable/icon / LinearLayout android:id=@+id/item android:orientation=vertical android:layout_width=0dip android:layout_weight=1 android:layout_height=fill_parent TextView android:id=@+id/toptext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / TextView android:id=@+id/bottomtext android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1 android:gravity=center_vertical android:focusable=true android:focusableInTouchMode=true android:clickable=true / /LinearLayout /LinearLayout Please help Best regards Dawid Fixus Pacholczyk -- Dawid Pacholczyk tel: 502-054-334 gg: 5564051 skype: dpacholczyk http://typo3blog.pl (only polish version at the moment) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] touch and click listeners
Hi Dawid, a brief description of the various listeners is here http://developer.android.com/guide/topics/ui/ui-events.html Best regards, Filip Havlicek 2011/7/1 Dawid Pacholczyk dpacholc...@gmail.com Hello, I have a short question. Should I use in same time OnTouch and OnClick listeners ? If I`m correct one is for touch screens and other is for devices with out it. Am I wrong ? If not should I use both listeners to secure both kind of devices ? Best regards Dawid Fixus Pacholczyk -- Dawid Pacholczyk tel: 502-054-334 gg: 5564051 skype: dpacholczyk http://typo3blog.pl (only polish version at the moment) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] confused by weakref_impl implementation
I got confused when I read source code about RefBase.cpp // compile with refcounting debugging enabled #define DEBUG_REFS 0 #define DEBUG_REFS_ENABLED_BY_DEFAULT 1 #define DEBUG_REFS_CALLSTACK_ENABLED1 class RefBase::weakref_impl : public RefBase::weakref_type { public: volatile int32_tmStrong; volatile int32_tmWeak; RefBase* const mBase; volatile int32_tmFlags; #if !DEBUG_REFS weakref_impl(RefBase* base) : mStrong(INITIAL_STRONG_VALUE) , mWeak(0) , mBase(base) , mFlags(0) { } void addStrongRef(const void* /*id*/) { } void removeStrongRef(const void* /*id*/) { } void addWeakRef(const void* /*id*/) { } void removeWeakRef(const void* /*id*/) { } void printRefs() const { } void trackMe(bool, bool) { } #else #endif Here all the methods are all empty, my question is then where are these implementations? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bengali Font preview problem [dependent vowel signs]
Hi, i fetch this problem, about dependent vowel signs of Bengali language. i took two screen-shoots where i put a Bengali string in string.xml and trying to show that string with a TextView. my code snippets is like this one http://stackoverflow.com/questions/6420227/how-can-i-use-bangla-font-as-a-string-value-in-android and screen-shoots are here http://tinyurl.com/3vbw3q7 http://tinyurl.com/3ehbc5j and here the Unicode chart for Bengali Language. http://unicode.org/charts/PDF/U0980.pdf -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Tamil font(unicode)
Hi Suba, i fetch this problem, about dependent vowel signs of Bengali language. i took two screen-shoots where i put a Bengali string in string.xml and trying to show that string with a TextView. my code snippets is like this one http://stackoverflow.com/questions/6420227/how-can-i-use-bangla-font-as-a-string-value-in-android and screen-shoots are here http://tinyurl.com/3vbw3q7 http://tinyurl.com/3ehbc5j and here the Unicode chart for Bengali Language. http://unicode.org/charts/PDF/U0980.pdf On May 6, 11:29 am, subhashini alaguchokku subhashini.andr...@gmail.com wrote: Hi Android developers group! I want to display tamil font in emulator. i mean, i get unicode from serverside like that #2970;#3014;#2985;#3021;#2985;#3016; #2986;#3015;#2999;#2985;#3021; #2999;#3019; so I used (Tamil) aAvarangal.ttf font(unicode), In emulator i get tamil font little bit correct but not get exact spelling, i mean (kuril/nedil) characters are jumped, give me any solution? Thanks, suba -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add Unicode font on Android
Hi, i fetch this problem, about dependent vowel signs of Bengali language. i took two screen-shoots where i put a Bengali string in string.xml and trying to show that string with a TextView. here a code snippets http://stackoverflow.com/questions/6420227/how-can-i-use-bangla-font-as-a-string-value-in-android On May 17, 4:23 am, Mark Murphy mmur...@commonsware.com wrote: On Mon, May 16, 2011 at 6:11 AM, rajesh babu rajesh.polamarase...@gmail.com wrote: I have a mydroid source and I want to addUnicodefonts to android. can anyone know how to do this? I have no idea what a mydroid source is. If you are trying to add afontto your app, you can package it as an asset and use Typeface: http://developer.android.com/reference/android/graphics/Typeface.html If you are trying to add afontto your firmware, this is the wrong list. Tryhttp://source.android.com. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 disable the Clear Data button in Application info of Manage appliaction.
Why do you need to protect it in the first place? 2011/6/30 Nimit Solanki solanki.ni...@gmail.com I am working on android 2.2, In a Application tab of android manifest provide the option of Allow clear data to set true or false. But after setting it to False, my application can't disable the button of Clear data in application info of Manage application. I am facing this problem when application contains database in Data/Data/packge-name/ databases/. I already spend my 2 days for this issue, but result is zero,. I have to protect my application database from user. Please 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Android3.0平板電腦應用程式開發
我的SDK已更新到Android3.1版(包含3.0版) 在SDK模擬時選擇了Android3.0 將寫好的程式執行模擬10.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] Binding VideoView to RTSP server running on localhost
Hi Guys, Is there a problem binding a VideoView's URI to a RTSP server socket running on a localhost (rtsp://{local ip}:{port})? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 using Gson with Proguard - ClassCastException
I am in desperate need of a solution to this problem, it is the final thing holding up the release of my app. I have an object that has 2 properties of type Map which when converted to json and back work great. But when I use proguard, it complains about the Map saying: java.lang.ClassCastException: java.lang.Object Entire Post: http://stackoverflow.com/questions/6533676/android-proguard-gson-and-classcastexception -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get video being played back in a OpenGL-texture
For an Augmented Reality application, I need to get a video (file or stream, ideally H.264 encoded) into an OpenGL texture. I want to overlay certain real-world-objects in my AR application with videos. So, the video will not be full-screen, the video should be played in a (perspectively distorted) quad. I guess, I would have to update the OpenGL texture every frame. But how do I get the videoframes? How can I achieve this? MediaPlayer in combination with GLSurfaceView? There is that FFmpeg solution, which looks rather hard and involved to me. (http://stackoverflow.com/questions/4676178/android-video-player- using-ndk-opengl-es-and-ffmpeg) Do I have to go that way, or is there a simpler solution? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] The method parseInt(String) in the type Integer is not applicable for the arguments (Editable)
package com.example.test; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.*; public class TestActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final TextView txtHint = (TextView)findViewById(R.id.main); final TextView txtResult = (TextView)findViewById(R.id.result); final EditText edtOp1 = (EditText)findViewById(R.id.op1); final EditText edtOp2 = (EditText)findViewById(R.id.op2); final Button btnAdd = (Button)findViewById(R.id.submitButton); btnAdd.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { int a,b; a = Integer.parseInt(edtOp1.getText()); //How can i get edtOp1(EditText) valu in variable a } }); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] back storing in android
* In Android mobile suppose we run any application that time we click back button in android mobile means it will return to previous activity. * Yep, that is how it works. * but i want to specify my favorite page not previous page.* Unless you have a really good reason, don't do this. It is not the default behavior and will irritate your users. Your reason does not seem like a good reason to me. That being said: http://tinyurl.com/65sxkv7 * then i want to delete that stack memory of previous activity.* * * Why? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 29, 2011 at 4:22 AM, arunkumar hariarun2...@gmail.com wrote: but i want to specify my favorite page not previous page. then i want to delete that stack memory of previous activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Adding TableLayout dynamically not working
I have what I thought was very simple code: //Get LinearLayout declared in XML final LinearLayout mainLayout = (LinearLayout) findViewById(R.id.linLayout); //Create a LinearLayout to display text in. LinearLayout myLayout = new LinearLayout(this); myLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); TextView myTestText = new TextView(this); myTestText.setText(This should be in a LinearLayout.); myTestText.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); myLayout.addView(myTestText); mainLayout.addView(myLayout); //Create a TableLayout to display text in TableLayout myTable = new TableLayout(this); myTable.setLayoutParams(new TableLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); TableRow myRow = new TableRow(this); myRow.setLayoutParams(new TableRow.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); TextView myText = new TextView(this); myText.setText(This should be in a table); myText.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); myRow.addView(myText); myTable.addView(myRow); mainLayout.addView(myTable); //Create another LinearLayout to display text in. LinearLayout myOtherLayout = new LinearLayout(this); myOtherLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); TextView myOtherTestText = new TextView(this); myTestOtherText.setText(This should also be in a LinearLayout.); myTestOtherText.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); myOtherLayout.addView(myOtherTestText); mainLayout.addView(myOtherLayout); This throws no errors at all, however I only see the linear layouts with the text, This should be in a LinearLayout, and right below that (the mainLayout's orientation is set to vertical, hence it being below) is, This should also be in a LinearLayout on the screen, the table does not show at all. I've search around a lot on this, and the only thing I can find is to make sure that the TableRow using TableRow.LayoutParams. Any ideas why the table I add to this view just isn't displaying at all? My ultimate goal is to have alternating LinearLayouts and TableLayouts generated dynamically, which I know works with XML (I designed a static layout in XML and it worked fine), it is just when I try to add the TableLayouts dynamically that I'm running into this issue. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android and ResponseCache... Request Headers are missing
I am implementing ResponseCache for HttpUrlConnection in android. Everything seems to work. I call ResponseCache.setDefault(new ResCache()); And the methods in my ResCache class are being used as expected. The only problem I am having is that the Map with request Parameters is empty. If I try this very same code outside of an android environment, I will be able to see the request Header parameter, but inside an activity and all that stuff is not working. Here is the code for the Activity. package com.httptest; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.CacheRequest; import java.net.CacheResponse; import java.net.HttpURLConnection; import java.net.ResponseCache; import java.net.URI; import java.net.URL; import java.net.URLConnection; import java.util.List; import java.util.Map; import android.app.Activity; import android.os.Bundle; public class HttpTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ResponseCache.setDefault(new ResCache()); HttpURLConnection urlConnection = null; try { URL url = new URL(http://169.254.198.146//patch/500.php;); urlConnection = (HttpURLConnection) url .openConnection(); urlConnection.setUseCaches(true); urlConnection.setRequestProperty(MY_PROPERTY, MY_VALUE); InputStream in = new BufferedInputStream( urlConnection.getInputStream()); String aux = readStream(in); }catch(Exception e){ e.printStackTrace(); }finally { urlConnection.disconnect(); } } public static String readStream(InputStream in) throws IOException { StringBuilder sb = new StringBuilder(); BufferedReader r = new BufferedReader(new InputStreamReader(in), 1000); for (String line = r.readLine(); line != null; line = r.readLine()) { sb.append(line); } in.close(); return sb.toString(); } public class ResCache extends ResponseCache{ @Override public CacheResponse get(URI arg0, String arg1, MapString, ListString arg2) throws IOException { System.out.println(arg2); return null; } @Override public CacheRequest put(URI uri, URLConnection connection) throws IOException { return null; } } } In the method ResCache.get(URI, String, Map), the map is always empty. I would like to see the parameters I added to the request. By the way the parameters all well set in the request, as I can read them in the server when performing the request. Again, this works outside of an android environment. Any help with this? 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
Re: [android-developers] Re: Youtube Logo
http://tinyurl.com/3tm6mzt Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jun 30, 2011 at 10:39 AM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jun 30, 2011 at 12:15 PM, JCC banr...@gmail.com wrote: Fine, then mind giving me a link to a place where I could ask for this? Contact your attorney or other qualified legal counsel, if you do not feel that the YouTube site gives you sufficient clarity on your topic. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Rotate Google Map
Hi Friends, I developed a map applications and if there is an U-Turn on the road I want to rotate map (North point must be always on top of phone) How can i handle it. Thank you for your concern. 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] Turn off screen but not hardware keys, catch input with screen off
Hi, I am new to android apps and I am trying to figure out a way to keep an application in foreground running, getting input from the hardware keys only (like volume up and down) but without turning on the screen or unlocking. I mean lets say you aquire a nice cpu partial wakelock to do your staff, you run an app for chating like a walkie talkie and you want the user to be able to respond to audio messages by pressing the volume up and talking. You can;t have the screen on all the time, it is draining the battery and you can;t have screen lighting or diming on every hard click. You also cant use the camera button if you don;t have one, and the media button is only available when using a handsfree. Still you have to open the screen, disable the keyguard, bring the app to foreground if not already and then receive input from the hard key pressed. So how can I protect the touchscreen or at least turn off the screen but disable the keyguard after the timeout to save battery? I 've seen apps locking the hard keys and not the touchscreen but there is no documentation or availability on turning off the screen light with keyguard locking only the touchscreen leaving the hard keys to the foreground application. Please note that many of the devices do not push buttons so easilly and are on pockets inside cases with holes that allow the user to press buttons but those are not easilly pressed in pocket. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Youtube Logo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 30, 2011, at 9:15 AM, JCC wrote: Fine, then mind giving me a link to a place where I could ask for this? Really? You expect that? ... sound of mind boggling ... Really? While there may be some overlap between marketing and development these days, particularly in the handheld markets, you're experiencing a rationality fault if you think someone here is going to be able to answer a question about branding and/or another company's acceptable use policy for it's logo. Contact someone on the marketing team of the company whose logo you're interested in using. They should be able to tell you if you would be sued for the use you have in mind. But even then, you'll need something (like, you know, a release or permission) in writing from someone in their counsels' office to be really sure. And here I was thinking all the complaints about misdirected questions were harsh. The eternal summer lives on, I guess. -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQIcBAEBAgAGBQJODKg2AAoJEIc+Rq06/8k7JLUP/0qcv6iC7yIv0PpGPeu2b0z9 XkP0IQuln/W43NvkqukNz7rQNz8DqlB27NtvG47Gpwyl9cIimgJfBfOm2a+ZCPT4 ftZivqjgxNvxPWZSygq0fmhhYpMf9Ai5orVpQDhM/Ihpnt4pduRjpJCR36WtmkYF RuuLVeB8Q+GerILcKDyWazcFz4uSflqrq+c8ke44QfeFJ06a85B/82xHRvHkyMvC nKkLf4AB+IQYjlbAWyWoLxEiQLXAwCZ2n064JEvpAxTkm+LZ2XbEPS0DvKLvc1uP DxhUQmc5VZFRT5h1aKtEHkCC+k4hrNcm71zJSkuu8mK5smm1ZRN72LZU2GH2SEIL J+5GY6le9gosKkfc9/jlmwJK6x+pAehIdiaVTOxsMl9DYYoXqBDWZDBhNuBrSEJY hdnnzekl1O8mXAWfiytL2oO+qUHCT084Is/3BB+WrXeGiXFvwlnM1zQK7ssN7vUl ZcAdkLqSY3Lq/TelYHZmd7/7D370M6M3DwbAuKS4WWee9R4T2ABNY/DcEwhqd373 nnkunukgwwm4Pl2k+1Ntg3ELUng+yuembjv5ZtLR9xcb6A5J19i7Cy5mpmSPfl+c Duec6CdX+02/4hJ6FtbmZe7qQ993wvstSRu8vzHTcjje6XU0dzZFTTu2U3MYxbAX SedYfGHqsrCgD5ZPjnVK =pM+S -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 2.1 Eclair clear data
is there have the clear data button for Eclair? I am using Xperia X10 Sony Ericson. I can't found any clear data button for the application. the data is store in internal storage. is there anyway for me to clear the data inside the internal storage? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] requestBuffer(0, 0, 0, 4, 00000200) Issue
Hi, I developed an android app in which one flow is to loop between Activity A - Home Screen - Activity B. Activity A being the video and Activity B is GLSurface view. App works ohkay for some time but keep app running for longer period of time it stalls on homescreen and when I see logs I get below message requestBuffer(0, 0, 0, 4, 0200) returned a buffer with a null handle getBufferLocked(0, 0, 0, 4, 0200) failed (Out of memory) Can someone point as to what does the code means? getBufferLocked(0, 0, 0, 4, 0200) so that I can further debug. Thanks, Jiten -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SMS Broadcastreceiver not received when GO SMS Pro installed
I have implemented an SMS receiver which intercepts incoming SMS messages without any issues. However, when I install GO SMS Pro and set Disable other message notification, then my app does not receive any broadcast message even though I have set the priority on intent filter very high. Is there a way to overcome so that my app always receive a SMS broadcast irrespective of what user does on Go SMS Pro's app, especially since my app does not show any UI pop-up notification? As soon as I uninstall GO SMS Pro, my app starts getting incoming SMS broadcasts and works fine. Here is the log when an incoming SMS is received and GO SMS Pro is installed. There is some magic done by GO SMS Pro which I don't understand. Can someone explain what is done here and how can I make sure my app does get ordered broadcast notification every time? 07-02 19:52:21.674: INFO/Zygote(25209): Zygote: pid 25209 has INTERNET permission, then set capability for CAP_NET_RAW 07-02 19:52:21.820: INFO/ActivityThread(25209): Publishing provider go- sms: com.jb.gosms.provider.GoSmsProvider 07-02 19:52:21.830: INFO/ActivityThread(25209): Publishing provider go- mms-sms: com.jb.gosms.provider.GoMmsSmsProvider 07-02 19:52:21.834: INFO/ActivityThread(25209): Publishing provider com.jb.gosms.im;com.jb.gosms.chat: com.jb.gosms.im.database.ImContentProvider 07-02 19:52:21.842: INFO/ActivityThread(25209): Publishing provider com.jb.gosms.schedule.Schedule: com.jb.gosms.schedule.ScheduleProvider 07-02 19:52:21.846: INFO/ActivityThread(25209): Publishing provider go- mms: com.jb.gosms.provider.GoMmsProvider 07-02 19:52:21.959: DEBUG/dalvikvm(25209): GC_FOR_MALLOC freed 2657 objects / 173112 bytes in 30ms 07-02 19:52:22.182: DEBUG/dalvikvm(25209): Trying to load lib /data/ data/com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70 07-02 19:52:22.182: DEBUG/dalvikvm(25209): Added shared lib /data/data/ com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70 07-02 19:52:22.182: DEBUG/dalvikvm(25209): No JNI_OnLoad found in / data/data/com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70, skipping init 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): InitLib in ver=3141000 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Init in 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): file size=155203 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Init out 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Instance out Init = 21 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): InitLib out 07-02 19:52:22.467: DEBUG/dalvikvm(25209): GC_FOR_MALLOC freed 5960 objects / 376104 bytes in 29ms 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogcreateFromPdu : calling parsePdu 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogpdu to parse : 02100202070292A106A85A0008150003100730010610254E9D3A000306110702195220 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogparseAddress 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogaddress received :3233292992 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogbearer data received : 0003100730010610254E9D3A000306110702195220 07-02 19:52:22.815: ERROR/bearer data(25209): bearer data obtained 1 07-02 19:52:22.815: DEBUG/EMS(25209): messageType is 1 messageId is 115 hasUserDataHeader is false 07-02 19:52:22.858: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogcreateFromPdu : calling parsePdu 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 can I Import Test Project into Eclipse?
Import test project into eclipse that I think it's difficult. I found a question and answer one year ago(Sep 15 '10). This is crazy way below. How do you resolve? This problem still(Jul 3 '11) exist? Import Android Test Project into Eclipse from Version Control - Stack Overflow http://stackoverflow.com/questions/3722653/import-android-test-project-into-eclipse-from-version-control 1) Copy test project to temporary directory. 2) Create new empty test project at same name. 3) Then override files from temporary directory. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: em...@android.com
wtf! 2011/7/1 souissi haythem haythe...@gmail.com are you sure??? On Jul 1, 3:04 pm, Jorge Luis jorgelferr...@gmail.com wrote: yes. 2011/7/1 souissi haythem haythe...@gmail.com Why, it's only for person who work in android sociaty??? On Jul 1, 2:50 pm, Jorge Luis jorgelferr...@gmail.com wrote: no. 2011/7/1 souissi haythem haythe...@gmail.com can i have an émail : myn...@android.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 -- Jorge Luis Ferrari Cé Desenvolvedor / Web Designer Siga @JLFerrari -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Jorge Luis Ferrari Cé Desenvolvedor / Web Designer Siga @JLFerrari -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling image from the server using json format
Hello please help me about this link how we can solve this problem easily http://stackoverflow.com/questions/6538255/image-retrieval-using-json-format-in-android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Contacts - Read Only
Hello, I have been trying to find out how to make a contact under my account 'read-only'. I have searched all over the internet and have had no luck in this matter. I'm pretty sure this is possible as both Facebook and Twitter do this with their contacts. Any help would be much apreciated, 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] Differences between Android 3.0 and 3.1 in garbage collection?
Hi. I have an apk which is supposed to be operated in Honeycomb devices. It requests some information to a server, receives replies in a form of XML, parses the reply, and display the results. It works fine in Android 3.0. However, if I run the same apk in Android 3.1, I see (in DDMS) consecutive garbage collection causing the information query extremely slow. Follow is a sample log for the case. 06-24 19:20:38.140: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1224K, 8% free 26384K/28615K, paused 28ms 06-24 19:20:38.180: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1225K, 8% free 26384K/28615K, paused 28ms 06-24 19:20:38.220: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1226K, 8% free 26384K/28615K, paused 26ms 06-24 19:20:38.260: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1227K, 8% free 26384K/28615K, paused 28ms 06-24 19:20:38.300: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1228K, 8% free 26384K/28615K, paused 28ms 06-24 19:20:38.340: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1230K, 8% free 26384K/28615K, paused 30ms 06-24 19:20:38.380: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1231K, 8% free 26384K/28615K, paused 28ms 06-24 19:20:38.420: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1232K, 8% free 26384K/28615K, paused 28ms 06-24 19:20:38.460: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1142K, 8% free 26430K/28615K, paused 28ms 06-24 19:20:38.500: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1121K, 8% free 26430K/28615K, paused 27ms 06-24 19:20:38.540: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1144K, 8% free 26430K/28615K, paused 28ms 06-24 19:20:38.580: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1123K, 8% free 26430K/28615K, paused 27ms 06-24 19:20:38.620: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1147K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:38.660: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1125K, 8% free 26430K/28615K, paused 29ms 06-24 19:20:38.710: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1149K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:38.750: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1127K, 8% free 26431K/28615K, paused 32ms 06-24 19:20:38.790: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1151K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:38.830: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1129K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:38.870: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1153K, 8% free 26431K/28615K, paused 29ms 06-24 19:20:38.910: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1131K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:38.950: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1155K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:38.990: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1133K, 8% free 26431K/28615K, paused 30ms 06-24 19:20:39.030: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1157K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:39.070: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1135K, 8% free 26431K/28615K, paused 28ms 06-24 19:20:39.110: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1159K, 8% free 26431K/28615K, paused 29ms 06-24 19:20:39.140: DEBUG/dalvikvm(21700): GC_FOR_ALLOC freed 1137K, 8% free 26432K/28615K, paused 27ms I guess the garbage collection occurs due to the parsing of XML using DOM. What I want to know is why the collection does not occur in Android 3.0. Is there any differences between Android 3.0 and 3.1 regarding this? Or am I missing something? 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] Calculate Distance like GoogleMap
Dear Friends, I have two lat's and Lon's and want to calculate distance between them. However I do not want use Location.distanceBetween or float distance = locationA.distanceTo(locationB); I want to get results over road.(like google map) How can I handle this on android? 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] Build a continuous data flow between an application server and several devices
Hello, I would like to build a android smartphone application that receives data from a server on a regular basis and refresh screen You can see it as a IBM slam tracker for tennis grand slam results or a weather application ... whatever. Anyway, the goal is to have a server that send messages to several devices in a a way that looks like a continuous data flow or devices that request data from server but I think push is the more accurate way to do so ? I found a so called C2DM Framework that looks like what I expect but, according to google official documentation, google apply several limitations to the framework : - limit in the number of devices a server is able to contact - limit in the number of messages a server can send to the same device - 1ko limit for messages size - no further information the number of messages or devices, we just know that there is a limit. From that point I have several questions : - do you confirm that the push architecture is the accurate way to achieve such a goal ? - do you know about the C2DM limitations ? - How do the existing applications based on continuous data flow works ? What is there most common architecture ? A last point is that if want to be able to control the devices allowed to access the server data and therefore I do not want something like RSS. Thanks for your help 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] SVG editing making Honeycomb 3.0 emulator slow due to more than 100% CPU usage
Hi, I am building a SVG editor on Honeycomb. I am using html and javascript apis for editing the SVG. I am displaying the html in a webview and calling the javascript functions from my native code. I am taking two svg layers. The lowermost layer contains the actual svg and the topmost layer is a transparent layer on which I am drawing, thus giving the effect of an editor. One SVG s is approximately 2.75 MB in size. As soon as I draw something(straight line, circle etc) it is taking approx 50 seconds to reflect on my screen. The CPU usage goes above 100% when I check on LogCat. However when I test this on Google Chrome desktop browser it is almost instantaneous. Is it because of my system specs: 2GB RAM, Windows XP, 1.7 GHZ processor? I must also mention that I am using 256MB as my emulator's RAM. Any attempts to increase that makes my emulator non-responsive quite often. Any suggestions how I can optimize CPU usage or make the emulator respond faster. Are there any recommended system specs for developing for Honeycomb?Also will the performance be better in the actual device which has may be higher RAM than I can afford on the emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 maps
dear sir, i have a trouble with google maps, can i uninstall this application ? its not working when i doing tht cause i think i loose my data here... thanks for your kind attention regard hendra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] More Market questions
The download count that users see are based on total installs. I can't help you with any thing else except 7) as I have had a market account for less than a week. As for 7) you search for your app on the market or find it in the category. The page you see is what the user will see. Here is your app's link: http://tinyurl.com/3r88sgn. Thanks On Sun, Jul 3, 2011 at 7:37 PM, Spooky spooky1...@gmail.com wrote: Sorry for this...more Market questions. 1) Is the download count that users see in the Market app based on total installs, or active installs? 2) If it's based on active installs, and given that active install counts are still broken (showed zero for a while when I had confirmed that at least one user has definitely not uninstalled), how does anyone maintain a consistent number? Or do they? Statistics on active installs also show no installs from India, which means it's missed at least one (Yes, I've already been told that the statistics are basically useless...still curious how all of this is SUPPOSED to work.) :-) 3) Here's a big one: in individual categories/subcategories (in my case, Apps/Photography), how many installs (or would that be active installs) does an app need to survive? 4) Same question, except regarding the number of ratings/comments, not installs. 5) If there is such a number, and an app falls below it, is there a way to revive it, re-publish it in the Market, etc.? Or is it just dead? 6) Am I correct in my assessment that most users only leave comments when they're either very satisfied or very disssatisfied? (i.e., far fewer comments from users who fit between those two) 7) And finally, is there a way to view what the user sees on their device in the Market for my app via a web page? Or do I only have the developer's console? Thanks,, --jim -- 73 DE N5IAL (/4)| DMR: So fsck was originally called spooky1...@gmail.com| something else. http://jdgapps.com/ | Q: What was it called? Running FreeBSD 7.0 | DMR: Well, the second letter was different. ICBM/Hurricane |-- Dennis M. Ritchie, Usenix, June 1998. 30.44406N 86.59909W -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GPS Signals
Hello, i recently developed a location based service in android, my apps works with GPS signals in conjunction with google maps. problem is that, it takes lot of time to get the gps signals, when you are in a dense area (sorrunded by buildings) u dont get any signal at all, BUT if we talk about google app Latitude , whenever we start it, it catches the GPS signal at a very fast rate no matter if we are in dense area or not. if we use location sources as NETWORK_PROVIDER instead of GPS_PROVIDER then accuracy of location is the issue. how can i get fast GPS signals? or Latitude app works with special premium mapView key , if it is , can a developer get that sort of key which enables the app to get fast GPS signal receiving? please also tell me, what is the minimum and maximum error that can possibly occur in accuracy if we obtain our location by NETWORK_PROVIDER instead of GPS_PROVIDER -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Loading local javascript files in webview
Hi, I have a slight issue with loading javascript files within a webview I have created, I am storing everything within the assets directory so all the files are local to the app and I have tried to load them a couple of different ways but neither seemed to work: script type=text/javascript src=file:///android_asset/www/js/ jquery.js/script script type=text/javascript src=../js/jquery.js/script strangely the CSS works fine via '../' Javascript is enabled aswell. Does anyone know why this may be happening i could embed all the code but that would just be quite a mess and not how I want to do it ideally. Thanks if anyone knows a solution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 display image or movie in the Gallery Preview based on the mode in which Preview was launched
Hi All, When I launch the Preview from IMAGE mode of Camera application it displays an image which was taken the latest, and all other items including image and movie files ORDER BY creation date. I have captured the following from the Camera application, that I launch from the Gallery 3D application. Image1 Movie2 Image3 Movie4 Then Preview displays in this order Image3 - Movie4 - Movie2 - Image1. I want to display the image or movie only, from the preview, based on the mode in which Preview was launched. How can I do this? Any help would be appreciated. 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] Sony Ericsson Xperia Active-barometer sensor spec ?
Hi, I want to know some more info about the barometer. Full specifications would be useful (accuracy, range, measurement frequency...) I would like to use it for programming the altimeter/vario for paragliding , but it depends on the quality of the barometer. Perfect sensitivity would be measured every second, sensitivity of 10 centimeters altimeter and altitude range of 0-3500 m above sea level. 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] A service can update an activity?
It is possible a service update an activity that is to active connection every 10 seconds (for example)? Open a connection with the service and request the information I could do, I need now the opposite way. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 send an image to paired device via bluetooth?
Hi, i am working on an application according to which when i enabled bluetooth of my phone the list of all other bluetooth enabled devices should be displayed and a predefined text/image data automatically send to the device which is selected from the list. i tried bluetooth chat example but i did'nt worked . please anyone know the solution please help me .if anyone provide me any code sample for this that would be great for me. Please help Thnaks in advace -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 GB build Err on Ubuntu 10.10
Hi All I upgraded my machine to Ubuntu 10.10 yesterday and tried to compile GB build (This build compiled fine on my previous Ubuntu version). But as soon as I start choosecombo I am getting permission errors. I tried SUDO and changing permissions of directory. But still stuck with same errors. Any help in solving is really appreciated. Thank you !!! VSUD#4play including device/htc/passion/vendorsetup.sh including device/samsung/crespo/vendorsetup.sh VSUD#sDevice Build for the simulator or the device? 1. Device 2. Simulator Which would you like? [1] 1 /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied Build type choices are: 1. release 2. debug Which would you like? [1] 1 /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 send an image to paired device via bluetooth?
Hi, i am working on an application according to which when i enabled bluetooth of my phone the list of all other bluetooth enabled devices should be displayed and a predefined text/image data automatically send to the device which is selected from the list. i tried bluetooth chat example but i did'nt worked . please anyone know the solution please help me .if anyone provide me any code sample for this that would be great for me. Please help Thnaks in advace -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Getting contact names for facebook integrated contacts
I am using content providers to retrieve contacts by their ID and then I am trying to get their names. However, I have noticed that the names and pictures are retrieved only for contacts that have no kind of facebook integration and exist only on the phone. Some of these facebook integrated contacts have data on the phone only so if I remove the facebook integration they would still be there. I have read in a previous post that Facebook data is not available through the contacts API. I would like to be able to get the contact names even if they are facebook integrated. How do I that? Here is my code: Uri contact_uri = ContentUris.withAppendedId(Contacts.*CONTENT_URI*, id); Cursor contact_cursor = getContentResolver().query(contact_uri, *new*String[] { Contacts. *DISPLAY_NAME* }, *null*, *null*, *null*); String contact_name = contact_cursor.getString(contact_cursor.getColumnIndexOrThrow(Contacts.* DISPLAY_NAME*)); Your quick assistance is much appreciated =) 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
emulator: ERROR: unknown virtual device name: 'hello' emulator: could not find virtual device named 'hello' sir, i use windows 7 when i start the emulator then face above problem while my jdk path is F:\ANDROID SOFTWARES\Java\jdk1.6.0\bin and system path is C:users\user name\videos\.android\avd\hello.avd so please guide me for starting with appropriate solution with link. and also send me link for downloading sdk and eclipse for windows 7 . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 modify an existing motionevent
for example i have two positions of multi-touch and i want to invalidate one of 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] glSwapBuffer
Hei, by trying to make an aplication for android i obtained an exception: glSwapBuffer exception. I do not have any idea about what this exception means. Any idea?? Thanks for everything -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to make a image work as a button
So i have a image thats on my project how do i make it where you can tap on that image then it brings you to a new menu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hadle bulk of XML response in Java/Android
Use string buffer On 1 Jul 2011 12:55, naveen kumar kumarnaveen.si...@gmail.com wrote: Hi All Android developer, Till now i am not getting perfect solution for === i am getting large server response in XML format.i am not able to save that all response in String for parser. getting Outofmemory exception, so i am taking line line by line response that works . but i want to handle bulk of response fastly , now it's take 10 minutes. Please help me how to handle bulk of XML-response from server. very urgent need for me.. Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Back Button leads to Black Screen
Hello developers, I am currently in the process of writing an application that starts with a SplashScreen, moves to the MainMenu activity and from there the user can select an item from the menu and it takes them to another activity. Pretty simple use case. However, when I take the user to any other activity, the back button stops working. If I hit the back button from the main menu, the application is closed. This is great. However, if I navigate from the main menu to another task, and then try to hit the back button, I get a black screen and the application hangs. I'm not sure what code to show that would help solve this problem. I've been tearing my eyes out for the past 4 hours looking at all the different paths, and can't find anything. There is nothing in LogCat after this happens, it's almost like the app just hangs. MainMenu extends ListActivity and looks like so intent = new Intent(this, ProgramListActivity.class); startActivity(intent); ProgramListActivity is a TabActivity which swaps in views dynamically depending on which tab is selected. When the ProgramListActivity first loads, the first tab is selected and the View is populated for that tab (which is a ListActivity). Any help would be greatly appreciated!! 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] Device availability dialogue on Developer Console
Hi, I am a newly registered android developer and I published a small app to become familiar with the publish process. However I am unable to find the Device availability dialogue as pointed out by this link : https://market.android.com/support/developer/bin/answer.py?hl=enanswer=1286017ctx=go I am assuming developer console refers to the place where I can see my published app. Am I missing something? Thanks, Vikram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Compiling the anroid source code from cmd
Hello Android Lovers, I have developed one app for android, now I wnt to compile it from cmd . I am able to do it if I am not going to use any external libraries for it. But If I use any external libraries them I am not able to compile it . What is the resolve for it. I have followed the steps given in the given below link : http://geosoft.no/development/android.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
[android-developers] Video not playing in Device
Hi friends, Video is not being played in the device : ERROR/PlayerDriver(95): Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback ERROR/MediaPlayer(10920): error (200, -82) ERROR/MediaPlayer(10920): Error (200,-82) -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] In-App Billing service doesn't stop properly once started.
I'm running into an issue where the Billing Service that my app creates won't stop. Steps to reproduce -Start app -Do something that would normally trigger the billing service (like restore purchases) -Tell the service to stop -press home button and check the application manager When I check the application manager, the service shows up in the running services list. Also, if I quit the app (using finish(); ) the activity tries to stop and the process is killed, but the service gets restarted by the os and says that the application has unexpectedly quit. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to make a spinner in listview
Hi all ! I'm having problem with add spinner in listview. Eeach row has two spinners and two edittexts I try more and more ways. But can not working. Can you help me? please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en