[android-developers] Re: Re: R: Re: menu item disabled, but clickable

2016-07-12 Thread Edward Yung
Hi, Michele. I agree with you this is a bug and I found a strange way to handle it. Hope it helps :) private void lockMenu(){ for(int i=0;i > I wish to thank you all for the suggestions. > > Anyway i think it's a bug or some design glitch, because the menu items in > the first menu (the me

[android-developers] What happen to app's resources when we install the app?

2016-03-21 Thread Marcus Edward
I created some resources which only apply to API 21+. Will those resources be installed along the app or will it be deleted when I install the app on lower API level? I ask this because I want the app's size as minimal as possible -- You received this message because you are subscribed to the

[android-developers] Need a Front End & Back End Developer for an Android App / Technical Co-founder for a Startup in Bangalore

2016-03-20 Thread Edward Rodrigues
Unicorn* !* Best Regards *Edward Rodrigues* Founder & CEO *I* teska Technologies Pvt. Ltd. (SKA) *I* Bangalore Mobile: +91 99-7299-7804 *I* Skype: edward.ska *I* Email: edw...@ska.in* I* Website: http://ska.in -- You received this message because you are subscribed to the Go

Re: [android-developers] Re: openOptionsMenu not working on Honeycomb device

2015-08-09 Thread Edward Falk
You know, it's like they had some sort of executive meeting when 3.0 first came out. "Gentlemen, we're on the cusp of rolling out an exciting new version of Android. This will revolutionize the product and give a magnificent new user experience. Johnson, what new ways have you and the boys in t

Re: [android-developers] Re: openOptionsMenu not working on Honeycomb device

2015-08-09 Thread Edward Falk
On Friday, December 16, 2011 at 3:51:58 PM UTC-8, Dianne Hackborn wrote: > > You can definitely go fullscreen and have an action bar, you just need to > make a theme for this. > > That said... really, why? Please don't. It is freaking annoying when > applications hide the status bar for no goo

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
r own widgets over top of the > map, by putting the Map in a RelativeLayout, FrameLayout, etc., though > I have not tried this. > > > On Wed, Mar 13, 2013 at 4:47 PM, Edward Lin > wrote: > > I can supply the custom view, the views have the autolink for phone or > >

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
t;200dip" android:id="@+id/balloon_main_layout" android:paddingTop="0dip" android:paddingRight="0dip"> Many Thanks! On Wed, Mar 13, 2013 at 2:34 PM, Edward Lin wrote: > I will have a try and let you know the results. > > Thanks! > > &g

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
I will have a try and let you know the results. Thanks! On Wed, Mar 13, 2013 at 3:25 AM, Martin wrote: > Can you use the InfoWindowAdapter and override it's GetInfoContent handler > to supply your own custom View and in that custom View create the clickable > Views you require? > > > https:/

[android-developers] How to replace the ItemizedOverlay with onTap event

2013-03-12 Thread Edward Lin
According to the following link: https://developers.google.com/maps/documentation/android/v1/mapkey *Note*: Version 1 of the Google Maps Android API as been officially deprecated as of December 3rd, 2012. *This means that from March 3rd, 2013 you will no longer be able to request an API key for th

Re: [android-developers] Re: Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-05 Thread Edward Lin
should be SHORT for all locales. I just try to use a generic way to handle the date time localization. Thanks, Edward On Wed, Jul 4, 2012 at 12:11 AM, Zsolt Vasvari wrote: > So are saying that if you go to Settings (NOT your code) and pick the > Great Britain language setting, the phone sho

Re: [android-developers] Re: Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread Edward Lin
what is wrong with en-GB? Thanks, Edward On Tue, Jul 3, 2012 at 10:56 AM, Edward Lin wrote: > Thanks for the reply! Here is the results I got from this line of code: > > Locale[] allLocales = Locale.getAvailableLocales(); > > [ar, ar_AE, ar_BH, ar_DZ, ar_EG, ar_IQ, ar_JO, ar_K

Re: [android-developers] Re: Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread Edward Lin
rect) >> Android 4.0.x result: 07/03/2012 (Wrong) >> >> Apparently, It is working at Android platform 2.2.x to 2.3.x, but in >> devices with 4.0.x (such as ASUS Eee Pad and Samsung Nexus 2), it does not >> work anymore. Why is this behavior different between the AP

[android-developers] Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread Edward Lin
(such as ASUS Eee Pad and Samsung Nexus 2), it does not work anymore. Why is this behavior different between the API level? And how can I get the default date format for specific locale from now on? Thanks, Edward -- You received this message because you are subscribed to the Google Groups

[android-developers] Best way to have skins for an app?

2012-05-11 Thread Edward Falk
I want to give users the option of changing the look of my app. I found a way to do that via setTheme(), but I also found a post by Diane Hackborn that says: > But you really really should be setting this in the manifest. The system > uses this information to improve how it launches your activit

[android-developers] AVD for Sony Ericsson

2012-02-15 Thread Edward Cerullo
s too. Can someone please help me? Thank you. Edward -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email t

[android-developers] MediaRecorder stop() hangs forever

2011-03-31 Thread Edward Cunningham
NT freed 525K, 59% free 2793K/6663K, external 1625K/2137K, paused 6ms+2ms I'm not sure how to proceed in identifying the source of the crash. Can anyone suggest what might be happening, or how I could continue my investigations? Any help would be greatly appreciated. Many thanks, Edward -

[android-developers] Please help how can use WiFi hotspot feature in application

2011-03-09 Thread Edward Choi
I am a application developer. I want to use WiFi hotspot feature in my application. But I can't find how can set a arbitrarily SSID or WiFi security option by myself in my application. Would you tell me how can set a arbitrarily SSID and WiFi security option in my application. Thank you for readi

Re: [android-developers] Re: Android Market paid app download errors

2010-07-26 Thread Edward Falk
>> Normally cancelling the order and making a new one will solve it. > One customer has reported that this works. Thank you! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegro

[android-developers] Re: Android Market paid app download errors

2010-07-26 Thread Edward Falk
> There are occasionally glitches in the android market "paid app > download process". There *were* occasional glitches in the market. Now they're continuous. My customers can't download the app and they've been trying for a week and nothing we've tried from either end helps. > Try asking your

[android-developers] Re: Android Market paid app download errors

2010-07-25 Thread Edward Falk
This issues *my* customers are seeing is that they can see the app on the market, they can buy it, than can get billed for it, but they can't download it. Needless to say, they're not happy. The app is a simple calculator. The only permissions is uses are vibrate and write to sd card. It was or

[android-developers] Re: Android Market paid app download errors

2010-07-25 Thread Edward Falk
I'm having the same issue -- several complaints about being able to buy, but not download an app. Complaints are on Droid X and Incredible. Does cancelling and re-ordering help? I can tell you that rebooting the phone, making sure you're logged in to Google Talk, or even updating the app on the

Re: [android-developers] Re: Communicating from Android Service to an Activity

2010-05-21 Thread Edward Hinchliffe
I see - just to be clear - you'll only be operating a GUI in a separate process if you've either got 2 separate applications, or one application where an activity within it explicitly specifies it wants to run in a separate process. I only say this because I didn't understand the term 'process' in

[android-developers] Re: I can't find my own application in the market

2010-05-16 Thread Edward Falk
On May 16, 2:29 pm, Simone wrote: > It worked! How comes turning off that lets me find it? I've never heard of an Acer Liquid before. I'm guessing that neither has the Android Market. Part of the way copy protection works is by only allowing approved devices to access copy-protected applicati

[android-developers] Re: Namespaces and custom widgets

2010-05-11 Thread Edward Falk
Another example of someone trying to do this was in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/d36983a8159f303b/ Everybody just says "use getIdentifier()", but nobody says what arguments you might pass it in order to return a styleable. -- You received th

[android-developers] Namespaces and custom widgets

2010-05-10 Thread Edward Falk
As a continuation of the thread in http://groups.google.com/group/android-developers/browse_thread/thread/390e8188cedd66a6, I'm still trying to figure out how a custom widget can use getIdentifier() to read attributes. As an example, I have a widget class called CustomWidget. It has attributes "i

Re: [android-developers] Quick logcat question

2010-05-06 Thread Edward Hinchliffe
grep worked great, thanks both. I noticed $ adb logcat | grep com.myappname Picks up a couple of other internal android messages (intents etc) which might be useful, but you can also get rid of those like this: $ adb logcat | grep /com.myappname Awesome, thanks again :) 2010/5/6 Kostya Vasilyev

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-05 Thread Edward Falk
Intriguing. I was wondering if maybe you could add a blurb to your web site explaining in simple terms how it works. E.g. "when the API is called, it communicates with the Android Market to verify your key; once verified, the verification code is remembered so that no further calls to the market

[android-developers] droidfanz.com -- what does it take to get them taken down?

2010-04-20 Thread Edward Falk
Found my paid app on their site. This is hardly a new issue; why are they still in business? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: Application not installed - anyone have thoughts as to why?

2010-04-14 Thread Edward Falk
If you check your logcat messages, you'll probably get your answer, but I'll tell you here anyway: You're not allowed to replace an application with another that has a conflicting signature. It's an obvious safety feature. So uninstall your old version and then install the new version. -- You

[android-developers] Re: any lawyer types out there that can get this site down?

2010-04-11 Thread Edward Falk
On Apr 8, 6:59 pm, "Guess Who, You Probably have my Number" wrote: > I did. But I am know internet genius. Just me and a friend trying to > make a quick buck a while ago. Never thought it would actually work! > made a couple hundred. Called it quits. Working on other projects. My > info is not o

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-06 Thread Edward Falk
> 1. If I get a Droid, will anyone be willing and interested to switch > it with me for a Nexus One? One unopened box for another unopened box? I'm amused. Not one person here has said they want the Droid. Me included; I'd much prefer a GSM phone to one that would be locked to Verizon for etern

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-06 Thread Edward Falk
> > My app, Bebbled, has 600k+ downloads, 4.5 rating, and I'm in the EU, but > > did not get an e-mail. > > If you think you qualify, fill out the form anyway. Can't hurt. That's a really good idea. BTW. (Bebbled is a great game, although I eventually got stuck.) -- You received this message b

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-06 Thread Edward Falk
> It's only a suggestion, but my view is that that Google have just > saved the chosen ones $500+, so even if you think you're time is worth > $100 an hour it might be worth putting in 5 hours of "community > service" as a way of showing Google that these kind of actions are > much appreciated and

[android-developers] Re: What to do about developers who publish games with the same name as what you have published...

2010-03-06 Thread Edward Falk
Certainly they're not acting in good faith. Trying to game the system at the very least. I'll bet this violates Google's terms and conditions. I think I'd complain. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: Piracy, almost 50% of my new users - Seriously Google?

2010-02-27 Thread Edward Falk
If your app is talking to a server anyway, why not authenticate on that channel too? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, se

[android-developers] Re: TableLayout, Rotating

2010-02-03 Thread Edward Falk
I don't think the Android API lets you do what you want. I wound up writing my own "gridbox" layout widget which I use in several of my apps. It's similar to the old Java "gridbag" layout and HTML tables. It does everything I need. Unfortunately, it's not generic enough for me to publish yet. -

[android-developers] Re: androidplayground.net

2010-01-29 Thread Edward Falk
And yet, here it is a month later and the site is still up. Why doesn't someone DMCA them and their provider too. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To u

Re: [android-developers] Re: How do I kill a blocking thread?

2010-01-28 Thread Edward Hinchliffe
oh, ignore me, just scrolled down! Interrupt is not the solution, just closing the socket. Thanks for the link. On 28 January 2010 22:15, Edward Hinchliffe wrote: > from the page you quoted: > " More precisely, if the thread is blocked at one of the methods > Object.wait, T

Re: [android-developers] Re: How do I kill a blocking thread?

2010-01-28 Thread Edward Hinchliffe
from the page you quoted: " More precisely, if the thread is blocked at one of the methods Object.wait, Thread.join, or Thread.sleep, it receives anInterruptedException, thus terminating the blocking method prematurely." I'm aware of sending an interrupt while it's asleep, but if I'm blocking on a

[android-developers] Re: rooted phones, security, private storage.

2010-01-20 Thread Edward Falk
On Jan 13, 9:18 am, sdphil wrote: > hey mark - when you say "copy protect" onAndroidMarketcauses more > problems than it solves, can you describe what you mean? Case in point: HTC recently pushed an update for the Eris that was incompatible with the Google Market. All copy-protected apps disa

[android-developers] Re: Android Pirate Site

2010-01-17 Thread Edward Falk
> Now with that out of the way you can contact the owner of the site and ask > them to remove your app. If they don't comply you probably will need to > lawyer up to get any satisfaction and in the end you will probably not be > able to collect. All you get is a lawyer bill. That's what the D

Re: [android-developers] Passing messages between threads.

2010-01-09 Thread Edward Hinchliffe
Thanks mark for the speedy response as always. Thread 1 is listening for messages (in xml format) on a TCP socket and is sending the string over to thread 2. Thread 2 will parse the message into an object and interpret it. Thread 2 can also accept message objects and build an xml string, which it'

[android-developers] Re: EditTextPreference: how to make it single-line?

2010-01-08 Thread Edward Falk
On Jan 8, 8:12 am, Edward Falk wrote: > it's > not documented in the EditTextPreference page Ooor, I could have read the opening paragraph instead of skipping straight to the list of XML attributes. Duh. -- You received this message because you are subscribed to the Go

[android-developers] Re: EditTextPreference: how to make it single-line?

2010-01-08 Thread Edward Falk
On Jan 3, 11:13 am, Wayne Wenthin wrote: > android:singleLine="true" Ahh, perfect. I thought that attribute was only for TextView; it's not documented in the EditTextPreference page, but I guess I should have tried it anyway. Thank you very much. -- You received this message because you are

[android-developers] EditTextPreference: how to make it single-line?

2010-01-03 Thread Edward Falk
I have an EditTextPreference item in my Preference activity. I would like the enter key signal "ok" rather than enter a newline. Is this do-able via the preferences.xml file or some resources file? In fact, ideally, I'd like to replace the "enter" symbol in the soft keyboard with "Done". -- Yo

[android-developers] Re: Conventions about using SD card

2010-01-03 Thread Edward Falk
No official conventions exist as far as I know. It would be very anti- social to store your files in the sd card root because of the clutter it would cause (and I'm surprised that there are apps that do it). If you're confident that your application's name will be unique, you could just create /s

Re: [android-developers] Re: parsing a *string* of XML with SAX.

2009-12-19 Thread Edward Hinchliffe
ok, answered my own question again.. me failing to use eclipse properly: import java.util.jar.Attributes; was at the top, rather than the SAX attributes object. hence my startelement method had the wrong arguments. -- You received this message because you are subscribed to the Google Groups "And

Re: [android-developers] Re: parsing a *string* of XML with SAX.

2009-12-19 Thread Edward Hinchliffe
Sorted, for anyone who was interested, the startElement and endElement methods need to look like this: public void endElement(String uri, String localName, String qName)throws SAXException{ Log.i("###","start element"); } 2009/12/19 Edward Hinchliffe > In fact it seem

Re: [android-developers] Re: parsing a *string* of XML with SAX.

2009-12-19 Thread Edward Hinchliffe
> never the elements... > > On Dec 19, 5:19 pm, Edward Hinchliffe > wrote: > > Thanks Mark, I've just given that a try. I still don't get any calls to > my > > startElement method, but there is a new warning which may be a clue: > > > > 12-19 17:14:24.24

Re: [android-developers] Re: parsing a *string* of XML with SAX.

2009-12-19 Thread Edward Hinchliffe
Thanks Mark, I've just given that a try. I still don't get any calls to my startElement method, but there is a new warning which may be a clue: 12-19 17:14:24.241: INFO/NWXML(1852): Trying to parse: *snip* 12-19 17:14:24.241: WARN/ExpatReader(1852): DTD handlers aren't supported. DTD handlers are

[android-developers] Re: How do I navigate to the program data with adb shell

2009-12-17 Thread Edward Moskal
Hello, I'm having the same problem. What I'm trying to do is to copy from /sdcard/gestures so using adb pull /sdcard/gestures I get adb: permission denied I'm developing using Windows and my phone is HTC Magic. Does anyone have an fix or answer to this problem? Ed -- You received this message

[android-developers] Re: Socket - Network connect drops after 15 minutes

2009-12-14 Thread Edward Falk
Can I ask why you're keeping a connection open for 15 minutes? That must be killing the battery. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from t

[android-developers] Re: RecognizerIntent available languages ?

2009-12-13 Thread Edward Moskal
I'm sure at least Japanese is also available. i tested on my cell phone. However, I too am having a problem in actually overriding and changing the language used for voice recognition. I tried to search in Japanese with default language set to English, that didn't work. I also tried to use voice re

[android-developers] Re: RecognizerIntent available languages ?

2009-12-13 Thread Edward Moskal
I have my cell set to Japanese language and it recognize my voice as Japanese. I'm having overwriting the language setting though. I run API Demo on my cell and when i try Voice Recognition, it only recognize my speech as Japanese(which the cell phone is set to as Default language) So I added the

[android-developers] Re: Is Android Speech recognition only available for english?

2009-12-13 Thread Edward Moskal
Hi, I'm having the same problem. I have an Android cell set to Japanese. But I added "intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.US.toString()); " to the API Demo and tried it out on the cell but it only recognize the voice as Japanese and not English. BYW, it's not my english pronou

[android-developers] Re: app for blocking apps

2009-11-29 Thread Edward Falk
On Nov 28, 5:16 pm, sleith wrote: > any one know the code to block app so cannot be launched? >.< > thx Why would you want to do this? It sounds like you want to take control away from the user. If the user doesn't want an app launched, they can, you know, just not launch it. -- You receive

[android-developers] Re: Building your own UI library like the embeddable Google Maps library

2009-11-19 Thread Edward Falk
> Reusable classes cannot use the R.* notation to reference resources. > > You can either: > > -- Accept resource IDs as parameters, the way much of the Android SDK is > set up. That way, the calling application controls the name of the > resource. You just get an opaque integer identifying the r

[android-developers] Re: namespace in styles.xml

2009-11-16 Thread Edward Falk
I found one approach that works: drop the qualifier "trskb" some_value It solved the problem for me. I don't know how the system would handle a namespace collision though. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Re: namespace in styles.xml

2009-11-16 Thread Edward Falk
I'm having the exact same problem. Is there an equivalent to xmlns for styles? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send em

[android-developers] Re: Optional permissions (revisited)

2009-11-14 Thread Edward Falk
> Other opinions? I agree absolutely. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@go

[android-developers] Re: Choosing Dev Phone

2009-11-14 Thread Edward Falk
I don't know if someone else mentioned this, but I want to stress that 99% of developers do NOT need a dev phone. If you just want to write android apps in Java and run them, any phone will do this. Dev phones are for if you want to do OS-level development. I'd much prefer a phone that can downl

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-14 Thread Edward Falk
Oh, and more importantly, the Android market should have a tool that allows developers to get a list of devices that their application won't be shown for, and why. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-14 Thread Edward Falk
Wait, so people are reporting problems with the CAMERA permission? Let me guess, if you need that permission, then the app isn't shown to phones that don't have cameras? What if the app *can* use the camera, but doesn't *need* to use the camera. What if it runs just fine on devices without camera

[android-developers] Re: Building your own UI library like the embeddable Google Maps library

2009-11-05 Thread Edward Falk
OK, how about this related issue? I wrote a utility class that I want to use in multiple products. org.efalk.gridbox.GridBox <= my utility class org.efalk.rpncalc.RpnCalc <= product that I want to use Gridbox The Gridbox class looks like: package org.efalk.gridbox; ... private void Grid

[android-developers] Re: Google wave invitations...?

2009-10-16 Thread Edward Hades
It's a web app. Works in Linux versions of firefox 3.5 and chromium On Oct 17, 12:32 am, renjun wang wrote: > On Thu, 2009-10-15 at 22:41 -0500, Kenneth Adam Miller wrote: > > Who wants to be in Google wave? > > I have 16 invitations > > does it have linux version? --~--~-~--~~--

[android-developers] SASL Library for Android

2009-09-13 Thread Edward Hades
vance, Edward "Hades" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this gro

[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?

2009-06-15 Thread Edward Falk
IMHO, you do not want a dev phone if you can avoid it. They let you install your own os on the phone, but most developers don't need to install their own os. Dev phones can't download applications that are protected by drm. I'd just get any working android from eBay. --~--~-~--~~---

[android-developers] Re: How to compile android project at command line

2009-06-15 Thread Edward Falk
I typically use this Makefile. Customize as necessary. If you use Windows you're on your own. app=RpnCalc bindir=bin/rpncalc release: build.xml ${bindir} ant release mv ${bindir}/${app}-unsigned.apk ./${app}.apk jarsigner -keystore ~/.android/keystore ${app}.apk efalk

[android-developers] Re: styled text on button?

2009-05-28 Thread Edward Falk
IIRC, Button is a subclass of TextView, so whatever works with TextView should work with button. If you define the button text with resources, then the usual , , and other tags should work just fine. Haven't tried it myself, though. --~--~-~--~~~---~--~~ You recei

[android-developers] TabHost + setTheme() = weird !

2009-05-19 Thread Edward Falk
This came up a year ago, but nobody replied to the original author, so I'm wondering if anybody found a work-around. In a nutshell: Setting android:Theme.Light in the manifest produces tabs that are unreadable. The tabs are such a light color that they almost disappear against the background, a

[android-developers] Launch android emulator on mingw/msys, but failed

2009-04-23 Thread Edward
Is anyone who can help me? Edward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-20 Thread Edward Falk
On Apr 20, 6:58 am, jarkman wrote: > We actually maintain two separate codebases for our pro and light > products ... Yuck. I was afraid that would be the answer. I don't know what Sun was thinking when they decided to have no pre-processor for Java. I'll try the "if (FREE_VERSION)..." appro

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-20 Thread Edward Falk
Yes, I'll probably do it that way if I can't find another way. Problem is that I also want to remove a lot of code from a case() statement, remove a lot of functions that won't be called, and remove a lot of resources. Are we sure that the Java compiler will actually remove the dead code? I cou

[android-developers] build android emulator under mingw(winxp)

2009-04-20 Thread Edward
configure: error: C compiler cannot create executables See `config.log' for more details. make: *** No targets specified and no makefile found. Stop. ERROR: could not build SDL library, please check their sources Anyone could help me? Edward --~--~-~--~~~-

[android-developers] Building different versions of an app -- best practice?

2009-04-19 Thread Edward Falk
What is the best way to release two versions of an application? E.g. a free version with limited features, and a paid version with the full feature set. #ifdef would be the ideal way to do this, but Java doesn't support it. Could I do something like: try { import com.foo.myapplication.E

[android-developers] Re: How is android's AlertDialog layout define?

2009-04-16 Thread Edward Falk
On Mar 23, 12:27 pm, Lucius Fox wrote: > Can you please tell me where I can the layout xml file for theAlertDialog? > I try to do a 'grep for 'alert1' in all the files in the source tree, > it does not return anything. I believe it's frameworks/base/core/res/res/layout/alert_dialog.xml Howeve

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-11 Thread Edward Falk
> I wrote those concerns to Google and I sent an email to the EFF. The > bottom line is that for my application to be restored on the android > market, I have to send a DMCA counter-notification. And then the > Tetris Company can sue and take the case to Court. Yes, this is how the DMCA works.

[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-11 Thread Edward Falk
I encountered the same issue with a new Sim card I bought from the T- Mobile store. In a couple weeks, it started returning the correct phone number, but it initially returned null. I modified my software to allow the user to enter the phone number if I couldn't find it from the telephony manage

[android-developers] Re: WiFi

2009-04-11 Thread Edward Falk
I didn't think it was a dumb question. The emulator could, you know, emulate it. In fact, that would be a useful feature to have. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Re: Getting a complete list of android native drawables

2009-03-21 Thread Edward Falk
On Mar 20, 7:38 am, gsmd wrote: > I'd suggest to check out the sources from git & search for .pngs > there. At least, that's what I did. That's a very bad idea. If they're not part of the documented API, they could very easily go away again on the next os release. Using undocumented features

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-13 Thread Edward Falk
On Mar 12, 5:03 pm, Romain Guy wrote: > AbsoluteLayout is deprecated in Cupcake. Why? And what do we use in its place? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Re: Sharing data across Activities

2009-03-13 Thread Edward Falk
Are the activities all in the same application? Same task? It seems to me that you could just store the data in a static variable accessible by all of the activities. Am I missing something? public class MainActivity extends Activity { ... static MyDataStructure dataStruct = null; ...

[android-developers] Re: Turning GPS ON/OFF

2009-03-09 Thread Edward Falk
On Mar 9, 1:20 pm, Rudi wrote: > What is the correct way of turning ON/OFF the GPS in Android. I've > found the System.Settings provider, and the LOCATION_PROVIDERS_ALLOWED > setting, but it seems that the rest of the system is not notified I had the exact same question myself. Browsing the s

[android-developers] Re: What would an intent URI look like for numeric data?

2009-03-06 Thread Edward Falk
Doesn't particularly need to be in the data field, I just thought that it was an obvious place put put, you know, data. I've actually seen examples of apps that put the result in the Action field. (C.f. app/SendResult.java in the sdk) --~--~-~--~~~---~--~~ You re

[android-developers] Re: Why different behaviour when exiting app using BACK and HOME ?

2009-03-05 Thread Edward Falk
> Every app I download that doesn't let me press back to get out of it has a > special little black spot in my heart. Agreed. The web browser comes to mind. It's a huge hassle to exit it. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] What would an intent URI look like for numeric data?

2009-03-05 Thread Edward Falk
Suppose I want to include data right in an intent, e.g. pass a number or string in the intent data field. What should the uri look like? Something like "data:3.14159"? Or just don't include the scheme at all, "3.14159"? In fact, is there a list of standard schemes anywhere? -ed falk --~--~--

[android-developers] Poor menu layout

2009-03-04 Thread Edward Falk
Hi all; I took a bare-bones "hello world" application and added these four menu items in onCreateOptionsMenu(): ++ |Start | ++ |Find

[android-developers] Re: How to remove or hide an app

2009-03-02 Thread Edward Falk
By "grid", do you mean the grid of applications shown to you in the application launcher? If so, I believe you remove the tag from the intent filter of your app. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Re: Can I download my code off my phone?

2009-03-01 Thread Edward Falk
I'm going to guess that the only thing installed on your phone is compiled bytecode. There *might* be a way to fetch it back out of the phone with adb, but you'd still have to de-compile the byte code back to Java. Frankly, I think you'd be better off just reconstructing your work. --~--~---

[android-developers] Re: Is there a standard list of android icons for our apps?

2009-03-01 Thread Edward Falk
On Feb 28, 3:58 am, lotusscript wrote: > http://www.screaming-penguin.com/info/android_drawables/android_drawa... Thank you, that's an excellent visual guide. I realized, after the fact, that the list found in R.drawable is probably the canonical list if there is such a thing. I did note, ho

[android-developers] Re: Best option to create alarm

2009-03-01 Thread Edward Falk
You want AlarmManager. It allows you to create an Intent object and have it broadcast at a later time. Then you write a broadcast receiver, service, or other object to receive the intent and wake up. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Is there a standard list of android icons for our apps?

2009-02-27 Thread Edward Falk
From: Anil > for example: for error dialogs, confirm dialogs, progress... > I looked in the res/drawable in the android.jar but couldn't see > thumbnails to determine what they look like. > thanks, Bump Any options other than looking at res/drawable in android.jar? I prefer not to do that bec

[android-developers] Re: Quick Compass question

2009-02-24 Thread Edward Falk
If I understand correctly, the magnetic field detectors in the phone return a 3-d answer (an xyz vector towards the north magnetic pole). The phone's built-in software takes that information, and combines it with the information provided by the accelerometers in order to return the correct answer

[android-developers] requestLocationUpdates() hangs if called from a remote service stub

2009-02-20 Thread Edward Falk
Hi all; I searched the group, but found nothing on the subject. Here's what I'm seeing: I have a remote service. If I enable the location provider from my onCreate() entry point: public void onCreate() { super.onCreate(); locationManager = (LocationManager) getSystemService(Con

[android-developers] Re: Catch G1 keyboard open/close

2008-10-26 Thread Edward Falk
In your manifest, add this attribute to your Activity tag: android:configChanges="keyboardHidden" http://code.google.com/android/reference/android/R.attr.html#configChanges and override the onConfigurationChanged() method in your Activity http://code.google.com/android/reference/android/app/Act

[android-developers] Re: If your hosting your own .apk

2008-10-25 Thread Edward Falk
The android won't accept unsigned applications, although self-signed certificates are acceptable. The Eclipse/SDK will automatically sign apps for you with a temporary debugging certificate, but you'll want your own permanent certificate before you release. The debug cert expires after one year,