[android-developers] Tutorial on creating a view at runtime?

2013-01-11 Thread AJ
Do you guys know of a simple tutorial for creating a view at runtime? For example, when I launch my app, there is a button in the middle of the activity's layout. Each time this button is pressed, how would I make a text view appear? I'm a newb to android programming, so any help would be appr

[android-developers] Decrepancy in daily device installs between Google Checkout & Console's statistics

2013-01-11 Thread howa
I developed a paid app, and from time to time I see decrepancy between Google Checout and Console's statistics. I beliebe the app might be pirated but that it should not be reflected in the Console's statistics, right? (becoz I see a even larger decrepancy in Google Analytics). You might said

Re: [android-developers] Re: Developer fee payment canceled after 2.5 years

2013-01-11 Thread David Erosa García
I just received a response to my support request: "Due to a technical error, your order from 4 Jul 2010 was not charged and has recently been cancelled by Google." The thing is that the credit card and bank account that I used to pay no longer exists, so I can't check if the payment was really ma

Re: [android-developers] trying to get polylines to work in google maps api v2

2013-01-11 Thread TreKing
On Fri, Jan 11, 2013 at 3:43 PM, John Merlino wrote: > > double currentLat = > Double.parseDouble(item.get("latitude")); > *double currentLong = > Double.parseDouble(item.get("**latitude"));* >

[android-developers] trying to get polylines to work in google maps api v2

2013-01-11 Thread John Merlino
Using google maps api v2, I had multiple markers displaying correctly but I wanted to add a line joining them, so I added the polyline functionality below. However, when I rendered map again, now it just shows map without markers or line: Iterator> iterator2 = historyData.iterator();

Re: [android-developers] how can i map a touchevent to another area before other app get it ? do i need a root? or it is not possible

2013-01-11 Thread TreKing
On Fri, Jan 11, 2013 at 8:55 AM, dylan-cool wrote: > i already know how to implement a floating window which float on the > screen,but i don't know how to map this event to another area, > or whether it is possible,do i need a system permission? > I doubt this is possible with the SDK - you shou

Re: [android-developers] Re: upgrading metropcs from 2.3.4 to 4.0.3

2013-01-11 Thread Harri Smått
Hi, Assuming it's unlocked you could try Kies to update its firmware to latest one; http://www.samsung.com/us/kies/ -- H On Jan 11, 2013, at 10:08 PM, John Merlino wrote: > Its a samsung > > On Jan 11, 3:01 pm, John Merlino wrote: >> Im trying to test application on device. On launch, I get

[android-developers] Re: upgrading metropcs from 2.3.4 to 4.0.3

2013-01-11 Thread John Merlino
Its a samsung On Jan 11, 3:01 pm, John Merlino wrote: > Im trying to test application on device. On launch, I get this error: > >  ERROR: Application requires API version 11. Device API version is 10 > (Android 2.3.4). > > Where can I found how to upgrade the metropcs phone to use api version > 1

[android-developers] apidemos weirdness

2013-01-11 Thread bob
I created an apidemos project and I looked at TriangleActivity.java: public class TriangleActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGLView = new GLSurfaceView(this); mGLView.setRe

[android-developers] upgrading metropcs from 2.3.4 to 4.0.3

2013-01-11 Thread John Merlino
Im trying to test application on device. On launch, I get this error: ERROR: Application requires API version 11. Device API version is 10 (Android 2.3.4). Where can I found how to upgrade the metropcs phone to use api version 11? -- You received this message because you are subscribed to the

Re: [android-developers] android phone requires activation in order to test on eclipse?

2013-01-11 Thread Kevin Duffey
I had an issue with my droidx that I no longer use but kept for testing purposes. I got stuck on the screen where it was waiting to activate.. and the only option was to restart the phone or continue with activation. Turns out.. when on that screen where you touch the Android guy to start.. instead

Re: [android-developers] android phone requires activation in order to test on eclipse?

2013-01-11 Thread Mark Murphy
Configure it to use WiFi. On Fri, Jan 11, 2013 at 2:16 PM, John Merlino wrote: > Someone just got me a metropcs phone, but doesnt want to pay the > monthly service fee. Will I be able to test my application on this > device, which requires accessing google maps api v2? It seems not > possible wit

[android-developers] android phone requires activation in order to test on eclipse?

2013-01-11 Thread John Merlino
Someone just got me a metropcs phone, but doesnt want to pay the monthly service fee. Will I be able to test my application on this device, which requires accessing google maps api v2? It seems not possible without an internet connection. Is there a way that this can be done? -- You received this

[android-developers] Re: Developer fee payment canceled after 2.5 years

2013-01-11 Thread MarcoAndroid
Hi David, Same problem here since wednesday! I signed up even in 2009, so even longer ago. I also checked the status of my checkout order of 2009 and there it says it the order was canceld with as reason: "You did not accept the terms of service" So my reason is different than yours. I dou

Re: [android-developers] Re: ListFragment and actionbar

2013-01-11 Thread Summer Xia Jiang
Thanks, that worked for me! On Fri, Jan 11, 2013 at 5:18 AM, Fisiu wrote: > > > W dniu piątek, 11 stycznia 2013 08:44:42 UTC+1 użytkownik Summer napisał: > >> Hi, >> I am developing an application which I will have multiple tabs and in one >> of the tab I will have listview. >> --So if I use a

[android-developers] Re: Can't upgrade app

2013-01-11 Thread Ben
Goedang JoJo gmail.com> writes: > Hi,  > I got a problem when I trying to upgrade my app. Here's there error message: > You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate

[android-developers] Re: Set alarm in the device

2013-01-11 Thread dylan-cool
i also tried a lot of times before i found that you need to specified the trigger time to second at least(,you can set 0 to second and minisecond ),if u just do things like c.set(wv_year.getCurrentItem() + START_YEAR, wv_month.getCurrentItem(), wv_day.getCurrentItem() + 1, wv_hours.getCurrentIte

[android-developers] Re: Can I decide how bitmaps are compressed via png?

2013-01-11 Thread AndroidCompile
If I want to compress bitmaps with less than 256 colors, I can compress them more efficiently (66% decrease in size for the bitmaps I am using) On Thursday, January 10, 2013 5:52:19 PM UTC+2, bob wrote: > > Why would you want to do this? > > > > On Sunday, January 6, 2013 3:42:08 AM UTC-6, Andro

[android-developers] how can i map a touchevent to another area before other app get it ? do i need a root? or it is not possible

2013-01-11 Thread dylan-cool
i guess it's weird why i pose this question. it's because my phone screen is not working so well , and there is a "dead bar" on top of it ,which can't accept any touch event.so i can't use the app with buttons in the "dead bar". That's why i come up with this idea,may be i can use a floating win

[android-developers] Re: Native crash (SIGSEGV) in open gl texture load

2013-01-11 Thread bob
Maybe use this code to load your texture? public class Texture_Loader { static public int get_texture(GL10 gl, Context context, int res_id) { int[] texture_array = new int[1]; gl.glGenTextures(1, texture_array, 0); int texture_id = texture_array[0]; gl.glBindTexture(GL10.GL_TEXTURE_2D, texture_

[android-developers] Developer fee payment canceled after 2.5 years

2013-01-11 Thread David Erosa García
Hi! I'm struggling with this problem since yesterday, when I tried to log into my Google Play Console just to find a message like this: --- THE PAYMENT FOR THE REGISTRATION FEE HAS FAILED In order to access your account, you need a successful registration fee payment --- So my apps are still pub

[android-developers] Re: ListFragment and actionbar

2013-01-11 Thread Fisiu
W dniu piątek, 11 stycznia 2013 08:44:42 UTC+1 użytkownik Summer napisał: > > Hi, > I am developing an application which I will have multiple tabs and in one > of the tab I will have listview. > --So if I use actionBar and Fragment, setListAdapter() in the Fragment > won't work. > To use set

[android-developers] Re: ListFragment and actionbar

2013-01-11 Thread Fisiu
W dniu piątek, 11 stycznia 2013 08:44:42 UTC+1 użytkownik Summer napisał: > > Hi, > I am developing an application which I will have multiple tabs and in one > of the tab I will have listview. > --So if I use actionBar and Fragment, setListAdapter() in the Fragment > won't work. > To use set

Re: [android-developers] Re: How to add AdMob

2013-01-11 Thread AMAL SHIWANTHA
thanks for your support. * . Thank you, With Best regards, Sun Certified, * *Amal Shiwantha Ranasinghe.* * * *Google + | Linkedin | Ceylon Calendar - 2012 | Map

[android-developers] Re: Native crash (SIGSEGV) in open gl texture load

2013-01-11 Thread Kamil Czajko
Typically after posting this I noticed the race condition in my code ;) -- You received this message because you are subscribed to the Google Groups "Android 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: Native crash (SIGSEGV) in open gl texture load

2013-01-11 Thread Kamil Czajko
Did you ever manage to rectify this issue? I've only started having it happen in the last week or two occasionally and randomly on texture load -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

[android-developers] Re: How to add AdMob

2013-01-11 Thread William Ferguson
Admob forum: https://groups.google.com/forum/?fromgroups=#!forum/google-admob-ads-sdk I believe this is now a redundant setting. Just set it to " Use test mode setting set in client code " William On Friday, January 11, 2013 3:54:10 PM UTC+10, askl wrote: > > wow thank very much for your fast

[android-developers] Re: currency symbol to iso code on Android

2013-01-11 Thread adrian del campo
Yeah, we realized that problem a few minutes after publishing the question. Maybe there is a service on google / android to request the default currency for a google account, but it seems a bit obfuscated because it depends on the billing address of the default credit card set up on the users g

Re: [android-developers] Basic GL Surface View example

2013-01-11 Thread Fabien R
On 10/01/2013 22:32, bob wrote: > Why does the Basic GL Surface View example make a call like this? > > > GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, > GLES20.GL_NEAREST); > > Doesn't the f in glTexParameterf imply that the last parameter is a float? > > But, it is a

[android-developers] MediaCodec encoding raw audio data into AAC

2013-01-11 Thread roemer
I'm using the MediaCodec to encode raw audio data into AAC. It's basically working and I'm getting some output that I write to a file. But the file seems to be invalid since no player (vlc, winamp, mediaplayer) can play it. AFAIK winamp should be able to play the raw aac file. If I'm using the M