[android-developers] Re: Events on GLSurfaceView

2010-01-16 Thread Philip
Not sure why this would happen but if you want to take a look at the cocos2d for Android code I released last night, there are a few examples on how it works. You will also notice the 20ms wait delay I added there to avoid being flooded with motion events (pressure sensivity changes are sent even

[android-developers] Re: Definition of SensorEvent rotation angles

2010-01-16 Thread Lance Nanek
Do you have a phone? Just log the values and look at them as you move the phone. There are also several apps on the market that will show you the raw sensor data. On Jan 16, 3:16 pm, Peter Eastman peter.east...@gmail.com wrote: I'm trying to figure out exactly how to interpret the rotation

[android-developers] How to modify contact detail screen?

2010-01-16 Thread JimmyHoffa
Hi All, Just like to share some thoughts and ask if anyone knows how to modify the stock Contacts detail screen. I'm not 100% convinced I will adopt this strategy yet but I need to allow the user of my application to maintain contact information, with extra fields specific to my app' so I

[android-developers] Configure app to work horizontal and vertical?

2010-01-16 Thread qmwestview
Hi, Is it possible to configure all layouts of an Android app to support BOTH landscape and portrait mode so that the app will work both when phone is held vertically and horizontally. From my brief reading, it seems not. Am I right? -- You received this message because you are subscribed to the

[android-developers] Re: Thoughts on lawyers and self protection

2010-01-16 Thread theSmith
Thanks for they reply Wayne, Under an LLC there is a certain level of personal protection yes? Even if there is only one person in the LLC? Its my first time generating some revenue off coding (I'm still in college) and I really would like some legal protection, even though my apps shouldn't

Re: [android-developers] Configure app to work horizontal and vertical?

2010-01-16 Thread Matt Oakes
Nope, you can support both. When you define your layout in the xml files it will allow it to be displayed in both portrait and landscape. You can also define special layouts for landscape if you like. Take a good look at the notepad tutorial in the developer docs and you can see how it changes

Re: [android-developers] Re: Thoughts on lawyers and self protection

2010-01-16 Thread Wayne Wenthin
Yes there is a moderate amount of protection with an LLC. The key is managing it correctly. One of the biggest hurdles will probably be the need to pay yearly fees to both the state and to the company that will receive your documents. I believe this is required in most states. It costs me ~

[android-developers] Re: Android Pirate Site

2010-01-16 Thread MakeMobile
On Jan 16, 2:46 pm, Mark Murphy mmur...@commonsware.com wrote: MakeMobile wrote: I believe I've already answered the question of why Google would do something about this, but I'll say it again. Piracy damages the platform as a whole. Google cares about this kind of thing because it slows

[android-developers] Re: Android Pirate Site

2010-01-16 Thread Mark Wyszomierski
For what it's worth, the piracy issue was a real eye-opener for me when I released my first iPhone app. The app included a web service which simply logged an anonymous user ID on my site so I could distinguish between users. The ratio of paying to pirated users was staggering. After awhile I also

[android-developers] Re: RadialGradient question

2010-01-16 Thread schwiz
I have to bump this I have tried every number combination there is and it doesn't matter what I do the shader looks exactly the same as if the positions array was set to null. Can anyone at all get the shader to look any different in there own projects in the past? Does it not work with just 2

[android-developers] Re: Events on GLSurfaceView

2010-01-16 Thread Robert Green
Remember to call setFocusableInTouchMode(true); in the view if you want to receive focus and key/touch events. On Jan 16, 3:19 pm, Philip philip.dese...@gmail.com wrote: Not sure why this would happen but if you want to take a look at the cocos2d for Android code I released last night, there

[android-developers] Re: RadialGradient question

2010-01-16 Thread schwiz
ok I think it is that it doesn't work with 2 colors, it seems the positions variable doesn't effect the inner most color. Is this by design, a bug, or am I doing it wrong? On Jan 16, 5:24 pm, schwiz sch...@gmail.com wrote: I have to bump this I have tried every number combination there is and

[android-developers] unsubscribe

2010-01-16 Thread feda al-shahwan
I would like to subscribe -- Eng. Feda AlShahwan College of Technology Studies Puplic Authority for Applied Education Training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Events on GLSurfaceView

2010-01-16 Thread Peter Eastman
On Jan 16, 3:27 pm, Robert Green rbgrn@gmail.com wrote: Remember to call setFocusableInTouchMode(true); in the view if you want to receive focus and key/touch events. I wasn't doing that. I just tried it though, and it didn't fix the problem. Instead, it disabled the Back and Menu keys...

[android-developers] Re: Definition of SensorEvent rotation angles

2010-01-16 Thread Peter Eastman
On Jan 16, 1:40 pm, Lance Nanek lna...@gmail.com wrote: Do you have a phone? Just log the values and look at them as you move the phone. Yes I've done that, but it's not obvious from that which of the 24 possible rotation sequences it's using (six possible axis orders, and the second and third

[android-developers] Best way to reload overlay on map

2010-01-16 Thread Blocks
I have a tabactivity with a mapview inside it TabSpec tabSpec2 = mTabHost.newTabSpec(map_tab); tabSpec2.setIndicator(Map); Intent i = new Intent(ctx, LocationMapView.class); tabSpec2.setContent (i); mTabHost.addTab(tabSpec2); This starts up the mapview

[android-developers] Gallery View with Text: Styling

2010-01-16 Thread SurtaX
I currently have a Gallery Widget very similar to Gallery2.java in the API examples. It is a gallery widget populated by a simple adaptor of text. What I am trying to do is make the selected (the item at the center of the gallery widget) text and background a certain color and the other visible

[android-developers] CropToPadding

2010-01-16 Thread Ray Benjamin
In the ImageView class, there is an XML attribute, cropToPadding, that can be set up if you are creating the interface using XML, but there doesn't seem to be a corresponding method that can be used to set that attribute if you are doing things programatically. Is this a bug? Is there some

[android-developers] Re: Events on GLSurfaceView

2010-01-16 Thread Peter Eastman
On Jan 16, 1:19 pm, Philip philip.dese...@gmail.com wrote: Not sure why this would happen but if you want to take a look at the cocos2d for Android code I released last night, there are a few examples on how it works. Thanks, that was really helpful. After looking through your code for a

[android-developers] Re: Events on GLSurfaceView

2010-01-16 Thread Robert Green
That makes me think that you are now getting key events but aren't handling them properly. If you always return true, the system will not handle those keys anymore. I'm just shooting in the dark, though. Is there any way you could post some code for me to see? I'm pretty sure you need to

[android-developers] Re: Events on GLSurfaceView

2010-01-16 Thread Eyal99
I went to http://code.google.com/p/cocos2d-android/ but I don't see where to download the code. Where is it? On Jan 17, 8:26 am, Robert Green rbgrn@gmail.com wrote: That makes me think that you are now getting key events but aren't handling them properly.  If you always return true, the

[android-developers] Re: unsubscribe

2010-01-16 Thread Trevor Johns
Done. For future reference, most mailing lists (including this one) include directions for unsubscribing yourself at the bottom of the message. Following those directions is a lot more reliable and less time consuming than asking a moderator to do it for you. -- Trevor Johns On Jan 16, 3:52 pm,

Re: [android-developers] Displaying multiple locations on a mapview

2010-01-16 Thread Rogério de Souza Moraes
Hi, you can take examples of code from here: http://examples.oreilly.com/9780596521509/ The MJAndroid is a good example of code to show what you want. It read a data file and show jobs near you. Regards, Rogerio 2010/1/15 Blocks blocks...@yahoo.com Ok, time to ask, I've searched, tried

[android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Martin
No, I don't mean the comments I wrote for my program. I mean the comments of other users who rated my application. I just can see the german comments and every time I want to see other comments, I have to clear the Market-cache and change the locale on my phone. Is there a faster way to see

[android-developers] Re: Accelerometer Reading ranges

2010-01-16 Thread ko5tik
It's accurate enough to steer a toy car on display by tilting device, but I would not use this sensor to deliver nuclear warhead ( there definitely better ones ) Of course you can write some filter, but it would be tricky because: - your sample times are not guaranted to be equal (android is

[android-developers] Why differs the size of my app in the market to the real size of my app on my computer? How can I make the market-version smaller?

2010-01-16 Thread Martin
Hi! I want to reduce the file size of my application in the market. The strange thing is that my application LeonardFrog.apk just uses 4mb but the Google-Market shows me that it uses 8mb. You can search for it (Leonard Frog Beta) in the market. How can this be??? In my application, there are

[android-developers] Re: Problem about adding app widget into my application(custom home screen)

2010-01-16 Thread Leo
Maybe I didn't descripte my qustion clearly. I just want to add an app widget into my custom home screen, and then I try this in my activity mAppWidgetManager = AppWidgetManager.getInstance(this); AppWidgetProviderInfo widgetProviderInfo = null; AppWidgetHost AH = new AppWidgetHost(this,1024);

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
Thanks Philip, you are right, It should'v been mkdirs. But even so it still returns false. My example was a little confusing as to the directory names; all of them are directories; File directory = _Context.getFileStreamPath(); File subdirectory = new File(directory, subdir1/subdir2/subdir3);

[android-developers] Varying screen resolutions

2010-01-16 Thread Neilz
Hi all. So, I've been building an app which I test on my Hero, with a screen size of 480 x 320. The app is dependent upon Bitmap images, placing them at specific screen positions (i.e. Canvas.drawBitmap (bitmap, x, y, null) etc.). Now of course I face the problem of how this app will be

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
Philip, it did work after all. thanks. On Jan 16, 8:38 am, Business Talk roman.businesst...@gmail.com wrote: Thanks Philip, you are right, It should'v been mkdirs. But even so it still returns false. My example was a little confusing as to the directory names; all of them are directories;

[android-developers] Re: Varying screen resolutions

2010-01-16 Thread String
Step 1: RT[F]M ;^) http://developer.android.com/guide/practices/screens_support.html Additionally, there was a LOT of discussion of this when multi- resolution support came out in 1.6; some searching of this group should turn up good information too. The summary is that you can either leave

[android-developers] Re: Why differs the size of my app in the market to the real size of my app on my computer? How can I make the market-version smaller?

2010-01-16 Thread Al
Do you have copy protection enabled? This increases the space required on a device. Martin wrote: Hi! I want to reduce the file size of my application in the market. The strange thing is that my application LeonardFrog.apk just uses 4mb but the Google-Market shows me that it uses 8mb. You

[android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Al
Androlib.com allows you to use this if you link an app to your account on their site. They keep a cache of comments and update it on a regular basis so the comments you see are not always the most recent ones, but it's the best alternative at this time. Martin wrote: No, I don't mean the

Re: [android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Adrian Vintu
I use http://www.androidzoom.com They update comments more often. BR, Adrian Vintu On 1/16/10, Al alcapw...@googlemail.com wrote: Androlib.com allows you to use this if you link an app to your account on their site. They keep a cache of comments and update it on a regular basis so the

Re: [android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Adrian Vintu
androlib and androidzoom both do a cache of the Android Market. Aaik you do not need to create any new accounts on these 2 sites. BR, Adrian Vintu On 1/16/10, Adrian Vintu adrianvi...@gmail.com wrote: I use http://www.androidzoom.com They update comments more often. BR, Adrian Vintu On

[android-developers] How do I save the scroll position of a WebView?

2010-01-16 Thread Elizabeth
Hello, I wonder how I can save the scroll position in a WebView in SharedPreferences for example. I wonder how I can save the scroll position in a WebView in SharedPreferences for example (but not if it is more appropriate in the Bundle) and then restore when the Activity is reapear. Bye! --

[android-developers] Android Pirate Site

2010-01-16 Thread MakeMobile
I stumbled upon this site offering 1000's of Android apps for free (including mine!). http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_listing_of_android_applications/ http://www.mediafire.com/redditapps How do I report this to Google? How do we shut them down? -- You received

[android-developers] Re: Android Pirate Site

2010-01-16 Thread schwiz
shut one down 3 more pop up, its an unavoidable part of software development. On Jan 16, 10:13 am, MakeMobile makemobileinnovati...@gmail.com wrote: I stumbled upon this site offering 1000's of Android apps for free (including mine!).

[android-developers] Re: Android 2d graphics help

2010-01-16 Thread schwiz
an Activity is the same as your midlet, you will make a View and override onDraw instead of paint, and you call invalidate on the view instead of repaint. There are a few different ways to draw images from pngs depending on what you want to do. Look into the imageview class or make your own view

[android-developers] Re: Where to get a Samsung Moment for development

2010-01-16 Thread Don
Hi Dan, I'm actually based in the UK! But Cheers anyway! Don On Jan 8, 8:47 am, dan raaka danra...@gmail.com wrote: if you are local to mountain view let me know. I can help -Dan On Thu, Jan 7, 2010 at 4:53 AM, Don donal.morris...@gmail.com wrote: Hello, I'm now having the exact same

[android-developers] Re: Android Pirate Site

2010-01-16 Thread MakeMobile
I've been in the business for quite some time, and I know that drill. But I do not accept your reply as a useful response to this problem. This problem is damaging to the entire development community as a whole as well as the forward progress of the platform. Few developers will be interested in

[android-developers] Re: Why differs the size of my app in the market to the real size of my app on my computer? How can I make the market-version smaller?

2010-01-16 Thread Martin
Thank you, Al!!! You solved the problem :-) Now my game is 4mb :-) Greetings! Martin On 16 Jan., 15:28, Al alcapw...@googlemail.com wrote: Do you have copy protection enabled? This increases the space required on a device. Martin wrote: Hi! I want to reduce the file size of my

[android-developers] controling the user language

2010-01-16 Thread gilmad
hi, I have a multi language app. I want to give the user the ability to control which language to use. that mean that even if he has the English Locale he could use a different language if he wants. How can I change the Locale language? (per app) Thanks -- You received this message because

[android-developers] Re: Android Pirate Site

2010-01-16 Thread theSmith
I too would like to know if Google in particular is doing anything to help us developers out. As apps grow in popularity the more they are pirated and the harder to get them all taken down. Ideally there would be a spot for developers to submit pages that are hosting our apps illegally and

[android-developers] Thoughts on lawyers and self protection

2010-01-16 Thread theSmith
Hey all, I was just wondering what your thoughts are on having some law enforcement on your side as well as legal protection. As an independent developer its hard to afford legal nonsense like this. In your experience has it been worth it to include legal agreements with your apps and do you

[android-developers] Re: What's best way to resume activity and play audio file after spawned thread completes download?

2010-01-16 Thread rastyrori
Thanks very much. Yes, the user is waiting with a progress bar and the media player begins playing upon completion. I'll look into AsyncTask. Thanks again, Rusty On Jan 14, 3:45 pm, Jason Proctor jason.android.li...@gmail.com wrote: what's going on while the mp3 is being downloaded? is the

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Wayne Wenthin
My question is why would google do anything. These are your apps. You hold copyright not google. You have to do something. Unless you are finding Market or Maps on these sites google could care less and rightly so. Now with that out of the way you can contact the owner of the site and ask

Re: [android-developers] Thoughts on lawyers and self protection

2010-01-16 Thread Wayne Wenthin
LLC's are pretty cheap to form. I have 1 LLC that I'm a partner in and 1 sole proprietorship. The software is not published under the LLC though. But if you are worried that your app may make people do something that you need legal protection from I would look into license agreements that you

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Greg Donald
On Sat, Jan 16, 2010 at 11:09 AM, MakeMobile makemobileinnovati...@gmail.com wrote: I'd like to know what Google is doing about this, and who to forward abuse complaints to. You must be new around here. Google doesn't do support. But good luck all the same. -- Greg Donald

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Tommy Hartz
I would suggest contacting the company and informing them of their infringement of your software. If they refuse to remove it you have the right to get a lawyer. Check out this site http://www.justice.gov/criminal/cybercrime/ and on the right check out How to report intellectual property crime.

[android-developers] Saving a file from within a Live Wallpaper

2010-01-16 Thread GT
Hey all, I currently have a live wallpaper that is animated and works. However, I am trying to update the code and add in some lines which will save a file from a webpage and then read it. After reading it, the wallpaper would change its behavior. Anyways, I am having problems just saving the

[android-developers] Unescape XML

2010-01-16 Thread ls02
Is there any method or utility for unescaping XML string? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Android Pirate Site

2010-01-16 Thread Sekhar
Yeah, I believe iPhone has the advantage here since it won't even allow you to install apps from outside app store. That has its own negatives, but it at least protects the developers (and the consumers, actually). Until something like that happens, I'd try the traditional desktop software

Re: [android-developers] Saving a file from within a Live Wallpaper

2010-01-16 Thread Mark Murphy
GT wrote: Hey all, I currently have a live wallpaper that is animated and works. However, I am trying to update the code and add in some lines which will save a file from a webpage and then read it. After reading it, the wallpaper would change its behavior. Anyways, I am having problems just

[android-developers] Re: Saving a file from within a Live Wallpaper

2010-01-16 Thread GT
I really am a fool, I decided to see if I did and of course I didn't... and then I come back to post, and you beat me to it. I do appreciate your response though. On Jan 16, 11:30 am, Mark Murphy mmur...@commonsware.com wrote: GT wrote: Hey all, I currently have a live wallpaper that is

[android-developers] Re: Accelerometer Reading ranges

2010-01-16 Thread ko5tik
I looked at my favorite seller of electronic stuff - while BMA1502 sells for 1.50 from 100+, there are chips for about $120 apiece ( with much better resolution and answer times) - guess which ones will be built into your $300 smartphone ;) -- You received this message because you are subscribed

[android-developers] Re: Android Pirate Site

2010-01-16 Thread MakeMobile
On Jan 16, 1:08 pm, Wayne Wenthin wa...@fuligin.com wrote: My question is why would google do anything.  These are your apps.  You hold copyright not google.  You have to do something.  Unless you are finding Market or Maps on these sites google could care less and rightly so. I believe I've

[android-developers] Re: Android Pirate Site

2010-01-16 Thread theSmith
Would it be feasible to authicate the app with a google checkout number like copilot does? On Jan 16, 1:55 pm, MakeMobile makemobileinnovati...@gmail.com wrote: On Jan 16, 1:08 pm, Wayne Wenthin wa...@fuligin.com wrote: My question is why would google do anything.  These are your apps.  You

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Mark Murphy
Sekhar wrote: Yeah, I believe iPhone has the advantage here since it won't even allow you to install apps from outside app store. That has its own negatives, but it at least protects the developers (and the consumers, actually). You would appear to be mistaken:

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Kevin Duffey
I got a question for you guys. Assuming you know how and have the means to set up a server.. why can't you have your app send a code or something to this server.. to verify its a valid copy. If the copy that is out on those hosting sites has the same code.. you can at least have your app hit the

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread David Sauter
More importantly - do Android devices have unique hardware identifiers like the iPhone's UUID? David Sauter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Invoking the default Alarm clock app as ways for Apps to receive a intent at scheduled time

2010-01-16 Thread frantz lohier
Dear All, Is there a way for an App to invoke the default Alarm Clock application and receive a intent at a given time for specific functions to be activated. I understand the the AlarmManager can be used for this sort of purpose but I'm trying to leverage the complete alarmclock GUI framework

[android-developers] Continous Audio recording in memory

2010-01-16 Thread frantz lohier
Dear All, I'm writing an App that needs to continuously record audio in memory and email the last 30 seconds of audio when required. Much of the mediarecorder API is designed to store linear audio in files. Could anybody point me towards a way to continously record audio in memory, using a

Re: [android-developers] Continous Audio recording in memory

2010-01-16 Thread Mark Murphy
frantz lohier wrote: Dear All, I'm writing an App that needs to continuously record audio in memory and email the last 30 seconds of audio when required. Much of the mediarecorder API is designed to store linear audio in files. Could anybody point me towards a way to continously record audio

[android-developers] Re: Android Pirate Site

2010-01-16 Thread theSmith
@david I believe there must be, I know flurry assigns an unique id to each user, so I'm guessing its using a hardware identifier, I'm going to look through the docs now On Jan 16, 2:19 pm, David Sauter del...@gmail.com wrote: More importantly - do Android devices have unique hardware identifiers

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Mark Murphy
David Sauter wrote: More importantly - do Android devices have unique hardware identifiers like the iPhone's UUID? android.provider.Settings.System, ANDROID_ID, is a unique ID per device. Note, though, that this is not stored in ROM, and so rooted devices can hack their ANDROID_ID. Also,

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Mark Murphy
MakeMobile wrote: I believe I've already answered the question of why Google would do something about this, but I'll say it again. Piracy damages the platform as a whole. Google cares about this kind of thing because it slows the progress of the platform as a whole. That is debatable. For

Re: [android-developers] Invoking the default Alarm clock app as ways for Apps to receive a intent at scheduled time

2010-01-16 Thread Mark Murphy
frantz lohier wrote: Is there a way for an App to invoke the default Alarm Clock application and receive a intent at a given time for specific functions to be activated. I do not believe so. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Ray Benjamin
While there are thousands of things you can do to make it more difficult for someone to pirate your application, they all come at the cost of making it that much more difficult for your user to purchase your application and/or make your application more fragile. Many anti-piracy methods keep

[android-developers] Re: Android Pirate Site

2010-01-16 Thread Sekhar
You would appear to be mistaken:

[android-developers] Definition of SensorEvent rotation angles

2010-01-16 Thread Peter Eastman
I'm trying to figure out exactly how to interpret the rotation angles produced by a SensorEvent for Sensor.TYPE_ORIENTATION. Unfortunately, the documentation (http://developer.android.com/reference/android/ hardware/SensorEvent.html#values) doesn't give a complete definition of it. It defines

[android-developers] Re: Accelerometer Reading ranges

2010-01-16 Thread MPower123
I was inclined to thinking most of the android phones would come with relatively the same accelormeter chip. From what i've read the blackberries and iphone either have a better chip or better logic has been used to smooth out the signal. I guess for the most accurate reading I would need to set