[android-developers] Robin Talwar wants to chat
--- Robin Talwar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-8acf027b4a-81b1fe32d6-8CfQJ4At8B7LEL9OIkwscAfP2Yc You'll need to click this link to be able to chat with Robin Talwar. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with Robin Talwar, visit: http://mail.google.com/mail/a-8acf027b4a-81b1fe32d6-8CfQJ4At8B7LEL9OIkwscAfP2Yc Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] making Toast like notification?
I don't I wise very clear... I'm trying to create something completely customizable interms of animation, duration...etc where in the Toast widget duration can only be set to 2 constant and therefor its not changeable and the animation part is also not changeable since the animation is set via the window of the toast not the view so if I try setting an animation on my custom view it just get overridden. So what I'm really asking is it possible create a completely transient notifications(not user interactive) without using toast and please don't tell me create a dialog since thats not what I want, a dialog needs a new activity which interrupts what ever the user is doing... I want to notify the user without having to stop what ever their is doing in a different activity and ofcourse without using the notification bar. thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GPS MapView: animate to current position
Solved it: I have set different criteria: Criteria criteria = new Criteria(); //criteria.setAccuracy(Criteria.ACCURACY_FINE); // more criteria If I remove those, the code works fine. . . Stephan 2010/12/31 Stephan Wiesner testexpe...@googlemail.com Hi, I have a MapActivity, using Google Maps and need to center that map on my current position. The map is displayed correctly and I can even mark my current location with MyLocationOverlay here = new MyLocationOverlay(this, mapView); here.enableCompass(); // compass is displayed here.enableMyLocation(); // blue circle is displayed correctly mapOverlays.add(here); GeoPoint p = here.getMyLocation(); // p is null ??? if (p != null) mapController.animateTo(p); If the blue circle marks my position correctly, how do I get this position so that I can animate there? thanks, Stephan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do this kind of screen alignment?
Hi, I know fixing the point in the app to draw image/text are bad practices and I'm trying to do this correctly but been far from successful. Any code example to do this layout for both portrait and landscape orientation? | | | | | | | | |(graphics a) (graphics b) | | Text a Text b | | | |(graphics c) (graphics d) | | Text c Text d | | | | | | | | | | | --- I'm trying to achieve layout similar to Google's places app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Protecting Android apk to prevent decompilation, network sniffing etc.
Is there a way to protect Android apk file so that the source code cannot be regenerated? Also, there are a number of network sniffers that allow HTTP monitoring, is there a way to bypass these such that the incoming/outgoing network traffic could not be monitored? I have read that code obfuscation, to some extent, is possible using SourceForge's Proguard. What are other alternatives that I can look into? Please advise. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: app security
Yes Houston we have got a problem :) Strings are in general very easy to extract from binaries, even from C/ C++ programs via the strings *nix command for example. You don't need to decompile anything! What you could do is manually obfuscate your strings some more: - split the key-string in multiple strings, concatenate only where you need them (or at a totally unrelated place) - store the key-string encoded in your code (e.g Base64), decode it only when you need them (or at a totally unrelated place) Of course not super-strong protection but might protect you from the basic script-kiddie. On Dec 30, 10:20 pm, jacek jacek.ambroz...@gmail.com wrote: Apps that integrate with various web services and APIs, such as Twitter, need to use service provisioned API keys and shared secrets which are Java Strings. Such Strings should be retrievable by anyone who decompiles an .apk (I must try this myself against my own apk) In the next step the malicious developer will be able to impersonate the decompiled app... Am I missing something, or do we have a problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to increase...?
Hi, How can we increase the height of title bar. Regards, abhilash.b -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Detect Codec of local media File
Seems everyone is busy with new year party :P:P Anyways Happy New Year to all Android developers.. Have a rocking year ahead !!! Thanks , Alok. On Fri, Dec 31, 2010 at 12:50 PM, Alok Kulkarni kulsu...@gmail.com wrote: Hi, I am streaming local audio and video files of a mobile device to another android devce using FFMpeg. Is there a way to detect/ know the Codec format of the file programatically as it needs to be passed to FFMpeg. I am using the Media Scanning logic of ContentProvider ( MediaStore.Audio.Media and MediaStore.Video.Media). The table does not contain any column for getting Codec information. Thanks And Regards , Alok -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 increase...?
Hide it and put your own layout for title bar you want at the top of your content view. On Fri, Dec 31, 2010 at 1:28 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, How can we increase the height of title bar. Regards, abhilash.b -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] making Toast like notification?
A Dialog is not in any way shape or form a new activity. If you are saying that you want to display this toast-like thing when the user isn't actually in your app... well, that is what a toast is for, and you will need to live with its restrictions (which are kind-of intentional because doing this kind of thing to the user when they are not in your app can quickly become annoying for them). -- 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 differentiate when screen is rotated and when is activity is sent back ( pressing back key)
I am confused between screen rotation and activity sent back. My requirement i am trying out in my application is - when activity goes to idle( meant pressing back ) , i need to stop a timer. - When screen rotation happens i shouldnt stop a timer. I also registered for action_configuration_changed to know when the screen rotation happens. IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); mContext.registerReceiver(mBroadcastReceiver, filter); private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) { //updateBackground(); screeChanged = true; System.out.println(On screen changed); } } }; When i traced the flow, when back happens this is wat i observed. Screen rotated from landscape to portrait I/System.out( 1666): On stop I/System.out( 1666): On Destroy I/System.out( 1666): On create I/System.out( 1666): On resume I/System.out( 1666): On screen changed Screen rotated from portrait to landscape I/System.out( 1666): On pause I/System.out( 1666): On stop I/System.out( 1666): On Destroy I/System.out( 1666): On create I/System.out( 1666): On resume I/System.out( 1666): On screen changed When back pressed: -- I/System.out( 1666): On pause I/System.out( 1666): On stop I/System.out( 1666): On Destroy All these function calls are similar for both usecase... so any clue how do i differentiate my activity is went back or screen changed. Could somebody throw lights on my problem. Thanks, Mani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: the new eclipse UI design - absolute frustration and waste of time
On Dec 31, 6:08 am, Bob Kerns r...@acm.org wrote: I don't really agree with this. You know what, just have a go at anything else in a 2011 worthy of developer suitable IDE out there, I have been using eclipse for 5 years now. I have used it for more than just Java, and I am a huge fan of Android. Just carry on from my example: an LL within a top LL then try and add the third one, its a mystery where it drops! OK lets move on, add another LL with Horizontal orientation because we will be creating a row of small buttons, I need to add about 70 small buttons so about 7 rows of 10 buttons each (use table row? thats not the point wait) OK, so I SUCCESSFULLY dragged and dropped 7 of my buttons which I have managed to drop into the top LL. Guess what? The 7 of them were just plain buttons with background images now have their titles back! Do I have to use image buttons? Why the heck then a button has a background? Jesus get a grip Android, go and play with Interface Builder (do not even try and accuse me of playing android down or any other silly accusations) or anything else you like and learn some USABILITY! I may be a stupid user but I should be able to do drag and drop, ISNT that the point? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 differentiate when screen is rotated and when is activity is sent back ( pressing back key)
You can use this to transfer active objects across activity instances when a configuration change is happening: http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance() On Fri, Dec 31, 2010 at 2:24 AM, mani smanikanda...@gmail.com wrote: I am confused between screen rotation and activity sent back. My requirement i am trying out in my application is - when activity goes to idle( meant pressing back ) , i need to stop a timer. - When screen rotation happens i shouldnt stop a timer. I also registered for action_configuration_changed to know when the screen rotation happens. IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); mContext.registerReceiver(mBroadcastReceiver, filter); private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) { //updateBackground(); screeChanged = true; System.out.println(On screen changed); } } }; When i traced the flow, when back happens this is wat i observed. Screen rotated from landscape to portrait I/System.out( 1666): On stop I/System.out( 1666): On Destroy I/System.out( 1666): On create I/System.out( 1666): On resume I/System.out( 1666): On screen changed Screen rotated from portrait to landscape I/System.out( 1666): On pause I/System.out( 1666): On stop I/System.out( 1666): On Destroy I/System.out( 1666): On create I/System.out( 1666): On resume I/System.out( 1666): On screen changed When back pressed: -- I/System.out( 1666): On pause I/System.out( 1666): On stop I/System.out( 1666): On Destroy All these function calls are similar for both usecase... so any clue how do i differentiate my activity is went back or screen changed. Could somebody throw lights on my problem. Thanks, Mani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Re: app security
This post [http://digital-identity.dk/2010/12/protecting-ip-in-android- applications/] suggests that apart from obfuscation, we can try implementing a portion of (sensitive) code natively. And then to ensure that the native code is used/called by our application only, we can match the digital keys used to sign the application. How effective will this prove to be? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: app security
Ultimately there is no good answer here. No matter what you do, you can't totally protect anything in your application. Your entire application is out in the world, where anyone can get at its contents, and with sufficient effort learn every deepest darkest secret it contains. The question you have to ask yourself is, how difficult does it need to be for someone to get at whatever you are concerned about? You can't make it impossible. You can make it easy or various levels of harder. Moving to native code gives you more tools for making it harder, but is never going to be a panacea. How much time are you willing to spend on this vs. how much harder you will make it? You are quickly going to find yourself reaching a point of diminishing returns where a large amount of effort moves the harder to extract needle only a little bit. On Fri, Dec 31, 2010 at 2:36 AM, Samuh samuh.va...@gmail.com wrote: This post [http://digital-identity.dk/2010/12/protecting-ip-in-android- applications/] suggests that apart from obfuscation, we can try implementing a portion of (sensitive) code natively. And then to ensure that the native code is used/called by our application only, we can match the digital keys used to sign the application. How effective will this prove to be? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Get MediaScanner current status
Dear all, My Android application has a broadcast receiver that receives mediascanner start and finished intents. Now I'd like to know if it's also possible to do a syncronous request to the mediascanner to know its current status (if it's still scanning or not). I need this because if my application starts during a scan I cannot know the mediascanner status until I receive one of the two intents. Is this possible? Thank you. mrA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 differentiate when screen is rotated and when is activity is sent back ( pressing back key)
Thanks Dianne...!! I will try this solution..!! - mani On Dec 31, 3:32 pm, Dianne Hackborn hack...@android.com wrote: You can use this to transfer active objects across activity instances when a configuration change is happening: http://developer.android.com/reference/android/app/Activity.html#onRe...() On Fri, Dec 31, 2010 at 2:24 AM, mani smanikanda...@gmail.com wrote: I am confused between screen rotation and activity sent back. My requirement i am trying out in my application is - when activity goes to idle( meant pressing back ) , i need to stop a timer. - When screen rotation happens i shouldnt stop a timer. I also registered for action_configuration_changed to know when the screen rotation happens. IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); mContext.registerReceiver(mBroadcastReceiver, filter); private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) { //updateBackground(); screeChanged = true; System.out.println(On screen changed); } } }; When i traced the flow, when back happens this is wat i observed. Screen rotated from landscape to portrait I/System.out( 1666): On stop I/System.out( 1666): On Destroy I/System.out( 1666): On create I/System.out( 1666): On resume I/System.out( 1666): On screen changed Screen rotated from portrait to landscape I/System.out( 1666): On pause I/System.out( 1666): On stop I/System.out( 1666): On Destroy I/System.out( 1666): On create I/System.out( 1666): On resume I/System.out( 1666): On screen changed When back pressed: -- I/System.out( 1666): On pause I/System.out( 1666): On stop I/System.out( 1666): On Destroy All these function calls are similar for both usecase... so any clue how do i differentiate my activity is went back or screen changed. Could somebody throw lights on my problem. Thanks, Mani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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] Recommended way to update map overlay in background
I'm working on an application with a number of activities, including a MapViewActivity. The map has markers drawn on it as overlays. The marker data is retrieved by regularly polling a web server, which returns a JSON document. The data can change from time to time, and when it does the map must be updated promptly. What's the recommended way to poll the web server in the background and update the map? I considered using a service, but ran into problems with accessing the map overlays variables. The other approach which springs to mind is to user a TimerTask (maybe calling an AsyncTask if necessary to avoid blocking the UI thread) from the MapViewActivity. Another consideration is that it would be nice to continue polling when in other activities within the same application. This way when the user switches to the map activity, the map is already up to date. This is not a hard requirement though. Thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: app security
Moreover, you also have to ask yourself how much effort is needed for a given item. For example, the OP was concerned about a Twitter API key. Personally, I wouldn't worry about that, since there are no real barriers for anyone else to get their own Twitter API key. On Fri, Dec 31, 2010 at 5:47 AM, Dianne Hackborn hack...@android.com wrote: Ultimately there is no good answer here. No matter what you do, you can't totally protect anything in your application. Your entire application is out in the world, where anyone can get at its contents, and with sufficient effort learn every deepest darkest secret it contains. The question you have to ask yourself is, how difficult does it need to be for someone to get at whatever you are concerned about? You can't make it impossible. You can make it easy or various levels of harder. Moving to native code gives you more tools for making it harder, but is never going to be a panacea. How much time are you willing to spend on this vs. how much harder you will make it? You are quickly going to find yourself reaching a point of diminishing returns where a large amount of effort moves the harder to extract needle only a little bit. On Fri, Dec 31, 2010 at 2:36 AM, Samuh samuh.va...@gmail.com wrote: This post [http://digital-identity.dk/2010/12/protecting-ip-in-android- applications/] suggests that apart from obfuscation, we can try implementing a portion of (sensitive) code natively. And then to ensure that the native code is used/called by our application only, we can match the digital keys used to sign the application. How effective will this prove to be? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ADB server didn't ACK, cannot bind tcp...
Do you have a service bound to localhost:5037 ? If so, it will prevent the ADB server from running properly, and might explain the cannot bind error message. On Fri, Dec 3, 2010 at 5:08 PM, Zbahoui zbah...@gmail.com wrote: Hi, I'm trying to install the android sdk on my Debian SID but when I try to launch ./adb start-server i have : * daemon not running. starting it now on port 5037 * cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * It's the same when I'm root. I've tried : netstat -a | grep 5037 but there's nothing ... Have you any solution ? 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.comandroid-developers%2bunsubscr...@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] Augmented Reality - AR
Hello Danilo, Thanks for Introducing Qualcomm's SDK I was not aware of this one. Interested in checking out this SDK. Karthik 2010/12/28 Danilo Veras danilosve...@hotmail.com sorry, I did not learn to write English. I wonder if someone is developing or studying about augmented reality. known *Qualcomm's SDK* or Wikitude API ? I want someone to discuss and share 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google analytics crash
A question - what version of the analytics sdk are you using..? There was a new flavour released recently which said it fixed many of the bugs... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Recommended way to update map overlay in background
On Fri, Dec 31, 2010 at 5:17 AM, AC alistair.cunning...@gmail.com wrote: The other approach which springs to mind is to user a TimerTask (maybe calling an AsyncTask if necessary to avoid blocking the UI thread) from the MapViewActivity. That sounds like a plan. Another consideration is that it would be nice to continue polling when in other activities within the same application. This way when the user switches to the map activity, the map is already up to date. In this case you'd probably need that Service, binding to it as necessary when switching to the map. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] yahoo local search xml reply in android
On Tue, Dec 28, 2010 at 11:53 PM, zeeshan mirza zeeshan.nabeel.mi...@gmail.com wrote: I know about parsing and I am using SAX parser. How can i read specific elements of each tag from xml. Your question has already been answered: On Tue, Dec 28, 2010 at 11:43 PM, Frank Weiss fewe...@gmail.com wrote: Parsing XML is a far more general subject than questions about the Android SDK. So google is you friend, my friend. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] yahoo local search xml reply in android
Hello , How have you done this local search to find nearest coffee shop or resturant in android ? I want also to do same thing.but i am not able to do this .. I knows how to parse any xml file. can U help me. Thanks in advance . Regards , Nandlal Virani On Wed, Dec 29, 2010 at 10:37 AM, zeeshan mirza zeeshan.nabeel.mi...@gmail.com wrote: I am using yahoo local search in my android application to find nearest coffee shop or resturant. I am receiving a reply from yahoo local search service in XML form. I dont know how to process such xml reply. Do i need to parse this xml reply? and how can i read the contents of the reply? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] populate ItemizedOverlay when AlertDialog is showing
On Wed, Dec 29, 2010 at 4:20 AM, viktor victor.scherb...@gmail.com wrote: Is it any other way to refresh overlays? Invalidate your MapView? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Recommended way to update map overlay in background
On Dec 31, 12:06 pm, TreKing treking...@gmail.com wrote: In this case you'd probably need that Service, binding to it as necessary when switching to the map. That's a good idea! I could download and store the marker data in the service, then have the MapViewActivity bind to it when the user switches to the map activity to access the marker data. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MultiTouch Support
On Wed, Dec 29, 2010 at 5:57 AM, pedr0 pulsarpie...@gmail.com wrote: Any suggestion will be appreciated. Try updating finger_one_X and finger_one_Y. AFAICT, you're only updating #2 in your multi-touch branch. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google analytics crash
anyone else getting this? I have recently received several crash reports caused by Google Analytics (version 1.1), such as java.lang.IllegalStateException: no transaction pending at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java: 480) at com.google.android.apps.analytics.PersistentEventStore.putEvent(Unknown Source) at com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown Source) at com.google.android.apps.analytics.GoogleAnalyticsTracker.trackEvent(Unknown Source) at vOICe.vOICe.The_vOICe.a(Unknown Source) at vOICe.vOICe.m.onAutoFocus(Unknown Source) at android.hardware.Camera $EventHandler.handleMessage(Camera.java:345) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4363) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:862) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) at dalvik.system.NativeStart.main(Native Method) I'm not sure yet what to do about them. Maybe put a try-catch block around all uses of Google Analytics? Regards On Dec 29, 8:39 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, I'm using google analytics in my app. I am getting a good number of force closes from users, finally got a stacktrace: Caused by: android.database.sqlite.SQLiteException: file is encrypted or is not a database at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method) at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java: 1864) at android.database.sqlite.SQLiteDatabase.init(SQLiteDatabase.java: 1814) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java: 808) at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java: 168) at com.google.android.apps.analytics.PersistentEventStore.getNumStoredEvents(PersistentEventStore.java: 160) at com.google.android.apps.analytics.PersistentEventStore.startNewVisit(PersistentEventStore.java: 177) at com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java: 108) at com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java: 99) at com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java: 83) at com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java: 94) at com.me.myapp.MyActivity.onCreate(MyActivity.java:30) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2459) anyone else getting this? The call that causes it: private GoogleAnalyticsTracker tracker; tracker = GoogleAnalyticsTracker.getInstance(); tracker.start(mykey, context); - causes the exception. This is working fine for most users. I'm going to try catching the exception, hopefully that will work. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] help with ColorStateList
On Wed, Dec 29, 2010 at 7:06 AM, dashman erjdri...@gmail.com wrote: every time, i try to display the List child row - it craps out in a android inflator code. As informative as it craps out is, you might want to provide a little more information - like a stack trace and relevant code for starters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Issue with messages in this group?
On Wed, Dec 29, 2010 at 7:13 AM, Gus gussab...@yahoo.com wrote: Are some messages deleted or they just dissapear? Are you using the web interface? Because it sucks and randomly eats posts.I've not been able to find some posts even when searching by exact title. Use Gmail. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get screen density in pixels-per-inch or equivalent
Hi All, Imagine trying to display an accurate ruler on the screen, or something like that. I'd like to know the screen's pixel density in pixels-per-inch, or equivalently its dimensions in mm and resolution in pixels, so that I know the accurate physical size of the thing that I'm drawing. Is there any way to get this info? Failing that, I'm aware that the system knows the approximate density (one of three values IIRC). How can I retrieve this programatically? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] moving InputMethod to the top
On Wed, Dec 29, 2010 at 7:20 AM, guich guiha...@gmail.com wrote: How can i do the same? Open the input method at the top? Not sure, but this should make for good reading: http://developer.android.com/resources/articles/on-screen-inputs.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get screen density in pixels-per-inch or equivalent
Phil, This has both rounded (mdpi, ldpi, etc.) values and actual resolution, that you'd want to use for a ruler: http://developer.android.com/reference/android/util/DisplayMetrics.html Note that some devices don't correctly report actual resolution (xdpi / ydpi). Canvas also has density available: http://developer.android.com/reference/android/graphics/Canvas.html#getDensity() -- Kostya 31.12.2010 15:35, Phil Endecott пишет: Hi All, Imagine trying to display an accurate ruler on the screen, or something like that. I'd like to know the screen's pixel density in pixels-per-inch, or equivalently its dimensions in mm and resolution in pixels, so that I know the accurate physical size of the thing that I'm drawing. Is there any way to get this info? Failing that, I'm aware that the system knows the approximate density (one of three values IIRC). How can I retrieve this programatically? Thanks, Phil. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] fromHtml doesn't work for textview font size, any help?
On Wed, Dec 29, 2010 at 7:41 AM, genxsol genx...@gmail.com wrote: color does work but no font size, any help plz http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read file from assets dir?
InputStream myInput =contextname.getAssets().open(filename); -- Thanks regards Ramesh Solanki Dignizant technology Surat India Email: rkindia1...@gmail.com rkindia1...@yahoo.co.in -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Taking pictures
Hi, could anyone propose good approach for following: I would need to have feature in my (simple) app of taking pictures and tagging them with some values. Do I need to implement all of the camera code in my app, or can I call some default camera app and have data from it? What would be best approach? I don't want to make better/different or whatever app for pictures so this isn't my field of interest, just want to have pictures taken and tagged, of course it has to work on most of phones. Case scenario: - user activates app - button take picture if user takes picture use it with tag - button create text tag input some text - button save it save it to database Thanks for help. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Yahoo API in android
Hi , I need some help regarding Use Of Yahoo API in android can any body help me how i can fetch all the contacts from yahoo contact list from android thanks in advance -- Thanks regards Ramesh Solanki Dignizant technology Surat India Email: rkindia1...@gmail.com rkindia1...@yahoo.co.in -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Taking pictures
On Fri, Dec 31, 2010 at 6:54 AM, Nikola nikola1...@gmail.com wrote: Do I need to implement all of the camera code in my app, or can I call some default camera app and have data from it? http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTUREP.S. - Probably about time to move on from FORTRAN =P - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Yahoo API in android
Its a webservcie which uses OAuth. For OAuth in Anroid, use this: http://code.google.com/p/oauth-signpost/ Here is an article on using OAuth in Android. http://donpark.org/blog/2009/01/24/android-client-side-oauth Read Yahoo contacts API documentation: http://developer.yahoo.com/social/rest_api_guide/contact_api.html May be you can find some complete Android code example in the web, try searching. And, finally, try to start coding, if you stuck, post in groups for help. Do not expect complete code sample in a group before starting. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Yahoo API in android
On Fri, Dec 31, 2010 at 7:11 AM, Ramesh Solanki rkindia1...@gmail.comwrote: I need some help regarding Use Of Yahoo API in android If the crux of your problem is using the Yahoo API, you should ask your question on a forum dedicated to the Yahoo API. If the crux of your problem is specifically related to Android, please elaborate what Android-specific problem you are having. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Taking pictures
On Fri, Dec 31, 2010 at 2:17 PM, TreKing treking...@gmail.com wrote: On Fri, Dec 31, 2010 at 6:54 AM, Nikola nikola1...@gmail.com wrote: Do I need to implement all of the camera code in my app, or can I call some default camera app and have data from it? http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTUREP.S. - Probably about time to move on from FORTRAN =P I was looking at that but didn't want to say anything so I don't spoil open mind spirit :) Because android still has many problems and I would like this simple action to work on most phones I wanted expirienced answer. Thanks for your help. PS: FORTRAN is ok for android you aren't using Java right? :) -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Google analytics crash
You could stick a try/catch block in, but I doubt it would catch *most* of the bugs. Remember that your request for a track simply gets added to the database at that point and then some time later the dispatcher picks requests up from the database and sends them (although if you ask it to dispatch immediately you might catch them, but due to the use of handlers, I still doubt it). So your try/catch in your code would only catch errors from the first part and not the second. From the ACRA reporting in my app for the previous release of the analytics, the vast majority of my errors were coming from the latter part of the process where it was trying to read back from the database or failed during the sending part or failed when removing entries from the database. The analytics team did state they fixed a load of bugs in this latest release. I don't know if it's against the rules or not, but I decompiled the latest release and built it natively into my app and that allowed me to stick in a sprinkling of my own try/catch clauses around spots that I thought looked tetchy. I haven't released this yet.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: moving InputMethod to the top
On Wednesday, December 29, 2010 7:20:42 PM UTC+6, guich wrote: I saw some applications that moves the InputMethod to the top. I will appreciate very much if you can give me link/name of *at least one*Android application that makes Soft Input Panel to appear from top. Thanks in advance. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] invoke my application at given Date/Time
On Mon, Dec 27, 2010 at 7:38 AM, asinha asinha.vocoll...@gmail.com wrote: How can I invoke my android application at given Date/Time, say daily at 9am? http://developer.android.com/reference/android/app/AlarmManager.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Writing a Date/Time Service
I am trying to write a service which runs as background process and invoke my task (in application) at 9am everyday. My service is: public class DateService extends Service { //expressed in milliseconds private final long ONCE_PER_DAY = 1000 * 60 * 60 * 24; private final int ONE_DAY = 1; private final int NINE_AM = 9; private final int ZERO_MINUTES = 0; @Override public void onCreate() { Thread thr = new Thread(null, mTask, DateService); thr.start(); } @Override public void onDestroy() { } Runnable mTask = new Runnable() { public void run() { TimerTask myTask = new MyTask(); //perform the task once a day at 9 a.m., starting tomorrow morning Timer timer = new Timer(); timer.scheduleAtFixedRate(myTask, getTomorrowMorning9am(), ONCE_PER_DAY); // Done with our work... stop the service! DateService.this.stopSelf(); } }; @Override public IBinder onBind(Intent intent) { return mBinder; } private final IBinder mBinder = new Binder() { @Override protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { return super.onTransact(code, data, reply, flags); } }; private Date getTomorrowMorning9am() { Calendar tomorrow = new GregorianCalendar(); tomorrow.add(Calendar.DATE, ONE_DAY); Calendar result = new GregorianCalendar( tomorrow.get(Calendar.YEAR), tomorrow.get(Calendar.MONTH), tomorrow.get(Calendar.DATE), NINE_AM, ZERO_MINUTES ); return result.getTime(); } } Is this the right way to write my service? How would I verify my service? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: disappearing USB functionality with Nexus S and Vista
I submitted this as an issue at http://code.google.com/p/android/issues/detail?id=13553 On Dec 30, 11:51 pm, greg sep...@eduneer.com wrote: After a couple days of Nexus S USB functionality with USB debugging and USB drive mode, the functionality seemingly disappeared: when I connect the Nexus S and my laptop (running Vista), there is now no USB notification on the Nexus S and there is no Nexus S USB recognition on my laptop. My Nexus One USB functionality continues to work. When my Nexus One is connected to the laptop, the laptop's Device Manager/Android Phone/ Android Composite ADB Interface/Properties/Driver shows driver date 12/6/2010 and driver version 4.0.0.0. However, when the Nexus S is connected to the laptop, the laptop's Device Manager does not list an Android Phone and the connected Nexus S is not detected as new hardware. On the Nexus S, I've tried a Settings/Privacy/Factory data reset. I've even exchanged Nexus S phones. The USB connection lasted about five days on the first Nexus S phone and two days on the second. I have a gyroscope sensor application I'd like to write and I'm pretty sure that BestBuy wouldn't be too keen on the idea of switching phones every week. Anyone have any tips or insight about the Nexus S USB connection? - Greg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Writing a Date/Time Service
On Fri, Dec 31, 2010 at 7:35 AM, asinha asinha.vocoll...@gmail.com wrote: Is this the right way to write my service? No. Use AlarmManager. How would I verify my service? Test it? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Best way to resize photo
Among other things, my app displays photos in an ImageView in a popup Dialog. These images come out of a database that is created on the user's PC. Before storing them in the database, I resize them for max dimensions of 320x320 pixels. So, in almost all cases, on the Android device I simply display the photos at their natural dimension, which fits nicely on almost all screens. However, I have at least one customer with an HTC Wildfire which, even though its screen is 3.2, has only QVGA dimensions (240x320). With my current code, the photos do seem to be resized by the system to display within the screen boundaries, but the rest of the views in the dialog (caption, buttons, etc.) get pushed off the screen and are not visible or usable. Obviously I need to handle this case by setting some specific dimensions on the ImageView when running on a QVGA device, but what is the best approach? Should I use DisplayMetrics to discover the dimensions and adjust accordingly? This would work, but seems like it might be too low-level of an approach. Could I put dimension the image in the XML in some way using dips? (By the way, it's interesting that Android considers this class of display to be a small screen for Manifest purposes, but at 3.2 it's not physically all that smaller than a lot of other devices with higher res.) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] JNI to access GPS HAL layer function.
Hi All, Is it possible to write a JNI to access GPS / Wifi / USB HAL layer function? If possible, please post the sample code. Thanks Bharath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Writing a Date/Time Service
31.12.2010 16:35, asinha пишет: I am trying to write a service which runs as background process and invoke my task (in application) at 9am everyday. My service is: [snip] Is this the right way to write my service? How would I verify my service? This is error-prone, since a service can get kicked out of memory at any time, and all threads (including the thread used by Java timers) will terminate. Set an Alarm with AlarmManager, it avoids the issues caused by interference from process lifecycles: http://developer.android.com/reference/android/app/AlarmManager.html -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Virtual Keyboard covers EditText
Hey guys, I've stuck in a BIG problem in my Android application. I've an ListActivity and at bottom of ListView I've and EditBox. Whenever user clicks on EditBox, Virtual keyboard appears covering EditBox and user is not able to view what he is typing. I've read lots of posts to resolve this problem but couldn't find its solution, reading http://developer.android.com/resources/articles/on-screen-inputs.html couldn't resolve my problem. In my manifest file, I've used android:windowSoftInputMode=stateVisible|adjustResize for ListActivity as well. You help 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] Re: Google analytics crash
You may be right, although the crash reports that I have all suggest that they were triggered from direct calls to GoogleAnalyticsTracker.trackEvent() in my code leading to java.lang.IllegalStateException: no transaction pending. Judiciously sprinkling try-catch blocks is a great way to further uglify source code, so maybe I'll just live with the occasional crashes until Google fixes the problem, given that thus far only 3 out of 5000 app runs gave me crashes. Thanks On Dec 31, 2:26 pm, H m...@howardb.com wrote: You could stick a try/catch block in, but I doubt it would catch *most* of the bugs. Remember that your request for a track simply gets added to the database at that point and then some time later the dispatcher picks requests up from the database and sends them (although if you ask it to dispatch immediately you might catch them, but due to the use of handlers, I still doubt it). So your try/catch in your code would only catch errors from the first part and not the second. From the ACRA reporting in my app for the previous release of the analytics, the vast majority of my errors were coming from the latter part of the process where it was trying to read back from the database or failed during the sending part or failed when removing entries from the database. The analytics team did state they fixed a load of bugs in this latest release. I don't know if it's against the rules or not, but I decompiled the latest release and built it natively into my app and that allowed me to stick in a sprinkling of my own try/catch clauses around spots that I thought looked tetchy. I haven't released this yet.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: app security
I know that everybody can get their Twitter etc. api_key (+ secret). The same goes for Google Storage, Amazon S3 credentials, etc. My issue is that I do not want *my* credentials stolen and the bad guy pretending to be me with all the dire consequences. So -- how about getting credentials from the Cloud (over SSL) and hiding in AccountManager's Account? On Dec 31, 6:24 am, Mark Murphy mmur...@commonsware.com wrote: Moreover, you also have to ask yourself how much effort is needed for a given item. For example, the OP was concerned about a Twitter API key. Personally, I wouldn't worry about that, since there are no real barriers for anyone else to get their own Twitter API key. On Fri, Dec 31, 2010 at 5:47 AM, Dianne Hackborn hack...@android.com wrote: Ultimately there is no good answer here. No matter what you do, you can't totally protect anything in your application. Your entire application is out in the world, where anyone can get at its contents, and with sufficient effort learn every deepest darkest secret it contains. The question you have to ask yourself is, how difficult does it need to be for someone to get at whatever you are concerned about? You can't make it impossible. You can make it easy or various levels of harder. Moving to native code gives you more tools for making it harder, but is never going to be a panacea. How much time are you willing to spend on this vs. how much harder you will make it? You are quickly going to find yourself reaching a point of diminishing returns where a large amount of effort moves the harder to extract needle only a little bit. On Fri, Dec 31, 2010 at 2:36 AM, Samuh samuh.va...@gmail.com wrote: This post [http://digital-identity.dk/2010/12/protecting-ip-in-android- applications/] suggests that apart from obfuscation, we can try implementing a portion of (sensitive) code natively. And then to ensure that the native code is used/called by our application only, we can match the digital keys used to sign the application. How effective will this prove to be? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google analytics crash
Looking in the analytics source after you've called trackEvent(), I suspect that error is coming out when it is using a database transaction to insert the event into the database. Once inserted, it calls endTransaction as well as setTransactionSuccessful. Both of these do this check: if (!mLock.isHeldByCurrentThread()) { throw new IllegalStateException(no transaction pending); } So it could be worth checking to see if you are tracking the event from a thread that has ended, or calling dispatch from a different thread...? HTH. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android SDK and AVD Manager - permission denied: connect
On Wed, Dec 29, 2010 at 12:18 PM, Bret Foreman bret.fore...@gmail.comwrote: Any ideas what might be wrong? Did you try http*s*? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Virtual Keyboard covers EditText
Having your view wrapped into a scroll view should make the trick. ?xml version=1.0 encoding=utf-8? ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:fillViewport=true /ScrollView To be honest, I never tried it with a listview, but it worked quite well with my text + edit text views. Hope this helps, Federico On 31 Dic, 15:13, Nasir itsna...@gmail.com wrote: Hey guys, I've stuck in a BIG problem in my Android application. I've an ListActivity and at bottom of ListView I've and EditBox. Whenever user clicks on EditBox, Virtual keyboard appears covering EditBox and user is not able to view what he is typing. I've read lots of posts to resolve this problem but couldn't find its solution, readinghttp://developer.android.com/resources/articles/on-screen-inputs.html couldn't resolve my problem. In my manifest file, I've used android:windowSoftInputMode=stateVisible|adjustResize for ListActivity as well. You help 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] Re: the new eclipse UI design - absolute frustration and waste of time
Just to clarify -- I'm NOT saying the current state doesn't have huge usability problems! (And so did the previous state). I'm only disagreeing with the sentiment that real programmers only want to use the XML, and ignore the GUI. Even now, when it works right (and I can figure out how to use it), it's a time savings. When it's not, I end up reformatting and fixing the XML. My point is, it's quite worth the Android teams' time improving this. It's NOT just newbies who don't understand the XML who will benefit. In fact, I think it would be a good goal to make the UI expose the functionality so clearly, usably, completely, and unambiguously that knowing the XML offers no benefit to the real developer (unless you're writing automated transformations on it). On Dec 31, 2:32 am, hiwa hiw...@gmail.com wrote: On Dec 31, 6:08 am, Bob Kerns r...@acm.org wrote: I don't really agree with this. You know what, just have a go at anything else in a 2011 worthy of developer suitable IDE out there, I have been using eclipse for 5 years now. I have used it for more than just Java, and I am a huge fan of Android. Just carry on from my example: an LL within a top LL then try and add the third one, its a mystery where it drops! OK lets move on, add another LL with Horizontal orientation because we will be creating a row of small buttons, I need to add about 70 small buttons so about 7 rows of 10 buttons each (use table row? thats not the point wait) OK, so I SUCCESSFULLY dragged and dropped 7 of my buttons which I have managed to drop into the top LL. Guess what? The 7 of them were just plain buttons with background images now have their titles back! Do I have to use image buttons? Why the heck then a button has a background? Jesus get a grip Android, go and play with Interface Builder (do not even try and accuse me of playing android down or any other silly accusations) or anything else you like and learn some USABILITY! I may be a stupid user but I should be able to do drag and drop, ISNT that the point? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Google analytics crash
Hmm, I have only one global tracker object that I create in the onCreate() of my main activity, and with a regular dispatch interval through the format tracker.start(UA-12345-0, nseconds, this), so I'd say that it all works from one alive thread. However, in one pair of crash logs the first GoogleAnalyticsTracker.trackEvent() crash occurs after my app had been running for some time, while the second GoogleAnalyticsTracker.trackEvent() crash occurs immediately at app startup only 3 minutes later, for the same device FINGERPRINT, suggesting that indeed some sort of lock had lived on even across runs to cause a second crash because the second run would not be owning the lingering lock. This was for a Samsung GT-I5800 running Android 2.1- update1. On Dec 31, 3:21 pm, H m...@howardb.com wrote: Looking in the analytics source after you've called trackEvent(), I suspect that error is coming out when it is using a database transaction to insert the event into the database. Once inserted, it calls endTransaction as well as setTransactionSuccessful. Both of these do this check: if (!mLock.isHeldByCurrentThread()) { throw new IllegalStateException(no transaction pending); } So it could be worth checking to see if you are tracking the event from a thread that has ended, or calling dispatch from a different thread...? HTH. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to read file from assets dir?
Can I suggest adding links (perhaps not real hyperlinks, but conceptual links at least) from the API documentation to the relevant API examples? I think you'd get a lot more value from the work you put into the API demos this way. Also, I'd concur with the recent comment, but not the tone, that a lot of the API demo classes are quite poorly named. Even if you know that there IS an API demo for what you want to find, it can quite difficult to locate it. Think of it as, the API demos could use a bit more product marketing to get them to their intended audience. :=) On Dec 30, 10:11 pm, Dianne Hackborn hack...@android.com wrote: API demo here:http://developer.android.com/resources/samples/ApiDemos/src/com/examp... On Thu, Dec 30, 2010 at 10:09 PM, Stephan Wiesner testexpe...@googlemail.com wrote: Hi, I want to read a txt file that is deployed with my application. The file is in the assets directory and I try to read it with: String url = file:///android_asset/text.txt; InputStream instream = openFileInput(url); This results however in: 12-31 07:05:46.638: DEBUG/GMAP(14396): Read error:java.lang.IllegalArgumentException: File file:///android_asset/text.txt contains a path separator So, where should I put the file or how should I read it? Thanks, Stephan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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] Re: How to get screen density in pixels-per-inch or equivalent
Thanks Kostya, this is just what I needed. On Dec 31, 12:42 pm, Kostya Vasilyev kmans...@gmail.com wrote: Phil, This has both rounded (mdpi, ldpi, etc.) values and actual resolution, that you'd want to use for a ruler: http://developer.android.com/reference/android/util/DisplayMetrics.html Note that some devices don't correctly report actual resolution (xdpi / ydpi). Does some devices include anything that I care about? How wrong is the value? Are there any popular devices where x and y density are different? Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 avoid cut off of words in TextView
On Wed, Dec 29, 2010 at 4:47 PM, gato chlr dany...@gmail.com wrote: some advice? I have many TextViews with a lot of text that causes them to wrap and they always wrap around the words (as in your second example). Is that all you're doing? Just setting text and it shows up that way? Weirdness. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: uninstall TTS data from Android = 1.6 ?
I am not keen on testing 1.5 and such sort of tests usually are a waste of time on Android. Certainly there must be a means of finding and deleting this data? I've been told it goes onto the SD card, but I see it nowhere for manual deletion. tone On Dec 21, 2:39 pm, JP joachim.pfeif...@gmail.com wrote: I was able to sufficiently test this with the emulator running a 1.5 AVD, whereTTSwas not available yet. On Dec 21, 8:48 am, DulcetTone dulcett...@gmail.com wrote: How do you uninstall voice data from a phone that has it installed? I need to test code that handles cases of it being absent. tone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 avoid cut off of words in TextView
U sure he's not just looking for the input type of textmultiline On Dec 29, 5:47 pm, gato chlr dany...@gmail.com wrote: Hi list! for example : TextView a = new TextView(this); a.setText(I'm a set of words, some ones larger than others, no matter); it is posible to have painted the next : i'm a set of wo rds, some one s larger than o thers, no matt er i need something like i'm a set of words, some ones larger than others, no matter I have tried using Gravity.CENTER_HORIZONTAL, it works but not totally. some advice? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] SMS sending through HTC Desire
On Thu, Dec 30, 2010 at 2:22 AM, Jawwad Farooq jawwad.far...@gmail.comwrote: I make a call to my number and got the busy tone. Please tell me you mean you used a different phone to call your development phone ... because if you're calling your development phone with your development phone ... well ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Large Icon not showing up in Market Display
The recent market application changes now show a large icon for your app in the upper left hand side of the screen when viewing the app's listingfor my app, however, it is still showing the tiny icon in the middle of a huge white rectangle. From the Developer console I have uploaded the new entry for a high resolution icon of 512 X 512 dimensions, and I assume that this is the icon that is supposed to be showing, yet, as I mentioned, it is not. I have no idea what the 512 X 512 Icon is used for if not to display in the market listing. Does anyone know what is going on here? How do I make the proper sized icon appear in the market display? Thanks for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to do this kind of screen alignment?
On Fri, Dec 31, 2010 at 2:52 AM, Mystique joven.ch...@gmail.com wrote: Any code example to do this layout for both portrait and landscape orientation? The likelihood of finding code examples that perfectly solve the particular layout problem you are having at any given time is pretty much zero. However, this is a pretty simple layout. Looks a like a two-row, two-column table, with each cell containing a centered vertical linear layout with an image and text. Then play with the padding and margins until it meets your needs. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Large Icon not showing up in Market Display
On Fri, Dec 31, 2010 at 10:09 AM, JRock develo...@earthblood.com wrote: From the Developer console I have uploaded the new entry for a high resolution icon of 512 X 512 dimensions, and I assume that this is the icon that is supposed to be showing, yet, as I mentioned, it is not. I have no idea what the 512 X 512 Icon is used for if not to display in the market listing. It's not and I don't think anyone knows what it's for. Does anyone know what is going on here? How do I make the proper sized icon appear in the market display? You need to upload an image to the *Promotional Graphic* section. Why the Promotional Graphics that is now used in the new Market is NOT required, but this random, unexplained 512X512 icon IS required, is beyond me. Android Market Interns strike again! - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] when paid apps will be available to buy in greece ?
when paid apps will be available to buy in greece ? if i live in greece can i make paid apps and sell them (via android marketplace) ? -thanks!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: the new eclipse UI design - absolute frustration and waste of time
I've used the NetBeans and MyEclipse GUI editors extensively. They are very nice. The Android thing in Eclipse is pretty much a waste of time. Bizarre things happen when you try to drag controls or layouts in. Items end up in totally unexpected places, with attributes that you can't seem to control. The huge properties menu isn't very helpful either. After just a few minutes of attempting to use the GUI editor, I gave up and just edited the XML directly. Much easier, quicker, and with better control of what you get. I don't even bother previewing my layouts with the GUI editor, as it frequently leaves out controls entirely. On Thu, Dec 30, 2010 at 6:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Totally agree. If you use XML, you will actually understand what's going on instead of relying on a GUI editor to do the work for you. Personally, in over a year and a half of using Eclipse, I've yet to drag and drop a single control with the editor. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to add labels above this table layout
On Thu, Dec 30, 2010 at 4:16 AM, pramod.deore deore.pramo...@gmail.comwrote: I had still facing this problem. Can anyone please solve this one? Mark already gave you two options. If you were trying the first, you did not follow what he said. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Augmented Reality
On Thu, Dec 30, 2010 at 10:05 AM, bgkarthikeyan bgkarthike...@gmail.comwrote: Will that be possible? Nope, sorry. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: disappearing USB functionality with Nexus S and Vista
I've had the same with N1 since 2.2.1 (hard to say if it was that update that broke it). Pent On Dec 31, 4:51 am, greg sep...@eduneer.com wrote: After a couple days of Nexus S USB functionality with USB debugging and USB drive mode, the functionality seemingly disappeared: when I connect the Nexus S and my laptop (running Vista), there is now no USB notification on the Nexus S and there is no Nexus S USB recognition on my laptop. My Nexus One USB functionality continues to work. When my Nexus One is connected to the laptop, the laptop's Device Manager/Android Phone/ Android Composite ADB Interface/Properties/Driver shows driver date 12/6/2010 and driver version 4.0.0.0. However, when the Nexus S is connected to the laptop, the laptop's Device Manager does not list an Android Phone and the connected Nexus S is not detected as new hardware. On the Nexus S, I've tried a Settings/Privacy/Factory data reset. I've even exchanged Nexus S phones. The USB connection lasted about five days on the first Nexus S phone and two days on the second. I have a gyroscope sensor application I'd like to write and I'm pretty sure that BestBuy wouldn't be too keen on the idea of switching phones every week. Anyone have any tips or insight about the Nexus S USB connection? - Greg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: disappearing USB functionality with Nexus S and Vista
Does a reboot not fix it BTW ? Works every time here, real pain though. Annoyingly, as soon as I select reboot from the normal dialog, the USB notification appears. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need Info
On Fri, Dec 31, 2010 at 12:50 AM, yogi yogi.ru...@gmail.com wrote: Can any buddy provide me some info regarding the use of CachedNode and CacheFrame in webkit native code. http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] SMS sending through HTC Desire
Wouldn't that just goto the voicemail? Erh, when I send text to myself it works J From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing Sent: Friday, December 31, 2010 11:06 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] SMS sending through HTC Desire On Thu, Dec 30, 2010 at 2:22 AM, Jawwad Farooq jawwad.far...@gmail.com wrote: I make a call to my number and got the busy tone. Please tell me you mean you used a different phone to call your development phone ... because if you're calling your development phone with your development phone ... well ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: disappearing USB functionality with Nexus S and Vista
Thanks for the reply. Once the Nexus S USB connection stopped working, I have not been able to revive it. I have tried - rebooting my laptop (running Vista), - performing a Factory reset on the Nexus S, - uninstalling and installing the Google USB driver (version 4.0), and - fiddling with Nexus S Settings that have anything to do with USB (i.e., USB debugging, Erase USB storage, USB tethering). My Nexus One USB connection continues to work with the same laptop. - Greg On Dec 31, 11:47 am, Pent tas...@dinglisch.net wrote: Does a reboot not fix it BTW ? Works every time here, real pain though. Annoyingly, as soon as I select reboot from the normal dialog, the USB notification appears. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: disappearing USB functionality with Nexus S and Vista
On Friday, December 31, 2010 11:38:57 PM UTC+6, greg wrote: My Nexus One USB connection continues to work with the same laptop. And with the same USB cable? Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Screen Rotation
I have an application that I am trying to stop the automatic restart when the screen is rotated. I put android:configChanges=orientation| keyboardHidden into the Manifest (copied below) but the screen still rotates and the OnCreate is called (verified by writing to the log in OnCreate). Have I missed something else that is required to stop this default action? The reason I want to do this is that the app is accessing a webserver via an AsyncTask and I'd like to stop the restart until I can figure out how to link the background task to the new pid that is created. I've read some pages on it but not yet clear how to do that. Sorry for maybe some terminology that isn't correct. Hopefully the issue is clear though. Thanks for any pointers to information that may help. Robert manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.copelan.android.reunionplanner android:versionCode=1 android:installLocation=auto android:versionName=0.1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.ReunionPlanner android:label=@string/app_name android:configChanges=orientation|keyboardHidden intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=Preferences android:label=Preferences/activity activity android:name=.About android:label=About android:theme=@android:style/Theme.Dialog /activity /application uses-sdk android:minSdkVersion=3 / uses-permission android:name=android.permission.INTERNET/uses- permission uses-permission android:name=android.permission.ACCESS_NETWORK_STATE/uses- permission /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Screen Rotation
http://stackoverflow.com/questions/2730855/prevent-screen-rotation-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
Re: [android-developers] Screen Rotation
On Fri, Dec 31, 2010 at 11:48 AM, Robert rcope...@gmail.com wrote: The reason I want to do this is that the app is accessing a webserver via an AsyncTask and I'd like to stop the restart until I can figure out how to link the background task to the new pid that is created. I've read some pages on it but not yet clear how to do that. Quoting the docs for that property: *Note:* Using this attribute should be avoided and used only as a last-resort. Please read Handling Runtime Changeshttp://developer.android.com/guide/topics/resources/runtime-changes.html for more information about how to properly handle a restart due to a configuration change. I highly recommend you spend the time figuring out how to do this correctly then wasting time on a hack that will cause other problems. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Captured image FileNotFound
Hi, trying to capture image and display it but getting FileNotFound for following code. Anybody willing to take a look at it? public class HelloAndroid extends Activity { /** Called when the activity is first created. */ private static final int CAMERA_PIC_REQUEST = 1337; Button btn1; ImageView image; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final File path = new File( Environment.getExternalStorageDirectory(), getPackageName() ); Toast.makeText(this, path.toString() , Toast.LENGTH_SHORT).show(); Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(getTempFile(this)) ); startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST); image = (ImageView) findViewById(R.id.fotografija); //image.setImageBitmap(thumbnail); btn1 = (Button) findViewById(R.id.button1); btn1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(getTempFile(v.getContext())) ); startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST); } }); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == CAMERA_PIC_REQUEST) { if(resultCode == RESULT_OK){ Toast.makeText(this, Captured! , Toast.LENGTH_SHORT).show(); final File file = getTempFile(this); try { Bitmap captureBmp = Media.getBitmap(getContentResolver(), Uri.fromFile(file) ); image.setImageBitmap(captureBmp); } catch (FileNotFoundException e) { Toast.makeText(this, FileNotFoundException, Toast.LENGTH_SHORT).show(); e.printStackTrace(); } catch (IOException e) { Toast.makeText(this, IOException, Toast.LENGTH_SHORT).show(); e.printStackTrace(); } }else if(resultCode == RESULT_CANCELED){ Toast.makeText(this, User canceled!, Toast.LENGTH_SHORT).show(); } } } private File getTempFile(Context context){ //it will return /sdcard/image.tmp final File path = new File( Environment.getExternalStorageDirectory(), context.getPackageName() ); if(!path.exists()){ path.mkdir(); } return new File(path, image.tmp); } } -- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.helloandroid android:versionCode=1 android:versionName=1.0 uses-feature android:name=android.hardware.camera/uses-feature uses-permission android:name=android.permission.CAMERA / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / application android:icon=@drawable/icon android:label=@string/app_name android:debuggable=true activity android:name=.HelloAndroid android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: disappearing USB functionality with Nexus S and Vista
Thanks for the reply. Yes, I tried the same cable. I just discovered that removing the Nexus S battery for about a minute is enough to restore the USB functionality. (Compared to swapping phones at BestBuy, removing the battery is a great convenience. :*) - Greg On Dec 31, 12:46 pm, Sarwar Erfan erfanonl...@gmail.com wrote: On Friday, December 31, 2010 11:38:57 PM UTC+6, greg wrote: My Nexus One USB connection continues to work with the same laptop. And with the same USB cable? Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Set Android WIFI Ip address from my own application
but there is no function which takes argument to set the settings, as *public static final String WIFI_STATIC_DNS1* it only return the value , not set the value, i ll get syntax error if i try to set the values from this. 2010/12/30 Kostya Vasilyev kmans...@gmail.com You can change these settings from an application - just need right the permission (write_system_settings or some such). -- Kostya 30.12.2010 10:59, Faheem Khatri пишет: *public static final String WIFI_STATIC_DNS1* as you see these are the properties in which we can only get the value, we cant set the value. On Wed, Dec 29, 2010 at 7:47 PM, Kostya Vasilyev kmans...@gmail.comwrote: Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value: wifi_static_dns1 and up through public static final String WIFI_USE_STATIC_IP Since: API Level 1 Whether to use static IP and other static network attributes. Set to 1 for true and 0 for false. Constant Value: wifi_use_static_ip However, if past is of any indication, any of these can be moved to Settings.Secure in a future Android release (or not). -- Kostya 29.12.2010 17:34, Faheem Khatri пишет: Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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.comandroid-developers%2bunsubscr...@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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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.comandroid-developers%2bunsubscr...@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] Captured image FileNotFound
On Fri, Dec 31, 2010 at 12:05 PM, Nikola nikola1...@gmail.com wrote: Anybody willing to take a look at it? Giving your file that should hold an image a .tmp extension is questionable. Besides that, a Google Search for ACTION_IMAGE_CAPTURE shows some promise ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Captured image FileNotFound
On Fri, Dec 31, 2010 at 7:32 PM, TreKing treking...@gmail.com wrote: On Fri, Dec 31, 2010 at 12:05 PM, Nikola nikola1...@gmail.com wrote: Anybody willing to take a look at it? Giving your file that should hold an image a .tmp extension is questionable. Why? I would like to store it in database. Besides that, a Google Search for ACTION_IMAGE_CAPTURE shows some promise ... Done it already and didn't find anything that could resolve this problem. Is is very interesting that intent doesn't return any path or similar for picture that is taken. There is no info ,and believe me I've searched for , that feature like that exists. Of all the things I think getting path of taken picture whould be most useful. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Captured image FileNotFound
On Fri, Dec 31, 2010 at 12:42 PM, Nikola nikola1...@gmail.com wrote: Giving your file that should hold an image a .tmp extension is questionable. Why? I would like to store it in database. Because .tmp is not an image format I'm aware of. Besides that, a Google Search for ACTION_IMAGE_CAPTURE shows some promise ... Done it already and didn't find anything that could resolve this problem. Then you found this first hit and tried both alternate URIs? http://stackoverflow.com/questions/1910608/android-action-image-capture-intent - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Screen Rotation
AsyncTask can be carried through configuration changes by using getLastNonConfigurationData (or some such, I writing this from my phone). The technique was discussed on this list within the last month or two, hopefully you can find it. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.12.2010 20:56 пользователь TreKing treking...@gmail.com написал: On Fri, Dec 31, 2010 at 11:48 AM, Robert rcope...@gmail.com wrote: The reason I want to do this is that the app is accessing a webserver via an AsyncTask and I'd like to stop the restart until I can figure out how to link the background task to the new pid that is created. I've read some pages on it but not yet clear how to do that. Quoting the docs for that property: *Note:* Using this attribute should be avoided and used only as a last-resort. Please read Handling Runtime Changes http://developer.android.com/guide/topics/resources/runtime-changes.html for more information about how to properly handle a restart due to a configuration change. I highly recommend you spend the time figuring out how to do this correctly then wasting time on a hack that will cause other problems. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Edit Bitmap Channels?
Bump? Anyone? On Dec 30, 7:40 pm, John Oliver shreddedched...@gmail.com wrote: It's possible to access the alpha channel of a given bitmap with extractAlpha(), but I haven't been able to find any way to actually set the alpha channel (or any other channel) of a bitmap. How can multiple greyscale images be recombined as channels into a Bitmap with 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
Re: [android-developers] Re: app security
On Fri, Dec 31, 2010 at 6:15 AM, jacek jacek.ambroz...@gmail.com wrote: So -- how about getting credentials from the Cloud (over SSL) and hiding in AccountManager's Account? Though again, this hasn't protected you, just made it harder. Your data is still there on the device, for someone with root access to find and retrieve. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to read file from assets dir?
I regularly put work into the API demos each release. See for example the evolution of the Service class. There is just a large amount of stuff there, and not a lot of time to work on it. If you have a particular part you would like to see improved, I'd be happy to review contributions. On Fri, Dec 31, 2010 at 7:03 AM, Bob Kerns r...@acm.org wrote: Can I suggest adding links (perhaps not real hyperlinks, but conceptual links at least) from the API documentation to the relevant API examples? I think you'd get a lot more value from the work you put into the API demos this way. Also, I'd concur with the recent comment, but not the tone, that a lot of the API demo classes are quite poorly named. Even if you know that there IS an API demo for what you want to find, it can quite difficult to locate it. Think of it as, the API demos could use a bit more product marketing to get them to their intended audience. :=) On Dec 30, 10:11 pm, Dianne Hackborn hack...@android.com wrote: API demo here: http://developer.android.com/resources/samples/ApiDemos/src/com/examp... On Thu, Dec 30, 2010 at 10:09 PM, Stephan Wiesner testexpe...@googlemail.com wrote: Hi, I want to read a txt file that is deployed with my application. The file is in the assets directory and I try to read it with: String url = file:///android_asset/text.txt; InputStream instream = openFileInput(url); This results however in: 12-31 07:05:46.638: DEBUG/GMAP(14396): Read error:java.lang.IllegalArgumentException: File file:///android_asset/text.txt contains a path separator So, where should I put the file or how should I read it? Thanks, Stephan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Captured image FileNotFound
On Fri, Dec 31, 2010 at 7:49 PM, TreKing treking...@gmail.com wrote: On Fri, Dec 31, 2010 at 12:42 PM, Nikola nikola1...@gmail.com wrote: Giving your file that should hold an image a .tmp extension is questionable. Why? I would like to store it in database. Because .tmp is not an image format I'm aware of. Never said that you have to save file with image extension. Why would you have to do that? Does system checks file extensions? Besides that, a Google Search for ACTION_IMAGE_CAPTURE shows some promise ... Done it already and didn't find anything that could resolve this problem. Then you found this first hit and tried both alternate URIs? http://stackoverflow.com/questions/1910608/android-action-image-capture-intent Yea I saw that. Thanks for helping. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] moving InputMethod to the top
On Wed, Dec 29, 2010 at 5:20 AM, guich guiha...@gmail.com wrote: I saw some applications that moves the InputMethod to the top. I very much doubt you did. The IME currently can only be on the bottom. -- 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] Re: making Toast like notification?
I did make a blog entry on the toast customisation subject : http://androidblogger.blogspot.com/2009/10/tutorial-how-to-customize-your-toasts.html So you can modify the look of the toast ! But I do agree with you that the toast is not fulfilling all of our needs, I also though about reimplementing something like a toast. Actually the bigger issue I have with the current toast is that you can't control acurately the amount of time it is shown, and you can't discard them. I used them in my Word Prospector game to give feedback to the player when they are doing right or wrong, and if the player tends to play very fast, the toasts accumulate, and are shown out of the correct context : ie the feedback is not fired for the latest player action. They can even be fired when the player is no more in the game. Emmanuel / Alocaly http://androidblogger.blogspot.com http://www.alocaly.com On 31 déc, 09:28, Karim B abdulkarim.ba...@gmail.com wrote: I don't I wise very clear... I'm trying to create something completely customizable interms of animation, duration...etc where in the Toast widget duration can only be set to 2 constant and therefor its not changeable and the animation part is also not changeable since the animation is set via the window of the toast not the view so if I try setting an animation on my custom view it just get overridden. So what I'm really asking is it possible create a completely transient notifications(not user interactive) without using toast and please don't tell me create a dialog since thats not what I want, a dialog needs a new activity which interrupts what ever the user is doing... I want to notify the user without having to stop what ever their is doing in a different activity and ofcourse without using the notification bar. thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Captured image FileNotFound
On Fri, Dec 31, 2010 at 12:59 PM, Nikola nikola1...@gmail.com wrote: Never said that you have to save file with image extension. Why would you have to do that? Does system checks file extensions? I don't know, but if you're trying to save an image to a file, you might as well make sure you have a reasonable extension for the file type. Probably won't make a different, but who knows. Then you found this first hit and tried both alternate URIs? http://stackoverflow.com/questions/1910608/android-action-image-capture-intent Yea I saw that. Then I don't know what to tell you. Sorry. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: making Toast like notification?
Re: hiding a toast, I believe it's possible if you keep a reference to it and call hide (or dismiss?). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.12.2010 22:07 пользователь Emmanuel emmanuel.ast...@gmail.com написал: I did make a blog entry on the toast customisation subject : http://androidblogger.blogspot.com/2009/10/tutorial-how-to-customize-your-toasts.html So you can modify the look of the toast ! But I do agree with you that the toast is not fulfilling all of our needs, I also though about reimplementing something like a toast. Actually the bigger issue I have with the current toast is that you can't control acurately the amount of time it is shown, and you can't discard them. I used them in my Word Prospector game to give feedback to the player when they are doing right or wrong, and if the player tends to play very fast, the toasts accumulate, and are shown out of the correct context : ie the feedback is not fired for the latest player action. They can even be fired when the player is no more in the game. Emmanuel / Alocaly http://androidblogger.blogspot.com http://www.alocaly.com On 31 déc, 09:28, Karim B abdulkarim.ba...@gmail.com wrote: I don't I wise very clear... I'm trying to create something completely customizable interms of animation, duration...etc where in the Toast widget duration can only be set to 2 constant and therefor its not changeable and the animation part is also not changeable since the animation is set via the window of the toast not the view so if I try setting an animation on my custom view it just get overridden. So what I'm really asking is it possible create a completely transient notifications(not user interactive) without using toast and please don't tell me create a dialog since thats not what I want, a dialog needs a new activity which interrupts what ever the user is doing... I want to notify the user without having to stop what ever their is doing in a different activity and ofcourse without using the notification bar. 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.comandroid-developers%2bunsubscr...@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] Memory Leak in 1.6
I seem to have a memory leak when running under version 1.6 of the OS. I have a custom view group which contains some controls and I set it to be the current view via a call to setContentView(vg). If I then create a second view group and set it as the active view via setContentView(newVg), the first view group is never freed (even when I force a garbage collection). Note that this works fine for versions 2.0 and above, so it is possible that 1.6 has some kind of bug. If so, does anyone know of a workaround? I can post a simple example of this problem if it would help. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] getting a click event on an activity
i'm displaying a splash screen Activity and want to wait for the user the click/press on the screen before proceeding. how can i do this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)
Alright, I created an ubuntu partition, installed git, repo, eclipse, downloaded the eclair branch of android and built it. Created a Java project using 'existing src' with the android root directory. Was wondering how I should run/step through the Desk Clock application. Since there is no ADT plugin, If I Run as Java Application it simply brings up a list of internal and library modules like Svc, Command shell... Should I run the emulator in the debugger and then click on the alarm clock app? (Debugging the emulator with Eclipse http://source.android.com/source/using-eclipse.html) On Mon, Dec 27, 2010 at 5:40 AM, Bob Kerns r...@acm.org wrote: Indeed. This is called eating your own dogfood, and it's a highly valuable part of creating a high-quality product. If there's ANY reason this would inconvenience the developers, than that's a red flag that there's something that needs to be addressed -- whether it's the build/release system or inadequacies in the API, or things which aren't public which should be public (perhaps after some improvements are made and stability achieved). I'd strongly recommend a goal that anything and everything that possibly could be, be buildable with the SDK using public APIs and tools. Even the privileged stuff (which might fail at runtime with a security exception if not signed with the proper key for the platform -- but should still be buildable separately if the appropriate key is available). I suspect this would even end up making life easier for the developers of those apps. On Dec 26, 10:08 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I completely realize that it's possible to do well with the SDK, but I still believe that the top layer apps should be built with the SDK if possible. Does the calculator compile with the SDK? On Dec 27, 11:39 am, Robert rcope...@gmail.com wrote: Check out Alarm Clock Xtreme by Irene Duke. http://alarmclockxtreme.blogspot.com/ It is possible to do and do well with the SDK. On Dec 26, 7:32 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I do understand where you are coming from, though. It would be ideal that top-layer apps, especially simple ones like an alarm clock, should be buildable with the public SDK. After all, how can you create a like replacement if you don't have access to the same APIs? On Dec 27, 5:26 am, longingtoadopt.com anil.r...@gmail.com wrote: Would prefer not to have to - since I am on Windows On Sunday, December 26, 2010 1:02:55 AM UTC-6, Zsolt Vasvari wrote: Correct, you cannot compile these modules with the SDK alone. You need to download the platform source and compile those. I don't know the details.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- thanks, Anil Philip Please let us know if you know anyone with an unwanted pregnancy, willing to place for adoption. http://longingtoadopt.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)
Alright, I created an ubuntu partition, installed git, repo, eclipse, downloaded the eclair branch of android and built it. Created a Java project using 'existing src' with the android root directory. Was wondering how I should run/step through the Desk Clock application. Since there is no ADT plugin, If I Run as Java Application it simply brings up a list of internal and library modules like Svc, Command shell... Should I run the emulator in the debugger and then click on the alarm clock app? (Debugging the emulator with Eclipse http://source.android.com/source/using-eclipse.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