Re: [android-developers] Listview or Table Layout- For Items with a Header and display some dynamic data rows with style

2012-07-12 Thread maccoy
Thanks for pointing to that.

On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:

 On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote:

 What would be the best case: Considering we have the formatting in XML 
 and the data rows are just dynamic display of content.


 Probably ListView.

 http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices


On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:

 On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote:

 What would be the best case: Considering we have the formatting in XML 
 and the data rows are just dynamic display of content.


 Probably ListView.

 http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices


On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:

 On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote:

 What would be the best case: Considering we have the formatting in XML 
 and the data rows are just dynamic display of content.


 Probably ListView.

 http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices


On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:

 On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote:

 What would be the best case: Considering we have the formatting in XML 
 and the data rows are just dynamic display of content.


 Probably ListView.

 http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29


 -
 TreKing http://sites.google.com/site/rezmobileapps/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] Registering - Unregistering Device from Android GCM

2012-07-12 Thread Bahadır Arslan


I am trying to add push notification feature to my application, but i have 
strange problems.

In my first try, i got regId for device; but after that device trying to 
unregister it self from GCM; actually it succeeed becuase i lost regId but 
not i couldn't get it again.

In LogCat i see these lines.

07-12 08:40:25.615: V/GCMRegistrar(10648): Registering receiver
07-12 08:40:25.620: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:25.635: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:28.570: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:28.570: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:29.125: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:29.130: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:39.655: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:39.660: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:40.605: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:40.605: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:41.350: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:41.350: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:43.255: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:43.255: V/GCMRegistrar(10648): Unregistering app PACKAGENAME

I tried to implement GCM Demo Application's code to my application, so here 
is the code.

GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);

registerReceiver(mHandleMessageReceiver, new IntentFilter(
DISPLAY_MESSAGE_ACTION));

final String regId = GCMRegistrar.getRegistrationId(this);

if (regId.equals()) {
// Automatically registers application on
// startup.
GCMRegistrar.register(this, SENDER_ID);
} else {
Log.v(TAG, Already registered);
// Device is already registered on GCM, needs to
// check if it is
// registered on our server as well.
if (!GCMRegistrar.isRegisteredOnServer(this)) {

// Try to register again, but not in the UI
// thread.
// It's also necessary to cancel the thread
// onDestroy(),
// hence the use of AsyncTask instead of a
// raw thread.
final Context context = this;
mRegisterTask = new AsyncTaskVoid, Void, Void() {
mRegisterTask.execute(null, null, null);
}
}

-- 
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: Registering - Unregistering Device from Android GCM

2012-07-12 Thread Bahadır Arslan
This subject can be closed; i couldn't find how i can do. 
I asked it android-gcm group

12 Temmuz 2012 Perşembe 09:13:20 UTC+3 tarihinde Bahadır Arslan yazdı:

 I am trying to add push notification feature to my application, but i have 
 strange problems.

 In my first try, i got regId for device; but after that device trying to 
 unregister it self from GCM; actually it succeeed becuase i lost regId but 
 not i couldn't get it again.

 In LogCat i see these lines.

 07-12 08:40:25.615: V/GCMRegistrar(10648): Registering receiver
 07-12 08:40:25.620: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
 07-12 08:40:25.635: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
 07-12 08:40:28.570: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
 07-12 08:40:28.570: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
 07-12 08:40:29.125: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
 07-12 08:40:29.130: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
 07-12 08:40:39.655: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
 07-12 08:40:39.660: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
 07-12 08:40:40.605: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
 07-12 08:40:40.605: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
 07-12 08:40:41.350: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
 07-12 08:40:41.350: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
 07-12 08:40:43.255: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
 07-12 08:40:43.255: V/GCMRegistrar(10648): Unregistering app PACKAGENAME

 I tried to implement GCM Demo Application's code to my application, so 
 here is the code.

 GCMRegistrar.checkDevice(this);
 GCMRegistrar.checkManifest(this);

 registerReceiver(mHandleMessageReceiver, new IntentFilter(
 DISPLAY_MESSAGE_ACTION));

 final String regId = GCMRegistrar.getRegistrationId(this);

 if (regId.equals()) {
 // Automatically registers application on
 // startup.
 GCMRegistrar.register(this, SENDER_ID);
 } else {
 Log.v(TAG, Already registered);
 // Device is already registered on GCM, needs to
 // check if it is
 // registered on our server as well.
 if (!GCMRegistrar.isRegisteredOnServer(this)) {

 // Try to register again, but not in the UI
 // thread.
 // It's also necessary to cancel the thread
 // onDestroy(),
 // hence the use of AsyncTask instead of a
 // raw thread.
 final Context context = this;
 mRegisterTask = new AsyncTaskVoid, Void, Void() {
 mRegisterTask.execute(null, null, null);
 }
 }



-- 
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: WebView in Andoird 3.x and 4.x does not load JavaScript files

2012-07-12 Thread Pent
 Are you seeing any lines written in the LogCat (generated by the browser)
 that could indicate what is going on?

Also, try set a WebChromeClient on the WebView and override
onConsoleMessage.

On the other hand, I've been working with WebView and JS for the last
few weeks and it's often annoyingly quiet when something goes wrong.

Pent

-- 
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 animation on content of fragment

2012-07-12 Thread LordMaKo


I need to have a frame by frame animation inside a fragment:

the animation works properly if i have it inside an activity, but inside my 
fragment it doesnt show,

public class HomeTab extends Fragment {
 AnimationDrawable animation;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
if (container == null) {

return null;
}


animation = new AnimationDrawable();
animation.addFrame(getResources().getDrawable(R.drawable.c_0), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c1), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c2), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c3), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c4), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c5), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c6), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c7), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c8), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c9), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c10), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c9), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c8), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c7), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c6), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c5), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c4), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c3), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c2), 100);
animation.addFrame(getResources().getDrawable(R.drawable.c1), 100);

animation.setOneShot(false);

}


/*class Starter implements Runnable {

public void run() {
animation.start();
}

}

*/


}


so how to make this frame by frame animation work inside the fragment?

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: In App Billing Limits

2012-07-12 Thread Anton Kaiser
I can't tell you about the limit (must be documented in the API reference 
or some developer tutorial on In App Billing).
If there is a good reason for the limit, Google won't hesitate to remove 
your app from Google Play if you try to circumvent that limit.


Am Mittwoch, 11. Juli 2012 15:05:09 UTC+2 schrieb sam:

 I would like to know what the maximum number of items that can be 
 placed in In App billing for both Android. I seem to remember reading 
 around 3000 but I cannot find the reference. 

 Also if 3000 is the maximum what are the legitimate way to get around 
 this. My app will sell content and I thought a possible way around the 
 problem would be to have a central app that shows the content, then a 
 number of different libraries where you can purchase the content. 
 Would that be a viable work around?

-- 
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: Building location aware app

2012-07-12 Thread Anton Kaiser
I think what he wants to accomplish is showing pins on the map.
This is well-documented in the API reference and there are tons of examples 
to that.

Store coordinates of your desired locations in a SQLite database and 
calculate the nearest ones (or whatever you want to show) from your current 
location and set pins with their locations on the map.

Am Mittwoch, 4. Juli 2012 23:58:43 UTC+2 schrieb Ibukun Adeniyi:

 i want to build a location aware using google maps, but i want the 
 application to be able to point to particular locations on the map that i 
 put into the map, based on proximity. how can i store locations on the 
 google maps api. 


-- 
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: newbie question

2012-07-12 Thread Ali Chousein
Try cleaning your project (Project-Clean) and see if it fixes the errors. 
If you're getting errors right after you create a project, cleaning it 
helps in most of the cases. 

- 
Ali Chousein 
https://play.google.com/store/apps/details?id=com.apps.social_nav 
https://play.google.com/store/apps/details?id=com.apps.weather_buddy 
http://www.paygol.com/android/implementation 

-- 
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] newbie question

2012-07-12 Thread Francisco M. Marzoa Alonso
R is an autogenerated class. You should have a gen folder inmediatly
below your project, and an R.java file there below your project's
package name.

If the file is not being generated, may be there is some other problem
with your installation.

Google for R cannot be resolved into a variable, there is a lot of
answers on stackoverflow from people with similar issues. Maybe someone
can fit your problem.

Regards,


On 11/07/12 13:43, ideaman wrote:
 Hi,
 I have installed Eclipse Juno 4.2
 the Android SDK
 the Eclipse plugin
 and have Java 7 update 3 and Java 6 update 30
 Everything seems ok, besides one small problem, it doesn't work.
 I create a new Android project and then I have the following errors:
 on the Android Manifest.xml I have 2 of these errors: 
 com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser 
 exception for C:\Users\Daniel\workspace\Talk1\AndroidManifest.xml: The 
 markup in the document following the root element must be well-formed.
 on the mainActivity .java I have the following error: in this line = 
 setContentView(R.layout.activity_main); I see on the side R cannot be 
 resolved into a variable. 
 This happens immediately after the wizard finishes, I didn't have the 
 chance to make any changes or write a line of code and I already have 
 errors that I don't know how to solve.
 Please HELP!!

 Daniel




-- 
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] connectivity of android appliacation with sqllite

2012-07-12 Thread Francisco M. Marzoa Alonso
On 02/07/12 13:34, Ashu wrote:
 can we connect a android application to sqlite database just like a 
 connectivity of mysql to java code,,
No
 plz help me ,i am new to android



-- 
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] Some Silly error, tailed with a huge headache.

2012-07-12 Thread Francisco M. Marzoa Alonso
On 11/07/12 21:37, Cythes wrote:
 For some reason eclipse thinks the ()'s are wrong. Here is the code for 
 that part...

 notifyDetails.setLatestEvent(Infocontext, contentTitle, contentText, 
 intent);   
   mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);

 Any idea what can be causing this?


Yeah! I am pretty sure that it is the phantom syntax errors that comes
with a recent ADT update.

http://www.eclipse.org/forums/index.php/m/893850/

The solution is pretty straightforward: open the Problems view,
select these errors and remove them.

You can send a bug report wherever it should be sent or do as I, the
lazy way, and wait for someone to report it and some other to solve
it... :-D

Regards,

-- 
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: Tools for porting .NET code

2012-07-12 Thread MMM
Thanks RichardC
 
Is there any other tool 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] Re: Tools for porting MFC code

2012-07-12 Thread MMM

It means I can not port my MFC code. Only the solution is I need to rewrite 
the code for android?

-- 
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] building a Dictionary....need help

2012-07-12 Thread Francisco M. Marzoa Alonso
So, as far as I have understood you want that some other do your work
for free, and then you get the money.

Hmmm... Each one takes 50% of the effort. A fair trade, indeed...

If you find someone so stupid let me know, please. I have a lot of work
on my TODO list that I have not been able to do due lack of time, but I
have a bag full of thanksful stuff to pay developers.

Regards,


On 02/07/12 11:47, formatXX wrote:
 *hi brothers

 im new to android developing and i have some basic java information and 
 coding.not so much

 so now i decided to create a Dictionery for Android but i have a probelm is 
 i dont know how to create the Databse (table )for it i mean for words and 
 Search

 i know create and coding for the UI and menus...etc  but im stopped in the 
 Data base for itcan some one Create a Database for me i 
 want put it more than 8 words from En lang translator to 5 
 langs.please some one if have free time create for me the 
 Database it wilb be very good for me and i be so thanksful *



-- 
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: Tools for porting MFC code

2012-07-12 Thread Francisco M. Marzoa Alonso
On 12/07/12 10:01, MMM wrote:
 It means I can not port my MFC code. Only the solution is I need to rewrite 
 the code for android?


YES

-- 
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: Tools for porting MFC code

2012-07-12 Thread RichardC
Yes

On Thursday, July 12, 2012 9:01:13 AM UTC+1, MMM wrote:


 It means I can not port my MFC code. Only the solution is I need to 
 rewrite the code for android?

-- 
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: Tools for porting .NET code

2012-07-12 Thread RichardC
Don't be lazy, use Google search like everyone else.

On Thursday, July 12, 2012 8:58:19 AM UTC+1, MMM wrote:

 Thanks RichardC
  
 Is there any other tool 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] Re: Tools for porting .NET code

2012-07-12 Thread MMM
I tried but i didn't find it except mono for android.

 

-- 
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] Facebook Integration in AppMobi

2012-07-12 Thread Ratheesh Valamchuzhy
*Hi*
*
*
I am working on a social networking app , on that i need to integrate
facebook , i searched about the appmobil Facebook integration but
i didn't get any tutorials regarding that , if anyone  have an idea about
the Facebook integration please help me ,  is there any separate api for
Appmobi

-- 
-- 
ωιтн яєgαя∂ѕ
Ratheesh * *...

-- 
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: push messaging / notification

2012-07-12 Thread Alfa
have u sucess to doing a push notification in android through PHP?
if u have, can u tell me how?
my client want to make a chating aplication between 2 android mobile device 
through internet conection.
can u give me some clue? thanks in adavance.

-- 
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 application project error in linux

2012-07-12 Thread cadogan1
I tried to create a Android application project and i always get this error 
when it trys to install an update:

File not found: /opt/android-sdk-linux/temp/support_r09.zip (Permission 
denied)

I have it running on my ubuntu 12.04 (x86) machine.I tried creating 
downloading the file and putting it in the temp folder,but still get 
errors.Here is the full log file:

[2012-07-11 19:56:04 - SDK Manager] Fetching 
https://dl-ssl.google.com/android/repository/addons_list-2.xml
[2012-07-11 19:56:04 - SDK Manager] Validate XML
[2012-07-11 19:56:04 - SDK Manager] Parse XML
[2012-07-11 19:56:04 - SDK Manager] Fetched Add-ons List successfully
[2012-07-11 19:56:04 - SDK Manager] Fetching URL: 
https://dl-ssl.google.com/android/repository/repository-7.xml
[2012-07-11 19:56:04 - SDK Manager] Validate XML: 
https://dl-ssl.google.com/android/repository/repository-7.xml
[2012-07-11 19:56:04 - SDK Manager] Parse XML:
https://dl-ssl.google.com/android/repository/repository-7.xml
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 1.1, API 
2, revision 1 (Obsolete)
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 1.5, API 
3, revision 4
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 1.6, API 
4, revision 3
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 2.0, API 
5, revision 1 (Obsolete)
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 2.0.1, 
API 6, revision 1 (Obsolete)
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 2.1, API 
7, revision 3
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 2.2, API 
8, revision 3
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 2.3.1, 
API 9, revision 2 (Obsolete)
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 2.3.3, 
API 10, revision 2
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 3.0, API 
11, revision 2
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 3.1, API 
12, revision 3
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 3.2, API 
13, revision 1
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 4.0, API 
14, revision 3
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 4.0.3, 
API 15, revision 3
[2012-07-11 19:56:04 - SDK Manager] Found SDK Platform Android 4.1, API 
16, revision 1
[2012-07-11 19:56:04 - SDK Manager] Found ARM EABI v7a System Image, 
Android API 14, revision 2
[2012-07-11 19:56:04 - SDK Manager] Found ARM EABI v7a System Image, 
Android API 15, revision 2
[2012-07-11 19:56:04 - SDK Manager] Found ARM EABI v7a System Image, 
Android API 16, revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 7, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 8, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 9, 
revision 1 (Obsolete)
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 10, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 11, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 12, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 13, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 14, 
revision 2
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 15, 
revision 2
[2012-07-11 19:56:04 - SDK Manager] Found Samples for SDK API 16, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Android SDK Platform-tools, 
revision 12
[2012-07-11 19:56:04 - SDK Manager] Found Android SDK Tools, revision 20
[2012-07-11 19:56:04 - SDK Manager] Found Documentation for Android 
SDK, API 16, revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Sources for Android SDK, API 
14, revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Sources for Android SDK, API 
15, revision 2
[2012-07-11 19:56:04 - SDK Manager] Found Sources for Android SDK, API 
16, revision 1
[2012-07-11 19:56:04 - SDK Manager] Fetching URL: 
https://dl-ssl.google.com/android/repository/addon.xml
[2012-07-11 19:56:04 - SDK Manager] Validate XML: 
https://dl-ssl.google.com/android/repository/addon.xml
[2012-07-11 19:56:04 - SDK Manager] Parse XML:
https://dl-ssl.google.com/android/repository/addon.xml
[2012-07-11 19:56:04 - SDK Manager] Found Google APIs, Android API 3, 
revision 3
[2012-07-11 19:56:04 - SDK Manager] Found Google APIs, Android API 4, 
revision 2
[2012-07-11 19:56:04 - SDK Manager] Found Google APIs, Android API 5, 
revision 1 (Obsolete)
[2012-07-11 19:56:04 - SDK Manager] Found Google APIs, Android API 6, 
revision 1 (Obsolete)
[2012-07-11 19:56:04 - SDK Manager] Found Google APIs, Android API 7, 
revision 1
[2012-07-11 19:56:04 - SDK Manager] Found Google APIs, Android API 8, 
revision 2
[2012-07-11 19:56:04 - SDK Manager] Found Google APIs, Android API 

[android-developers] Re: Eclipse Android Virtual Device on the retina MacBook Pro

2012-07-12 Thread Andrew Chen
I have an macbook pro retina and experience the same issue..what's the fix?


On Friday, June 22, 2012 11:39:13 AM UTC-7, Diveflo wrote:

 Hi,

 I found the following issue while developing an Android app with Eclipse 
 on my new MacBook Pro with retina display.
 Whenever I launch the Android Virtual Device to emulate the app, the 
 emulator starts with a way too big window. 
 This ALSO happens if I run the MacBook on the 'native' resolution of 
 2880x1800...so it's not because this resolution gets mapped to 1440x900.
 It wouldn't be a big problem by itself, but the mouse clicks get mapped to 
 the whole window...so I have to click somewhere else within that window to 
 get the actual UI-element I wanted to hit :/

 Has anyone else experienced this and found a solution?

 I would really appreciate any help...and also no Apple/Goole flamewar if 
 anyway possible ;)

 Thank u!


-- 
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] API about video communication

2012-07-12 Thread reina
Now I am developing a software which involves something about
immediate video communication , so I search some papers of API about
these, but I didn't find out the APIs of video communication. As I
know , there is the API about immediate audio communication based on
SIP protocol, that is the API of net.sip. So I want to know whether
there are some APIs about video communication, and what are they.

-- 
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 to catch apple-touch-icon

2012-07-12 Thread drunkenapple
Dear All Developer~


generally. Web site two icon's use~


link rel='shortcut icon' href=*.png /
link rel='apple-touch-icon' href=*.png /

'shortcut icon' useable to bookmark for android API

but .

'apple-touch-icon' I'm not found into the android API

I want list up 'apple-touch-icon' large image

how to catch apple-touch-icon icon use android 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


[android-developers] android textview animation - fade in, wait, fade out

2012-07-12 Thread Guy Cothal
I am making a picture galleys app. I current have a imageview with a text 
view at the bottom. Currently it is just semitransparent. I want to make it 
fade in, wait 3 second, then fade out 90%. Bringing focus to it or loading 
a new pic will make it repeat the cycle. I have read thru a dozen pages and 
have tried a few things, no success. All I get is a fade in and instant 
fade out 

-- 
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] GCM client can't receive any push message

2012-07-12 Thread feitian
hi, anyone.
 days ago, i used the GCM( google gcm client and server jars ), and it 
works well, but now , the client can't receiver any push message. the test 
server works well, and the log is:
07-12 14:20:50.735: D/ihsgcm(2239): send result error code name is null, 
whole result is [ messageId=0:1342074228753551%921c249af9fd7ecd ]

but the client didn't receiver any message and print any log. 
the client code is the google gcm client example code, i only change the 
send id. 
who can help me?



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

2012-07-12 Thread agarg007
hello every1,

Friends i am new to android ...
can any1 please give me over view of this..

atleast how to start nd about study material...

thanks 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] Re: Google Cloud Messaging (GCM) issues.

2012-07-12 Thread feitian

Hi, everyone,
  i used GCM days ago and it work well. but now i can't receiver any push 
messages, server send the message ok, and the log is:
07-12 14:20:50.735: D/ihsgcm(2239): send result error code name is null, 
whole result is [ messageId=0:1342074228753551%921c249af9fd7ecd ]

but i can't receiver any push message with my client, and i tried use the 
google example(gcm client), it can't receive any one. dan all the clients 
didn't print any logs. please help me. 



On Wednesday, July 11, 2012 4:00:25 AM UTC+8, Senad wrote:

 Nevermind my last post.. I've figured out I used the wrong senderID.. 

 One have to use the ID generated in the address bar.. e.g:

 https://code.google.com/apis/console/?pli=1#project:*64654065106*


 Thanks,
 Senad



 On Tuesday, July 3, 2012 12:11:25 PM UTC+2, Senad wrote:

 Hi,

 I've had C2DM implemented and working as well and now switched everything 
 to work with GCM.

 The serverside seems to work well, meaning I'm getting the 
 InvalidRegistration 
 which is expected because I cannot register with my device.
 I've setup new API Project and registered my project with brand new 
 Project ID which I've set to be the Sender ID in my app but I keep getting 
 the INVALID_SENDER error.


 Any help appreciated..

 (I've opened a new topic for my issue as well but as I'm new to this 
 group it takes forever to get populated :( )

 Thanks,
 Senad



 On Friday, June 29, 2012 4:22:02 AM UTC+2, RyanMC wrote:

 We are in the final stages of developing an app that had utilized C2DM 
 for push notification, and decided to swap over to the new GCM since we 
 hadn't released yet and it seemed like a good idea. 

 However, this is proving to be a giant headache. We have the JSON and 
 headers formatting correctly and we get back a valid response, but the 
 failed count is always 1 and the error message is UNAVAILABLE. The 
 documentation says to just try again, but this has proved pointless as it 
 always returns the same result. I have seen several posts on stackoverflow 
 and other sites that list a similar problem. Has anyone been able to get 
 the new GCM stuff working? We are using a php backend to handle the push 
 notifications. We are using the standard CURL library, and as far as I can 
 tell the JSON is valid, and works as we do get a result. Prior to swapping 
 out the old message attribute with the new data attribute it would fail to 
 return any result, so I am pretty confident we have it right. 

 Any thoughts would be appreciated. 



-- 
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] manage sim contact using android sdk

2012-07-12 Thread xinwei lim
Hi all,

I'm developing app on managing sim card contact.
While i'm researching on this, i found this on internet Click Here.
Its outdated and there are several issue i faced mention but few
unsolve.

I try to find tutorial on management of sim card contact but there
isn't.
Could anyone develop a tutorial on this topic or point me to if there
any ?

regards,
xin wei

-- 
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] Snow fall effect

2012-07-12 Thread Rupesh nerkar
I want to show snow fall effect in my application.I have one image of snow 
fall,to make effect of snow fall,I want image of snow is move slowly from 
top to bottom and repeat again so feel like snow fall.
Please suggest me which is the right way to do this task..

-- 
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] Broadcast receiver not working in ICS

2012-07-12 Thread Live Happy
i have  a service with separate processes in  my application run from
Broadcast receive after boot completed i tested the code in android 2.3.3
and all is work fine but when i tested on ICS 4.0.3 even the processes
exist in the applications runing  but its not write the throw  logs  in the
receiver class and n the service class  is there any help with that please

 service android:name=.Services.MyServices
android:process=:my_process
android:label=MyServices
intent-filter
   action
   android:name = .Services.MyServices
   /action
   /intent-filter
   /service
   receiver android:name=com.tele.Services.MyReceiver
  android:enabled=true
 android:permission=android.permission.RECEIVE_BOOT_COMPLETED
intent-filter
action
android:name=android.intent.action.BOOT_COMPLETED/
  category android:name=android.intent.category.DEFAULT
/
/intent-filter
/receiver

-- 
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] Getting android hardware in india

2012-07-12 Thread skohli
I am not sure whether it is right forum to ask this question(if not pls 
help by providing forum's link).

Could any one tell me from where i could get hardware to install android(v 
4.0) on it.
I have downloaded the code and compiled it with target emulator, i know 
this target wont workfor real hardware and i need to recompile with custom 
setting. 

it would be a great help if any one could provide link for that too ...

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: Unlocking Bootloader for CDMA Xperia Play

2012-07-12 Thread qwas
root can be done on cdma xperia just not the unlocking of the bootloader to 
me i got root successfully this is all u need but u gotta find it like i 
did ///DooMLoRD_v4_ROOT-zergRush-busybox-su.zip

On Friday, July 15, 2011 6:49:03 PM UTC-7, Ryan A wrote:

 Hello, Im sure you have been asked this question many times already 
 but like a lot of other Verizon CDMA Xperia Play owners, I am checking 
 the web, forums, and other places each day in hopes to finally see an 
 unlock for our bootloaders so root can be acheived. I am on my 3rd 
 Xperia Play and am having a very hard time enjoying this phone. My 
 first 2 went defective with different issues after a week or so. While 
 the current Play that I am using doesnt have any hardware issues 
 like the others, the software glitches, spotty wifi, and horrible lag 
 makes it such a dissapointment and I truly see so much potential. 
 Without being able to unlock bootloader soon I see no reason to keep 
 this phone much longer. Im not alone. Please tell me I can look 
 forward to a solution soon?? Thanks, Ryan

-- 
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: Unable to execute Bluetooth HDP Demo

2012-07-12 Thread Jorge Fernández
Hi wambin:

Could you tell more about the exact problem that you are experiencing?
And, what's the medical device that you are using?

Regards.

On Tue, Jul 10, 2012 at 12:16 PM, wambin ambitiouss...@gmail.com wrote:
 Hi jfernandez and all.

 I've had the same problem for half a year.
 My device is Galaxy Nexus SC-04D ver4.0.4.
 I've not solved this problem yet, in spite of half a year researches.
 I gradually be sure that this is a bug of unregisterAppConfig().
 Here is a report about this problem.
 Google android group
 http://code.google.com/p/android/issues/detail?id=26704can=1q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

 I think this is a only way to report the bug to Android API developers,
 because developer.android.com provides this forum as a Support.
 So, I want you to add a star or comment to this issue, if you have the same
 problem.
 And wish to be debug.


 On Thursday, February 2, 2012 8:05:51 PM UTC+9, jfernandez wrote:

 Hi all,

 I have observed a strange and undesirable behaviour that I'm going to
 describe. When an HDP channel is stablished, the Android system starts
 a long proccess of freeing memory (I have lots of Logcat messages like
 dalvikm - GC_CONCURRENT freed 494K ...), even in some occasions, the
 system crashes and the smartphone is rebooted. I don't know if this is
 a problem of my ROM/smartphone (I'm using Android 4.0.3 ICS). Does
 anybody has the same problem?

 Thanks and regards!

 On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com
 wrote:
  Hi all,
 
  I'm executing the BluetoothHDPDemo [1]  (offered from Android 4.0
  Ice Cream Sandwich) in my Android smartphone. When I have registered
  the application in order to receive data, and I have paired the
  biomedical device with the smartphone, I try to open the channel
  connection and I can see that the device starts sending data to the
  smartphone. However, the smartphone isunableto open the channel
  connectionHDP.
 
  At the end of this message you can see the output obtained in the
  LogCat.
 
  Has anybody achieved to run successfully this sample about the use of
  the Bluetooth Health Profile API? Any ideas?
 
  Thanks. Regards.
 
 
  [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html
 
  This is the log that I obtain:
 
  12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel()
  12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE:
  00:80:25:14:A1:BC: 0 - 1
  12-15 16:40:55.169: D/ConnectivityService(147):
  handleInetConditionHoldEnd: net=1, condition=0, published condition=0
  12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property
  changed: 00:80:25:14:A1:BC property: Connected value: true
  12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device :
  devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/
  bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue
  12-15 16:41:00.034: E/BluetoothService.cpp(147):
  getChannelApplicationNative
  12-15 16:41:00.044: E/bluetooth_common.cpp(147):
  dbus_func_args_timeout_valist: D-Bus error in Acquire:
  org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed)
  12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error
  obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/
  chan3115
  12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative
  12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147):
  onHealthDeviceConnectionResult: D-Bus error:
  org.bluez.Error.HealthError (Mdl is not created)
  12-15 16:41:00.074: D/BluetoothEventLoop(147):
  onHealthDeviceConnectionResult 2 6001
  12-15 16:41:00.214: D/BluetoothEventLoop(147):
  onHealthDeviceConnectionResult 2 6000
  12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of
  Property is: MainChannel Value:/org/bluez/278/hci0/
  dev_00_80_25_14_A1_BC/chan3115

 --
 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] InAppBilling issue

2012-07-12 Thread Tina
Hi all
We have implemented InAppBilling in our application with *in-app product 
with Purchase Type = **Unmanaged*.
**When user performs purchasing our apllication connect to our server and 
all other action performs with it.
But, there is a problem: sometimes between the time of purchase and receipt of 
money it takes several hours.
From a user perspective it means that he never receives the goods for which 
paid. 
Sure, I have implemented restore transaction, and if user re-enter my 
application on completion of the operation everithing works fine, but on 
practice user could performs operation several times (we return many), 
deinstall the application, ask us about situation 20 hours after (it seems 
to me that Play Market application does not collect information about 
transaction so long time)

Tell me please, is it normal situation for the Play market billing?
If yes - what is the correct way to perfrom unmanaged in app billing in 
such situation?

Thank you in advance,
Tina

-- 
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: WebView in Andoird 3.x and 4.x does not load JavaScript files

2012-07-12 Thread rhansen
Thanks for your anwsers,

@MathieuB
Yeah, this would be an option for testing but not for the final release. At 
least I will try that although its some effort.

@Streets Of Boston
Unfortunately the LogCat does not show anything suspicious. I have 
overriden almost all functions of WebView and WebChromeClient to see what's 
going on. I can see it starts downloading files and then simply stops in 
the middle.

@Pent
Absolutely. If something goes wrong it is pretty annoying to find out why. 
In this case I am pretty stuck completely. I am fighting with this since 
months. It must be up to something they have changed after Android 2.x, 
because it works without any error in Android 2.x. And the fact that Chrome 
for Android shows the same weird behavior it must be up to sth. they have 
changed in Android 3.x and Android 4.x.


-- 
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: Showing Overflow menu button on ICS.

2012-07-12 Thread b0b


On Wednesday, 11 July 2012 18:12:59 UTC+2, Dianne Hackborn wrote:

 It's a bug in the app; the app isn't using the standard action bar.


Btw what is the rationale for the system to never display the overflow menu 
on ICS phones having a hardware menu key ?
Isn't that bad for discoverability, one of the benefits of the overflow 
menu ?

-- 
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: Multiple screen support on Gingerbread

2012-07-12 Thread Ferdi Güler
please look at this 
http://developer.android.com/tools/extras/support-library.html


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

2012-07-12 Thread Thomas Birchmire


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

2012-07-12 Thread Vijay Krishnan
now i came to know about Google Cloud Messaging

On Wed, Jul 11, 2012 at 8:47 PM, Justin Anderson magouyaw...@gmail.comwrote:

 http://catb.org/esr/faqs/smart-questions.html

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Wed, Jul 11, 2012 at 7:44 AM, Vijay Krishnan 
 vijay.vijay...@gmail.comwrote:

 Hi all,
  Anyone know about push notifications, share ur ideas.

 Thanks,
 vijay.k

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


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

2012-07-12 Thread Vijay Krishnan
Hi all,
I want to update my phone location to the server whenever location
changes.How should i do this?  Is using a service the best way to do this?

Thanks,
vijay.k

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

2012-07-12 Thread Sandeep Venkat
http://developer.android.com/index.html go through this

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

2012-07-12 Thread pushpa nc
Use Locationlistener class to get the location info and upload the data to
server when location changes. Refer the below link.

http://developer.android.com/reference/android/location/LocationListener.html

On Thu, Jul 12, 2012 at 3:54 PM, Vijay Krishnan vijay.vijay...@gmail.comwrote:

 Hi all,
 I want to update my phone location to the server whenever location
 changes.How should i do this?  Is using a service the best way to do this?

 Thanks,
 vijay.k

 --
 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] copying DB file from assets to data/data/package throwing exception

2012-07-12 Thread vani reddy
HI, while copying the DB file from assets to the data/data folder it is
throwing the below error message

07-12 16:10:25.934: E/SqliteDatabaseCpp(9002):
sqlite3_open_v2(/data/data/your.spurtree.AlmanacSQLiteDatabaseAdapter/databases/tarnea_device.db,
handle, 1, NULL) failed
07-12 16:10:25.954: E/SQLiteDatabase(9002): Failed to open the database.
closing it.
07-12 16:10:25.954: E/SQLiteDatabase(9002):
android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open
database file
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:983)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:956)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:932)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.checkDatabase(AlmanacSQLiteDatabaseAdapter.java:217)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.initialize(AlmanacSQLiteDatabaseAdapter.java:70)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.getInstance(AlmanacSQLiteDatabaseAdapter.java:102)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacActivity$1.onClick(AlmanacActivity.java:43)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.view.View.performClick(View.java:3110)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.view.View$PerformClick.run(View.java:11934)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.os.Handler.handleCallback(Handler.java:587)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.os.Handler.dispatchMessage(Handler.java:92)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.os.Looper.loop(Looper.java:132)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
android.app.ActivityThread.main(ActivityThread.java:4123)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
java.lang.reflect.Method.invokeNative(Native Method)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
java.lang.reflect.Method.invoke(Method.java:491)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
07-12 16:10:25.954: E/SQLiteDatabase(9002): at
dalvik.system.NativeStart.main(Native Method)


The above error is thrown on call of :
 SQLiteDatabase.openDatabase(myPath, null,
SQLiteDatabase.OPEN_READONLY);

but database is successfully copying.

I referred the below link
http://code.google.com/p/almanac/source/browse/trunk/Almanac/src/it/almanac/AlmanacSQLiteDatabaseAdapter.java?r=56
How to resolve this ,Please reply :)

-- 
Regards,
Vani Reddy

-- 
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] copying DB file from assets to data/data/package throwing exception

2012-07-12 Thread Mark Murphy
Try using SQLiteAssetHelper:

https://github.com/jgilfelt/android-sqlite-asset-helper

On Thu, Jul 12, 2012 at 6:46 AM, vani reddy vani.reddy.bl...@gmail.com wrote:

 HI, while copying the DB file from assets to the data/data folder it is
 throwing the below error message

 07-12 16:10:25.934: E/SqliteDatabaseCpp(9002):
 sqlite3_open_v2(/data/data/your.spurtree.AlmanacSQLiteDatabaseAdapter/databases/tarnea_device.db,
 handle, 1, NULL) failed
 07-12 16:10:25.954: E/SQLiteDatabase(9002): Failed to open the database.
 closing it.
 07-12 16:10:25.954: E/SQLiteDatabase(9002):
 android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open
 database file
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:983)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:956)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:932)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.checkDatabase(AlmanacSQLiteDatabaseAdapter.java:217)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.initialize(AlmanacSQLiteDatabaseAdapter.java:70)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacSQLiteDatabaseAdapter.getInstance(AlmanacSQLiteDatabaseAdapter.java:102)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 your.spurtree.AlmanacSQLiteDatabaseAdapter.AlmanacActivity$1.onClick(AlmanacActivity.java:43)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.view.View.performClick(View.java:3110)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.view.View$PerformClick.run(View.java:11934)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.os.Handler.handleCallback(Handler.java:587)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.os.Handler.dispatchMessage(Handler.java:92)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.os.Looper.loop(Looper.java:132)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 android.app.ActivityThread.main(ActivityThread.java:4123)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 java.lang.reflect.Method.invokeNative(Native Method)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 java.lang.reflect.Method.invoke(Method.java:491)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
 07-12 16:10:25.954: E/SQLiteDatabase(9002): at
 dalvik.system.NativeStart.main(Native Method)


 The above error is thrown on call of :
  SQLiteDatabase.openDatabase(myPath, null,
 SQLiteDatabase.OPEN_READONLY);

 but database is successfully copying.

 I referred the below link
 http://code.google.com/p/almanac/source/browse/trunk/Almanac/src/it/almanac/AlmanacSQLiteDatabaseAdapter.java?r=56
 How to resolve this ,Please reply :)

 --
 Regards,
 Vani Reddy

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] GCM client can't receive any push message

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 3:20 AM, feitian testpus...@gmail.com wrote:
 who can help me?

Perhaps the people on the android-gcm Google Group.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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: Tools for porting .NET code

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 4:21 AM, MMM monikamit...@gmail.com wrote:
 I tried but i didn't find it except mono for android.

That is because that is probably the only option.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

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

2012-07-12 Thread rams4android
Refer my blog you can find how to create database
http://ramscreative.blogspot.in/

From:  Vijay Krishnan vijay.vijay...@gmail.com
Reply-To:  android-developers@googlegroups.com
Date:  Thu, 12 Jul 2012 15:54:06 +0530
To:  android-developers@googlegroups.com
Subject:  [android-developers]

Hi all,
I want to update my phone location to the server whenever location
changes.How should i do this?  Is using a service the best way to do this?

Thanks,
vijay.k
-- 
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] Inflate Exception -What can be the Cause?Error inflating class unknown

2012-07-12 Thread maccoy

   
   1. Trying to inlfate a XML file in the Activity class.
   2. The XML file is stored in assets directory.
   3. When calling the inflate method getting the Error inflating class 
   unknown .
   4. It shows the XML Tag(TableLayout or Linear Layout) with attributes.
   
Any ideas?

-- 
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: Inflate Exception -What can be the Cause?Error inflating class unknown

2012-07-12 Thread maccoy
This is the code

View newView =(TableLayout)mLayoutInflater.inflate(xpp,null); 
//'xpp is the XM:Pullparse set with the XML file
XML File:
TableLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent android:layout_height=fill_parent
android:id=@+id/myTableLayout android:gravity=center
TableRow.../TableRow./TableLayout

*Note: The same xml file works if i use inflate - 
mLayoutInflater.inflate(R.layout.tableLayout.xml,null); *
*
*On Thursday, July 12, 2012 4:44:55 PM UTC+5:30, maccoy wrote:


1. Trying to inlfate a XML file in the Activity class.
2. The XML file is stored in assets directory.
3. When calling the inflate method getting the Error inflating class 
unknown .
4. It shows the XML Tag(TableLayout or Linear Layout) with attributes.

 Any ideas?



-- 
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 support library v4 problems with soft keyboard on 3.0 devices.

2012-07-12 Thread Vedran Rodic
Hi,

I'm using the latest version of Android Support Library (for Fragment,
FragmentActivity etc classes).
This bug is present on  3.0 devices (tested with 2.1 emulator from
Android SDK), but not on 4.0.3 (Samsung Galaxy S2).

I have a case where I'm implementing Tab content with Fragments, where
one Fragment (test1)  is replaced by another (test2). If the test1
fragment contains an EditText widget, keyboard shows up when the
EditText is focused.

However, when I replace the test1 Fragment with test2 Fragment (with
Button click or other event in test1 fragment) like this:

FragmentManager fragmentManager = getActivity().getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
Fragment fragment1 =
getActivity().getSupportFragmentManager().findFragmentByTag(simple);
fragmentTransaction.detach(fragment1);
fragmentTransaction.add(R.id.realtabcontent, fragment);
//fragmentTransaction.replace(R.id.realtabcontent, fragment); // using
just .replace also fails in the same way

fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();

and then go back to the test1 activity, I can no longer get the
keyboard to show up when focusing the EditText widget.

At the end of the mail there's a link to  a minimal project that
reproduces this problem (I've included the support library).

Steps to reproduce:
1. Touch in EditText1 so that the keyboard appears.
2. Touch done after entering text (so the keyboard closes).
3. Click on Button to show test2 fragment
4. Press back to go back to test1 fragment
5. try touching EditText1 to make the keyboard show again (doesn't show)


So this works as expected when the App is run on Android 4.0.3

https://github.com/vrodic/androdidtests/zipball/master

I've also submitted this as a bug report here:

https://code.google.com/p/android/issues/detail?id=34775

Thanks,

Vedran Rodic

-- 
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] Issue with compiling Unit tests that use Mockito

2012-07-12 Thread Yadnesh Phadke
Hi All,

I have JUnit tests for my Android project that use Mockito.  For compiling 
I needed to add the junit and mockito jars to my libs folder.  I am using 
android tools 20 and trying to compile using Ant.  I get following error 
while converting to dex

   [dx]
   [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
   [dx] *java.lang.IllegalArgumentException: already added: 
Lorg/hamcrest/BaseDescription*;
   [dx] at 
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
   [dx] at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
   [dx] at 
com.android.dx.command.dexer.Main.processClass(Main.java:486)
   [dx] at 
com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
   [dx] at 
com.android.dx.command.dexer.Main.access$400(Main.java:67)
   [dx] at 
com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
   [dx] at 
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
   [dx] at 
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
   [dx] at 
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
   [dx] at 
com.android.dx.command.dexer.Main.processOne(Main.java:418)
   [dx] at 
com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
   [dx] at com.android.dx.command.dexer.Main.run(Main.java:206)
   [dx] at com.android.dx.command.dexer.Main.main(Main.java:174)
   [dx] at com.android.dx.command.Main.main(Main.java:91)
   [dx] 1 error; aborting


The issue is because I am including 2 jars which have same class inside. 
http://www.jarfinder.com/index.php/java/info/org.hamcrest.BaseDescription
I thought that already added error was taken care of with the tools 17 
release.  Is the issue still there in tools 20?

Do I need to do something different to resolve this issue?

Regards,
Yadnesh

-- 
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] New Android Developers site: Where is the reference of system apps and supported locales for each release?

2012-07-12 Thread Kiran Rao
The old Android developers' site listed, for each platform release, all the 
system apps that are part of that release; and also all the locales 
supported by that release. I'm not able to find it in the new site. Is it 
still around?

-- 
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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread BoD
I just encountered this problem on a Galaxy Nexus running Jelly Bean 
JRN84D.
This is a serious issue because it makes extremely valuable libraries like 
ACRA inoperative.

A comment from someone from the Android team would be greatly appreciated :)

Thanks!

-- 
BoD


On Sunday, July 8, 2012 9:26:47 PM UTC+2, Ievgenii Nazaruk wrote:

 Hi all,

 I've been working on an application for developers that uses 
 DropBoxManager. The DropBoxManager requires READ_LOGS permission to be 
 granted in order to query information from it. 

 Today I've tested my application on newest (api 16) emulator before 
 releasing it to Google Play. It turned out that Android now refuses to 
 grant this permission to 3rd party applications. This is weird because I've 
 looked through all Jelly Bean's documented changes and couldn't find 
 anything that mentions READ_LOGS permission. 

 So basically my questions: 

- Did anyone see this change documented? 
- Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on 
it (the one released to attendees of Google I/O)?

 And questions to someone from Android team: 

- Why this breaking change wasn't described in documentations like 

 READ_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGEwas?
  

- What should developers and testers do in order to use those handy 
utility applications that require READ_LOGS to be useful? Is there any way 
to allow READ_LOGS to 3rd party applications without making custom build 
(i.e. something in Developer Options that I could've missed)? 



-- 
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] New Android Developers site: Where is the reference of system apps and supported locales for each release?

2012-07-12 Thread Mark Murphy
http://developer.android.com/tools/revisions/platforms.html

On Thu, Jul 12, 2012 at 8:32 AM, Kiran Rao techie.curi...@gmail.com wrote:
 The old Android developers' site listed, for each platform release, all the
 system apps that are part of that release; and also all the locales
 supported by that release. I'm not able to find it in the new site. Is it
 still around?

 --
 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 3.8 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] NFC game

2012-07-12 Thread iconapp 2010
hello,

Android developers,  can u help me in doing nfc hunter game, i want to
create a monster how do i do..


waiting for reply

-- 
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] Not able to query social stream items (updates) for User Profile (Me profile)

2012-07-12 Thread Asif k
I'm writing an social networking app on Android (for ICS). I haven't found 
any content uri for user profile stream items like there are for both 
``Contacts`` and ``RawContacts``. 

I'm able to **write** social stream for user profile into streamItems table 
with its raw_contactd, but using the same concept to query for stream items 
in two different ways, both failed with the Exception I've shown below. 
Please note that I'm able to query stream items for other contacts this way.

1). 

profileCursor= getContext().getContentResolver().query(
Profile.CONTENT_RAW_CONTACTS_URI.buildUpon()
   .appendPath(rawContactId)
   
.appendPath(RawContacts.StreamItems.CONTENT_DIRECTORY).build(),
null, null, null, null);

2) Query to streamitem uri with 

rawcontactid = profileRawContactId

Exception as follows:

V/ContactsProvider(19514): ContactsProvider.query: 
url=content://com.android.contacts/profile/raw_contacts/9223372034707292179/stream_items,
 
match is -1
E/DatabaseUtils(19514): Writing exception to parcel
E/DatabaseUtils(19514): java.lang.IllegalArgumentException: URI: 
content://com.android.contacts/profile/raw_contacts/9223372034707292179/stream_items,
 
calling user: com.xyz, calling package:com.xyz

Please help me with this.

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

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 8:37 AM, BoD bodlu...@gmail.com wrote:
 This is a serious issue because it makes extremely valuable libraries like
 ACRA inoperative.

ACRA does not need READ_LOGS. Certain ACRA features might need READ_LOGS.

 Did anyone see this change documented?

It does not appear to be documented.

 Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on it
 (the one released to attendees of Google I/O)?

It appears in the new source code. The protectionLevel for READ_LOGS
is now signature|system|development. The new pipe syntax for
protectionLevel is also undocumented (see
http://code.google.com/p/android/issues/detail?id=34785).

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


Re: [android-developers] New Android Developers site: Where is the reference of system apps and supported locales for each release?

2012-07-12 Thread Kiran Rao
These are the release notes. What's missing is the detailed listing of 

1) Every app that came as standard with the platform (calendar, clock etc)
2) Every locale that the platform supported.

On Thursday, 12 July 2012 18:08:43 UTC+5:30, Mark Murphy (a Commons Guy) 
wrote:

 http://developer.android.com/tools/revisions/platforms.html 

 -- 
 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 3.8 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] Access to accounts and user authorization

2012-07-12 Thread Piotr Buda
Hi,
I have an app that uses accounts stored on device. When I want to access 
account (I need to retrieve some auth tokens) from an activity, user is 
presented with a screen that will allow him to grant access for application 
to said account. I have another problem though - sometimes I need to access 
accounts from a) service, b) loader. There is another method to obtain auth 
token that does not accept activity as parameter, instead it will post 
notification that user needs to authorize access to account.

While this second method sounds reasonable for use in service, I can't use 
this in loader. When said authorization screen needs to be displayed, the 
resulting AccountManagerFutureBundle from getAuthToken() call contains 
Intent that should be triggered. I don't know, however, how to handle such 
situations properly. Should I stop loader and restart it sometime later? 
Are there any strategies that apply in such situations?

Thanks for any info.

-- 
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: Multiple screen support on Gingerbread

2012-07-12 Thread |-NK-|
Thanks a lot...

That was helpfull

On Jul 12, 2:56 pm, Ferdi Güler ferdi...@gmail.com wrote:
 please look at 
 thishttp://developer.android.com/tools/extras/support-library.html

-- 
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] New Android Developers site: Where is the reference of system apps and supported locales for each release?

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 8:49 AM, Kiran Rao techie.curi...@gmail.com wrote:
 These are the release notes. What's missing is the detailed listing of

 1) Every app that came as standard with the platform (calendar, clock etc)
 2) Every locale that the platform supported.

Ah, I see what you mean. I have no idea.

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


Re: [android-developers] New Android Developers site: Where is the reference of system apps and supported locales for each release?

2012-07-12 Thread Kiran Rao
Just found it .. in a local copy of the docs (which, fortunately, have not 
been updated using SDK manager yet). But seriously, much as I love the new 
site design, Google should do something about the broken links and missing 
content.

On Thursday, 12 July 2012 18:24:00 UTC+5:30, Mark Murphy (a Commons Guy) 
wrote:

 On Thu, Jul 12, 2012 at 8:49 AM, Kiran Rao techie.curi...@gmail.com 
 wrote: 
  These are the release notes. What's missing is the detailed listing of 
  
  1) Every app that came as standard with the platform (calendar, clock 
 etc) 
  2) Every locale that the platform supported. 

 Ah, I see what you mean. I have no idea. 

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

Re: [android-developers] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Francisco M. Marzoa Alonso
I experimented same issue using Crittercism, that I rather liked to use
that permission for debugging crashes. After seeing that it was not
working, I simply desist and rely on other debugging information.

I was not sure if the fail was on Android side or Crittercism one, but
reading your message and other replies to it, it seems like it is on
Android side.

Regards,


On 08/07/12 21:26, Ievgenii Nazaruk wrote:
 Hi all,

 I've been working on an application for developers that uses 
 DropBoxManager. The DropBoxManager requires READ_LOGS permission to be 
 granted in order to query information from it. 

 Today I've tested my application on newest (api 16) emulator before 
 releasing it to Google Play. It turned out that Android now refuses to 
 grant this permission to 3rd party applications. This is weird because I've 
 looked through all Jelly Bean's documented changes and couldn't find 
 anything that mentions READ_LOGS permission. 

 So basically my questions: 

- Did anyone see this change documented? 
- Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on 
it (the one released to attendees of Google I/O)?

 And questions to someone from Android team: 

- Why this breaking change wasn't described in documentations like 

 READ_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGEwas?
  

- What should developers and testers do in order to use those handy 
utility applications that require READ_LOGS to be useful? Is there any way 
to allow READ_LOGS to 3rd party applications without making custom build 
(i.e. something in Developer Options that I could've missed)? 




-- 
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] Running Java unit tests for Android project using Ant

2012-07-12 Thread Yadnesh Phadke
Hi All,

I have added JUnit tests in my Android project.  These tests are not 
Android specific and should run in any Java environment.  Documentation at 
http://developer.android.com/tools/testing/testing_android.html; specifies 
that You can use the JUnit 
TestCasehttp://developer.android.com/reference/junit/framework/TestCase.htmlclass
 to do unit testing on a class that doesn't call Android APIs.
I am able to run these tests in Eclipse without having emulator or device. 

I want to run these tests using ant run-tests target, but it seems that 
this target is available only for test project.  Also, the command to 
execute these case is adb shell am instrument. this needs to have the 
device or emulator attached.

Can someone please point out the right way to run these JUnits?

Regards,
Yadnesh

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

2012-07-12 Thread Vijay Krishnan
yes i know about location listener.my need is whenever my location changes
i want to update it to my server.Is this possible by using service.


On Thu, Jul 12, 2012 at 3:59 PM, pushpa nc nc.pus...@gmail.com wrote:

 Use Locationlistener class to get the location info and upload the data to
 server when location changes. Refer the below link.


 http://developer.android.com/reference/android/location/LocationListener.html


 On Thu, Jul 12, 2012 at 3:54 PM, Vijay Krishnan 
 vijay.vijay...@gmail.comwrote:

 Hi all,
 I want to update my phone location to the server whenever
 location changes.How should i do this?  Is using a service the best way to
 do this?

 Thanks,
 vijay.k

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


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

2012-07-12 Thread bob
Does anyone know what the integer parameter is to 
createInsecureRfcommSocket?

-- 
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: adjustPan and adjustResize

2012-07-12 Thread raju
can u givea example or code which ur uing and can u please send me the
screen shot so that i can help u



On Wed, Jul 11, 2012 at 3:05 PM, ala hammad 3la2.7am...@gmail.com wrote:

 any body have any idea ...


 On Monday, 2 July 2012 15:22:07 UTC+3, ala hammad wrote:

 hello all,
 i want to use adjustPan and adjustResize together but when use it one is
 working and display the other ..
 mean i can't extend edittext when writing more than line ..

 any body have idea ...

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

2012-07-12 Thread Justin Anderson
To unsubscribe, follow the instructions at the bottom of every email you
get from this group:

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


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 12, 2012 at 4:01 AM, Thomas Birchmire tbirchm...@usa.netwrote:

 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 textview animation - fade in, wait, fade out

2012-07-12 Thread Justin Anderson
Use an animation set that contains both the fade in and fade out... use the
start offset attribute to start the fade out after the delay you want:
http://developer.android.com/reference/android/view/animation/Animation.html#attr_android:startOffset

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 12, 2012 at 12:24 AM, Guy Cothal g...@guycothal.com wrote:

 I am making a picture galleys app. I current have a imageview with a text
 view at the bottom. Currently it is just semitransparent. I want to make it
 fade in, wait 3 second, then fade out 90%. Bringing focus to it or loading
 a new pic will make it repeat the cycle. I have read thru a dozen pages and
 have tried a few things, no success. All I get is a fade in and instant
 fade out

 --
 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] [android-d​evelopers] scrolling and showing 1000 pictures on the screen as fluent as iphone does without blocking and black slots even if scroll very fast. I expect to find a jo

2012-07-12 Thread terry
hi all.
I am a android-linux developer, with much knowlege on the Linux
kernel/driver, android system, Tcp/IP.
These days,  i study the ics gallery code and optimized the 4.0
gallery. When showing  1000 pictures on the screen, the phone is
as fluent as iphone does even if you scroll very fast. No blocking and no
black slot

I expected to work and life in Amercia.  Could anyone help me to find a job
oppo in America? thanks a lot

br

-- 
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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread BoD

On 07/12/2012 02:45 PM, Mark Murphy wrote:

On Thu, Jul 12, 2012 at 8:37 AM, BoD bodlu...@gmail.com wrote:

This is a serious issue because it makes extremely valuable libraries like
ACRA inoperative.

ACRA does not need READ_LOGS. Certain ACRA features might need READ_LOGS.
I think we can all agree that one main feature of this library (and 
others) is the ability to read/send the logs.


It appears in the new source code. The protectionLevel for READ_LOGS 
is now signature|system|development. The new pipe syntax for 
protectionLevel is also undocumented (see 
http://code.google.com/p/android/issues/detail?id=34785). 


Thank you for this.
This is extremely unfortunate.
I opened this issue:
http://code.google.com/p/android/issues/detail?id=34792

--
BoD

--
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] 401 when trying to send GCM message to registered device

2012-07-12 Thread Damien Cooke

Hi all,
I am having some difficulties with GCM for android.  


Here is what I am sending:

I am using Glassfish as my appserver.

{collapse_key:AIzaSyADq3b8Tm-NZiImXGy8ngdsXXX,data:{type:CR,msg:Hello
 
world},registration_ids:[APA91bE_oaTf0xHkphMVlMwmviwAn6Nefnd1R36W9wDO29T7p7yJ_W0S9x7MhfMWeL6yCfrvI3r_VdUJnmsZUUzvKeeDUWLSSZHf4YW91SU8yShBo8KOaeS1A20mQn_WEAqwzC9vQhFk8uM_tTq_B_THXXX]}

I have used the key for browser apps as the collapse key

Has anyone got any idea why I might be getting a 401?


Regards
Damien

-- 
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 to catch apple-touch-icon

2012-07-12 Thread Justin Anderson
Ummm yeah... I'm gonna go with this:
http://catb.org/esr/faqs/smart-questions.html


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Jul 11, 2012 at 8:24 PM, drunkenapple drunkenappl...@gmail.comwrote:

 Dear All Developer~


 generally. Web site two icon's use~


 link rel='shortcut icon' href=*.png /
 link rel='apple-touch-icon' href=*.png /

 'shortcut icon' useable to bookmark for android API

 but .

 'apple-touch-icon' I'm not found into the android API

 I want list up 'apple-touch-icon' large image

 how to catch apple-touch-icon icon use android 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 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] Playing Sound

2012-07-12 Thread limtc
Hi,

I have a few questions related to sound playback in game.

- is using AsyncPlayer faster than MediaPlayer for playing background MP3 
music? I guess so since it should run in another thread and it is possible 
that a multiple core CPU uses another core to play the music?

- is SoundPool a good choice for playing short sample sounds (explosion 
sound, etc)? My test last year with an Android 1.6/2.1 phone is that it is 
pretty buggy and can cause some phones to crash when playing multiple 
sounds at the same time, is it more reliable nowadays? I am currently using 
MediaPlayer and wonder whether it is worth switching to 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
http://groups.google.com/group/android-developers?hl=en

[android-developers] App claims to have stopped then instantly starts afterward?

2012-07-12 Thread Cythes
Right now I am in the process of working out this little bug as I want to 
call it. I'm almost certain that it is a manifest issues so I will post the 
code to the manifest down below. Going on what the title says. When I load 
my app into the emulator it installs just fine, but as soon as it goes to 
start it stops but then starts right afterward? At this point in time I am 
working on trying to make the app in question run in the background. Here 
is the manifest file since I have deduced that it is an issue in here:

manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=path.to.this
android:versionCode=1
android:versionName=1.0 

uses-sdk
android:minSdkVersion=9
android:targetSdkVersion=15 /

uses-permission 
android:name=android.permission.RECEIVE_BOOT_COMPLETED /
uses-permission android:name=android.permission.VIBRATE /
uses-permission android:name=android.permission.CALL_PHONE /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name
android:theme=@style/AppTheme 
receiver
android:name=path.to.this.AUTOBOT
android:enabled=true
android:permission=android.permission.RECEIVE_BOOT_COMPLETED 
intent-filter
action android:name=android.intent.action.BOOT_COMPLETED 
/

category android:name=android.intent.category.DEFAULT /
/intent-filter
/receiver

activity
android:name=.MainActivity
android:label=@string/title_activity_main 
intent-filter
action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

service android:name=path.to.this.myService 
/service
/application

/manifest

Maybe I'm calling something wrong?

-- 
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] Flip Gesture on ListView

2012-07-12 Thread Michael Leung
Hi,
  I am building a Flip Gesture on ListView. Is it a standard control to do
that? If there is not a standard control, should I build the gesture on
listview or list item adapter? I tried some example for flip gesture on
ListView, but they can't check which item the flip applied on. Does anyone
have some ideas?
-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

2012-07-12 Thread Kristopher Micinski
Of course, whenever you get a new location fix, the listener will call
your onLocationUpdate function, at that point you tell your web
service (by perhaps using something like AndroidHttpClient) your new
location.

kris

On Thu, Jul 12, 2012 at 9:23 AM, Vijay Krishnan
vijay.vijay...@gmail.com wrote:
 yes i know about location listener.my need is whenever my location changes i
 want to update it to my server.Is this possible by using service.


 On Thu, Jul 12, 2012 at 3:59 PM, pushpa nc nc.pus...@gmail.com wrote:

 Use Locationlistener class to get the location info and upload the data to
 server when location changes. Refer the below link.


 http://developer.android.com/reference/android/location/LocationListener.html


 On Thu, Jul 12, 2012 at 3:54 PM, Vijay Krishnan vijay.vijay...@gmail.com
 wrote:

 Hi all,
 I want to update my phone location to the server whenever
 location changes.How should i do this?  Is using a service the best way to
 do this?

 Thanks,
 vijay.k

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


 --
 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread b0b
The thing is that it is better to not rely on READ_LOGS to (for example) 
provide logs to ACRA.
The bonus is that your app will not need that permission which is kind of 
scary.

How can it be done ?

- wrap all your logging calls into functions adding your log message + any 
other metadata (like tag or timestamp) to a cache were you keep the last n  
log lines. Can be done with a simple LinkedHashMap overriding 
removeEldestEntry().
- modify ACRA by  adding a custom column that will contain the content of 
the log cache. When the crash report is constructed, fill that column with 
the cache data
- profit!


-- 
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] Regarding Packagemanager..?

2012-07-12 Thread Abhilash baddam
Hi,

I came to know that after booting device, all the system apps and market
apps( if there) will be loaded right. These all things will be handled by
PackageManager means which are the already installed apps, based on that it
will load all the apps. But how the PackageManager gets the information
about installed apps in the device. I want to know to know more about
PackageMAnager. I have gone through developer.android.com, but I want to
know more about this.  Can anybody help me regarding on the same.




Regards
Abhilash

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

2012-07-12 Thread Vijay Krishnan
Hi all,
I couldn't install helper libraries for Google Cloud Messaging.

Thanks,
vijay.k

-- 
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] Regarding Packagemanager..?

2012-07-12 Thread Justin Anderson
Look at the source code for PackageManager...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 12, 2012 at 9:22 AM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I came to know that after booting device, all the system apps and market
 apps( if there) will be loaded right. These all things will be handled by
 PackageManager means which are the already installed apps, based on that it
 will load all the apps. But how the PackageManager gets the information
 about installed apps in the device. I want to know to know more about
 PackageMAnager. I have gone through developer.android.com, but I want to
 know more about this.  Can anybody help me regarding on the same.




 Regards
 Abhilash




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

2012-07-12 Thread Justin Anderson

 I couldn't install helper libraries for Google Cloud Messaging.

Thanks for letting us know.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 12, 2012 at 9:30 AM, Vijay Krishnan vijay.vijay...@gmail.comwrote:

 Hi all,
 I couldn't install helper libraries for Google Cloud Messaging.

 Thanks,
 vijay.k

 --
 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] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Latimerius
The upcoming ACRA release will (probably) contain the ability to
include a custom application-private log file in a report.  So if you
only care for reading the system log to read your own log messages,
that should be taken care of.  Of course, if you really want to read
the actual stuff logged by the system and other apps, that's going to
be tougher.

On Thu, Jul 12, 2012 at 5:19 PM, b0b pujos.mich...@gmail.com wrote:
 The thing is that it is better to not rely on READ_LOGS to (for example)
 provide logs to ACRA.
 The bonus is that your app will not need that permission which is kind of
 scary.

 How can it be done ?

 - wrap all your logging calls into functions adding your log message + any
 other metadata (like tag or timestamp) to a cache were you keep the last n
 log lines. Can be done with a simple LinkedHashMap overriding
 removeEldestEntry().
 - modify ACRA by  adding a custom column that will contain the content of
 the log cache. When the crash report is constructed, fill that column with
 the cache data
 - profit!



 --
 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] Re: android:windowIsFloating

2012-07-12 Thread Kristoffer
Okey, then i know.
Thanks.

Den onsdagen den 11:e juli 2012 kl. 21:53:50 UTC+2 skrev Dianne Hackborn:

 A non-fullscreen window wraps its content.  If your content is allowing 
 itself to be wrapped at a size smaller than works, you have a problem with 
 the layout in your window.

 On Wed, Jul 11, 2012 at 10:55 AM, Kristoffer kris.isak.v...@gmail.comwrote:

 Hello.
 its the same if i use that, the window will be the same size as the 
 content.

 Den onsdagen den 11:e juli 2012 kl. 19:34:24 UTC+2 skrev skink:



 Kristoffer wrote: 
  Hello. 
  Iam trying to make a nice looking popup window 
  iam almost there with the help of android:windowIsFloating in my theme 
 but 
  the thing is that the new window is wraping content to set its size. 
  What i want is that the new window should almost fill the whole 
 screen, it 
  should just be little smaller that the background activity just to 
 show 
  thats its a popup window. 
  
  Yes, sure i could hardcode a size but i want it to look good on any 
 size so 
  the best would be if i some way could set the size to like 80 % of 
 screen 
  size? 
  maybe there is a default android theme that i could use? 


 sure it is: 

 activity android:theme = @ 
 android:style/ 
 Theme.Dialog  

 pskink

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




 -- 
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to 
 provide private support, and so won't reply to such e-mails.  All such 
 questions should be posted on public forums, where I and others can see and 
 answer them.



-- 
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: Android application project error in linux

2012-07-12 Thread Nobu Games
This looks like a simple file permission problem. The SDK tools are not 
allowed to create any files / directories in that path. You can very easily 
fix that problem by downloading / installing the SDK somewhere in your user 
home directory or change the file system permissions / ownership for that 
directory and all contained sub-directories and files. Ownership / 
permissions have to match your user or user group.

-- 
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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Dianne Hackborn
Hi, sorry this didn't get documented.

The change is that third party applications can no longer get the read logs
permission, however every app can read the logs containing only the lines
*they* have written, without needing any permission.

Keep in mind that access to the logs has never been part of the SDK, and is
still not part of the SDK.  If you are relying on it then, even after this
change, you run the risk of breaking in the future.  (And that is partly
why this got lost for documentation, it is not part of the SDK, so there
isn't really a place to document it, in fact documenting it would kind-of
make it a part of the SDK which we don't want. :p)

Also we really really hope that developers don't take this as license to
further abuse the system logs and spew increasing amounts of stuff into it
from their app.  Log noise has been a continual problem on Android (not
just for third party apps, we always struggle to ship the open source
platform without a lot of noise), and if things continue to get worse we
will probably make further changes to it to better control it.

On Sun, Jul 8, 2012 at 12:26 PM, Ievgenii Nazaruk 
ievgenii.naza...@gmail.com wrote:

 Hi all,

 I've been working on an application for developers that uses
 DropBoxManager. The DropBoxManager requires READ_LOGS permission to be
 granted in order to query information from it.

 Today I've tested my application on newest (api 16) emulator before
 releasing it to Google Play. It turned out that Android now refuses to
 grant this permission to 3rd party applications. This is weird because I've
 looked through all Jelly Bean's documented changes and couldn't find
 anything that mentions READ_LOGS permission.

 So basically my questions:

- Did anyone see this change documented?
- Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on
it (the one released to attendees of Google I/O)?

 And questions to someone from Android team:

- Why this breaking change wasn't described in documentations like

 READ_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGEwas?

- What should developers and testers do in order to use those handy
utility applications that require READ_LOGS to be useful? Is there any way
to allow READ_LOGS to 3rd party applications without making custom build
(i.e. something in Developer Options that I could've missed)?

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Kostya Vasilyev
I have my own logging solution in my app, and even though it's very
useful...

... being able to see the system logs is invaluable and irreplaceable in
some situations.

For example, I recently experienced LVL validation failures and asked the
users to use CatLog (one the of apps on Market that can read and email
logcat output). With the logcat output in hand, it was obvious that the
failure is on Google's side (again!) and I knew what to do about it.

I understand that the Android team's concern, as was previously mentioned
on the list, is for applications that may print personal user's information
in the system log.

Why, then, is the remedy such that it punishes apps that are not in
violation of the user's privacy with their logcat use?

Is the actual install share of JB so high already that this change is
believed to be a meaningful solution?

-- K

2012/7/12 Latimerius l4t1m3r...@googlemail.com

 The upcoming ACRA release will (probably) contain the ability to
 include a custom application-private log file in a report.  So if you
 only care for reading the system log to read your own log messages,
 that should be taken care of.  Of course, if you really want to read
 the actual stuff logged by the system and other apps, that's going to
 be tougher.

 On Thu, Jul 12, 2012 at 5:19 PM, b0b pujos.mich...@gmail.com wrote:
  The thing is that it is better to not rely on READ_LOGS to (for example)
  provide logs to ACRA.
  The bonus is that your app will not need that permission which is kind of
  scary.
 
  How can it be done ?
 
  - wrap all your logging calls into functions adding your log message +
 any
  other metadata (like tag or timestamp) to a cache were you keep the last
 n
  log lines. Can be done with a simple LinkedHashMap overriding
  removeEldestEntry().
  - modify ACRA by  adding a custom column that will contain the content of
  the log cache. When the crash report is constructed, fill that column
 with
  the cache data
  - profit!
 
 
 
  --
  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


-- 
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] Regarding Packagemanager..?

2012-07-12 Thread Dianne Hackborn
Specifically, PackageManagerService.java and related classes it uses.

On Thu, Jul 12, 2012 at 8:40 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Look at the source code for PackageManager...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Thu, Jul 12, 2012 at 9:22 AM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I came to know that after booting device, all the system apps and market
 apps( if there) will be loaded right. These all things will be handled by
 PackageManager means which are the already installed apps, based on that it
 will load all the apps. But how the PackageManager gets the information
 about installed apps in the device. I want to know to know more about
 PackageMAnager. I have gone through developer.android.com, but I want to
 know more about this.  Can anybody help me regarding on the same.




 Regards
 Abhilash




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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: Showing Overflow menu button on ICS.

2012-07-12 Thread Dianne Hackborn
On Thu, Jul 12, 2012 at 2:54 AM, b0b pujos.mich...@gmail.com wrote:

 Btw what is the rationale for the system to never display the overflow
 menu on ICS phones having a hardware menu key ?
 Isn't that bad for discoverability, one of the benefits of the overflow
 menu ?


It would be redundant, and this behavior is consist with the long standing
UX for devices with a physical menu button.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Dianne Hackborn
Applications accessing the system logs has been a long-standing issue.
 There is various code in the system that tries to trim personal and other
dangerous information out when it prints to the log, but this often misses
things, and just makes the system using the logs much more complicated and
risky.

The logs are also a target for malware, since it can look at what is being
printed there to infer a lot about what is going on in the device.

Plus, as I said, access to the logs has never been any part of the SDK, and
this was very deliberate, because it is not a facility we want applications
to use or feel like we can maintain for applications as the platform
evolves.

If you want the user to give you debugging information, you can have them
generate a bug report with power + volume down + volume up which includes
the logs and lots of other data, and automatically brings up their e-mail
app to sent it all (plus a screenshot).  We were just discussing that we
should have an easier way to generate these as well, I am going to look at
adding something to the settings app.

I also have started introducing the concept of a development permission,
which read logs is classified as.  This allows the app to request the
permission, but not get it at install.  You can however grant it with an
adb shell command once it is installed.  At some point later I expect to
have a UI in the system for doing this, but we are going to hold off on
that to be careful about how we present this.

As far as the percentage of devices running JB, if you want to make that
argument then we should just stop doing any improvements now since a few
days after release very few devices will have them.  We consider this a
significant improvement to the security of the platform, and going forward
it is what we want to have.

On Thu, Jul 12, 2012 at 10:00 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 I have my own logging solution in my app, and even though it's very
 useful...

 ... being able to see the system logs is invaluable and irreplaceable in
 some situations.

 For example, I recently experienced LVL validation failures and asked the
 users to use CatLog (one the of apps on Market that can read and email
 logcat output). With the logcat output in hand, it was obvious that the
 failure is on Google's side (again!) and I knew what to do about it.

 I understand that the Android team's concern, as was previously mentioned
 on the list, is for applications that may print personal user's information
 in the system log.

 Why, then, is the remedy such that it punishes apps that are not in
 violation of the user's privacy with their logcat use?

 Is the actual install share of JB so high already that this change is
 believed to be a meaningful solution?

 -- K


 2012/7/12 Latimerius l4t1m3r...@googlemail.com

 The upcoming ACRA release will (probably) contain the ability to
 include a custom application-private log file in a report.  So if you
 only care for reading the system log to read your own log messages,
 that should be taken care of.  Of course, if you really want to read
 the actual stuff logged by the system and other apps, that's going to
 be tougher.

 On Thu, Jul 12, 2012 at 5:19 PM, b0b pujos.mich...@gmail.com wrote:
  The thing is that it is better to not rely on READ_LOGS to (for example)
  provide logs to ACRA.
  The bonus is that your app will not need that permission which is kind
 of
  scary.
 
  How can it be done ?
 
  - wrap all your logging calls into functions adding your log message +
 any
  other metadata (like tag or timestamp) to a cache were you keep the
 last n
  log lines. Can be done with a simple LinkedHashMap overriding
  removeEldestEntry().
  - modify ACRA by  adding a custom column that will contain the content
 of
  the log cache. When the crash report is constructed, fill that column
 with
  the cache data
  - profit!
 
 
 
  --
  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


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

Re: [android-developers] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn hack...@android.com wrote:
 however every app can read the logs containing only the lines
 *they* have written, without needing any permission.

OK, I'll bite: how do you do this? Most of the read-the-logs code that
I have seen uses logcat via Runtime#exec(), and I don't see a
command-line switch on logcat to limit output to just your own
process' lines.

(BTW, count me as one of the fans of this decision, despite the very
loud grumblings I expect you will receive from various quarters)

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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: Get Passwords from Webview

2012-07-12 Thread Nobu Games
The way I see that in desktop browsers is that they are trying to identify 
login forms in an HTML page with some kind of heuristic. There is no 
standardized way for logging in a user on the Internet. A login form can 
have various shapes, locations, layouts, identifiers assigned, so there is 
no guarantee that this works all the time. But you can get pretty close to 
a workable solution.

So you need to be smart about it and develop heuristics that are able to 
identify login forms in HTML pages. Usually login forms consist of an input 
field that is labeled with something like user name or email address. 
And close to it is another input field of type password. If you find 
something like that in a form you know what you're dealing with and your 
app needs to store these fields' names.
You also see that you need to support different languages for identifying 
the user name field. You cannot expect that field to be labeled in English 
all the time.

For making it more solid you'll need to store a bit of context. Look for 
the surrounding form tag and store its action attribute because this is a 
sure way to find a login form again in an HTML document even when the 
layout changed a bit.

In any case, if you want to do that based on a WebView, I guess your best 
bet is injecting some JavaScript code after the page is loaded. That 
JavaScript code scans through the current page for finding all form tags 
and tries to figure out, whether these forms are login forms according to 
your heuristic.

Your trojan JavaScript code needs to hook into the onSubmit event handlers 
of these login forms, and when the user submits these forms, read both user 
name and password and transfer that information to your app (see 
documentation about binding JavaScript to your 
app)http://developer.android.com/guide/webapps/webview.html#BindingJavaScript.
 
Your app can then open a popup dialog and ask the user whether (s)he wants 
to store these login credentials.

When the user visits that page again, your trojan JavaScript needs to find 
the matching login form again (by action attribute string for example / and 
other heuristics, you need to experiment with) and automatically fill both 
input fields for user name and password.

Be aware that also the action string URL is not necessarily stable, because 
some websites may add some random token to the URL parameter string. You'll 
have to experiment with the identification of login forms and find ways for 
supporting more and more websites over time.

There is one possible deal-breaker however. I don't know whether WebView 
allows reading password type input fields from JavaScript. It could be 
turned off / disallowed for security reasons. If that's the case, you're 
most likely not able to use WebView for your purposes, unless you're using 
a proxy server that can read out your passwords. That opens a whole other 
can of worms with all security implications and so on. Or if you're lucky 
there is some way to intercept the HTTP requests created by WebView. But I 
doubt that.

By the way, since you are going to handle very sensitive user data, make 
sure to encrypt that data based on a user password string. There are 
sufficiently secure algorithms and implementations in Java out there.


On Wednesday, July 11, 2012 10:21:21 PM UTC-5, Mani wrote:

 Thanks to both for your answers,
 Yes, my use case is smth like password Vault.
 @Kris, I am able to keep users in the same tab. So thats not my worry. 
 Have u seen LastPass, thats quite amazing.
 Well I dont think its snooping if you tell user that the app is meant to 
 store/synch passwords across browsers or devices, like LastPass has done. 
 I would appreciate if you can provide some on technical feasibility or 
 direction on how this can be achieved..

 Thanks
 Mani



-- 
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: Android application project error in linux

2012-07-12 Thread cadogan1
That seemed to fix it! thanks for the help.

-- 
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: Showing Overflow menu button on ICS.

2012-07-12 Thread b0b


On Thursday, 12 July 2012 19:01:26 UTC+2, Dianne Hackborn wrote:

 On Thu, Jul 12, 2012 at 2:54 AM, b0b wrote:

 Btw what is the rationale for the system to never display the overflow 
 menu on ICS phones having a hardware menu key ?
 Isn't that bad for discoverability, one of the benefits of the overflow 
 menu ?


 It would be redundant, and this behavior is consist with the long standing 
 UX for devices with a physical menu button.



This is really dabatable and a matter of personal opinion...I would have 
liked the Action Bar of my app to look the same weather there
is a physical menu button or not. 

-- 
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] AppCache not working in WebView with loadDataWithBaseURL()

2012-07-12 Thread Andy
All page content is loaded with HTTP.  Strangely, this static content does 
load successfully if it is sourced in the iframe document, but not if it is 
sourced in the literal HTML.  Even if there was a protocol difference, I 
can't understand why that would make a difference in the internal 
AppCache-fetching logic.

On Tuesday, July 10, 2012 3:22:47 PM UTC-7, Mark Murphy (a Commons Guy) 
wrote:

 On Tue, Jul 10, 2012 at 1:19 PM, Andy Erickson wrote: 
  However, specifying this base URL allows the iframed HTML to load from 
 the 
  AppCache, so it looks like some domain information is being extracted 
 from 
  the URL.  Is there any reason why the iframe element should load from 
 the 
  AppCache while the other elements do not? 

 Because the iframe was downloaded over HTTP(S), and the other 
 elements were not. 

 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 Android Training in NYC: http://marakana.com/training/android/ 


-- 
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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread BoD

Let me just respectfully say that I don't understand the decision.
The API is potentially very dangerous, yes, but that is why it requires 
a permission.


--
BoD

On 07/12/2012 07:24 PM, Mark Murphy wrote:

On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn hack...@android.com wrote:

however every app can read the logs containing only the lines
*they* have written, without needing any permission.

OK, I'll bite: how do you do this? Most of the read-the-logs code that
I have seen uses logcat via Runtime#exec(), and I don't see a
command-line switch on logcat to limit output to just your own
process' lines.

(BTW, count me as one of the fans of this decision, despite the very
loud grumblings I expect you will receive from various quarters)

Thanks!




--
BoD

--
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] Expandible list view search box implementation

2012-07-12 Thread jagadeeshbabu
In my expandible list view how add search box label can any one guide me.

 

Regards

Jagadeesh

-- 
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] What to do on TransactionTooLargeException

2012-07-12 Thread user123


I got in error track of an app TransactionTooLargeException. Not 
reproducible and never had it before. In the docs it says

The Binder transaction failed because it was too large.

During a remote procedure call, the arguments and the return value of the 
call are transferred as Parcel objects stored in the Binder transaction 
buffer. If the arguments or the return value are too large to fit in the 
transaction buffer, then the call will fail and 
TransactionTooLargeException will be thrown.

...

There are two possible outcomes when a remote procedure call throws 
TransactionTooLargeException. Either the client was unable to send its 
request to the service (most likely if the arguments were too large to fit 
in the transaction buffer), or the service was unable to send its response 
back to the client (most likely if the return value was too large to fit in 
the transaction buffer).

...

So, ok, somewhere I'm passing or receiving arguments which exceed some 
unknown limit. But where?

The stacktrace doesn't show anything from my files:

java.lang.RuntimeException: Adding window failed
at android.view.ViewRootImpl.setView(ViewRootImpl.java:548)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:406)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:320)
at 
android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:152)
at android.view.Window$LocalWindowManager.addView(Window.java:557)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2897)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1262)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4977)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.TransactionTooLargeException
at android.os.BinderProxy.transact(Native Method)
at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:569)
at android.view.ViewRootImpl.setView(ViewRootImpl.java:538)
... 16 more
android.os.TransactionTooLargeException
at android.os.BinderProxy.transact(Native Method)
at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:569)
at android.view.ViewRootImpl.setView(ViewRootImpl.java:538)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:406)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:320)
at 
android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:152)
at android.view.Window$LocalWindowManager.addView(Window.java:557)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2897)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1262)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4977)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

It seems to be related with views, because all the Window / View lines? How 
is this related to remote procedure call? How can I look for the reason of 
this error?

In the app I'm using only Webservices, I'm not using Service class, are the 
Webservices the remote procedure calls or what else could be...?

Thanks in advance...

P.S. Maybe it's important: Android version: 4.0.3, Device: HTC One X, using 
support package v4, target API 7

-- 
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] Expandible list view search box implementation

2012-07-12 Thread Justin Anderson
http://lmgtfy.com/?q=android+listview+with+search+tutorial

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 12, 2012 at 11:40 AM, jagadeeshbabu mjagadeeshb...@gmail.comwrote:

  In my expandible list view how add search box label can any one guide me.
 

 ** **

 Regards

 Jagadeesh

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

  1   2   >