[android-developers] Re: Eclipse not starting since last ADT update

2013-11-23 Thread Michael Schollmeyer
1. Try to start Eclipse on the command line with the -clean switch
2. Remove .metadata/.plugins from your workspace
3. Remove .metadata/
4. Reinstall Eclipse (Use the standard version, not the JEE one if you can)

Try 1-4 until you succeed.

I'm having the same issue occasionally, on top of this Eclipse deadlocks 
multiple times a day. Working with Eclipse is getting more and more painful.

On Thursday, November 21, 2013 11:51:14 PM UTC+1, Nathan wrote:


 https://lh6.googleusercontent.com/-wz7hhXdR_68/Uo6NYaBqVyI/Bos/JcKhX5bC-44/s1600/eclipsenotstarting.tiff
 Since I got the ADT updates last week, Eclipse doesn't start consistently

 As of now, it is not starting at all.

 It is stuck on loading the ADT for hours. 

 Has Eclipse now been officially deprecated as a development environment 
 and I didn't get the memo?

 I don't know how to make any changes to it if it won't even start. 

 Nathan




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Fog color does not work in Jellybean!

2013-11-23 Thread MobileVisuals
It was possible to use fog color according to the OpenGL standard in the 
previous Android versions, but it no longer works in Jellybean. The color 
of the fog is no longer seen, all fog just becomes black. What can I do to 
get the fog colors shown on Jellybean? This is my code:

float[] fogColorsVfa;
FloatBuffer fogColorsBuffer;

fogColorsBuffer = FloatBuffer.allocate(4 * 4); 
fogColorsVfa = new float[4];
fogColorsVfa[0] = 0.5f;//yellow with some alpha
fogColorsVfa[1] = 1f;
fogColorsVfa[2] = 1f;
fogColorsVfa[3] = 0f; 
fogColorsBuffer.put(fogColorsVfa);


gl.glEnable(GL10.GL_FOG);
gl.glFogx(GL10.GL_FOG_MODE, GL10.GL_EXP);
gl.glFogfv(GL10.GL_FOG_COLOR, fogColorsBuffer);


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Shared object model between Android and server applications

2013-11-23 Thread Davide Cerbo
Hi all,

I'm developing a client/server application where an Android phone should
call some service on a server using JSON. To better work between client and
server I defined a shared object model, actually it is a simple Maven
project, but to use in Android project I must copy the classes in the
Android project.

Someone have some advice to better handle this scenario? I want a simple
Java project that can I share between Java and Android.

thanks in advance,
Davide

-- 
--
Davide Cerbo
---
www.linkedin.com/in/davidecerbo
+ 39 329 70 81 927
---

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Passing the design for tablets checks (dev console optilmization tips)

2013-11-23 Thread Adam Ratana
You can also appeal this, without making changes. They may be looking for 
some kind of split layouts or something. 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Passing the design for tablets checks (dev console optilmization tips)

2013-11-23 Thread Doug Gordon
My app seems to have passed the tests once I added some 7-inch tablet 
screen shots. I do have some resources in folders with the *-xlarge*attribute, 
so maybe that's a clue to what they're looking for.

On Friday, November 22, 2013 4:20:28 PM UTC-5, b0b wrote:


 I have an app that I think is tablet friendly yet the dev console 
 optimization tips report:

 Your layout should make use of the available space on tablets

 Great. It point to this page to solve it:
  
 http://developer.android.com/distribute/googleplay/quality/tablet.html#use-extra-space

 The problem is that it is a bit vague about what exactly is required to 
 pass this requirement.

 - does it check for layout-sw600dp and res/layout-sw720dp   (my app only 
 has the former) ?
 - does it check for XML Fragment declaration ?
 - etc...

 What is exactly required is not crystal clear...



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Introspecting Android style in code

2013-11-23 Thread Y2i
I have a style

style name=MyText
item name=android:textColor#8080/item
item name=android:background#ffc0c0c0/item/style


that I would like to introspect in code. I run this code:

final Resources r = getResources();final TypedArray a = 
r.obtainTypedArray(R.style.MyText);try {
for (int i=0; ia.length(); ++i) {
final TypedValue v = a.peekValue(i);
if (v != null) {
Log.d(TAG, assetCookie:  + v.assetCookie);
Log.d(TAG, changingConfigurations:  + v.changingConfigurations);
Log.d(TAG, data:  + v.data);
Log.d(TAG, density:  + v.density);
Log.d(TAG, resourceId:  + v.resourceId);
Log.d(TAG, string:  + v.string);
Log.d(TAG, type:  + v.type);
Log.d(TAG, -);
}
}} finally {
a.recycle();}


The output is:

D/PlaceholderFragment( 2051): assetCookie: 2
D/PlaceholderFragment( 2051): changingConfigurations: 0
D/PlaceholderFragment( 2051): data: -32640
D/PlaceholderFragment( 2051): density: 0
D/PlaceholderFragment( 2051): resourceId: 0
D/PlaceholderFragment( 2051): string: null
D/PlaceholderFragment( 2051): type: 28
D/PlaceholderFragment( 2051): -
D/PlaceholderFragment( 2051): assetCookie: 2
D/PlaceholderFragment( 2051): changingConfigurations: 0
D/PlaceholderFragment( 2051): data: -4144960
D/PlaceholderFragment( 2051): density: 0
D/PlaceholderFragment( 2051): resourceId: 0
D/PlaceholderFragment( 2051): string: null
D/PlaceholderFragment( 2051): type: 28
D/PlaceholderFragment( 2051): -


From the output I know the type of the TypedValue and the value it stores. 
I would also be interested to find out which TypedValue is android:textColor 
and 
which is android:background. How can I do that?

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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Cannot peek value from TypedArray

2013-11-23 Thread Y2i
I have  a style

style name=MyText
item name=android:background#ffc0c0c0/item
item name=android:textColor#8080/item
/style

which I am trying to introspect in my ocde.  I use this code to retrieve 
typed array:

final Resources.Theme theme = getActivity().getTheme();
final int[] attrs = {android.R.attr.textColor, android.R.attr.background,};
final TypedArray a = theme.obtainStyledAttributes(null, attrs, 0, 
R.style.MyText);
try {
Log.d(TAG, length:  + a.length());
for (int i = 0; i  a.length(); ++i) {
final TypedValue v = a.peekValue(i);
if (v != null) {
Log.d(TAG, type:  + v.type);
}
Log.d(TAG, -);
}

} finally {
a.recycle();
}

The output is:

D/PlaceholderFragment( 3391): length: 2
D/PlaceholderFragment( 3391): type: 28
D/PlaceholderFragment( 3391): -
D/PlaceholderFragment( 3391): type: 28
D/PlaceholderFragment( 3391): -

Everything seems fine at this point.  But when I change the order of the 
attribute in the array from

final int[] attrs = {android.R.attr.textColor, android.R.attr.background,};

to

final int[] attrs = {android.R.attr.background, android.R.attr.textColor,};

the output becomes

D/PlaceholderFragment( 3528): length: 2
D/PlaceholderFragment( 3528): type: 28
D/PlaceholderFragment( 3528): -
D/PlaceholderFragment( 3528): -

The second TypedValue returned by the peekValue() method becomes null in 
the second case.  Why?  What am I doing wrong?

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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Advice for SMS backup restore apps - not working?

2013-11-23 Thread 3c
I tried to follow the blog here: 
http://android-developers.blogspot.fr/2013/10/getting-your-sms-apps-ready-for-kitkat.html

However I cannot make the 'Advice for SMS backup  restore apps' section 
work.

My app is a simple SMS backup/restore app, it has permissions to read/write 
SMS, but when I do this, nothing happens:

Intent intent = new Intent(context, Sms.Intents.ACTION_CHANGE_DEFAULT);
intent.putExtra(Sms.Intents.EXTRA_PACKAGE_NAME, context.getPackageName());
startActivity(intent);


If instead I use this:

startActivityForResult(intent, CHANGED);


Then onActivityResult() is called with RESULT_CANCEL


Can someone please help? What am I missing to make it work?


Thanks,
C.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Passing the design for tablets checks (dev console optilmization tips)

2013-11-23 Thread 3c
If you go in your console, select your app, then optimization tips it says 
this:

WHAT YOU SHOULD DOWHEN YOU DID IT

*Designed your app for tablets*
Hide details

*Upload tablet screenshots:*

Upload at least one screenshot for 10-inch tablets to the Store 
Listinghttps://play.google.com/apps/publish/?dev_acc=01732283762104190373#MarketListingPlace:p=ccc71.at


That's as simple as that!

On Friday, November 22, 2013 10:20:28 PM UTC+1, b0b wrote:


 I have an app that I think is tablet friendly yet the dev console 
 optimization tips report:

 Your layout should make use of the available space on tablets

 Great. It point to this page to solve it:
  
 http://developer.android.com/distribute/googleplay/quality/tablet.html#use-extra-space

 The problem is that it is a bit vague about what exactly is required to 
 pass this requirement.

 - does it check for layout-sw600dp and res/layout-sw720dp   (my app only 
 has the former) ?
 - does it check for XML Fragment declaration ?
 - etc...

 What is exactly required is not crystal clear...



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Passing the design for tablets checks (dev console optilmization tips)

2013-11-23 Thread b0b


On Saturday, 23 November 2013 12:13:15 UTC+1, Adam Ratana wrote:

 You can also appeal this, without making changes. They may be looking 
 for some kind of split layouts or something. 


Yes you can appeal it seems. There's a form for that.
And it looks some developers having their app badged as  designed for 
tablet did just that or it was marked at such by someone at Google 
automatically (more below).

I have a paid unlocker that is marked designed for tablet while I did 
nothing for that and it doesn't exactly fit the required criterias.
The only explanation I have is that someone at Google removed manually the 
blocking optimzation tip, so it
pass as designed for tablets. But the main (free) app it unlocks is not 
marked as designed for tablet...

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Passing the design for tablets checks (dev console optilmization tips)

2013-11-23 Thread b0b


On Saturday, 23 November 2013 23:34:35 UTC+1, 3c wrote:

 If you go in your console, select your app, then optimization tips it says 
 this:

 WHAT YOU SHOULD DOWHEN YOU DID IT

 *Designed your app for tablets*
 Hide details

 *Upload tablet screenshots:*

 Upload at least one screenshot for 10-inch tablets to the Store 
 Listinghttps://play.google.com/apps/publish/?dev_acc=01732283762104190373#MarketListingPlace:p=ccc71.at


 That's as simple as that!


Not as simple as that as there are other blocking checks (that may  or may 
not apply to your specific app).

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


[android-developers] Re: Passing the design for tablets checks (dev console optilmization tips)

2013-11-23 Thread Nathan


On Saturday, November 23, 2013 3:24:51 PM UTC-8, b0b wrote:



 On Saturday, 23 November 2013 12:13:15 UTC+1, Adam Ratana wrote:

 You can also appeal this, without making changes. They may be looking 
 for some kind of split layouts or something. 


 Yes you can appeal it seems. There's a form for that.


Where is this appeal form?

 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.