Re: [android-developers] Subscribe

2012-08-02 Thread jagruti sangani
in string we directlt write then it will try to find from string.xml but in
that this hardcoded string is not there .So thats y it gives warning.If you
want to remove warning then first write string in string.xml and the  use
that string name here.

On Tue, Jul 31, 2012 at 4:10 AM, chanakyabhara...@yahoo.com wrote:

 **
 Sent from my BlackBerry® smartphone from !DEA
 --
 *From: * Rafael Maas rafaelm...@gmail.com
 *Sender: * android-developers@googlegroups.com
 *Date: *Mon, 30 Jul 2012 17:13:22 -0300
 *To: *android-developers@googlegroups.com
 *ReplyTo: * android-developers@googlegroups.com
 *Subject: *Re: [android-developers] Warning at hello world program

 is good practice to set the strings inside the file string.xml.
 http://developer.android.com/guide/topics/resources/string-resource.html

 2012/7/30 Francisco Marzoa fmmar...@gmail.com

 If you do not care about l10n, you can just ignore it. Also I think you
 can configure lint to not warn on such issues.
 El 29/07/2012 21:39, Edlialbanian edlialban...@gmail.com escribió:

 Hi guys i'm new here and i'm getting a warning i my firt app .
 I get thir error
 [I18N] Hardcoded string Welcome, should use @string resource

 what should i do ??

 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

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




-- 
Regards
jagruti Sangani
*iNextrix Technologies*

-- 
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 load thumbnail images from sdcard in where condition

2012-08-02 Thread hendra uswandy
Hi,
i need help.

i want to load thumbnail image from sdcard as per 9 image
but from each looping there are image that i don't need

this is my code: 

final String[] columns = { MediaStore.Images.Media.DATA, 
MediaStore.Images.Media._ID };
final String orderBy = MediaStore.Images.Media._ID;
Cursor imagecursor = getActivity().managedQuery(
MediaStore.Images.Media.EXTERNAL_CONTENT_URI, columns, 
null, null, orderBy);
   
int image_column_index = 
imagecursor.getColumnIndex(MediaStore.Images.Media._ID);
   
//this.count = imagecursor.getCount();
this.count = 9;
this.thumbnails = new Bitmap[this.count];
this.arrPath = new String[this.count];
this.thumbnailsselection = new boolean[this.count];
   
for (int x = 0; x  this.count; x++) {
imagecursor.moveToPosition(x);
int id = imagecursor.getInt(image_column_index);
int dataColumnIndex = 
imagecursor.getColumnIndex(MediaStore.Images.Media.DATA);
for(int y = 0; y  imgId.length; y++){ 
if(id == imgId[y])
thumbnails[x] = 
MediaStore.Images.Thumbnails.getThumbnail(getActivity().getContentResolver(), 
id, MediaStore.Images.Thumbnails.MICRO_KIND, null);
}

arrPath[x] = imagecursor.getString(dataColumnIndex);
}
   
GridView imagegrid = (GridView) 
myFragmentView.findViewById(R.id.thumbImageGrid);
ImageAdapter imageAdapter = new ImageAdapter();
imagegrid.setAdapter(imageAdapter);
imagecursor.close();


Question :
1. how to use subquery in managedquery function ?
Cursor imagecursor = getActivity().managedQuery(
MediaStore.Images.Media.EXTERNAL_CONTENT_URI, columns, 
null, ( SUBQUERY or not IN ), orderBy);

2. how to loop next 9 image , but 9 image that have looped not process 
again

thanks
sorry for my english


https://lh6.googleusercontent.com/-J1EIr_bsvuM/UBoeL-OIf-I/AFQ/ZUyIrVbyN4M/s1600/ASK2.jpg

-- 
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] activity is invoking twice

2012-08-02 Thread Sadhna Upadhyay
Hi everybody,
 i hva multiple activities whe i click on button for moving secon all
thje activity is starting twice within a second m not able to find out
probllem,
   please anyone can help me.
2- as i told that i have multiple activity when i went from one to
another on every click then one time it automatically start activity and
all activity start one by one backword and forward without clicking, why is
it happening m in trouble pls guys help me if any one have any 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

[android-developers] Re: activity is invoking twice

2012-08-02 Thread imran ali
Hi,
Your question is not clear,
can you post part of code that has been calling another activity.
Hope we can help you, if you will post code or  correct details of problem.

Regards
Imran Ali


On Thursday, August 2, 2012 12:12:52 PM UTC+5:30, Sadhna Upadhyay wrote:

 Hi everybody,
  i hva multiple activities whe i click on button for moving secon all 
 thje activity is starting twice within a second m not able to find out 
 probllem,
please anyone can help me.
 2- as i told that i have multiple activity when i went from one to 
 another on every click then one time it automatically start activity and 
 all activity start one by one backword and forward without clicking, why is 
 it happening m in trouble pls guys help me if any one have any 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

[android-developers] Android ListView Issue

2012-08-02 Thread Rajis
Hi All

I am using listview to store more then 50 item into the listview its 
working but after inserting the 20th item the erros showing in the log cat 
like this.


08-02 12:50:34.646: E/CursorWindow(5245): not growing since there are 
already 16 row(s), max size 1048576
08-02 12:50:34.646: E/Cursor(5245): Failed allocating 69485 bytes for 
text/blob at 24,8
08-02 12:50:34.695: D/Cursor(5245): finish_program_and_get_row_count row 25
08-02 12:50:35.355: D/Cursor(5245): skip_rows row 8
08-02 12:50:35.365: E/CursorWindow(5245): need to grow: mSize = 1048576, 
size = 69485, freeSpace() = 9795, numRows = 16
08-02 12:50:35.365: E/CursorWindow(5245): not growing since there are 
already 16 row(s), max size 1048576
08-02 12:50:35.365: E/Cursor(5245): Failed allocating 69485 bytes for 
text/blob at 23,8
08-02 12:50:35.396: D/Cursor(5245): finish_program_and_get_row_count row 26
08-02 12:50:35.896: D/Cursor(5245): skip_rows row 7
08-02 12:50:35.905: E/CursorWindow(5245): need to grow: mSize = 1048576, 
size = 69485, freeSpace() = 9795, numRows = 16
08-02 12:50:35.905: E/CursorWindow(5245): not growing since there are 
already 16 row(s), max size 1048576
08-02 12:50:35.905: E/Cursor(5245): Failed allocating 69485 bytes for 
text/blob at 22,8
08-02 12:50:35.936: D/Cursor(5245): finish_program_and_get_row_count row 27
08-02 12:50:36.425: D/Cursor(5245): skip_rows row 6
08-02 12:50:36.436: E/CursorWindow(5245): need to grow: mSize = 1048576, 
size = 69485, freeSpace() = 9795, numRows = 16


and also the application is very slow to load. 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

Re: [android-developers] Re: activity is invoking twice

2012-08-02 Thread Sadhna Upadhyay
i mean when i click on button and the second activity will continuously
will invoke two time on a single click.

i hope now clear to you

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

Re: [android-developers] Re: creating a server app on the Android

2012-08-02 Thread gjs
Hi,

This depends on your network provider, some/most? NAT / FIREWALL / BLOCK 
the IP address so you can't connect to the device over the cellular 
network. One of the two provider I use does not nat / firewall / block the 
IP address so I can connect ok. But as others have said you typically do 
this through a secondary server.

Regards

On Thursday, August 2, 2012 11:31:00 AM UTC+10, Kristopher Micinski wrote:

 Yeah, I had taken this from the other direction, but now am 
 uncertain... Since his subject specifies that he's writing a server 
 I'd take it to mean that.. 

 kris 

 On Wed, Aug 1, 2012 at 9:17 PM, Nikolay Elenkov 
 nikolay.elen...@gmail.com wrote: 
  On Thu, Aug 2, 2012 at 10:05 AM, Kristopher Micinski 
  krismicin...@gmail.com wrote: 
  To be completely honest, I thought the OP was going the other way: 
  upstream, not downstream. 
  
  Does tethering also allow server support? 
  
  
  Not sure about this, but 'trying to access a secondary server' sounds 
  to me like 
  he just needs another IP address to access something. The 'main' server 
 can 
  listen on the regular eth/whatever interface. 
  
  -- 
  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: Reason for Dead Trigger lagging on Nexus S

2012-08-02 Thread Eric Wong (hdmp4.com)
Try manually stopping unneeded services/apps.

Is this Nexus S running Android 4.0 or 2.3?

I know my Nexus S here lags a lot running Android 4.0 :(
Not sure if 4.1 will have improvements or not.. still waiting for OTA.

On Thursday, 2 August 2012 14:21:54 UTC+10, Yee Keat Phuah wrote:

 I have recently bought the Dead Trigger game on my phone. Upon factory 
 resetting my phone, if I start playing the game straight away, I will have 
 a very nice lag free experience. However, once I started signing in to my 
 Google Talk, Google Maps, Google Drive, and installed Tasker, the game will 
 start to lag, especially when there are a lot of zombies on the screen.

 While waiting for Nexus 7 to be available here so I can play the game 
 better, I went to investigate what's the main reason for Dead Trigger to 
 lag, I just fired up the game, and just watch the output of adb logcat.

 I noticed that once the game is up and running, the lowmemorykiller kicked 
 into action quite a lot, there's process xxx has died messages all over 
 logcat, followed by Start proc xxx and scheduling restart of service 
 xxx messages:

 I/ActivityManager( 250): Process com.google.android.gsf.login (pid 18553) 
 has died.
 ...
 I/ActivityManager( 250): Start proc com.google.android.gsf.login for 
 service 
 com.google.android.gsf.login/com.google.android.gsf.loginservice.GoogleLoginSer
  
 vice: pid=18790 uid=10012 gids={3003, 1015, 1028, 1007, 2001, 3006}

 I/ActivityManager( 250): Process com.google.android.apps.maps (pid 18716) 
 has died.
 W/ActivityManager( 250): Scheduling restart of crashed service 
 com.google.android.apps.maps/com.google.googlenav.prefetch.android.PrefetcherSe
  
 rvice in 2ms

 This died and Startproc/Restart process repeated throughout a game play.

 What I don't get is that, doesn't this causes the process/service to be 
 killed and restarted, killed and restarted, when I am having a foreground 
 app that needs a lot of memory?? I have digged into the code for 
 ActivityManagerService.java, and it looked like it have no way to tell 
 which process is killed by the lowmemorykiller and which process crashed.

 Other than uninstalling the apps (I definitely need Maps, Talk and 
 Tasker), is there any other way to tell the ActivityManager not to restart 
 any of the services until I am done playing the game?


-- 
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: Reason for Dead Trigger lagging on Nexus S

2012-08-02 Thread Yee Keat Phuah
On Thursday, 2 August 2012 15:32:48 UTC+8, Eric Wong (hdmp4.com) wrote:

 Try manually stopping unneeded services/apps.


If I stop the services from Manage Apps, they will restart straight away.
 

 Is this Nexus S running Android 4.0 or 2.3?


I am on JB 4.1.1.

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

Re: [android-developers] Re: How to set theme using resources from another application?

2012-08-02 Thread Mor G.
Ok, if I forget about using different drawables, and keep my external theme 
to modifying current's theme existing attributes only, will that be 
possible?

I've seen the method Resources.Theme.setTo(other) which has the following 
desc.:
Set this theme to hold the same contents as the theme other. If both of 
these themes are from the same Resources object, they will be identical 
after this function returns. If they are from different Resources, only the 
resources they have in common will be set in this theme.

So this method isn't very useful if the themes are from the same resource, 
so it's used when the themes are from different resources like I'm having, 
but it doesn't seem to do the trick and change a single color value 
(textColorPrimary) I'm setting in the external theme, and after calling the 
setTo method, i'm getting resourceId as 0.

Any pointers on how to properly use Theme.setTo?

Sorry for being annoying... :)


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

Re: [android-developers] Re: How to set theme using resources from another application?

2012-08-02 Thread Mor G.
Ok, if I forget about using different drawables, and keep my external theme 
to modifying current's theme existing attributes only, will that be 
possible?

I've seen the method Resources.Theme.setTo(other) which has the following 
desc.:
Set this theme to hold the same contents as the theme other. If both of 
these themes are from the same Resources object, they will be identical 
after this function returns. If they are from different Resources, only the 
resources they have in common will be set in this theme.

So this method isn't very useful if the themes are from the same resource, 
so it's used when the themes are from different resources like I'm having, 
but it doesn't seem to do the trick and change a single color value 
(textColorPrimary) I'm setting in the external theme, and after calling the 
setTo method, i'm getting resourceId as 0.

Any pointers on how to properly use Theme.setTo?

Sorry for being annoying... :)


-- 
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] APK expansion file uploader problem/question

2012-08-02 Thread hdxpete
Ok. according to the documentation an expansion file can be upto 2 gigs in 
size.

well.. we are creating a game for android that will have a 1.5gig file. 
when the person in charge of our google account uploaded the file to the 
main an upload/network error occurred. the person then uploaded again to 
what they thought was the main and apparently it went into the patch. 
we did a quick review of the panel and there was no option to re-upload 
into the main

so a couple questions.
1) Where can i tell this person to re-upload to main? 
2) if i can't what happens if i an upload fails for the main and for that 
patch?
3) if 2 occurs do i have to make a new APK?

any help is greatly 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] Re: MediaPlayer.setNextMediaPlayer

2012-08-02 Thread w3ida
Is it enough/OK to set the current instance to the (previously) next one 
in an OnCompletionListener?

I guess it's not enough because the currently playing mediaplayer is 
already finished when the onCompletion-method gets called.
In my case it didn't work.

On Tuesday, July 3, 2012 12:38:33 PM UTC+2, Mirko Schenk wrote:

 Hi,

 is there any additional information about how to use setNextMediaPlayer in 
 Jelly Bean?
 I mean, it's fairly easy to start with, just prepare a new MediaPlayer and 
 pass it to setNextMediaPlayer.
 But some time in the future, my app still has the reference to the old 
 MediaPlayer while the new one is playing, or maybe even both instances are 
 playing during some kind of crossfade. So how to pause/continue, stop, etc. 
 reliable? Is it enough/OK to set the current instance to the (previously) 
 next one in an OnCompletionListener?

 Regards
 Mirko


-- 
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] Exporting App - Dalvik Error 1

2012-08-02 Thread Adam
I've been having the toughest time exporting my app ever since upgrading to 
Eclipse Juno and the recent ADT.  I've pretty much narrowed it down to my 
library project which has 4 third party .jar files. From there, I add the 
library project to my app, but cannot export it.  I've tried multiple 
project build path settings and have extensively read this 
question(http://code.google.com/p/android/issues/detail?id=18359), but to 
no avail.  Any thoughts on what the issue might be?  I'm using ProGuard 
4.8.  Any thoughts?

-- 
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] Speech Recognition Listener does not detect end of speech in Jelly Bean

2012-08-02 Thread abo
I wrote an app implementing my own RecognitionListener and it was running 
fine under 2.3.6 up to ICS on my Nexus S.
After the update to Jelly Bean, the RecognitionListener doesn't detect the 
end of speech anymore (so, once started the method onRmsChanged  is 
called until the app is terminated).
If I start the recognition and do not speak, the onError method with No 
match error is never reached as it did before. 
Apart from that, starting the listener produces a sound which was not there 
before.
 
mSTT = SpeechRecognizer.*createSpeechRecognizer*(context);

mSTT.setRecognitionListener(*this*);intent = *new* Intent(RecognizerIntent.*
ACTION_RECOGNIZE_SPEECH*);

intent.putExtra(RecognizerIntent.*EXTRA_CALLING_PACKAGE*, 
getClass()..getPackage().getName());

intent.putExtra(RecognizerIntent.*EXTRA_LANGUAGE_MODEL*,RecognizerIntent.LA*
NGUAGE_MODEL_FREE_FORM*);

intent.putExtra(RecognizerIntent.*EXTRA_MAX_RESULTS*, 2);

intent.putExtra(RecognizerIntent.*EXTRA_LANGUAGE*, prefLang);

mSTT.startListening(intent);
 
I do not explicetly set the minimum time as described in the documentation 
nor do I call stopListening because that was not necessary before.
 
Any idea what was changed in Jelly Bean or what needs to be changed when 
programming a recognition listener?
And how to get rid of the sound when starting listening (or can anyone tell 
me if there are also some new sounds when end of speech or an error is 
detected)?
 
 
 

-- 
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] Including jar resources in APK

2012-08-02 Thread Michael Bolin
If I am depending on a third-party jar, such as libphonenumber.jar 
(http://code.google.com/p/libphonenumber/), I need to include both its 
.class files and its resources in the APK. (The jar contains a directory of 
data files in com/google/i18n/phonenumbers/data that are loaded in code via 
Class.getResourceAsStream().) The .class files appear to end up in 
classes.dex, but the resources end up in a separate top-level directory in 
the APK.

This seems to happen automatically when I build my APK using Ant, but I'm 
trying to reproduce the build process from the command line and I'm not 
seeing where this happens (I'm running ant with -v to try to figure it out).

Where is the step that identifies these third-party resources and pulls 
them out?

Thanks,
Michael

-- 
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 onRecieve isn't executing.

2012-08-02 Thread lethjakman
I have a AlarmManager that should perform a setRepeating, but it isn't 
executing the code inside my app's onRecieve. I can't figure out why for 
the life of me. Any suggestions? Thank you so much in advance! 

Set up the AlarmManager: 

public class MainActivity extends Activity {

 @Override

 public void onCreate(Bundle savedInstanceState) {

 super.onCreate(savedInstanceState);

 setContentView(R.layout.activity_main);

 

 Log.d(Restart, First);

 Intent toRun = new Intent(com.appName.restart.AlarmRestart);

 PendingIntent pendingToRun = PendingIntent.getBroadcast(this, 0, 
 toRun, 0);

 AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);

 am.cancel(pendingToRun); 

 am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, 1L, 
 1L, pendingToRun);


 Log.d(Restart, Second); 

 }

The BroadcastReciever

public class AlarmRestart extends BroadcastReceiver {

 @Override

 public void onReceive(Context context, Intent intent) {

 Log.d(Restart, Third);

 }

adb shell dumpsys alarm:

  com.appName.restart

75ms running, 17 wakeups

17 alarms: act=com.apppName.restart.AlarmRestart flg=0x4

 

-- 
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 SDK Manager stops downloading packages

2012-08-02 Thread cmsgun
 I have Windows XP Pro, SP3 since yesterday I have been trying to Install 
Android 4.1 Platform ( not all just one Platform) while downloading it's 
stop 

I have try so many times now I'm fed up with install Android platform look 
like no resume download support at all with SDK manager. There is no issue 
with my INTERNET connection

It's given this issue 

downloaded finished with wrong size .Expected 68787988.bytes,Got 7222 bytes 
Done.Nothing was installed 

but when I unchecked force https://.. option It's give below issue 

SSL peer shut down incorrectly Done. Nothing was installed.

plz 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] Re: Failed to allocate memory: 8 even with 512 MB of RAM

2012-08-02 Thread SimonC
+1
I cannot start the WXGA800 and WXGA720 AVD. 
The same message 'Failed to allocate memory: 8' is shown when starting 
the AVD.

Martí Bosch於 2012年7月3日星期二UTC+8下午7時11分47秒寫道:

 Hi,
 I'm just learning to use Eclipse, and when I try the simple Hello World 
 App, I see I can't run my app, even the AVD I created has a RAM size of 512 
 MB.
 What can I do?
 I'm using the last API level (16)
 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] Share keystore file

2012-08-02 Thread hullaballoo
Hi,

My client asks for my keystore file to let an other developer to sign the 
new version of the .apk I developed previously.

Should I do that? Is there a way to develop an Android application further 
without having the original keystore file? I read in the Android 
documentation that if one signs the app with a new keystore file then the 
app could not be updated on the users' phones but have to be reinstalled 
(as if being a totally new app).
What is the Google's statement about it? How can an other developer can 
continue developing an existing app without having the original keystore 
file?

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] Source not found, but I've given a source?

2012-08-02 Thread Therion
 Hello, this is my first time posting, but I've run into a massive wall in 
my progress.

A quick background, I started developing an app for the Android about 3-4 
months ago, off and on. It is a project I received from my college teacher 
for a sort of internship. 
I have to take a peice of text, inputted by the user, attach it to the a 
url address, and then access the website, retrieve the xml, parse it, and 
then display 3 peices of the code in separate textviews.
Currently, I've separated the text input screen from the screen which 
displays the parsed data sections.

However, I'm currently completely stuck trying to access the website and 
retrieve the xml. 
The debug simply says Source not found. and gives me an option to Edit 
Source Lookup Path. However, I've got the program already directed to the 
Source location.
Currently, this is my code for attempting to access the website :

public class Price_PageActivity extends Activity { 

 public void onCreate(Bundle savedInstanceState) { 
 super.onCreate(savedInstanceState);
 setContentView(R.layout.price_page);

 HttpURLConnection con = null;
 URL url1;
 InputStream is=null;
 Intent intent = getIntent(); 
 String urlextra = intent.getStringExtra(android.grabber.string); 
 try {
 url1 = new URL((http://www.reuters.com/finance/stocks/overview?symbol=; + 
 urlextra ));
 con = (HttpURLConnection) url1.openConnection();
 // con.setReadTimeout(1 /* milliseconds */);
 // con.setConnectTimeout(15000 /* milliseconds */);
 con.setRequestMethod(GET);
 con.setDoInput(true);
 con.connect();
 is = con.getInputStream();



 BufferedReader rd = new BufferedReader(new InputStreamReader(is), 4096);
 String line;
 StringBuilder sb = new StringBuilder();
 while ((line = rd.readLine()) != null) {
 sb.append(line);
 }
 rd.close();
 String streamcontent = sb.toString();
 TextView Text = (TextView) findViewById(R.id.TextView02);
 Text.setText(streamcontent);
 } catch (IOException e) {
 //handle the exception !
 e.printStackTrace(); }



If any more information is required, I will try my best to provide it.
Any help I can gather with this problem would be greatly appreciated, as 
I've been stuck on this for a disappointingly long time now...

-- 
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] Don't require rear facing camera?

2012-08-02 Thread AnDev Quer
 First off, hi everyone.
 
I didn't see this asked and I couldn't figure out how to word it to find it 
on the android dev site so I figured I'd ask you all.
 
Basically, my company has an application right now that requires for a very 
specific function the rear-facing camera. This function isn't absolutely 
necessary. Now that more Android tablets are coming out without rear-facing 
cameras, our users aren't able to download the app onto their new devices.
 
My question is, is there a way to somehow allow the user to download the 
app and maybe we could programmatically disable the function that needs the 
camera? 
 
We're using the basic camera permission in our Android manifest: 
android.permission.CAMERA. And we're running Android 2.2 (we won't be able 
to upgrade this any time soon).
 
Any and all help is appreciated, thank you.

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

Re: [android-developers] Re: creating a server app on the Android

2012-08-02 Thread Joel Wirāmu Pauling
Install a debian Chroot, and use apt-get install.

So long as you don't need a Native UI, then you have the entire debian
ARM repository available to you.

I've run AXIS/MAVEN on my handsets for SOAP interactive applications.
Works fine.

Yeah... battery life - not really in scope ;-)

On 2 August 2012 13:31, Kristopher Micinski krismicin...@gmail.com wrote:
 Yeah, I had taken this from the other direction, but now am
 uncertain... Since his subject specifies that he's writing a server
 I'd take it to mean that..

 kris

 On Wed, Aug 1, 2012 at 9:17 PM, Nikolay Elenkov
 nikolay.elen...@gmail.com wrote:
 On Thu, Aug 2, 2012 at 10:05 AM, Kristopher Micinski
 krismicin...@gmail.com wrote:
 To be completely honest, I thought the OP was going the other way:
 upstream, not downstream.

 Does tethering also allow server support?


 Not sure about this, but 'trying to access a secondary server' sounds
 to me like
 he just needs another IP address to access something. The 'main' server can
 listen on the regular eth/whatever interface.

 --
 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] Re: Android-voice chat

2012-08-02 Thread Ankit Singh


Hello ,
I am also looking for video chat in android but not getting any 
help from anywhere. If can guide me, it would be very grateful to me . 
Please help me . Thanks in advance

Email : akki3...@gmail.com





On Thursday, 10 March 2011 17:33:18 UTC+5:30, Robin Talwar wrote:

 Ya sure... just wait i will provide you the complete source code 

 On Thu, Mar 10, 2011 at 5:30 PM, Jayanthi jaia...@gmail.com wrote:

 Fine, Do google provide any Library for video conference

 On Mar 10, 4:18 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
  Yes i am sure it must be by some way or other
 
  On Thu, Mar 10, 2011 at 2:40 PM, Jayanthi jaia...@gmail.com wrote:
   Hi,
  can anyine tell me  Whether voice chat and video conference is
   possible in 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
 
 

 --
 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] Including resources from third-party jars

2012-08-02 Thread Michael Bolin
Assuming I have a jar such as libphonenumber (
http://code.google.com/p/libphonenumber/) that contains both compiled class 
files and resources files (such 
as com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_US) that are 
loaded via .class.getResourceAsStream(), what is the best way to ensure 
that the resources end up in the right spot in the APK? Looking at `ant 
-v`, it appears that apkbuilder is called (presumably with the -rj or -rf 
options), though that tool claims to be deprecated. Assuming that is being 
used now to address the issue I describe, what's the appropriate thing to 
use instead?

-- 
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] Locking autoexposure in android app (ICS)

2012-08-02 Thread CGKS


Would like to know how to properly lock(disable) the auto-exposure in the 
camera app I'm messing around with.
I'm testing with my Samsung Galaxy S3, and the native camera app allows for 
focus as well as exposure to be locked by keeping the shutter button 
pressed down. Releasing takes the picture. ICS APIs provide the exposure 
locking functionality. However, when I call isAutoExposureLockSupported() 
in my code it returns false. And any call to setAutoExposureLock(true) does 
nothing.
Any help 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] Latitude/Longitude values way out of range and including strange characters

2012-08-02 Thread caseycrites
I have an app that's using location and every once in awhile, I get some 
very interesting looking results from my locations. I've had the following 
locations reported from the following phones with their os version in 
parentheses:

ZTE-SKATE (2.3.5) - latitude: 3.7550926208496094E-5 longitude: 
6911.95708466
U8650 (2.3.6) - latitude: 3.7550926208496094E-5 longitude: 
5617.919917702675
Blade S (2.3.5) - latitude: 3.7550926208496094E-5 longitude: 
6739.295099973679
LG-VM696 (2.3.7) - latitude: 3.7550926208496094E-5 longitude: 
4231.10448837
Boston (2.3.7) - latitude: -127.96870707 longitude: 145.15598059
T-Mobile Vivacity (2.3.5) - latitude: 51.5759365 longitude: -0.013730* 
and another with a paren latitude: 51.5726355 longitude: -0.012)

The first thing I notice is these are all running 2.3.X, but not sure if 
that's just coincidence. Also, as of recently, all devices except for one 
of the T-Mobile Vivacity's has also sent at least one valid location.

Has anyone seen this before? Is this a known issue? Is there a workaround 
or should I just ignore these values and move on?

Thanks for any 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

[android-developers] Re: Car Emulator with NFC, is possible?

2012-08-02 Thread Mickaël Boixiere
Hi Cristina,

In fact, you can't use NFC Card Emulation mode, because API of Secure 
Element in Android are locked, and access of Secure Element (SmartMX) is 
locked by Keys owns Google (Wallet) and Samsung for RFU.

But SmartMX emulate a Mifare 1K ! You can try to access of Mifare memory 
area, , i think access Key AB are set up per default (00...), but you 
can't make an interactivity between android application and mifare 
transaction ...
that require to use a Wired mode (Host get data in SmartMX), and it's too 
locked...

if your university are a good relationships with NXP or Samsung, you can 
may be ask for change our chip in your phone (PN65+) per a generic 
keys development version, next, you must download android source on mac osx 
or ubuntu, and you must include patch NXP Secure Element access (XDA forum) 
and SeekForAndroid (google group) functions and build a new ROM for your 
phone 

all this is very very difficult  have a good luck

-- 
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] Exit from app

2012-08-02 Thread srikanth
yeah it's good for me...
tanks

On Thursday, August 2, 2012 11:18:47 AM UTC+5:30, Bharath Smitha wrote:



 On Thu, Aug 2, 2012 at 10:42 AM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 ...

   -- You cannot exit the app gracefully.  This is an antipattern.
   -- You cannot catch the homekey.  This is an antipattern.

 ...

 On Thu, Aug 2, 2012 at 12:46 AM, Sadhna Upadhyay
 sadhna.braah...@gmail.com wrote:
  Hi everyone,
  can any one tell me how to exit from app when someone click on home 
 key
  of android device,
 
  --
  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


 u can do it by using this below code but  again if u launch the app it 
 starts with same activity.so u can call finish() with this.

 Intent intent = new Intent(Intent.ACTION_MAIN);
  intent.addCategory(Intent.CATEGORY_HOME);
  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  startActivity(intent);

 reply me if it was helpful to 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] Re: CLEAR_TOP + start new activity. Hierarchy issue

2012-08-02 Thread Dmitriy F
Anyone? I've even drawn an example scheme. Profile activity might not be 
instantiated so simple clearing the isn't going to work.

https://lh4.googleusercontent.com/-ptGPTPpWitY/UBo-G2_6JtI/ABk/2i6F8IwQ6T8/s1600/2012-08-02+12.40.13.jpg


On Sunday, July 29, 2012 11:43:07 PM UTC+4, Dmitriy F wrote:

 I have a hierarchy consisting of 4 levels of depth. My profile has 2nd 
 level of hieararchy that means that pressing back while being in profile 
 must always return user to the 1st hierarchy level.

 My problem is that link to the profile is available on all levels; so, for 
 instance, if a user being on the 4th level clicks on the profile link his 
 hierarchy position must be changed to the 2nd level - NOT to the 5th.

 I suppose there must be an essential way of doing it. So far I've come up 
 with combination of CLEAR_TOP to the 1st level + 
 if(extra){startActivity(Profile)} but in this way the 1st level activity 
 will get recreated - right ? and that's why I want you to suggest something 
 better.


-- 
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] Media file converter (mp3 to aac)

2012-08-02 Thread fahad mullaji
Hi Guys,

I know this topic is not related to android.
But thought you guys could share if you know code/link to convert file
formats of media files.
Lets say i want to convert .mp3 file into .aac format through my app then
how do i do it? (third party APIs will work too)

Thanks in advance...

-- 
Regards
Fahad Mullaji

-- 
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] Creating Tab Control in android

2012-08-02 Thread fahad mullaji
*Nirvan*,

This link might help you.
http://www.androidhive.info/2011/08/android-tab-layout-tutorial/

*Thanks*
Fahad Mullaji

On Tue, Jul 31, 2012 at 6:28 PM, |-NK-| niravnkulka...@gmail.com wrote:


 On Monday, July 30, 2012 2:52:43 PM UTC+5:30, fahad mullaji wrote:

 *Nirvan*,

 Call function in which create new reference of tab-host. Try to position
 it by assigning it properties.
 Have not tried by myself but this should work according to me.
 But again assigning layouts for different tabs will be bit tricky.You
 need to dig this topic.
 Good Luck

 *Thanks*
 Fahad Mullaji

 On Mon, Jul 30, 2012 at 12:37 PM, |-NK-| niravnkulka...@gmail.comwrote:

 Hi
 I am developing an application in android, where I need to create a
 Tab control containing variable no of tabs.

 I need to know how to create tab control dynamically.

 I have seen some examples where they have used tabhost as root element
 in an xml layout file.
 I need to have some controls such as buttons and textviews on screen
 and below these controls I need a tab control.

 I am confused as I have seen different examples.

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




 --
 Regards
 Fahad Mullaji

 HI,

 I was able to create Tab control dynamically. However I dont know how to
 create it through xml file.

 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




-- 
Regards
Fahad Mullaji

-- 
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] Need to Help android phonegap

2012-08-02 Thread chumki ghosh
Hello All,

I want to make a sample application on phone-gap android.I want to use
accelerometer. Now i able to get values of X,Y,Z axis. But i want to
implement like light sensor on it.Like when user recieve any call and bring
the device front of ear den light gone ON and when device lies flat  then
light gone OFF.
 It means when when device lies flat x axis value is positive. Can anyone
please help me how to implement light sensor on it.

Thanks in Advance!!1

-- 
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: activity is invoking twice

2012-08-02 Thread bharadwaj
On Thu, Aug 2, 2012 at 12:50 PM, Sadhna Upadhyay
sadhna.braah...@gmail.comwrote:

 i mean when i click on button and the second activity will continuously
 will invoke two time on a single click.

 i hope now clear to you

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


if u can post the code in button click i can help you..

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

Re: [android-developers] AN ANDROID APPLICATION TO CONVERT HANDWRITTEN SHORTHANDS TO PRINTED DOCUMENT

2012-08-02 Thread fahad mullaji
*NIJO*,

You need to explore GestureOverlayView android control Or you can make your
custom control which could detect your language.Check below link
http://www.vogella.com/articles/AndroidGestures/article.html

*Thanks*
Fahad Mullaji


On Wed, Aug 1, 2012 at 10:39 AM, NIJO nijo...@gmail.com wrote:

 Hi Friends,

 I'm planning to develop an android application to convert handwritten
 shorthands to document(PDF), Somebody please guide me on this project, as
 i'm a beginner in android development.
 I have attached the documents and requirement specification of the project
 , kindly help me out on this project..

 Regards

 NIJO GEORGE P

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




-- 
Regards
Fahad Mullaji

-- 
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: AN ANDROID APPLICATION TO CONVERT HANDWRITTEN SHORTHANDS TO PRINTED DOCUMENT

2012-08-02 Thread Dmitriy F
It's already implemented as a part of soft-keyboard functionality, at least 
in Android 4.0. I'm not aware of the exact source codes but you can always 
search their code repository for soft-keyboard related topics. 
http://code.google.com/p/android-x86/

On Wednesday, August 1, 2012 9:09:53 AM UTC+4, NIJO wrote:

 Hi Friends,

 I'm planning to develop an android application to convert handwritten 
 shorthands to document(PDF), Somebody please guide me on this project, as 
 i'm a beginner in android development.
 I have attached the documents and requirement specification of the project 
 , kindly help me out on this project..

 Regards

 NIJO GEORGE P



-- 
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] Failed to allocate memory: 8 even with 512 MB of RAM

2012-08-02 Thread fahad mullaji
*Marti*,

How are you running your app?
Click on AVD icon,you will see list of emulators that you have created.
Select emulator which is configured with API 16.
Once the emulator is fully started.Right click on package explorer.
Select Run as - Android Application.Select the emulator if it is asking.
This is how i run my apps.Directly running apps was creating problems for
me.

*Thanks*
Fahad Mullaji

On Tue, Jul 3, 2012 at 4:41 PM, Martí Bosch marti.bosch.1...@gmail.comwrote:

 Hi,
 I'm just learning to use Eclipse, and when I try the simple Hello World
 App, I see I can't run my app, even the AVD I created has a RAM size of 512
 MB.
 What can I do?
 I'm using the last API level (16)
 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




-- 
Regards
Fahad Mullaji

-- 
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] Need to Help android phonegap

2012-08-02 Thread fahad mullaji
*Chumki*,

http://www.vogella.com/articles/AndroidSensor/article.html

Check this code might help you.Instead of doing actions on compass you
switch off and on your phone light.

*Thanks*
Fahad Mullaji

On Thu, Aug 2, 2012 at 2:46 PM, chumki ghosh ghoshanindi...@gmail.comwrote:

 Hello All,

 I want to make a sample application on phone-gap android.I want to use
 accelerometer. Now i able to get values of X,Y,Z axis. But i want to
 implement like light sensor on it.Like when user recieve any call and bring
 the device front of ear den light gone ON and when device lies flat  then
 light gone OFF.
  It means when when device lies flat x axis value is positive. Can anyone
 please help me how to implement light sensor on it.

 Thanks in Advance!!1

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




-- 
Regards
Fahad Mullaji

-- 
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] Don't require rear facing camera?

2012-08-02 Thread Mark Murphy
On Wed, Aug 1, 2012 at 9:09 AM, AnDev Quer bankp...@gmail.com wrote:
 My question is, is there a way to somehow allow the user to download the app
 and maybe we could programmatically disable the function that needs the
 camera?

 We're using the basic camera permission in our Android manifest:
 android.permission.CAMERA. And we're running Android 2.2 (we won't be able
 to upgrade this any time soon).

Step #1: Add uses-feature android:name=android.hardware.camera
android:required=false / to your manifest.

Step #2: In your code, iterate over the available cameras (via
getNumberOfCameras() and getCameraInfo()) and see if any are
rear-facing. If the answer is no, disable whatever features of yours
depend upon such a camera.

However, in theory, uses-feature
android:name=android.hardware.camera android:required=true / will
give you a rear-facing camera, though, at least according to this blog
post:

http://android-developers.blogspot.com/2012/07/getting-your-app-ready-for-jelly-bean.html

IOW, in theory, your current app should be just fine and will not be
installed on devices with only a front-facing camera (e.g., Nexus 7).

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

Android Training in DC: 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] Share keystore file

2012-08-02 Thread Mark Murphy
On Wed, Aug 1, 2012 at 1:49 AM, hullaballoo daniel.schw...@gmail.com wrote:
 My client asks for my keystore file to let an other developer to sign the
 new version of the .apk I developed previously.

 Should I do that?

That is a question for an attorney.

 Is there a way to develop an Android application further
 without having the original keystore file?

Develop, yes. Distribute, no.

 I read in the Android
 documentation that if one signs the app with a new keystore file then the
 app could not be updated on the users' phones but have to be reinstalled (as
 if being a totally new app).

Correct.

 How can an other developer can
 continue developing an existing app without having the original keystore
 file?

They can't. The firm who owns the APK file needs to own the production
keystore used to sign the APK file. IOW:

- A consultant should use individual production keystores per client,
or perhaps even per app
- An employee should not use a personal production keystore (e.g., for
apps the employee writes in spare time) for a company app

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

Android Training in DC: 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


[android-developers] android.intent.action.HEADSET_PLUG Permission

2012-08-02 Thread Incorporate Apps
As of JB 4.1 Google has introduced some sort of permission check on this 
broadcastreceiver. Does anyone know what permission is needed, either in  

sendOrderedBroadcast or in the manifest?


Here is the error

java.lang.SecurityException: Permission Denial: not allowed to send broadcast 
android.intent.action.HEADSET_PLUG

-- 
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] I can't make GLES 2.0 working in the emulator - need a hint from the insiders

2012-08-02 Thread goodG
I try literally everything, i have tried:

   - installing mesa GLES libraries
   - GLES libraries in a .conf file in */etc/ld.so.conf.d/* ( the new 
   method that replaces the old LD_* environment variables )
   - updating and downgrading my *fglrx* drivers
   - using the GLES2 libraries from AMD ATI
   - using the flag *-gpu on*, with and without
   - old and new images of Android gingerbread, ics and jb
   - 32 bit and 64 emulator
   
I don't know how to get this GLES 2 context working in an emulator, i'm 
really out of options.

I have an ATI 5770 with the latest 12.6 catalyst drivers installed on a 
copy of Ubuntu 12.04 64 bit.

At this point i can't imagine what is wrong with my setup, i really need a 
good idea.

All i can say is that the most common error that i get from the logcat is 
the lack of an *EGL context*.

Thanks.

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

Re: [android-developers] android.intent.action.HEADSET_PLUG Permission

2012-08-02 Thread Mark Murphy
On Thu, Aug 2, 2012 at 9:00 AM, Incorporate Apps
georgi.tanma...@googlemail.com wrote:
 As of JB 4.1 Google has introduced some sort of permission check on this
 broadcastreceiver. Does anyone know what permission is needed, either in
 sendOrderedBroadcast or in the manifest?

 Here is the error

 java.lang.SecurityException: Permission Denial: not allowed to send
 broadcast android.intent.action.HEADSET_PLUG

Can you show more of the stack trace?

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

Android Training in DC: 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


[android-developers] Re: I can't make GLES 2.0 working in the emulator - need a hint from the insiders

2012-08-02 Thread RichardC
Are you using one of the emulators provided in the SDK or are your making 
your own?

On Thursday, August 2, 2012 2:15:01 PM UTC+1, goodG wrote:

 I try literally everything, i have tried:

- installing mesa GLES libraries
- GLES libraries in a .conf file in */etc/ld.so.conf.d/* ( the new 
method that replaces the old LD_* environment variables )
- updating and downgrading my *fglrx* drivers
- using the GLES2 libraries from AMD ATI
- using the flag *-gpu on*, with and without
- old and new images of Android gingerbread, ics and jb
- 32 bit and 64 emulator

 I don't know how to get this GLES 2 context working in an emulator, i'm 
 really out of options.

 I have an ATI 5770 with the latest 12.6 catalyst drivers installed on a 
 copy of Ubuntu 12.04 64 bit.

 At this point i can't imagine what is wrong with my setup, i really need a 
 good idea.

 All i can say is that the most common error that i get from the logcat is 
 the lack of an *EGL context*.

 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: I can't make GLES 2.0 working in the emulator - need a hint from the insiders

2012-08-02 Thread goodG
The only thing that i have builded from the source is the 64 bit version of 
the emulator with its own libraries:

lib64EGL_translator.so
lib64GLES_CM_translator.so
lib64GLES_V2_translator.so
lib64OpenglRender.so

all the other pieces are from official sources like the official repository 
from the Android SDK.

Il giorno giovedì 2 agosto 2012 15:24:23 UTC+2, RichardC ha scritto:

 Are you using one of the emulators provided in the SDK or are your making 
 your own?

 On Thursday, August 2, 2012 2:15:01 PM UTC+1, goodG wrote:

 I try literally everything, i have tried:

- installing mesa GLES libraries
- GLES libraries in a .conf file in */etc/ld.so.conf.d/* ( the new 
method that replaces the old LD_* environment variables )
- updating and downgrading my *fglrx* drivers
- using the GLES2 libraries from AMD ATI
- using the flag *-gpu on*, with and without
- old and new images of Android gingerbread, ics and jb
- 32 bit and 64 emulator

 I don't know how to get this GLES 2 context working in an emulator, i'm 
 really out of options.

 I have an ATI 5770 with the latest 12.6 catalyst drivers installed on a 
 copy of Ubuntu 12.04 64 bit.

 At this point i can't imagine what is wrong with my setup, i really need 
 a good idea.

 All i can say is that the most common error that i get from the logcat is 
 the lack of an *EGL context*.

 Thanks.



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

Re: [android-developers] Source not found, but I've given a source?

2012-08-02 Thread Justin Anderson
This is because you are stepping into Java or Android code and you don't
have the source for that... Set a breakpoint back in your code and resume
debugging
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Aug 2, 2012 at 12:40 AM, Therion benpass...@gmail.com wrote:

 Hello, this is my first time posting, but I've run into a massive wall in
 my progress.

 A quick background, I started developing an app for the Android about 3-4
 months ago, off and on. It is a project I received from my college teacher
 for a sort of internship.
 I have to take a peice of text, inputted by the user, attach it to the a
 url address, and then access the website, retrieve the xml, parse it, and
 then display 3 peices of the code in separate textviews.
 Currently, I've separated the text input screen from the screen which
 displays the parsed data sections.

 However, I'm currently completely stuck trying to access the website and
 retrieve the xml.
 The debug simply says Source not found. and gives me an option to Edit
 Source Lookup Path. However, I've got the program already directed to the
 Source location.
 Currently, this is my code for attempting to access the website :

 public class Price_PageActivity extends Activity {

 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.price_page);

 HttpURLConnection con = null;
 URL url1;
 InputStream is=null;
 Intent intent = getIntent();
 String urlextra = intent.getStringExtra(android.grabber.string);
 try {
 url1 = new URL((http://www.reuters.com/finance/stocks/overview?symbol=;
 + urlextra ));
 con = (HttpURLConnection) url1.openConnection();
 // con.setReadTimeout(1 /* milliseconds */);
 // con.setConnectTimeout(15000 /* milliseconds */);
 con.setRequestMethod(GET);
 con.setDoInput(true);
 con.connect();
 is = con.getInputStream();



 BufferedReader rd = new BufferedReader(new InputStreamReader(is), 4096);
 String line;
 StringBuilder sb = new StringBuilder();
 while ((line = rd.readLine()) != null) {
 sb.append(line);
 }
 rd.close();
 String streamcontent = sb.toString();
 TextView Text = (TextView) findViewById(R.id.TextView02);
 Text.setText(streamcontent);
 } catch (IOException e) {
 //handle the exception !
 e.printStackTrace(); }



 If any more information is required, I will try my best to provide it.
 Any help I can gather with this problem would be greatly appreciated, as
 I've been stuck on this for a disappointingly long time now...

  --
 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 2.2 or 4.1??

2012-08-02 Thread Eric oboite
When creating my new app should I build against 2.2 or 4.1? I know 2.2 has 
83% of the market right now but can I build against 4.1 and make the min 
sdk android 2.0?

-- 
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: I can't make GLES 2.0 working in the emulator - need a hint from the insiders

2012-08-02 Thread RichardC
If you have built your own emulator then the best place to ask is in one of 
the platform groups:
http://source.android.com/community/index.html 

Android Developers is for  *developing Android applications using the 
Android SDK* 

On Thursday, August 2, 2012 2:29:53 PM UTC+1, goodG wrote:

 The only thing that i have builded from the source is the 64 bit version 
 of the emulator with its own libraries:

 lib64EGL_translator.so
 lib64GLES_CM_translator.so
 lib64GLES_V2_translator.so
 lib64OpenglRender.so

 all the other pieces are from official sources like the official 
 repository from the Android SDK.

 Il giorno giovedì 2 agosto 2012 15:24:23 UTC+2, RichardC ha scritto:

 Are you using one of the emulators provided in the SDK or are your making 
 your own?

 On Thursday, August 2, 2012 2:15:01 PM UTC+1, goodG wrote:

 I try literally everything, i have tried:

- installing mesa GLES libraries
- GLES libraries in a .conf file in */etc/ld.so.conf.d/* ( the new 
method that replaces the old LD_* environment variables )
- updating and downgrading my *fglrx* drivers
- using the GLES2 libraries from AMD ATI
- using the flag *-gpu on*, with and without
- old and new images of Android gingerbread, ics and jb
- 32 bit and 64 emulator

 I don't know how to get this GLES 2 context working in an emulator, i'm 
 really out of options.

 I have an ATI 5770 with the latest 12.6 catalyst drivers installed on a 
 copy of Ubuntu 12.04 64 bit.

 At this point i can't imagine what is wrong with my setup, i really need 
 a good idea.

 All i can say is that the most common error that i get from the logcat 
 is the lack of an *EGL context*.

 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: Simple touch method implementation!

2012-08-02 Thread Diky Hadna
Hi Talha!

You can check it out at
http://mobile.tutsplus.com/tutorials/android/android-gesture/

On Wednesday, August 1, 2012, Talha Qamar wrote:

 Hi i am actually newbie to android development.I want to make a simple
 application based on the users touch gesture.If user(touch) point towards
 right then a new activity is started and on next/new activity when user
 point towards left then he will get back to his main activity.I know the
 intent method and its implementation just simply tell me the name of touch
 method which might be used for above application.If you have any sample
 application or any important link.Please do share with me.Thanks.

 Regards,
 Talha Qamar.



-- 
Regards,

Diky

follow me @dikyhadna
http://dikiboy.com

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

2012-08-02 Thread András Petrik
Hi,

I need help. I have Nonin 9560Bt, and i tried to run the project on a 
Android 4.0.4 device. I's not working. So, could you tell me what 
modifications did yout make to run the sample project?

On Friday, 20 January 2012 17:00:10 UTC+1, Raul Ruiz wrote:

 Hi all, 

 I have Nonin working with HDP, if someone need help tell me. 



 On 14 ene, 13:07, jfernandez jorge.fernandez.gonza...@gmail.com 
 wrote: 
  Hi Fernando, 
  
  I have introduced a change in the implementation of the 
  BluetoothHealthCallback mHealthCallback. Exactly, in its method 
  onHealthChannelStateChange(...). I detected that the state machine 
  during the stablishment of a new HDP connection is: Disconnected- 
  Connecting-Connected. However, you can see that the example is 
  checking the case Disconnected-Connected, but not the case Connecting- 
  Connected. I added this new case Connecting-Connected, and now it 
  works and I'm able to read/write data from/to UA-767PBT-C and a board 
  that emulates several biomedical devices. 
  
  I hope it help you. 
  
  Regards. 
  
  On 14 ene, 12:35, Fernando Almeida reala...@gmail.com wrote: 
  
  
  
  
  
  
  
   Hi jfernandez... i upgrade my android version to 4.03 and still can't 
   connect... 
  
   Could you please show me the changes that you made? 
  
   Thank you 
  
   On 13 Jan, 10:57, jfernandez jorge.fernandez.gonza...@gmail.com 
   wrote: 
  
Hi again, 
  
Well, after upgrading my Android 4.0 to 4.03, and adding some 
 changes 
to the BluetoothHDPsample, I'm able to connect to the biomedical 
device, as well as I'm able to read/write data from/to theHDP 
channel. So, it seems the problem has been fixed in this new Android 
version. 
  
Regards. 
  
On 15 dic 2011, 18:30, jfernandez 
 jorge.fernandez.gonza...@gmail.com 
wrote: 
  
 Hi all, 
  
 I'm executing theBluetoothHDPDemo [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 is unable to 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 
 theBluetoothHealth 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

[android-developers] Re: Backup and Restore service not working

2012-08-02 Thread Daniel Baran
Any issues? I have the same Problem :(

On Tuesday, March 1, 2011 12:24:56 PM UTC+1, Raj wrote:

 Hi Again, 

 I am still trying to get the solution. 

 I changed the transport through $adb shell bmgr transport to google 
 backup transport. 

 When I do back up of my data on google server $adb shell bmgr run, 
 it throws error: 

 === 
 W/BackupTransportService(  241): Not ready for backup request right 
 now: [OperationScheduler: enabledState=false 
 moratoriumSet=2011-03-01/10:47:06 moratorium=1970-01-01/05:30:00 
 trigger=1970-01-01/05:30:00] 
 E/PerformBackupThread(  241): Transport error in initializeDevice() 
 W/PerformBackupThread(  241): Backup pass unsuccessful, restaging 
 === 

 What does the error mean ? 

 FYI - It works fine when I change the transport to local, but I don't 
 want to store my data locally. 

 Please help !!! 


 On Feb 24, 8:26 pm, Raj raaju.pra...@gmail.com wrote: 
  Hi, 
  
  Some more findings which suggest the default backup and restore 
  service does not work as expected or atleast for me !!! 
  
  My requirement is to store my application data on google cloud server. 
  After doing a backup when I uninstall the app, delete the DB, restart 
  the phone and try to do a restore operation after installing the app, 
  it fails. It never works :( 
  
  As I have already mentioned I have enabled the bmgr service. 
  Registered for BR service as well as placed the generated key in 
  manifest file. 
  
  Seems the data is getting stored in some temp file that gets deleted 
  on restart/reboot/reset and never sent to the server. 
  
  Is it a known issue or I am doing something wrong? 
  
  Anyone please ... 
  
  - Thanks. 
  
  On Feb 22, 5:58 pm, Raj raaju.pra...@gmail.com wrote: 
  
  
  
   Hi All, 
  
   I am trying out the back up and restore service of Android 
   Am able to successfully do back up of data and also restore when I 
   uninstall and then install the application (using bmgr tool). 
  
   But when I reflash and try restoring, I am getting error: Unable to 
   restore package. I am using the sample application provided by 
   google. 
  
   I have: 
  
   a) Registered for BR service and placed the key in manifest file. 
   b) Enabled backup and restore option. 
   c) Connected to gmail (is it needed or just network connectivity is 
   fine ?). 
  
   It would really help if anyone can provide some input on this issue? 
   Thanks :)- Hide quoted text - 
  
  - Show quoted text -

-- 
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] billing window closes immediately after opening

2012-08-02 Thread Vasili Karpenko
Billing window closes immediately after opening. 
In console:

 08-02 16:37:43.322: WARN/Finsky(2306): [1] CarrierParamsAction.run: Saving 
 carrier billing params failed.
 08-02 16:37:43.322: ERROR/Finsky(2306): [1] CarrierBillingUtils.isDcb30: 
 CarrierBillingParameters are null, fallback to 2.0
 08-02 16:37:43.332: DEBUG/Finsky(2306): [1] GetBillingCountriesAction.run: 
 Skip getting fresh list of billing countries.
 08-02 16:37:43.332: ERROR/Finsky(2306): [1] CarrierBillingUtils.isDcb30: 
 CarrierBillingParameters are null, fallback to 2.0
 08-02 16:37:43.352: DEBUG/ActivityManager(1377): destroyActivityLocked, 
 r=HistoryRecord{40ab9540 ru.fsinpismo/.activity.LetterSendConfirmActivity}
 08-02 16:37:43.352: DEBUG/ActivityManager(1377): destroyActivityLocked, 
 r=HistoryRecord{40c57b28 
 com.android.vending/com.google.android.finsky.activities.IabActivity}
 08-02 16:37:43.372: DEBUG/Finsky(2306): [1] 
 CarrierProvisioningAction.shouldFetchProvisioning: Required 
 CarrierBillingParams missing. Shouldn't fetch provisioning.
 08-02 16:37:43.372: DEBUG/Finsky(2306): [1] CarrierProvisioningAction.run: 
 No need to fetch provisioning from carrier.
 08-02 16:37:43.422: DEBUG/WindowManagerImpl(3510): finishRemoveViewLocked, 
 mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@40586898
 08-02 16:37:43.452: DEBUG/WindowManagerImpl(3510): finishRemoveViewLocked, 
 mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@405f1108
 08-02 16:37:43.462: DEBUG/AK8975(1274): Compass CLOSE
 08-02 16:37:43.482: DEBUG/dalvikvm(2306): GC_CONCURRENT freed 1594K, 54% 
 free 4729K/10183K, external 3026K/3753K, paused 16ms+8ms
 08-02 16:37:43.492: DEBUG/Finsky(2306): [1] 
 MarketBillingService.sendResponseCode: Sending response RESULT_ERROR for 
 request 7018411712906374877 to ru.fsinpismo.
 08-02 16:37:43.512: DEBUG/Finsky(2306): [1] 
 PendingNotificationsService.setMarketAlarm: Setting alarm for 
 account=inv...@gmail.com, duration=12
 08-02 16:37:43.522: DEBUG/WindowManagerImpl(3510): finishRemoveViewLocked, 
 mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@40616e38
 08-02 16:37:43.532: DEBUG/WindowManagerImpl(2306): finishRemoveViewLocked, 
 mViews[0]: com.android.internal.policy.impl.PhoneWindow$DecorView@408d5ec8
 08-02 16:37:43.552: DEBUG/WindowManagerImpl(3510): finishRemoveViewLocked, 
 mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@40596a60
 08-02 16:37:43.572: INFO/ElegantRequestDirector(2306): I/O exception 
 (org.apache.http.NoHttpResponseException) caught when processing request: 
 The target server failed to respond
 08-02 16:37:43.572: INFO/ElegantRequestDirector(2306): Retrying request
 08-02 16:37:43.582: DEBUG/WindowManagerImpl(3510): finishRemoveViewLocked, 
 mViews[0]: com.android.internal.policy.impl.PhoneWindow$DecorView@405524d8
 08-02 16:37:43.652: DEBUG/ATRecorder(3510): 
 com.htc.autotest.dlib.RecordEngine in loader 
 dalvik.system.DexClassLoader@4068e980
 08-02 16:37:43.662: DEBUG/WindowManagerImpl(3510): addView, new view, 
 mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@4067eab0
 08-02 16:37:43.682: DEBUG/WindowManagerImpl(3510): finishRemoveViewLocked, 
 mViews[0]: com.android.internal.policy.impl.PhoneWindow$DecorView@405def20
 08-02 16:37:43.692: INFO/keystore(1270): uid: 1000 action: e - 7 state: 3 
 - 3 retry: 4
 08-02 16:37:43.712: DEBUG/dalvikvm(3510): GC_CONCURRENT freed 340K, 41% 
 free 4019K/6727K, external 7652K/7940K, paused 3ms+4ms
 08-02 16:37:43.782: DEBUG/NativeCrypto(2306): returned from sslSelect() 
 with result 1, error code 2
 08-02 16:37:43.802: INFO/KeyCharacterMap(3510): No keyboard for id -1
 08-02 16:37:43.802: INFO/KeyCharacterMap(3510): Using default keymap: 
 /system/usr/keychars/qwerty.kcm.bin
 08-02 16:37:43.832: WARN/InputManagerService(1377): 
 [unbindCurrentClientLocked] Disable input method client.
 08-02 16:37:43.832: WARN/InputManagerService(1377): [startInputLocked] 
 Enable input method client.
 08-02 16:37:43.892: DEBUG/dalvikvm(3510): GC_EXTERNAL_ALLOC freed 80K, 40% 
 free 4092K/6727K, external 3066K/3771K, paused 35ms
 08-02 16:37:44.122: INFO/ActivityManager(1377): Displayed 
 ru.fsinpismo/.activity.MainTabActivity: +869ms (total +1s226ms)
 08-02 16:37:44.243: DEBUG/StatusBarPolicy(1567): Network Type: 8
 08-02 16:37:44.693: INFO/global(2306): Loaded time zone names for en_US in 
 689ms.
 08-02 16:37:44.703: DEBUG/DfeApi(2306): [1] DfeRequest.deliverResponse: 
 Not delivering second response for request=[[ ] 
 https://android.clients.google.com/fdfe/details?doc=inapp:ru.fsinpismo:eu.prisonmail.android.200
  
 NORMAL 54]
 08-02 16:37:45.073: DEBUG/NativeCrypto(2306): returned from sslSelect() 
 with result 1, error code 2
 08-02 16:37:45.504: INFO/global(2306): Loaded time zone names for en_US in 
 422ms.
 08-02 16:37:45.504: ERROR/Finsky(2306): [1] CheckoutPurchase.setError: 
 type=IAB_PERMISSION_ERROR, code=12, message=null
 08-02 16:37:49.428: DEBUG/dalvikvm(1698): 

[android-developers] how to achieve the accuracy of google navigation

2012-08-02 Thread bushido
Hi all,

I'm writing an application for android for which I need good position
accuracy, I use a Galaxy Nexus as test device.

My test application subscribes to location updates and draws a car
symbol in a map, the map is centered to the location of the car 
rotates according to the bearing of the location (exactly like google
maps on android does). I noticed that when up to speed, the positions
don't match with reality, they lag behind considerably.
When I cross a street at 90km/h for example, it will take a few
seconds before the car on the map is also crossing that street. It
isn't an error in the map data, because when I'm standing still, the
car gets drawn on the correct location. Google maps for android shows
exactly the same behavior.

The position of the car in Google Navigate on the other hand matches
reality rather closely. I've noticed that the position updates are a
lot smoother as well. (10Hz rather than the 1Hz updates which you get
from GPS)

My question is: how do they do it? What I can think of is:
- using the phone's sensors (gyro  accelero) together with a kalman
filter or similar. But I can't see how you could make that work for
every phone, since not all phones have these sensors.
- interpolating, but in that case I would expect overshooting when
there is a sudden stop or a sharp corner

Thanks in advance.
Bushido

-- 
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] can't find the deactivate() function on MemoryFile class

2012-08-02 Thread 안기찬
Hi,

I'm importing this project from another file, and everything else goes well 
except for this strange piece of code snippet

CODE: SELECT ALL http://www.anddev.org/#   MemoryFile 
memoryFile = new MemoryFile(null, length);
   memoryFile.writeBytes(buffer, 0, 0, length);
   memoryFile.deactivate();
   return AssetFileDescriptor.fromMemoryFile(memoryFile);

eclipse complains that deactivate function does not exist in the MemoryFile 
class,
as well as AssetFileDescriptor not having the fromMemoryFile function.
This is strange because according to the documentation, 
deactivatehttp://hi-android.info/doc/android/os/MemoryFile.html#deactivate()
and 
fromMemoryFilehttp://www.androidjavadoc.com/2.3/android/content/res/AssetFileDescriptor.html#fromMemoryFile(android.os.MemoryFile)
 functions 
exist.
But the SDK can't seem to find them, or the android.jar doesn't seem to 
contain them.

I changed the Project Build Target on Properties-Android from Android 
2.1 to 2.3 but the problem persists.
I also did a wide search on the net, but oddly enough, nobody has ever 
asked on the same problem.

Any advice? [image: :)]
Thanks. 

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

Re: [android-developers] Error in Base IceCream Sandwitch Android code.

2012-08-02 Thread Huzaifa Jariwala
I would also like to add that, I have tried restarting the device but to no 
luck.
 
Regards,
Huzaifa.

-- 
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] Error in Base IceCream Sandwitch Android code.

2012-08-02 Thread Huzaifa Jariwala
Hi all,
 
I have the same problem as faced by shruthi except that when I enter the 
google account details, my device cannot connect to server as my wifi is 
switched off. I am using android ice cream sandwich on my X-touch tablet 
and to activate wifi i need to enter inside the device. Is there a way 
around this. Any help will be highly appreciated.
 
Regards,
Huzaifa.

 

-- 
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 2.2 or 4.1??

2012-08-02 Thread Eric oboite
Should i develop in Android 2,2 or 4.1?  If I develop in Android 4.1 can I 
make the android:minSdkVerision=8 so that Android 2.2 and up users can 
download it ? I was told that if I develop in 4.1 my application will not 
be visible to people running Android 2.2 and so on

-- 
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: Receive sms

2012-08-02 Thread Fahrettin Ateş
Hi Ehsan,

Answer is here :

package com.android.Sms;

import android.app.Activity;
import android.app.PendingIntent;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.telephony.gsm.*;
import android.telephony.cdma.*;
import android.telephony.SmsManager;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class TSms extends Activity{
 Button btnSendSMS;
 EditText txtPhoneNo;
 EditText txtMessage;
 public ProgressDialog pd;

 private void sendSMS(String phoneNumber, String message)
 {
 String SENT = SMS_SENT;
 String DELIVERED = SMS_DELIVERED;

 PendingIntent sentPI = PendingIntent.getBroadcast(this, 0,
 new Intent(SENT), 0);

 PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,
 new Intent(DELIVERED), 0);

 //---when the SMS has been sent---
 registerReceiver(new BroadcastReceiver(){
 @Override
 public void onReceive(Context arg0, Intent arg1) {
 switch (getResultCode())
 {
 case Activity.RESULT_OK:
 Toast.makeText(getBaseContext(), SMS sent,
 Toast.LENGTH_SHORT).show();
 break;
 case SmsManager.RESULT_ERROR_GENERIC_FAILURE:
 Toast.makeText(getBaseContext(), Generic failure,
 Toast.LENGTH_SHORT).show();
 break;
 case SmsManager.RESULT_ERROR_NO_SERVICE:
 Toast.makeText(getBaseContext(), No service,
 Toast.LENGTH_SHORT).show();
 break;
 case SmsManager.RESULT_ERROR_NULL_PDU:
 Toast.makeText(getBaseContext(), Null PDU,
 Toast.LENGTH_SHORT).show();
 break;
 case SmsManager.RESULT_ERROR_RADIO_OFF:
 Toast.makeText(getBaseContext(), Radio off,
 Toast.LENGTH_SHORT).show();
 break;
 }
 }
 }, new IntentFilter(SENT));
   //---when the SMS has been delivered---
 registerReceiver(new BroadcastReceiver(){
 @Override
 public void onReceive(Context arg0, Intent arg1) {
 switch (getResultCode())
 {
 case Activity.RESULT_OK:
 Toast.makeText(getBaseContext(), SMS delivered,
 Toast.LENGTH_SHORT).show();
 break;
 case Activity.RESULT_CANCELED:
 Toast.makeText(getBaseContext(), SMS not
delivered,
 Toast.LENGTH_SHORT).show();
 break;
 }
 }
 }, new IntentFilter(DELIVERED));


 SmsManager sms = SmsManager.getDefault();
 sms.sendTextMessage(phoneNumber, null, message, sentPI,
deliveredPI);
 }


  public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.tabviewsms);

 pd = new ProgressDialog(this);
 pd.setMessage(Continiue...);
 pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
 pd.setMax(100);
 pd.setIndeterminate(false);
 btnSendSMS = (Button)   findViewById(R.id.btnSendSMS);
txtPhoneNo = (EditText) findViewById(R.id.txtPhoneNo);
txtMessage = (EditText) findViewById(R.id.txtMessage);

btnSendSMS.setOnClickListener(new View.OnClickListener()
{
 public void onClick(View v)
 {
 String phoneNo =  txtPhoneNo.getText().toString();
 String message =  txtMessage.getText().toString();


 if(phoneNo.length()0  message.length()0)
 {
   sendSMS(phoneNo, message);
 }
else
  Toast.makeText(getBaseContext(), Error !!!,
Toast.LENGTH_SHORT).show();
}
  });
 }
  }
uses-permission android:name=*android.permission.SEND_SMS/
uses-permission
uses-permission android:name=android.permission.RECEIVE_SMS/
uses-permission*
Best Regards
Fahrettin ATES


2012/8/1 Ehsan Sadeghi esade...@gmail.com

 How can I receive from certain numbers and only for them my app is started
 and how doesn't messages that app receive appear in the messaging built in?

 در دوشنبه 30 ژوئیهٔ 2012، ساعت 18:44:03 (UTC)، Ehsan Sadeghi نوشته:

 I write this code in manifest file :
 uses-sdk
 android:minSdkVersion=8
 android:targetSdkVersion=15 /

 application
 android:icon=@drawable/ic_**launcher
 android:label=@string/app_**name
 android:theme=@style/**AppTheme 
 activity
 

[android-developers] Android instant messaging.

2012-08-02 Thread Ian Buchanan
Android does not have an equivalent of BBM.
If it did, thousands of users would make the switch including myself! And 
it would make Android that much cooler.

BB's instant messaging feature is so effective that it is possibly the only 
feature that will stop users from switching to a different phone.
Apple hasn't even hit the mark on instant messaging.

Tools like Whatsapp etc are great, but I believe that implementing a 
functional instant messaging application into Android devices, will be one 
of the greatest innovations yet.
To be more succinct, I am asking Android to develop an effective instant 
messaging tool. - in my opinion, it would add value to Android devices.

So please do it Android! There is nothing to loose, but so much to gain 
from this simple idea.

*Sorry, I had no other way of getting my point across. Please don't 
disregard this message. *

-- 
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: ClearTaskOnLaunch flag is not working

2012-08-02 Thread jtoms
Hi,

I have an issue in Google nexus. I am using phonegap and jquery mobile for 
my application. 

In the login screen, when I tap on the input fields (on focus) the splash 
screen is visible for a second. And when I tap on the next input, the same 
effect is visible. Is it because the splash screen is not cleared when the 
app is launched? I have used  'clearTaskOnLaunch=true ' in manifest .xml. 
Is there any possibility to fix the issue?

Please help me. I am quite new to this.


Thanks
Jtoms


On Thursday, 14 January 2010 16:45:25 UTC+5:30, Android Developer wrote:

 Hi,

 I have two activities in an application Activiy1 and Activity2 where
 Activity1 is the launcher.
 i have set clearTaskOnLaunch=true for activity one using below code
 activity android:name=.App1_Activity1
   android:label=@string/app_name
   android:clearTaskOnLaunch=true
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity

 I will launch the application, then from Activity 1 -Activity2
 Then i press Home key, Long press home key and select the application
 again, it is showing Activity2 and not Activity1 which is the root
 activity.

 Am i doing wrong somewhere? If no, why is the behavior not correct.



-- 
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: Failed to load properties file for project 'HelloAndroid'

2012-08-02 Thread trikarai
same issues

On Friday, July 1, 2011 3:12:25 AM UTC+7, hadestaboo wrote:

 Hello everybody, I'm newbie and weak programming but try to study 
 about android so I start every step by step in 
 http://developer.android.com/resources/tutorials/hello-world.html 
 and I got this problem 


 eclipse.buildId=M20110210-1200 
 java.version=1.6.0_24 
 java.vendor=Sun Microsystems Inc. 
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=th_TH 
 Command-line arguments:  -os win32 -ws win32 -arch x86 


 Error 
 Fri Jul 01 02:45:57 ICT 2011 
 Failed to load properties file for project 'HelloAndroid' 


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

[android-developers] Remotely wipe mail in android.

2012-08-02 Thread The Simple
I am developing an application which will remotely wipe all corporate mail 
send to the employee ,when the employee leave the organization.I googled 
for a day but did not find any suitable solution for wipe email. So please 
give me some idea to wipe the email remotely using SMS.
 
During my search I come across so many apps is doing the email wipe 
remotely. How they do it…?   
Note: company employee have permission to use any mail client.
 
 

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

2012-08-02 Thread krishnakumar vpillai
I have an xml file in asset folder, i am trying to parse this file by using 
sax parser ,but an exception found...(NullPointerException,  / or could not 
read the file)

AssetManager manager = getAssets();
InputStream is = manager.open(City.xml);

 // xmlR.parse(new InputSource(getAssets().open(City.xml)));
 //  xmlR.parse(new InputSource(getAssets().open(City.xml)));

xmlR.parse(new InputSource(is));


could you help me please .. 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] New SDK release for Egnos

2012-08-02 Thread Leonardo Costa
Hello,
I'm posting this info on behalf of the European Commission, the new release 
of the EGNOS SDK for app developers is now available.

This EGNOS SDK allows taking advantage of the European system that provides 
enhanced positioning accuracy and other features (e.g. information on the 
reliability of the position itself) directly towards the smartphones. It is 
available for free on the EGNOS Portal at 
http://egnos-portal.gsa.europa.eu/developer-platform/egnos-toolkits/egnos-sdk

I am available for any further info, request, questions, you may have on 
this topic and will post reply here. I will also post further details in 
the next weeks, following up directly  at this thread.
Thanks and regards,
Leonardo

-- 
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] Keyboard layout for Khmer (Cambodia language)

2012-08-02 Thread Petit
Dear Developers,


I am currently developing a Keyboard layout for Khmer. The current keyboard 
layout for Khmer is not rendering well. And the OS is not displaying the 
Khmer characters.

I am very much appreciated if you can point me out about the concepts and 
the process to get a font of a language display correctly on phone. 

Sincerely Yours,


-- 
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] Error in MediaPlayer while streaming remote mp3 files

2012-08-02 Thread ErFrappa
Hello, I'm having some problems streaming remote .mp3 files.
Inside my app I have a service that can play both local and remote files 
using :


mPlayer.setDataSource(local_path_or_remote_url);

mPlayer.prepareAsync();


 @Override
 public void onPrepared(MediaPlayer player) { 

 player.start();

 }


This works fine for almost every file, but with some I recive the following 
error:

08-01 09:38:57.880: I/AwesomePlayer(127): 
 setDataSource_l(http:/mydomain.com/public/files/5/Music/b178cdd6-359b-4801-9c43-c0320b1008e9.mp3')
 08-01 09:38:57.880: V/ChromiumHTTPDataSource(127): connect on behalf of 
 uid 10033
 08-01 09:38:57.880: I/ChromiumHTTPDataSource(127): connect to 
 http:/mydomain.com/public/files/5/Music/b178cdd6-359b-4801-9c43-c0320b1008e9.mp3
  
 @0
 08-01 09:38:58.646: I/NuCachedSource2(127): new range: offset= 345099
 08-01 09:38:58.646: I/ChromiumHTTPDataSource(127): connect to 
 http:/mydomain.com/public/files/5/Music/b178cdd6-359b-4801-9c43-c0320b1008e9.mp3
  
 @345099
 08-01 09:38:58.755: D/dalvikvm(395): GC_CONCURRENT freed 732K, 6% free 
 13750K/14599K, paused 3ms+7ms, total 40ms
 08-01 09:39:00.599: I/ChromiumHTTPDataSourceSupport(127): We requested a 
 content range, but server didn't support that. (responded with 200)

 

 08-01 09:39:00.599: E/NuCachedSource2(127): source returned error -32, 10 
 retries left

 

 08-01 09:39:03.599: I/ChromiumHTTPDataSource(127): Reconnecting...
 08-01 09:39:03.599: I/ChromiumHTTPDataSource(127): connect to 
 http:/mydomain.com/public/files/5/Music/b178cdd6-359b-4801-9c43-c0320b1008e9.mp3
  
 @345099
 08-01 09:39:03.857: I/ChromiumHTTPDataSourceSupport(127): We requested a 
 content range, but server didn't support that. (responded with 200)
 08-01 09:39:03.857: I/ChromiumHTTPDataSource(127): Reconnect failed w/ err 
 0xffe0
 08-01 09:39:03.857: I/NuCachedSource2(127): The attempt to reconnect 
 failed, 9 retries remaining
 08-01 09:39:06.865: I/ChromiumHTTPDataSource(127): Reconnecting...
 08-01 09:39:06.865: I/ChromiumHTTPDataSource(127): connect to 
 http:/mydomain.com/public/files/5/Music/b178cdd6-359b-4801-9c43-c0320b1008e9.mp3
  
 @345099
 08-01 09:39:07.021: I/ChromiumHTTPDataSourceSupport(127): We requested a 
 content range, but server didn't support that. (responded with 200)
 08-01 09:39:07.021: I/ChromiumHTTPDataSource(127): Reconnect failed w/ err 
 0xffe0
 08-01 09:39:07.021: I/NuCachedSource2(127): The attempt to reconnect 
 failed, 8 retries remaining
 08-01 09:39:10.021: I/ChromiumHTTPDataSource(127): Reconnecting...
 08-01 09:39:10.021: I/ChromiumHTTPDataSource(127): connect to 
 http:/mydomain.com/public/files/5/Music/b178cdd6-359b-4801-9c43-c0320b1008e9.mp3
  
 @345099


ChromiumHttpDataSource keep retrying until MediaPlayer goes onError()

08-01 09:49:58.599: E/MediaPlayer(2484): Error (1,-2147483648)


If I download the file and launch it locally from my app, it plays without 
any problem.
I've tried my app on various ICS, Gingerbread and JellyBean devices,
the only one that was able to play all the remote files was the Huawei 
Sonic with Android 2.3.3.
Any ideas?

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] HttpsURLConnection not returning 401

2012-08-02 Thread Jonny Olliff-Lee


Hey!

I'm wondering if anyone could help me, or suggest alternatives for the 
problem below:

I've run into what seems to be a very strange problem. I'm using the 
HttpsURLConnection class in my Android app, and doing authentication using 
the Authenticator class. I'm using this to connect to our web service and 
pull down some JSON.

I can connect to the web service with inputted username and password, and 
get a JSON response back. If I enter valid credentials this works 
absolutely fine and I get a 200 response back. However if I give it invalid 
credentials then then I never get a response and the my Async Task (that's 
running the code) never completes. I have a dialog that displays and this 
never goes away, and there's not additional logging happening after the 
connection is made.

The code that is doing the connection is as follows:

private static String retrieveStream(String url) throws SocketTimeoutException {

String streamContent = ;
HttpsURLConnection urlConnection = null;

try {

Log.d(Connection, Connecting to:  + url);

Log.d(Connection, Opening connection);
urlConnection = (HttpsURLConnection) new URL(url).openConnection();
Log.d(Connection, Setting connect timeout);
urlConnection.setConnectTimeout(5000);
Log.d(Connection, Setting read timeout);
urlConnection.setReadTimeout(5000);
Log.d(Connection, Setting Allow All certs (because this is just 
testing));
urlConnection.setHostnameVerifier(new AllowAllHostnameVerifier());

Log.d(Connection, Connection Response:  + 
urlConnection.getResponseCode() +   + urlConnection.getResponseMessage());

if (urlConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
streamContent = readStreamFromConnection(urlConnection);
Log.d(Connection, Returned content is:  + streamContent);
}

} catch (MalformedURLException e) {
Log.e(Error, MalformedURLException thrown in retrieveStream:  + e);
} catch (IOException e) {
Log.e(Error, IOException thrown in retrieveStream for  + url +  : 
 + e);
} finally {
urlConnection.disconnect();
}

return streamContent;
}

If I then run this code with invalid credentials this is what I get in the logs:

07-30 15:52:57.040: DEBUG/Connection(16000): Connecting to: 
https://webservice-that-i-use
07-30 15:52:57.040: DEBUG/Connection(16000): Opening connection
07-30 15:52:57.040: DEBUG/Connection(16000): Setting connect timeout
07-30 15:52:57.040: DEBUG/Connection(16000): Setting read timeout
07-30 15:52:57.040: DEBUG/Connection(16000): Setting Allow All certs (because 
this is just testing)

...and nothing else it just hangs here until I force stop the app or 
redeploy. I don't get any exceptions or ANRs. If I pass in valid 
credentials this completes fine and I get my JSON back. 

Does anyone have any ideas of why this happens? How I can get the 
connection to timeout on invalid credentials with HttpsURLConnection? It's 
almost as if the connection is just constantly trying to pass the 
credentials again, and again, and again, and again...

Any help would be appreciated. I should also note that my colleague has 
this working fine in iOS so it's not a server issue. This is running with 
the ICS SDK on a Asus Transformer TF101.

Thanks for reading!

-- 
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: creating a server app on the Android

2012-08-02 Thread Jeremy Villalobos
If you have the phone connected to wifi it should work.  While using 3G or 
other phone network it does not work.  I tested this empirically about a 
year ago.

http://developer.android.com/guide/google/gcm/index.html

Using Google Cloud Messaging may be a good alternative.



On Wednesday, August 1, 2012 1:17:59 PM UTC-4, njman wrote:

 I'm using ServerSocket() object to create a proxy server
 on the phone itself.

 But I can't seem to connect to it.

 The phone is running 3g and has an ip address.

 i'm using port 1962. Maybe that's the problem.

 i'm trying to connect from my desktop

 http://ipaddress:1962/test


 help appreciated.

 p.s. again this is on the phone itself.

 on the emulator, if i use localhost (from the android browser),
 it works.


On Wednesday, August 1, 2012 1:17:59 PM UTC-4, njman wrote:

 I'm using ServerSocket() object to create a proxy server
 on the phone itself.

 But I can't seem to connect to it.

 The phone is running 3g and has an ip address.

 i'm using port 1962. Maybe that's the problem.

 i'm trying to connect from my desktop

 http://ipaddress:1962/test


 help appreciated.

 p.s. again this is on the phone itself.

 on the emulator, if i use localhost (from the android browser),
 it works.



-- 
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 Google Play Developer Program Policy Update

2012-08-02 Thread Piotr Klimko
Hello, 

I have a question concerning new Google Play Developer Program Policy 
Update. I have developed a series of more than 10 apps. These apps are the 
traditional Hangman guessing game. Each app features a different language 
and is intended to entertain users from different countries. There are also 
some differences concerning the categories of words to guess. I believe 
that this way is better for users as updates (e.g. new word categories) 
concern only users in particular country. This way is also better for me to 
manage the series of apps. But I am afraid whether this violates the do 
not send repetitive content rule? Can somebody confirm please? 

-- 
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: No accelerated colorspace conversion found from %s to %s. FFMpeg android

2012-08-02 Thread nicsi
FFMPEG does not have /arm tree in ffmpeg/libswscale branch. So YUV-RGB 
conversion takes too much time (20-22 ms for VGA video). This is critical 
for 40-ms inter-frame intervals (25-fps video). Developers who are 
competent in NEON can write this procedure using NEON intrinsics.
I've tested library written by Robert Watts: 
yuv2rgbhttp://wss.co.uk/pinknoise/yuv2rgb/. 
It have C and ASM versions for various video modes and works 2 times faster 
(for ASM version)  than FFMPEG-libswscale but works correctly only in 
16-bit RGB output format.

-- 
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] Nexus 7 USB connection

2012-08-02 Thread siddharth rammohan
Hi,

I just bought a Nexus 7, tried connecting it to my Windows 7 PC. But it 
comes up with an error msg saying driver installation failed. Could anyone 
tell me how to get over this. Is anyone else facing the same problem?

-- 
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] Is there any way to know a view's height and width before it is really shown on screen?

2012-08-02 Thread Fang
Hi Android Developers,

As a request of a function in my app, I need to know a view's height and 
width before it's really shown on screen. 
Here I want to know whether it is possible? If yes, then how about the 
performance? Thanks in advance.

Regards,
Fang

-- 
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] want a app

2012-08-02 Thread Prince Mehta
i just want a app which allow user to loack a file(like 
pictures,mp3,video,etc) in such a way that no one, except user, can delete 
it or share it from bluetooth or from other way.

-- 
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 Plugin for Eclipse

2012-08-02 Thread SiX
Surely I am not the only one that finds this plugin to be broken when using 
relative layout in Eclipse? The gui elements have a mind of their own. They 
snap to easily to other objects, you cannot resize them without doing so 
manually in the xml, and I cannot seem to be able to make objects relative 
to each other rather than whatever the SDK thinks I am attempting to make 
it relative to. (ex. If I have three input boxes, I would like them to be 
relative to each other, but I do not need them to be relative to, say, the 
logo on the top of the screen).

Is there a fix?

-- 
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: ListView and ListAdapter

2012-08-02 Thread Nicola Blaine


 hi John Gaby 

 
I have had the same issue. Could you please state what you changed in the 
end with regurds to  handling the custom ViewGroup?

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: Is setting invalid APN the only way to disable mobile network connection?

2012-08-02 Thread dmmh
have a look at line 791/ 792 ;-)
Gl

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/telephony/TelephonyManager.java?av=f
 

Op dinsdag 31 juli 2012 17:03:13 UTC+2 schreef CJ het volgende:

 Hi,

 I have been googling for a while able the best or right way to 
 disable/enable mobile network.

 I tried the following code which is all over Stackoverflow and is working 
 fine for gingerbread and higher:

 private void setMobileDataEnabled(Context context, boolean enabled)
 throws Exception {
 final ConnectivityManager conman = (ConnectivityManager) context
 .getSystemService(Context.CONNECTIVITY_SERVICE);
 final Class? conmanClass = Class.forName(conman.getClass().getName());
 final Field iConnectivityManagerField = conmanClass
 .getDeclaredField(mService);
 iConnectivityManagerField.setAccessible(true);
 final Object iConnectivityManager = iConnectivityManagerField
 .get(conman);
 final Class? iConnectivityManagerClass = Class
 .forName(iConnectivityManager.getClass().getName());
 final Method setMobileDataEnabledMethod = iConnectivityManagerClass
 .getDeclaredMethod(setMobileDataEnabled, Boolean.TYPE);
 setMobileDataEnabledMethod.setAccessible(true);

 setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
 }

 Somehow I didn't find a way to do the same thing for Android 2.2 and 
 below. Many mentioned to change the APN name to something invalid like what 
 app APNDroid did but is that the only way?


-- 
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: Is setting invalid APN the only way to disable mobile network connection?

2012-08-02 Thread dmmh
Actually I am writing a similar application, and ran into the platforms 
numurous odd and apparently silly limitations. 

While some limitations are probably needed, a lot of features which should 
be available to developers are disabled where they were previously were 
enabled, or are simply lacking, or blocked/ hidden.
If I, me, the user, wants control over how the device behaves, it should be 
my decision to automate it by installing an app, or do it manually from a 
settings menu.
If I want to be dictated by my device, I can always switch to Apple...
That has nothing to do with a denial of service attack against other 
applications on the device, it has to do with wanting to have control over 
your device.
Ask yourself: is it a denial of service attack if the user changes the 
features the platform blocks in the settings menu?

If I download a application knowing it can programmaticaly enable/ disable 
NFC, then I must be fully aware that it does just that, arent't I?
No, actually I am not, not with the current way the permissions system 
works.
This is because the it is inheritly flawed, and thus unsecure,* resulting *in 
the need to block certain features.

All permissions are treated equally when you install the application, 
because of this most people won't read the whole permissions list.
Dangerous permissions can even be (and are mostly, ironically) on the 
lower part of the list.
These should be on top of the list, highlighted even, in red or whatever, 
so it catches your attention when you install a dangerous application.
If it catches your attention, you will think twice to install it as a user. 

And this opens up the way for developers to access features which are 
needed and should/ could be opened in the API, when new permissions are 
created for currently deemed dangerous features, lifting the problem of 
having to limit seemingly harmless things like NFC enable/ disable.

Op dinsdag 31 juli 2012 17:03:13 UTC+2 schreef CJ het volgende:

 Hi,

 I have been googling for a while able the best or right way to 
 disable/enable mobile network.

 I tried the following code which is all over Stackoverflow and is working 
 fine for gingerbread and higher:

 private void setMobileDataEnabled(Context context, boolean enabled)
 throws Exception {
 final ConnectivityManager conman = (ConnectivityManager) context
 .getSystemService(Context.CONNECTIVITY_SERVICE);
 final Class? conmanClass = Class.forName(conman.getClass().getName());
 final Field iConnectivityManagerField = conmanClass
 .getDeclaredField(mService);
 iConnectivityManagerField.setAccessible(true);
 final Object iConnectivityManager = iConnectivityManagerField
 .get(conman);
 final Class? iConnectivityManagerClass = Class
 .forName(iConnectivityManager.getClass().getName());
 final Method setMobileDataEnabledMethod = iConnectivityManagerClass
 .getDeclaredMethod(setMobileDataEnabled, Boolean.TYPE);
 setMobileDataEnabledMethod.setAccessible(true);

 setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
 }

 Somehow I didn't find a way to do the same thing for Android 2.2 and 
 below. Many mentioned to change the APN name to something invalid like what 
 app APNDroid did but is that the only way?


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

[android-developers] Re: How do I submit an App in a different language?

2012-08-02 Thread monir

hi Michael,
the link is not valid any more,
so, pleae could you please explain how to add the string.xml file and from 
where to grap it , finally will that allow menues language change to the 
desire language that is not allready exist in the system (added by app)

hope to get your help

Thank you

Monir

On Wednesday, August 19, 2009 3:21:02 PM UTC-7, Michael Bollmann wrote:

 in short: you add one strings.xml for every language in different 
 folders of your app 

 read this: 
 http://groups.google.com/group/android-developers/web/localizing-android-apps-draft
  

 On 19 Aug., 23:14, Houba ehab.bassi...@googlemail.com wrote: 
  Hi, 
  
  I have already submitted/published an app on the Android Market. I had 
  the strings.xml file translated into other languages, and now I'd like 
  to publish the different versions in that language. 
  
  I cannot help but get the impression that by doing so, I will erase 
  the original (in English) version. 
  
  I think because the package name is the same throughout the entire 
  product that the Android Market sees it as the same APP and will 
  overwrite any previous apps. 
  
  How do I publish an APP (APK) file that has just been translated or 
  localised for a different language? What is the procedure? Do I have 
  to go in the code and change the entire code ? or is there another 
  way? 
  
  Thanks for any help, 
  
  Kind Regards, 
  H

-- 
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] Design solution: sell audio through the app?

2012-08-02 Thread txtr
This may not be the correct place to post this question. If not, please 
direct me to a good location you know of. 

We're developing an app as both an Android and iOS app. 

In iOS, we have a number of different solutions for implementing a strategy 
for selling longer talks - audio files for sale within the app - we're 
going to make them available as audio books for sale through iTunes. 

However we can't sell the audio files as audio books on Google Play, 
because apparently Google Play doesn't currently sell audio books. 

We're looking for an alternative solution - has anyone had experience with 
how to sell audio through the Android app, or can point me toward 
resources? 

Thanks.

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

Re: [android-developers] Re: No activity found for ACTION_APPLICATION_DEVELOPMENT_SETTINGS

2012-08-02 Thread Matt Kevins
Thanks, your solution worked for me.  I wonder why this hasn't been fixed.. 
it seems like a pretty simple patch.

On Saturday, December 4, 2010 3:32:43 PM UTC-5, Kostya Vasilyev wrote:

  Looked it up.

 This is a Froyo snapshot of Settings app's manifest:


 http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=AndroidManifest.xml;h=78c0f5b35401b96e42915d81e4c2a0e51f262dbd;hb=froyo-release

 The relevant part is this:

  586 activity android:name=DevelopmentSettings
  587 android:label=@string/development_settings_title
  588 intent-filter
  589 action android:name=android.intent.action.MAIN /
  590 action 
 android:name=com.android.settings.APPLICATION_DEVELOPMENT_SETTINGS /
  591 category 
 android:name=android.intent.category.DEFAULT /
  592 /intent-filter
  593 /activity


 The action string is *com.*
 android.settings.APPLICATION_DEVELOPMENT_SETTINGS.

 Your logcat fails with 
 android.settings.APPLICATION_DEVELOPMENT_SETTINGS, without the .com.

 CF: the action for ApplicationSettings (line 343 on) starts with 
 android., without the .com - so it works.

 Looks to me like an Android bug, an inconsistency between the value 
 exposed to apps via android.provider.Settings vs. the actual action name 
 used in the Settings application. Perhaps this is a leftover from 
 pre-Google days, missed in a mass source cleanup?

 My recommendation would be to try and launch 
 Action(com.android.settings...), catch ActivityNotFoundException, and try 
 again without the com. (so when this bug is fixed - hopefully - in the 
 future, your code continues to work).

 -- Kostya

 04.12.2010 16:27, gg9h0st пишет: 

 em~ thanks for the reply Mark.

 I've tried it on emulator API7 and It crashes again for same reason.

 12-04 22:19:52.812: ERROR/AndroidRuntime(295):
 android.content.ActivityNotFoundException: No Activity found to handle
 Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS
 flg=0x3000 }

 I'll just put the way to ACTION_APPLICATION_SETTINGS unless I find
 something from what you told. the queryIntentActivities().

 thanks.

 On Dec 4, 10:17 pm, Mark Murphy mmur...@commonsware.com wrote:

  I have seen where some devices mess up those Settings.ACTION_* values
 -- they change something around in the Settings app and fail to set up
 the IntentFilters or something.

 If you do try it on the emulator, let me know what the results are. If
 it works there but fails on hardware, that is a CTS bug, as we should
 be testing for that sort of thing. I will file an issue onb.android.com if 
 that is the case. If it fails on the emulator, I'll
 try to reproduce the problem, and that would indicate an actual
 Android OS bug, which too I'll file on b.android.com.

 In terms of coping with the problem, use PackageManager and
 queryIntentActivities() to see if anything will match your desired
 Intent. If not, you will need to perhaps fall back to
 ACTION_APPLICATION_SETTINGS for devices that do not let you get all
 the way to ACTION_APPLICATION_DEVELOPMENT_SETTINGS.









 On Sat, Dec 4, 2010 at 8:10 AM, gg9h0st g9h...@gmail.com wrote:

  It's been tested on API level6, devices GalaxyA(SHW-M100S),
 Motorio(XT720).

   I'll try it on emulator again and post.

   On Dec 4, 9:53 pm, Mark Murphy mmur...@commonsware.com wrote:

  What are you testing this on? If it's an emulator, what SDK level is
 it? If it is a device, what model is it?

On Sat, Dec 4, 2010 at 5:03 AM, gg9h0st g9h...@gmail.com wrote:

  hello~

 I'm working on a fake gps app and want to show Settings -
 Application - Development activity when Allow mock locations
 setting is inactive.
 below is the code work pretty good.

 Intent intent = new Intent();
 intent.setAction(Settings.ACTION_APPLICATION_SETTINGS);
 startActivity(intent);

 The problem is I want Development activity not Application
 activity. so I replace the
 ACTION_APPLICATION_SETTINGS to
 ACTION_APPLICATION_DEVELOPMENT_SETTINGS, like here.
 Then it crashes.

 Intent intent = new Intent();
 intent.setAction(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
 startActivity(intent);

 12-04 18:53:20.052: ERROR/AndroidRuntime(12511): Caused by:
 android.content.ActivityNotFoundException: No Activity found to handle
 Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS }

 anyone have a idea?
 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 
 toandroid-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] photot compression format supported by ANdroid

2012-08-02 Thread nicodroid
Hello,
do you know what photo format are supported by Android 2.3 and 4.0? 
jpeg, jpeg2000, tiff?
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] New Google Play Developer policy

2012-08-02 Thread Piotr Klimko
Hi,

I wanted to ask whether it is ok to develop separate apps with language 
versions of the same app? Or would that fall into repetitive content 
category?

-- 
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] SDK Manager does not fetch any package for installation (no error reported)

2012-08-02 Thread Rushabh Kanti
I have Android SDK Manager v20 on Windows 7 32 bit
 
It does not fetch any package for installation. And there is no error 
reported
 
*

Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml

Fetched Add-ons List successfully

Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml

Done loading packages.

Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml

Fetched Add-ons List successfully

Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml

Done loading packages.

Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml

Done loading packages.

Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml

Done loading packages.

But there is nothing fetched. What could be the reason.

*

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

2012-08-02 Thread Romāns Stepanovs
Hi! Is there anywhere available good exercises (not tutorials) at Android 
developing? I mean, like homework, that gradually become more and 
more sophisticated. I am a beginner, but determined to learn. 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] OMA DM compliant device Management

2012-08-02 Thread Shanta
Can we do Remote Device Management for OMA DM compliant devices without 
client agent?

-- 
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] Open Groupon app from a caller app.

2012-08-02 Thread Vincent Senese
I have written an app that opens up a Groupon URL via the web-browser.  is 
there anyway I could OPEN a groupon App if it is installed on the andoid 
os, and lanch the app to show the deal page.  

I do not know anyway to do this, or if it's possible but if someone can 
confirm this is not possible, or if it is possible point me in the correct 
location, I'd appreciate it.

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

2012-08-02 Thread Basti189
Hello,

I want to program an App which can send SMS with the special function. I 
want to modify the header that the receiver of the sms don't see my phone 
number but a number that you define in the App.
My english is very bad, but I hope you can understand this.

Yours

Sebastian

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

[android-developers] Re: how to display a toast after 10 seconds from starting Asynctask

2012-08-02 Thread Vincent Senese
I think you can do this.

(CountDownTimer) cdt = new CountDownTimer(0, 1000) {

 public void onTick(long millisUntilFinished) {
   //  mTextField.setText(seconds remaining:  + millisUntilFinished / 
1000);
 }

 public void onFinish() {
 //mTextField.setText(done!);
 }
  }.start();

// at the end of your thread call 
cdt.stop(); //

On Tuesday, July 31, 2012 7:46:49 AM UTC-5, Narendra Singh Rathore wrote:

 Hi all, please suggest me how to execute something after 10 seconds from 
 the start of AsyncTask.
 I have used AsyncTask for different purpose. But, now I want to update my 
 UI after 10 seconds.
 Or to show a toast after specific time.

 I actually want to perform some other task after 10 seconds, while the 
 original task is running 


 please let me know how to do this.?

 Thank you all.
 NSR


-- 
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: Internal Memory unmounted every time the device starts problem

2012-08-02 Thread wrefay

I've the same problem with JXD and contacted JXD and did not answer me, any 
one get a solution for this problem???




On Tuesday, July 24, 2012 11:24:03 PM UTC+2, harry wrote:

 Even i have the same problem with my JXD S7100

 So please, if anyone knows any solution for this problem please 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

[android-developers] Need help with java for making app run in background when app is closed but not stopped completly.

2012-08-02 Thread Vernon stallins
I made an app with app inventor and have had it changed over to java since 
app inventor cant allow apps to keep running in the background the phone 
eventually shuts them down. I need to know what java I should add and to 
what file so that my app will keep running after it is closed. Right now 
its just set to close and not stop the app completely. This is the last bug 
I need to fix in my app any help 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] Re: Failed to clear missed call notification

2012-08-02 Thread tnt
Hello Thomas
Did you mannaged to sort this out?
I am trying to get someting going that will clear the clear missed call 
notifications

Regards

On Wednesday, 29 December 2010 15:48:09 UTC+2, Thomas Tong wrote:

 Hi, all 
  I tried to clear missed call notification in my application. It 
 works great in android2.2.1. But it can't work for Android2.3. The 
 error is reported out as below. And I make sure I had added this 
 line(uses-permission 
 android:name=android.permission.MODIFY_PHONE_STATE / 
 )  in AndroidManifest.xml. Would you like to point out what wrong it 
 is? Thank you very much in advance. 
 try { 
 ITelephony iTelephony = 
   
 ITelephony.Stub.asInterface(ServiceManager.getService(phone)); 
 if (iTelephony != null) { 
 iTelephony.cancelMissedCallsNotification(); 
 } else { 
 Log.w(TAG, Telephony service is null, can't call 
  + 
 cancelMissedCallsNotification); 
 } 
 } catch (RemoteException e) { 
 Log.e(TAG, Failed to clear missed calls notification 
 due to remote exception); 
 } 


 12-29 13:41:32.656: ERROR/AndroidRuntime(995): FATAL EXCEPTION: main 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): 
 java.lang.RuntimeException: Unable to start activity 
 ComponentInfo{com.lianyun.data/com.lianyun.data.Entry}: 
 java.lang.SecurityException: Neither user 10037 nor current process 
 has android.permission.MODIFY_PHONE_STATE. 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 
 1622) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 
 1638) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.app.ActivityThread.access$1500(ActivityThread.java:117) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:928) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.os.Handler.dispatchMessage(Handler.java:99) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.os.Looper.loop(Looper.java:123) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.app.ActivityThread.main(ActivityThread.java:3647) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 java.lang.reflect.Method.invokeNative(Native Method) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 java.lang.reflect.Method.invoke(Method.java:507) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 com.android.internal.os.ZygoteInit 
 $MethodAndArgsCaller.run(ZygoteInit.java:839) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 dalvik.system.NativeStart.main(Native Method) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): Caused by: 
 java.lang.SecurityException: Neither user 10037 nor current process 
 has android.permission.MODIFY_PHONE_STATE. 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.os.Parcel.readException(Parcel.java:1322) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.os.Parcel.readException(Parcel.java:1276) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 com.android.internal.telephony.ITelephony$Stub 
 $Proxy.cancelMissedCallsNotification(ITelephony.java:671) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 com.lianyun.data.Entry.onCreate(Entry.java:80) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 
 1047) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at 
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 
 1586) 
 12-29 13:41:32.656: ERROR/AndroidRuntime(995): ... 11 more 


-- 
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] AccountManager oauth token validation

2012-08-02 Thread Andrea Fontana
I'm planning to authenticate users using AccountManager. I can get oauth 
token. Using a secure http connection I pass it to my webserver where I use 
it.
On documentation (
https://developers.google.com/accounts/docs/OAuth2Login#validatingtoken) I 
read that I need to verify token, and check if my app was the intendend 
target.

I built a simple android app that create an oauth token. 
This url: 
https://www.googleapis.com/oauth2/v1/tokeninfo?access_token={accessToken} 
gives me an audience field filled with a value. How can I check on my 
webserver if it's the right one? If I'm right I should check that 
audience field == client_id of my android app. Where can I read my app 
client_id?


-- 
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 2.2 or 4.1??

2012-08-02 Thread Jeremy Villalobos
Yes

Do note that some API calls will throw Exceptions on Froyo.  To avoid this, 
use Reflections

For example: my app supports from Froyo upward, but Froyo does not support 
icons on the Preference Activity.  So I use this to set the icon for ICS, 
and skip the step on Froyo

 void workAroundSetPicture(Preference pref, int resource){
try {
Method m = pref.getClass().getMethod(setIcon, int.class);
m.invoke( pref,  resource );
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}

The top right corner on the Android Developer documentation mentions for 
which Version the methods were introduced.

On Wednesday, August 1, 2012 10:27:06 AM UTC-4, Eric oboite wrote:

 When creating my new app should I build against 2.2 or 4.1? I know 2.2 has 
 83% of the market right now but can I build against 4.1 and make the min 
 sdk android 2.0?



-- 
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 2.2 or 4.1??

2012-08-02 Thread G. Blake Meike
Many of the features in 4.1 can also be found in the Support Package 
(formerly the ACL).  Depending on the exact features you need, you may be 
able to build your app for 4.1 and then backport it to 2.2, by adding the 
Support Library to the project.

G. Blake Meike
Marakana

The second edition of Programming Android is now on-line:
http://shop.oreilly.com/product/0636920023005.do


On Thursday, August 2, 2012 7:45:56 AM UTC-7, Jeremy Villalobos wrote:

 Yes

 Do note that some API calls will throw Exceptions on Froyo.  To avoid 
 this, use Reflections

 For example: my app supports from Froyo upward, but Froyo does not support 
 icons on the Preference Activity.  So I use this to set the icon for ICS, 
 and skip the step on Froyo

  void workAroundSetPicture(Preference pref, int resource){
 try {
 Method m = pref.getClass().getMethod(setIcon, int.class);
 m.invoke( pref,  resource );
 } catch (SecurityException e) {
 e.printStackTrace();
 } catch (NoSuchMethodException e) {
 e.printStackTrace();
 } catch (IllegalArgumentException e) {
 e.printStackTrace();
 } catch (IllegalAccessException e) {
 e.printStackTrace();
 } catch (InvocationTargetException e) {
 e.printStackTrace();
 }
 }

 The top right corner on the Android Developer documentation mentions for 
 which Version the methods were introduced.

 On Wednesday, August 1, 2012 10:27:06 AM UTC-4, Eric oboite wrote:

 When creating my new app should I build against 2.2 or 4.1? I know 2.2 
 has 83% of the market right now but can I build against 4.1 and make the 
 min sdk android 2.0?



-- 
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] Open Groupon app from a caller app.

2012-08-02 Thread Justin Anderson
Launching the app would be easy... Install it on your device and figure out
the package name of the app and the name of the activity class to launch.

Getting it to open up to a specific coupon may be a different story...
You'd have to contact them.

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


On Tue, Jul 31, 2012 at 10:39 AM, Vincent Senese vsenesen...@gmail.comwrote:

 I have written an app that opens up a Groupon URL via the web-browser.  is
 there anyway I could OPEN a groupon App if it is installed on the andoid
 os, and lanch the app to show the deal page.

 I do not know anyway to do this, or if it's possible but if someone can
 confirm this is not possible, or if it is possible point me in the correct
 location, I'd appreciate it.

 --
 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 2.2 or 4.1??

2012-08-02 Thread Justin Anderson
Another thing you can do is check the API level...  I do that for a few
features in my app.  Then you don't have to use reflection.

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


On Thu, Aug 2, 2012 at 8:51 AM, G. Blake Meike blake.me...@gmail.comwrote:

 Many of the features in 4.1 can also be found in the Support Package
 (formerly the ACL).  Depending on the exact features you need, you may be
 able to build your app for 4.1 and then backport it to 2.2, by adding the
 Support Library to the project.

 G. Blake Meike
 Marakana

 The second edition of Programming Android is now on-line:
 http://shop.oreilly.com/product/0636920023005.do


 On Thursday, August 2, 2012 7:45:56 AM UTC-7, Jeremy Villalobos wrote:

 Yes

 Do note that some API calls will throw Exceptions on Froyo.  To avoid
 this, use Reflections

 For example: my app supports from Froyo upward, but Froyo does not
 support icons on the Preference Activity.  So I use this to set the icon
 for ICS, and skip the step on Froyo

  void workAroundSetPicture(**Preference pref, int resource){
 try {
 Method m = pref.getClass().getMethod(**setIcon, int.class);
  m.invoke( pref,  resource );
 } catch (SecurityException e) {
 e.printStackTrace();
  } catch (NoSuchMethodException e) {
 e.printStackTrace();
 } catch (IllegalArgumentException e) {
  e.printStackTrace();
 } catch (IllegalAccessException e) {
 e.printStackTrace();
  } catch (InvocationTargetException e) {
 e.printStackTrace();
 }
 }

 The top right corner on the Android Developer documentation mentions for
 which Version the methods were introduced.

 On Wednesday, August 1, 2012 10:27:06 AM UTC-4, Eric oboite wrote:

 When creating my new app should I build against 2.2 or 4.1? I know 2.2
 has 83% of the market right now but can I build against 4.1 and make the
 min sdk android 2.0?

  --
 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: Is setting invalid APN the only way to disable mobile network connection?

2012-08-02 Thread Kristopher Micinski
On Tue, Jul 31, 2012 at 4:58 PM, dmmh slin...@gmail.com wrote:
 Actually I am writing a similar application, and ran into the platforms
 numurous odd and apparently silly limitations.

 While some limitations are probably needed, a lot of features which should
 be available to developers are disabled where they were previously were
 enabled, or are simply lacking, or blocked/ hidden.
 If I, me, the user, wants control over how the device behaves, it should be
 my decision to automate it by installing an app, or do it manually from a
 settings menu.
 If I want to be dictated by my device, I can always switch to Apple...
 That has nothing to do with a denial of service attack against other
 applications on the device, it has to do with wanting to have control over
 your device.

Of course it doesn't, but I never said you were launching a denial of
service attack on other applications, I said it was possible using the
same API.

 Ask yourself: is it a denial of service attack if the user changes the
 features the platform blocks in the settings menu?


No, but how many of these features can accurately be reflected and
conveyed to the user? Some.

 If I download a application knowing it can programmaticaly enable/ disable
 NFC, then I must be fully aware that it does just that, arent't I?
 No, actually I am not, not with the current way the permissions system
 works.
 This is because the it is inheritly flawed, and thus unsecure, resulting in
 the need to block certain features.


That's right.

 All permissions are treated equally when you install the application,
 because of this most people won't read the whole permissions list.
 Dangerous permissions can even be (and are mostly, ironically) on the
 lower part of the list.
 These should be on top of the list, highlighted even, in red or whatever, so
 it catches your attention when you install a dangerous application.
 If it catches your attention, you will think twice to install it as a user.


At the same time, you have no choice whether or not to install the app.

 And this opens up the way for developers to access features which are needed
 and should/ could be opened in the API, when new permissions are created for
 currently deemed dangerous features, lifting the problem of having to
 limit seemingly harmless things like NFC enable/ disable.


that's right..

kris

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


Re: [android-developers] Re: how to run a service in background when the user is out of android application

2012-08-02 Thread Kristopher Micinski
how often?

kris

On Thu, Aug 2, 2012 at 1:16 AM, Vijay Krishnan vijay.vijay...@gmail.com wrote:
 If a user installed my app,i need to update his location whenever it changes


 On Wed, Aug 1, 2012 at 10:49 PM, Kristopher Micinski
 krismicin...@gmail.com wrote:

 Still, he didn't say what he was doing with this, so it's hard to say
 what will work... hmm...

 kris

 On Wed, Aug 1, 2012 at 1:01 PM, dnkoutso dnkou...@gmail.com wrote:
  When you use startService() your service will remain running until
  stopSelf() or stopService() is called.
 
  However, keep in mind that Android will eventually keep your process as
  the
  user has navigated away from the app so you can never guarantee to
  receive
  continuous location updates.
 
  Another crappy way to do is to use startForeground() (might be
  setForeground, don't rmbr) which will include a notification icon always
  for
  the user. This will give you better chances to survive as a process
  but
  its STILL not guaranteed. Plus you will also annoy your user by having
  the
  icon always on his notification bar.
 
  You need something smarter. As suggested you could attempt to wake up a
  service every 5 minutes using the AlarmManager to check for the latest
  location. Perhaps a tier based system, try WiFi, Cellular and then GPS.
 
  Also check out PassiveLocationReceiver which will allow you to retrieve
  location updates when other apps ask them (e.g. Maps) so you get
  updated.
 
  This is not an easy task on Android to get right.
 
 
  On Wednesday, August 1, 2012 8:32:52 AM UTC-7, Kristopher Micinski
  wrote:
 
  That's not really a good idea either, it's not clear what the OP wants
  to do within the service.
 
  Typically you do something like set up a call back to receive location
  updates or something similar...
 
  kris
 
  On Wed, Aug 1, 2012 at 11:12 AM, Gabriel Augusto
  gabrielaugust...@gmail.com wrote:
   A Service running in background every time must end with the battery
   or
   be
   killed by the os. Make a Service that run, do your work and see
   AlarmManager
   to start the Service again.
  
  
   2012/8/1 bob b...@coolfone.comze.com
  
   Maybe look at this?
  
   http://developer.android.com/reference/android/app/Service.html
  
  
   On Monday, July 30, 2012 1:44:39 AM UTC-5, Vijay Krishnan wrote:
  
   Hi all,
In my case,i want to update the user latitude and
   longitude
   in
   background when he is out of the application.
  
   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


 --
 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] how to get reference to GLSurfaceView's rendering thread?

2012-08-02 Thread Latimerius
I'd like to call join() on it to make sure the thread has exited.

(Broader context for those interested: I have a crash in my GL-based
app that happens like this:

- device is put to sleep with my app in the foreground
- an incoming call wakes the device up
- I receive onResume() and I call onResume() on my GLSurfaceView
- I receive onPause() almost immediately after onResume() since the
phone app goes to the background due to the incoming call
- the time between onResume() and onPause() is rather short but enough
for GLSurfaceView to go through all of its setup up to and including
the initial onDrawFrame() call
- my onDrawFrame() goes into texture  geometry loading routine which
can take up to several seconds so it's still loading when onPause() is
called as mentioned previously
- like many people here I have a globally-accessible method of
retrieving a reference to my main Activity to be used as the current
Context.  This is used while loading graphics data to read asset
files.
- this Context reference however gets nulled out in onPause() in an
attempt not to leak main Activity instances.  As the main thread
running onPause() nulls it while the rendering thread is still needing
it to finish loading the program crashes.

The idea is to call GLSurfaceView.onPause() and then wait until the
rendering thread actually exit.  Then null the Context reference.)

-- 
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 2.2 or 4.1??

2012-08-02 Thread Raphael P.F.
That's inaccurate, right now Froyo stands for
15.5%http://www.androidpolice.com/2012/08/01/android-platform-distribution-updated-ics-up-to-almost-16-jelly-bean-0-8/
.

On Thu, Aug 2, 2012 at 11:56 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Another thing you can do is check the API level...  I do that for a few
 features in my app.  Then you don't have to use reflection.

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



 On Thu, Aug 2, 2012 at 8:51 AM, G. Blake Meike blake.me...@gmail.comwrote:

 Many of the features in 4.1 can also be found in the Support Package
 (formerly the ACL).  Depending on the exact features you need, you may be
 able to build your app for 4.1 and then backport it to 2.2, by adding the
 Support Library to the project.

 G. Blake Meike
 Marakana

 The second edition of Programming Android is now on-line:
 http://shop.oreilly.com/product/0636920023005.do


 On Thursday, August 2, 2012 7:45:56 AM UTC-7, Jeremy Villalobos wrote:

 Yes

 Do note that some API calls will throw Exceptions on Froyo.  To avoid
 this, use Reflections

 For example: my app supports from Froyo upward, but Froyo does not
 support icons on the Preference Activity.  So I use this to set the icon
 for ICS, and skip the step on Froyo

  void workAroundSetPicture(**Preference pref, int resource){
 try {
 Method m = pref.getClass().getMethod(**setIcon, int.class);
  m.invoke( pref,  resource );
 } catch (SecurityException e) {
 e.printStackTrace();
  } catch (NoSuchMethodException e) {
 e.printStackTrace();
 } catch (IllegalArgumentException e) {
  e.printStackTrace();
 } catch (IllegalAccessException e) {
 e.printStackTrace();
  } catch (InvocationTargetException e) {
 e.printStackTrace();
 }
 }

 The top right corner on the Android Developer documentation mentions for
 which Version the methods were introduced.

 On Wednesday, August 1, 2012 10:27:06 AM UTC-4, Eric oboite wrote:

 When creating my new app should I build against 2.2 or 4.1? I know 2.2
 has 83% of the market right now but can I build against 4.1 and make the
 min sdk android 2.0?

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




-- 
Raphael
http://blog.rmontanaro.com/

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