[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 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] 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 that becoz users installed in another device, but in my case 
it is unlikely becoz the decrepancy is as high as 100%.

Anyone have the same experience?




-- 
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: 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 made.

Anyway, they asked me to pay the fee again. I followed the console
link and registered again. There was a panic moment when I thought
that my applications would not be there, but there they are :)

I hope this throws some hope on your problem too!

Regard.

On Fri, Jan 11, 2013 at 7:45 PM, MarcoAndroid  wrote:
> 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 doubt that in 2009 I was able to pass the registration without accepting
> the terms of service!  But indeed it seems to be cancelled in 2009 Did
> not check my bank statements yet.
>
> Today I logged in again and check the status of this order from 2009 for
> this actual post, and now it suddenly asked me to accept Terms of Service...
> Definitely this was not there last wednesday. Stange
>
> I also sent a support ticket, but nothing  heard yet...
>
> Regards,
> Marco
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] 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"));*
> 
>
mMap.addMarker(new MarkerOptions()
> .position(*new LatLng(currentLat,
> currentLong)*)
> .title(item.get("address")));
>

The fact that you're using "latitude" for "currentLong" would probably skew
things on the map ...

-
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] 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();
while(iterator2.hasNext()){

Map item = 
iterator2.next();

double currentLat = 
Double.parseDouble(item.get("latitude"));
double currentLong = 
Double.parseDouble(item.get("latitude"));



Double.parseDouble(item.get("longitude"));


mMap.addMarker(new MarkerOptions()
.position(new LatLng(currentLat, currentLong))
.title(item.get("address")));



Polyline line = 
mMap.addPolyline(new PolylineOptions()
   .add(new LatLng(currentLat, 
currentLong))
   .width(5)
   .color(Color.RED));


}

-- 
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 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 should not be able to send
input events to another app. You'd probably have to modify the source. At
which point it would probably be easier to get your device fixed or just
buy a new one.

-
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: 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 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 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: 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
> 11?

-- 
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] 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.setRenderer(new StaticTriangleRenderer(this));
/*ImageView imageView = new ImageView(this);
imageView.setImageResource(R.raw.robot);
setContentView(imageView);*/
setContentView(mGLView);
}


I was surprised to see that weird ImageView stuff.  Is that in everyone's 
apidemos sample?  It looks like some weirdness I might have added, but I 
doubt I modified the template since I don't know how.

-- 
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] 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 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 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.. you touch all four corners (one at a time in order I think). You
then hit the next (or android guy..I forget now) and from that it bypasses
activation requirements and lets you use the phone. I did this, on my
droid-x after I reset the phone and wiped everything. I also did this for a
Samsung S and a Bionic, and it was as I recall the same procedure. All of
these phones were originally on Verizon in the US, so I am not sure if this
will work regardless of carrier and location or not. At any rate, once you
bypass that, you can set up wifi and developer options and you're good to
go.


On Fri, Jan 11, 2013 at 11:27 AM, Mark Murphy wrote:

> 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 without an internet connection. Is there a way that this can
> > be done?
> >
> > --
> > 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
>
> _The Busy Coder's Guide to Android Development_ Version 4.5 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 without an internet connection. Is there a way that this can
> be done?
>
> --
> 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

_The Busy Coder's Guide to Android Development_ Version 4.5 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 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: 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 doubt that in 2009 I was able to pass the registration without accepting 
the terms of service!  But indeed it seems to be cancelled in 2009 Did 
not check my bank statements yet.

Today I logged in again and check the status of this order from 2009 for 
this actual post, and now it suddenly asked me to accept Terms of 
Service... Definitely this was not there last wednesday. Stange

I also sent a support ticket, but nothing  heard yet... 

Regards,
Marco

-- 
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: 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 actionBar and Fragment, setListAdapter() in the Fragment
>> won't work.
>>
>
> To use setListAdapter() your activity needs to extend ListActivity. But
> You have a Fragment it won't work. Instead use:
>
> listView.SetAdapter(myAdapter);
>
>
>> --if I use actionBar and ListFragment, ActionBar.**TabListener can't
>> accept listFragment.
>>
>> Any tip/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
>

-- 
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: 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(s) with fingerprint(s):
> [ SHA1: FA:1F:00:CA:A8:80:F2:8F:4E:6F:AE:61:D1:62:CB:7E:6C:3D:5F:0E ]
> and the certificate(s) used to sign the APK you uploaded have fingerprint(s):
> [ SHA1: 97:FD:2F:11:83:7B:30:15:42:B5:B6:14:19:8F:18:B0:9B:38:10:BE, SHA1: 
FA:1F:00:CA:A8:80:F2:8F:4E:6F:AE:61:D1:62:CB:7E:6C:3D:5F:0E ]
> 

> Yes, I am using the same keystore as the previous apk. But what's with the 
second SHA1? where does it come from?
> 
> Please help,
> 
> Thanks in advance

I have the same problem and I have been trying for 4 days to get it resolved. 
Please let me know if you got any answer. 

Thanks and happy new year!








-- 
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: 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.getCurrentItem(),
wv_mins.getCurrentItem(), 0);
and use  c.getTimeInMillis() as the trigger time...it will not working 
,remember to add: 
c.set(Calendar.SECOND, 0);
c.set(Calendar.MILLISECOND, 0);


On Friday, January 11, 2013 3:11:16 PM UTC+8, Avinhood wrote:
>
> Hi,
>
> I am trying to set an alarm for a specified time on click of a button and 
> at that time, the alarm should ring.
> I tried several codes on the net and stackoverflow, but strangely none of 
> them are practically working .
> I set the pending intent, and the receiver and required changes in 
> manifest.
>
> it would be nice if someone can provide a working code. 
>
> -- 
> Avinash Shyam 
>

-- 
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: 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, AndroidCompile wrote:
>>
>> Hi,
>> Is it possible to determine that a bitmap is compressed (programatically, 
>> of course) as a png image with an 8 bit color palette? 4 bit?
>> I know there are different types of png compressions, can I decide which 
>> type is used?
>> If the answer is no, can anyone recommend a method for doing so?
>>
>> Thank you in advance
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] 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 window, and 
map the touch event to the dead zone, or even just
get the focus of the button in the "dead bar",and then i can use these app 
again.

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? please help me 
!!!best 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: 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_id);

gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,
GL10.GL_NEAREST);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,
GL10.GL_LINEAR);

gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
GL10.GL_REPEAT);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,
GL10.GL_REPEAT);

InputStream is = context.getResources().openRawResource(res_id);

Bitmap bitmap;
try {
bitmap = BitmapFactory.decodeStream(is);
} finally {
try {
is.close();
} catch (IOException e) {
// Ignore.
}
}

GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
bitmap.recycle();

return texture_id;

}

}

On Tuesday, August 24, 2010 11:04:29 AM UTC-5, Jason wrote:
>
> Hi all, 
>
> I have posted previously on a related topic, but thought a new post 
> with clearer descriptions may trigger someone out there with some 
> knowledge. 
>
> I am getting regular crashes in native (android) code when I am 
> loading textures in opengl.  Trace is: 
>
> Build fingerprint: 'generic/sdk/generic/:1.6/Donut/20842:eng/test- 
> keys' 
> pid: 196, tid: 331  >>> com.cc.ra <<< 
> signal 11 (SIGSEGV), fault addr 0104 
>  r0 0104  r1 03d8  r2 0104  r3 ac126bb8 
>  r4 00211f20  r5 0100  r6 ac128344  r7 4251fe84 
>  r8 45d69da0  r9 4251fe7c  10 4251fe6c  fp 0001 
>  ip ac1285f4  sp 45d69d48  lr ac03ce10  pc afb04408  cpsr 2010 
>  #00  pc 4408  /system/lib/libcutils.so 
>  #01  lr ac03ce10  /system/lib/libsgl.so 
> stack: 
> 45d69d08  0015fab8  [heap] 
> 45d69d0c  0001 
> 45d69d10  0007 
> 45d69d14  ad047361  /system/lib/libdvm.so 
> 45d69d18   
> 45d69d1c  0015fab8  [heap] 
> 45d69d20  0033e650  [heap] 
> 45d69d24  ad03dafb  /system/lib/libdvm.so 
> 45d69d28  ad083e1c  /system/lib/libdvm.so 
> 45d69d2c  ad082c50  /system/lib/libdvm.so 
> 45d69d30  ad03dadd  /system/lib/libdvm.so 
> 45d69d34  ad02e45b  /system/lib/libdvm.so 
> 45d69d38  0033e650  [heap] 
> 45d69d3c  00211f20  [heap] 
> 45d69d40  df002777 
> 45d69d44  e3a070ad 
> #00 45d69d48  00211f20  [heap] 
> 45d69d4c  ac03ce10  /system/lib/libsgl.so 
> 45d69d50  ad336551  /system/lib/libandroid_runtime.so 
> 45d69d54  0033e650  [heap] 
> 45d69d58  00211f20  [heap] 
> 45d69d5c  ad349333  /system/lib/libandroid_runtime.so 
> 45d69d60  4000 
> 45d69d64   
> 45d69d68  00211f20  [heap] 
> 45d69d6c  001e9ec8  [heap] 
> 45d69d70   
> 45d69d74  ac03cb30  /system/lib/libsgl.so 
> 45d69d78   
> 45d69d7c  001e9ec8  [heap] 
> 45d69d80   
> 45d69d84  ac03cb60  /system/lib/libsgl.so 
> 45d69d88  45d69dc0 
> 45d69d8c   
>
> The failure always looks the same, but doesn't always happen at the 
> same time. 
>
> I am loading a GLSurfaceView in a fairly standard activity, however 
> after several attempts I am now at the stage where in order to have an 
> interim loading screen rendered over the top of the GLSurfaceView (for 
> which I am using a ViewFlipper to flip to a standard Canvas-based 
> view) I am needing to completely dissolve the GLSurfaceView every time 
> a new "level" in the app (game) is loaded.  (This is because I am not 
> confident that simply flipping out the old view is causing the GL 
> Context to be destroyed on all devices) 
>
> When I try to create a new GLSurfaceView instance in the same 
> activity, then load the textures, I get the above failure.  As I said 
> however, it doesn't always occur in the same place.  That is, 
> occasionally I will be able to play through several levels (GL setup & 
> tear down events) without a problem, then at some point the failure 
> will occur.  It consistently fails, just not always immediately. 
>
> When I tear down the GLSurfaceView (via a call to removeView on the 
> ViewFlipper) I have verified that the surface is destroyed (hence 
> previously loaded textures should be removed from vram) but no matter 
> what sort of re-arranging of code I have tried I can't seem to avoid 
> this failure. 
>
> Happens on both the emulator, and device. 
>
> No JNI warnings, and no GL failures reported when 
> DEBUG_CHECK_GL_ERROR is enabled on the gl view. 
>
> I really need some guidance on this.  Does anyone have any clue as to 
> how I can resolve, or even diagnose this? 
>
> 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

[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 published, but I can't manage any of them. No
price changes, no descripcion updates and, of course, no new .apk...

Since I've been a registered Android developer circa July 2010, I
wonder what the heck happened. After checking my Checkout order I
found that it was "canceled because it has been inactive for a long
period of time"

"10 Ene - Google ha cancelado su pedido porque ha estado inactivo
durante un largo período de tiempo."

This seems like a known issues(Developer Console or Publishing
Issues/Unable to complete Google Play Android Developer Account
Registration ), but as the description of the issue appears to refer
to new accounts, I think it doesn't apply to me:

https://support.google.com/googleplay/android-developer/bin/static.py?hl=en&page=known_issues.cs

I've already sent a support ticket, but you all know how long will this take...

Searching on Google, forums or mail lists I couldn't find anyone with
the same problem, so I decided to try and post it here in case anyone
is having the same issue.

I'll keep you informed in case this is useful for anyone.

Regards.

David Erosa

-- 
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: 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 setListAdapter() your activity needs to extend ListActivity. But You 
have a Fragment it won't work. Instead use:

listView.setAdapter(myAdapter);
 

> --if I use actionBar and ListFragment, ActionBar.TabListener can't accept 
> listFragment. 
>
> Any tip/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] 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 setListAdapter() your activity needs to extend ListActivity. But You 
have a Fragment it won't work. Instead use:

listView.SetAdapter(myAdapter);
 

> --if I use actionBar and ListFragment, ActionBar.TabListener can't accept 
> listFragment. 
>
> Any tip/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

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
*
**


On 11 January 2013 16:17, William Ferguson
wrote:

> 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 respond. can u send me the admod
>> newsgroup link.
>>
>> And just tell me what should i do for this option in AdMob Sites and Apps.
>>
>> 
>>
>> As well as if you can give me some instruction about ads and ads manage
>> site option to do, before publish
>>
>> thank you.
>>
>>
>> On Friday, January 11, 2013 11:16:25 AM UTC+5:30, William Ferguson wrote:
>>>
>>> You can leave testDevices in there, it won't hurt.
>>> And yes you can use it for all your Activities.
>>>
>>> NB you may be better off asking Admob questions on the Admob newsgroup.
>>> Though you have received some pretty good responses here.
>>>
>>> William
>>>
>>> On Friday, January 11, 2013 3:26:28 PM UTC+10, askl wrote:

 Hi friends,
 Thankx for all comments. And ads displaying perfectly now.
 Please give me a perfect answer for these,

 *01. here is the my XML code*

 >>> android:id="@+id/ad"
 android:layout_width="wrap_**content"
 android:layout_height="wrap_**content"
 android:layout_alignParentTop=**"true"
 android:layout_**centerHorizontal="true"
 ads:adSize="BANNER"
 ads:adUnitId="a150e974e7ede1b"
 ads:loadAdOnCreate="true"
 
 ads:testDevices="TEST_**EMULATOR,TEST_DEVICE_ID_GOES_**HERE"
 />


 Should i remove *ads:testDevices* tag after testing?

 *02. Can i use this ad for all activities in my app..?*
 *
 *
 *Thank you.*





 On Tuesday, January 8, 2013 10:48:53 AM UTC+5:30, askl wrote:
>
> Hello Friends,
>
> I've many times try to add AdMob to my android application 2.1. But
> there is a problem with *AndroidManifest.XML. *
> *
> *
> i've refer developer page. https://developers.**
> google.com/mobile-ads-sdk/**docs/admob/fundamentals
> .
> But i can't fixed XML issue.
>
> so please help me how to AdMob to my android application.
>
> *Thank you,*
> *ask*
>
  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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: 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to add 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 respond. can u send me the admod 
> newsgroup link.
>
> And just tell me what should i do for this option in AdMob Sites and Apps.
>
> 
>
> As well as if you can give me some instruction about ads and ads manage 
> site option to do, before publish
>
> thank you.
>
>
> On Friday, January 11, 2013 11:16:25 AM UTC+5:30, William Ferguson wrote:
>>
>> You can leave testDevices in there, it won't hurt.
>> And yes you can use it for all your Activities.
>>
>> NB you may be better off asking Admob questions on the Admob newsgroup. 
>> Though you have received some pretty good responses here.
>>
>> William
>>
>> On Friday, January 11, 2013 3:26:28 PM UTC+10, askl wrote:
>>>
>>> Hi friends,
>>> Thankx for all comments. And ads displaying perfectly now. 
>>> Please give me a perfect answer for these,
>>>
>>> *01. here is the my XML code*
>>>
>>> >> android:id="@+id/ad"
>>> android:layout_width="wrap_content"
>>> android:layout_height="wrap_content"
>>> android:layout_alignParentTop="true"
>>> android:layout_centerHorizontal="true"
>>> ads:adSize="BANNER"
>>> ads:adUnitId="a150e974e7ede1b"
>>> ads:loadAdOnCreate="true"
>>> ads:testDevices="TEST_EMULATOR,TEST_DEVICE_ID_GOES_HERE" 
>>> />
>>>
>>>
>>> Should i remove *ads:testDevices* tag after testing?
>>>
>>> *02. Can i use this ad for all activities in my app..?*
>>> *
>>> *
>>> *Thank you.*
>>>
>>>
>>>
>>>
>>>
>>> On Tuesday, January 8, 2013 10:48:53 AM UTC+5:30, askl wrote:

 Hello Friends,

 I've many times try to add AdMob to my android application 2.1. But 
 there is a problem with *AndroidManifest.XML. *
 *
 *
 i've refer developer page. 
 https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals. 
 But i can't fixed XML issue. 

 so please help me how to AdMob to my android application.

 *Thank you,*
 *ask*

>>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] 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 google account.

As a fast work around we are going to check with the user's locale and if 
it doesn't match we will try with other common locales. If it still doesn't 
match we will iterate over all locales. That method it's a shit, but at now 
is the only method I have found

Thanks!

El viernes, 11 de enero de 2013 01:40:18 UTC+1, Lew escribió:
>
> adrian del campo wrote:
>
>> Is there any way to convert a currency symbol to the corresponding ISO 
>> code in Java/Android?
>>
>
> What locale would you use for "$"? Brunei Darussalam (ar/BN)? Chile 
> (es-cl/CL)? Colombia (es-co/CO)? Hong Kong (zh-hk/HK)?
>  
>
>> I have seen that Google Play in-app billing APIv3 can send us the item 
>> price including the currency symbol, but then we are storing the price and 
>> currency in different fields, so we can validate if the payment has a valid 
>> currency.
>>
>> I know that I can iterate all the locales and compare the currency 
>> Symbols, but I think there must be a easier way to do this task.
>>
> You know that, do you?
>
> -- 
> Lew
>  
>

-- 
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] 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 an int:
>
> public static final int GL_NEAREST = 0x2600;
>
>   
Perhaps it's a typo.
If you test the result, you should get GL_INVALID_ENUM
See: http://www.khronos.org/opengles/sdk/docs/man/
-
Fabien


-- 
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] 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 MediaExtractor to open the file I get an IOException which 
I believe is thrown because the Extractor can't read the file either.

Does anyone have some experience or is there any detailed documentation on 
how to encode audio data?

Cheers

-- 
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