[android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-12 Thread skink


Meena Rengarajan wrote:
 Any help/suggestions would be highly appreciated, thanks !

post the pseudo code of your onDraw and onTouchEvent, i really mean
pseudo code, not zyllions lines of real code

pskink

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




[android-developers] How to prompt the user only to download one language? (Text To Speech)

2013-02-12 Thread saex
Hi

I'm trying to do a text to speech test application, seeing this tutorial: 
http://android-developers.blogspot.com.es/2009/09/introduction-to-text-to-speech-in.html

I tryed doing what the tutorial says, and i'm setting the language only to 
spanish: 

mTts = new TextToSpeech(this, this);
mTts.setLanguage(new Locale(spa));

The problem is that when the app starts, the app prompts me to a screen 
asking me download four languages, GERMAN, SPANISH, FRENCH, ITALIAN. If i 
only download spanish language and then i press back key, the app works, 
but EACH TIME i start the app, it shows me the same screen to download the 
other three languages, and only stop appearing if i download the foru 
languages.

My objective is to prompt the user to download ONLY spanish, and to show 
the languages download dialog only one time, not allways.

I'm testing it on a Nexus S phone with 4.1

This is the full code:

public class MainActivity extends Activity implements OnInitListener {

private static final int MY_DATA_CHECK_CODE = 0;
EditText editText;
Button button;
private TextToSpeech mTts;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editText = (EditText) findViewById(R.id.editText);
button = (Button) findViewById(R.id.button);

editText.setText(Estoy probando, probando y probando, porque hay que 
probar.);

Intent checkIntent = new Intent();
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkIntent, MY_DATA_CHECK_CODE);

 mTts = new TextToSpeech(this, this);
 mTts.isLanguageAvailable(new Locale(spa));

button.setOnClickListener(new OnClickListener() {   
@Override
public void onClick(View v) {
mTts.speak(editText.getText().toString(), 
TextToSpeech.QUEUE_FLUSH, null);


}
});
}

protected void onActivityResult(int requestCode, int resultCode, Intent 
data) {
if (requestCode == MY_DATA_CHECK_CODE) {
if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) {
// success, create the TTS instance
mTts = new TextToSpeech(this, this);
mTts.setLanguage(new Locale(spa));
} else {
// missing data, install it
Intent installIntent = new Intent();
installIntent.setAction(
TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
startActivity(installIntent);
}
}
}

@Override
public void onInit(int arg0) {
// TODO Auto-generated method stub

}}

 

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




[android-developers] How to prompt the user only to download one language? (Text To Speech)

2013-02-12 Thread saex


Hi

I'm trying to do a text to speech test application, seeing this tutorial: 
http://android-developers.blogspot.com.es/2009/09/introduction-to-text-to-speech-in.html

I tryed doing what the tutorial says, and i'm setting the language only to 
spanish: 

mTts = new TextToSpeech(this, this);
mTts.setLanguage(new Locale(spa));

The problem is that when the app starts, the app prompts me to a screen 
asking me download four languages, GERMAN, SPANISH, FRENCH, ITALIAN. If i 
only download spanish language and then i press back key, the app works, 
but EACH TIME i start the app, it shows me the same screen to download the 
other three languages, and only stop appearing if i download the foru 
languages.

My objective is to prompt the user to download ONLY spanish, and to show 
the languages download dialog only one time, not allways.

I'm testing it on a Nexus S phone with 4.1

This is the full code:

public class MainActivity extends Activity implements OnInitListener {

private static final int MY_DATA_CHECK_CODE = 0;
EditText editText;
Button button;
private TextToSpeech mTts;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editText = (EditText) findViewById(R.id.editText);
button = (Button) findViewById(R.id.button);

editText.setText(Estoy probando, probando y probando, porque hay que 
probar.);

Intent checkIntent = new Intent();
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkIntent, MY_DATA_CHECK_CODE);

 mTts = new TextToSpeech(this, this);
 mTts.isLanguageAvailable(new Locale(spa));

button.setOnClickListener(new OnClickListener() {   
@Override
public void onClick(View v) {
mTts.speak(editText.getText().toString(), 
TextToSpeech.QUEUE_FLUSH, null);


}
});

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




[android-developers] Re: How to prompt the user only to download one language? (Text To Speech)

2013-02-12 Thread skink
iterate over all Locales by calling Locale.getAvailableLocales() and
see how to construct your spanish Locale

pskink

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




Re: [android-developers] Gyroscope

2013-02-12 Thread Marta Ribeiro
Well yes that's my doubt, if you say gyroscope noise and drift will 
introduce errors that need to be compensated for. and i'm not applying any 
filter of my own, i'm just examining the data directly from sensor.event 
and they seem not to have any noise or bias, it seems a bit impossible if 
the tablet does not have some kinf of filter embedded.

I'm I on the right path here?

And thank you for your answer!

On Monday, February 11, 2013 6:39:02 PM UTC, Tux wrote:

 Hi, 

 your measurement are as expected. The gyroscope measures the rate or 
 rotation in rad/s and in stationary state the turn rate is about Zero. 


 http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro
  

 Standard gyroscopes provide raw rotational data without any filtering 
 or correction for noise and drift (bias). In practice, gyroscope noise 
 and drift will introduce errors that need to be compensated for. You 
 usually determine the drift (bias) and noise by monitoring other 
 sensors, such as the gravity sensor or accelerometer. 



 2013/2/11 Marta Ribeiro martacunh...@gmail.com javascript:: 
  Hi! 
  
  I'm doing a project, and it requires me to analyse the reliability of a 
  tablet's sensors. 
  
  I have analysed the gyroscope data when the tablet is stationary, and 
 the 
  results are an average of -5.3263 *10^{-7} and a standard deviation 
 equal to 
  0. 
  
  Now this leads me to believe that this sensor has some kind of filter 
  embedded already, although I can't seem to find any information about 
 it. 
  
  I appreciate any kind of information regarding this results. 
  
  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-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 
  --- 
  You received this message because you are subscribed to the Google 
 Groups 
  Android Developers group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  


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




Re: [android-developers] NFC Card Emulation on android

2013-02-12 Thread Michael Roland
Hi Eliseo,

 so Nexus S, Galaxy Nexus and Galaxy S III have a fixed UID?

These phones have an embedded secure element that has a fixed UID.

 it is due to the NFC NXP controller or to the secure element?

Secure Element. The NFC controller uses random UIDs for all other cases.

 Which secure element they have?

The embedded secure element on the Nexus S/Galaxy Nexus is a SmartMX
from NXP.

 In a previous post, Nikolay say that You can't fix the UID, at least
 not with any of the standard NXP controllers.. Is it correct?

For NXP's PN544 that's correct. For peer-to-peer mode and software card
emulation, that NFC controller will use a random UID/NFCID1. Only in
secure element based card emulation mode, the UID provided by the secure
element is used.

 the fixed UID depends of the SE present on
 the phone? In case of random UID, what kind of SE is present?

It not only depends on the SE being present. For the SE's UID to be
used, the phone must also be in card emulation mode using that secure
element.

 Which android phones can do software card emulation? is it made by the
 OS or by one custom application?

The CyanogenMod 9.1 firmware contains patches to enable card emulation
on phone's with NXP's NFC chipset (PN544). So any phone that you can put
CyanogenMod on and that contains a PN544 should work. The standard
Android OS on the phones is currently not capable of software card
emulation.

Best regards,
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: How to prompt the user only to download one language? (Text To Speech)

2013-02-12 Thread saex
What you mean with how to construct my spanish Locale? how can i do that?

El martes, 12 de febrero de 2013 10:49:47 UTC+1, skink escribió:

 iterate over all Locales by calling Locale.getAvailableLocales() and 
 see how to construct your spanish Locale 

 pskink 


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




[android-developers] Re: How to prompt the user only to download one language? (Text To Speech)

2013-02-12 Thread skink


saex wrote:
 What you mean with how to construct my spanish Locale? how can i do that?

construct == build == create

in java it mostly applies to using class constructor

pskink

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




[android-developers] Re: How to prompt the user only to download one language? (Text To Speech)

2013-02-12 Thread saex
thanks for your amazing help, now i'm a wonderfull developer

El martes, 12 de febrero de 2013 11:57:01 UTC+1, skink escribió:



 saex wrote: 
  What you mean with how to construct my spanish Locale? how can i do 
 that? 

 construct == build == create 

 in java it mostly applies to using class constructor 

 pskink 


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




Re: [android-developers] Gyroscope

2013-02-12 Thread s.rawat
whats the part number of the Gyroscope in the Tablet any idea?
..pain is temporary.quitting lasts forever.
 My Blog http://techshek4u.blogspot.in/


On Tue, Feb 12, 2013 at 3:32 PM, Marta Ribeiro 
martacunharibeir...@gmail.com wrote:

 Well yes that's my doubt, if you say gyroscope noise and drift will
 introduce errors that need to be compensated for. and i'm not applying any
 filter of my own, i'm just examining the data directly from sensor.event
 and they seem not to have any noise or bias, it seems a bit impossible if
 the tablet does not have some kinf of filter embedded.

 I'm I on the right path here?

 And thank you for your answer!


 On Monday, February 11, 2013 6:39:02 PM UTC, Tux wrote:

 Hi,

 your measurement are as expected. The gyroscope measures the rate or
 rotation in rad/s and in stationary state the turn rate is about Zero.

 http://developer.android.com/**guide/topics/sensors/sensors_**
 motion.html#sensors-motion-**gyrohttp://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro

 Standard gyroscopes provide raw rotational data without any filtering
 or correction for noise and drift (bias). In practice, gyroscope noise
 and drift will introduce errors that need to be compensated for. You
 usually determine the drift (bias) and noise by monitoring other
 sensors, such as the gravity sensor or accelerometer.



 2013/2/11 Marta Ribeiro martacunh...@gmail.com**:
  Hi!
 
  I'm doing a project, and it requires me to analyse the reliability of a
  tablet's sensors.
 
  I have analysed the gyroscope data when the tablet is stationary, and
 the
  results are an average of -5.3263 *10^{-7} and a standard deviation
 equal to
  0.
 
  Now this leads me to believe that this sensor has some kind of filter
  embedded already, although I can't seem to find any information about
 it.
 
  I appreciate any kind of information regarding this results.
 
  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-d...@**googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+**unsubscr...@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
  ---
  You received this message because you are subscribed to the Google
 Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to android-developers+**unsubscr...@googlegroups.com.
  For more options, visit 
  https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out.

 
 

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




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




[android-developers] Parser

2013-02-12 Thread Arun Kumar K
Hi,
I want to know which parser is best for android application..
What is the different between json and jackson parser.
which parser is best json or JACKSON

-- 
*Thanks  Regards*
*K.Arun Kumar*

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




[android-developers] select call option

2013-02-12 Thread sree android
Hi,
i write a code for make a phone call,here code is


 String number=contactList[position];
Intent callIntent=new
Intent(android.content.Intent.ACTION_CALL);
callIntent.setData(Uri.parse(tel:+number));
startActivity(Intent.createChooser(callIntent,));


When select phone number directly connecting to call.but my mobile have
viber and skype.it is not asking viber or skype.how can i write code for
these operation(when i select a number for make a call it will ask dialer
or skype or viber).
 give me any suggessions.
thank you in advance.

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




[android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-12 Thread Bajrang Asthana
We want to implement uninstall feature based on the apps usage. So for 
instance if an app is not used since long time then we highlight so that 
user can know and uninstall 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How i connect from android to another cellphone with (DUN or PAN)?

2013-02-12 Thread Antonis Kanaris
 
   
I create a simple bluetooth terminal for android and i want to connect with 
other cellphone not android support uuid=1115(PAN) with personal area 
networkand share internet connection to android.How i do this?I know 
for (DUN) is AT+CGDCONT=1,IP,APN...and after dial with ATD*99***1# What 
is the procedure for PAN?I connected with my PC and BlueSoleil with 
cellphone share internet to pc...I test it again with DUN bluetooth 
service...

 AT+CGDCONT=1,IP,MYAPN
 REPLY OK

 ATD*99***1#
 REPLY CONNECT

After what can i do?I can use url from my terminal?How i keep my 
application to backgroung and open my browser for use internet? 

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




Re: [android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-12 Thread Kristopher Micinski
You'll have to do this by polling the system every once a while, the
system doesn't have any direct hooks to allow you to view these kinds
of logs any other way,

Kris

On Tue, Feb 12, 2013 at 8:24 AM, Bajrang Asthana
asthana.bajr...@gmail.com wrote:
 We want to implement uninstall feature based on the apps usage. So for
 instance if an app is not used since long time then we highlight so that
 user can know and uninstall 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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




[android-developers] AccountManager and storing credentials

2013-02-12 Thread saladbowl
OK - there is a lot of information out there on this subject, a lot of it 
is conflicting and some of it is probably outdated by now. I am hoping that 
some clear, concise answers will help clear my confusion.

I am new to developing Android applications and I am currently developing a 
prototype. I am currently storing a username and password for an Account 
via the AccountManager. My understanding is that the AccountManager stores 
the username and password in plain text. On non-rooted devices this seems 
to be relatively OK because the AccountManager DB requires root 
permissions. However, on rooted devices the username and password will be 
compromised.

*How easy is it to gain root access/jailbreak an Android device?* Should I 
be concerned and assume that relying solely on AccountManager permissions 
is a bad idea (that is my opinion at the moment).

I understand that the best approach is to ask the server for a token during 
authentication and never store the password, only the token. However, for 
the time being, *is there a one step better than plain text?.* I was 
thinking about encrypting/decrypting somehow (hashing is of no use as I 
need to be able to get the original password as plain text) - but then I 
have the problem of storing a key somewhere?.

Any advice would be 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Parser

2013-02-12 Thread Kristopher Micinski
JSON is so easy to use, I've never really had a problem with org.json.
 If you can get by using it I would do that, as it's already in the
API (you won't have statically linked code sitting around clouding
your app).

kris

On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K arunkuma...@npcompete.net wrote:
 Hi,
 I want to know which parser is best for android application..
 What is the different between json and jackson parser.
 which parser is best json or JACKSON

 --
 Thanks  Regards
 K.Arun Kumar


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



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




Re: [android-developers] Gyroscope

2013-02-12 Thread bob
 

Yes, you are on the right track.


Reto Meier discusses this in his Android book.


*Introducing Virtual Sensors* 

Android Sensors typically work independently of each other, each reporting 
the results obtained from a particular piece of hardware without applying 
any filtering or smoothing. In some cases it can be helpful to use virtual 
Sensors that present simplified, corrected, or composite sensor data in a 
way that makes them easier to use within some applications. The gravity, 
linear-acceleration, and rotation-vector Sensors described previously are 
examples of virtual Sensors provided by the framework. They may use a 
combination of accelerometers, magnetic-field sensors, and gyroscopes, 
rather than the output of a specific piece of hardware. In some cases the 
underlying hardware will also provide virtual sensors. In such cases both 
the framework and hardware virtual Sensors are offered, with the default 
sensor being the best available. *Corrected gyroscope and orientation 
Sensors are also available as virtual sensors* that attempt to improve the 
quality and performance


of their respective hardware sensors. This involves using filters and the 
output of multiple Sensors to smooth, correct, or filter the raw output. To 
ensure predictability and consistency across platforms and devices, the 
Sensor Manager always offers you the hardware Sensors by default. It's good 
practice to experiment with all the available Sensors of a given type to 
determine the best alternative for your particular application.


Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Locations 12784-12794). John Wiley and 
Sons. Kindle Edition. 





if (gyroscopes != null  gyroscopes.size()  1) *correctedGyro *= 
gyroscopes.get( gyroscopes.size()-1);


Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Locations 12826-12827). John Wiley and 
Sons. Kindle Edition. 





On Tuesday, February 12, 2013 4:02:49 AM UTC-6, Marta Ribeiro wrote:

 Well yes that's my doubt, if you say gyroscope noise and drift will 
 introduce errors that need to be compensated for. and i'm not applying any 
 filter of my own, i'm just examining the data directly from sensor.event 
 and they seem not to have any noise or bias, it seems a bit impossible if 
 the tablet does not have some kinf of filter embedded.

 I'm I on the right path here?

 And thank you for your answer!

 On Monday, February 11, 2013 6:39:02 PM UTC, Tux wrote:

 Hi, 

 your measurement are as expected. The gyroscope measures the rate or 
 rotation in rad/s and in stationary state the turn rate is about Zero. 


 http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro
  

 Standard gyroscopes provide raw rotational data without any filtering 
 or correction for noise and drift (bias). In practice, gyroscope noise 
 and drift will introduce errors that need to be compensated for. You 
 usually determine the drift (bias) and noise by monitoring other 
 sensors, such as the gravity sensor or accelerometer. 



 2013/2/11 Marta Ribeiro martacunh...@gmail.com: 
  Hi! 
  
  I'm doing a project, and it requires me to analyse the reliability of a 
  tablet's sensors. 
  
  I have analysed the gyroscope data when the tablet is stationary, and 
 the 
  results are an average of -5.3263 *10^{-7} and a standard deviation 
 equal to 
  0. 
  
  Now this leads me to believe that this sensor has some kind of filter 
  embedded already, although I can't seem to find any information about 
 it. 
  
  I appreciate any kind of information regarding this results. 
  
  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-d...@googlegroups.com 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 
  --- 
  You received this message because you are subscribed to the Google 
 Groups 
  Android Developers group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



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

[android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-12 Thread bob
Why do you say MotionEvent.ACTION_MOVE is not working properly?

Are you redrawing after a move event?  You probably need to call 
invalidate().



On Tuesday, February 12, 2013 12:34:28 AM UTC-6, Meena Rengarajan wrote:

 How to draw or write a text like MS-Paint in android using onTouch Event? 

 I have tried alot, googled and as many possibilities coded on. No use. 
 please anyone help/suggest about this issue !

  Can refer this Video - http://www.youtube.com/watch?v=v65AUWyfjo0

 I have created a panel with the collection of different colors, 
 pencil, eraser and different shapes similar to MS-Paint. I could be able to 
 draw or write on a screen using Touch Event method. But when i draw 
 something on a screen (when i touch the screen), MotionEvent.ACTION_Down 
 method is calling. So it works fine. When i release my finger from the 
 screen, MotionEvent.ACTION_up method is calling and works fine. 

 So, my problem is, like MS-PAINT i couldnt be able to see what i drew or 
 wrote before i releasing the finger on a screen. For an example, can refer 
 this video link- Using pencil. User can see when he dragged the shapes or 
 trying to draw a pencil. Also, in this link user draws using pencil and it 
 is visible without releasing a finger on the screen. 

 But, when i draw something on the screen, once i released the finger only 
 it appears.

 What i need is, when user touch the screen itself if he/she moves the 
 finger on the screen, user must be able to see what they are trying to draw 
 or write on the screen.

 For an Example : If i try to write some word like Apple on a screen , i 
 am trying to put A . But when i write letter A, it is invisible unless 
 i take my finger from the screen. Once if i released my finger from the 
 screen after i drew letterA then only the text or picture has been 
 appeared on a screen what i drew.

 So, I have done MotionEvent.ACTION_DOWN and MotionEVent.ACTION_UP. Its 
 work fine.

 But, MotionEvent.ACTION_MOVE is not working properly. 

 Can you suggest me or any ideas ? 

 Any help/suggestions would be highly appreciated, thanks !



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




[android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-12 Thread bob
 

Is this mainly for freeing up space?


If so, I would think the built-in Sort by size feature in Settings would 
probably be slightly more useful.




On Tuesday, February 12, 2013 7:24:11 AM UTC-6, Bajrang Asthana wrote:

 We want to implement uninstall feature based on the apps usage. So for 
 instance if an app is not used since long time then we highlight so that 
 user can know and uninstall 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: How i connect from android to another cellphone with (DUN or PAN)?

2013-02-12 Thread bob
 

If your other cellphone is not Android, what is it?



On Tuesday, February 12, 2013 7:45:05 AM UTC-6, Antonis Kanaris wrote:


I create a simple bluetooth terminal for android and i want to connect 
 with other cellphone not android support uuid=1115(PAN) with personal area 
 networkand share internet connection to android.How i do this?I know 
 for (DUN) is AT+CGDCONT=1,IP,APN...and after dial with ATD*99***1# What 
 is the procedure for PAN?I connected with my PC and BlueSoleil with 
 cellphone share internet to pc...I test it again with DUN bluetooth 
 service...

  AT+CGDCONT=1,IP,MYAPN
  REPLY OK

  ATD*99***1#
  REPLY CONNECT

 After what can i do?I can use url from my terminal?How i keep my 
 application to backgroung and open my browser for use internet? 


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




[android-developers] Re: How can i trun off the screen in the android emulator.

2013-02-12 Thread bob
 

There is no such thing as trun.


If you mean turn, then switch off the computer screen the emulator is 
running on.



On Tuesday, February 12, 2013 4:24:58 AM UTC-6, SIVAKUMAR.J wrote:

 Dear All,


 How can i trun off the screen in the android emulator. 
 Im using android 2.3.3 version


 -- 
 *Thanks  Regards,
 SIVAKUMAR.J http://stackoverflow.com/users/385138/sivakumar-j
 * 

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




Re: [android-developers] How can i trun off the screen in the android emulator.

2013-02-12 Thread Kristopher Micinski
You can run the emulator in headless mode by starting it with the
`-no-window` option.  The flags to `avd create` and `emulator` are worth
exploring, as they present some nice scripting capabilities.

Kris


On Tue, Feb 12, 2013 at 5:24 AM, Siva Kumar j.sivakumar...@gmail.comwrote:

 Dear All,


 How can i trun off the screen in the android emulator.
 Im using android 2.3.3 version


 --
 *Thanks  Regards,
 SIVAKUMAR.J http://stackoverflow.com/users/385138/sivakumar-j
 *

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




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




[android-developers] Problems with Text To Speech

2013-02-12 Thread saex
 

Hi

I'm trying to do a text to speech test application, seeing this tutorial: 
http://android-developers.blogspot.com.es/2009/09/introduction-to-text-to-speech-in.html

I tryed doing what the tutorial says, and i'm setting the language only to 
spanish: 

   mTts = new TextToSpeech(this, this);
   Locale loc = new Locale (spa, ESP);
   mTts.setLanguage(loc);

The problem is that when the app starts, the app prompts me to a screen 
asking me download four languages, GERMAN, SPANISH, FRENCH, ITALIAN. If i 
only download spanish language and then i press back key, the app works, 
but EACH TIME i start the app, it shows me the same screen to download the 
other three languages, and only stop appearing if i download the foru 
languages.

My objective is to prompt the user to download ONLY spanish, and to show 
the languages download dialog only one time, not allways.

I'm testing it on a Nexus S phone with 4.1

This is the full code:

public class MainActivity extends Activity implements OnInitListener {  
private static final int MY_DATA_CHECK_CODE = 0;
EditText editText;
Button button;
private TextToSpeech mTts;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editText = (EditText) findViewById(R.id.editText);
button = (Button) findViewById(R.id.button);

editText.setText(Estoy probando, porque hay que probar.); 


Intent checkIntent = new Intent();
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkIntent, MY_DATA_CHECK_CODE);

button.setOnClickListener(new OnClickListener() {   
@Override
public void onClick(View v) {
mTts.speak(editText.getText().toString(), 
TextToSpeech.QUEUE_FLUSH, null);  
}
});
}

protected void onActivityResult(int requestCode, int resultCode, Intent 
data) {
if (requestCode == MY_DATA_CHECK_CODE) {
if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) {
// success, create the TTS instance
mTts = new TextToSpeech(this, this);
Locale loc = new Locale (spa, ESP);
mTts.setLanguage(loc);
} else {
// missing data, install it
Intent installIntent = new Intent();

installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
startActivity(installIntent);

mTts = new TextToSpeech(this, this);
Locale loc = new Locale (spa, ESP);
mTts.setLanguage(loc);
}
}
}

@Override
public void onInit(int arg0) {}}

 

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




[android-developers] Re: Problems with Text To Speech

2013-02-12 Thread skink
iterate over all Locales by
calling
Locale.getAvailableLocales
() and learn how to construct your spanish Locale

pskink

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




[android-developers] Re: Problems with Text To Speech

2013-02-12 Thread saex
I checked in docens of posts and i can't find another way to construct my 
spanish locale. Please, try to make a better explained answer or to test 
your answer before writting it. 

El martes, 12 de febrero de 2013 17:35:50 UTC+1, skink escribió:

 iterate over all Locales by 
 calling 
 Locale.getAvailableLocales 
 () and learn how to construct your spanish Locale 

 pskink 


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




[android-developers] error message

2013-02-12 Thread njman
02-12 11:38:57.025: W/InputEventReceiver(14874): Attempted to finish an 
input event but the input event receiver has already been disposed.


I'm getting above message when closing a menu.

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




[android-developers] High Resolution Application Icon Spec

2013-02-12 Thread Simon Giddings
In the current spec, the high resolution application icon said to have to 
be a 32bit PNG.
However, in the version of photoshop I have, I can only output to a 24bit 
PNG.

Is this acceptable or will my images be rejected ?

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




Re: [android-developers] Re: How i connect from android to another cellphone with (DUN or PAN)?

2013-02-12 Thread Robert Greenwalt
Despite some misnamed features, android does not actually support the DUN
connection style with AT commands, etc.  We do support a variety of BT
connection profiles though, including raw sockets for passing arbitrary
data and PAN/PNEP for tethering.


On Tue, Feb 12, 2013 at 8:14 AM, bob b...@coolfone.comze.com wrote:

 If your other cellphone is not Android, what is it?



 On Tuesday, February 12, 2013 7:45:05 AM UTC-6, Antonis Kanaris wrote:


I create a simple bluetooth terminal for android and i want to
 connect with other cellphone not android support uuid=1115(PAN) with
 personal area networkand share internet connection to android.How i do
 this?I know for (DUN) is AT+CGDCONT=1,IP,APN...and after dial with
 ATD*99***1# What is the procedure for PAN?I connected with my PC and
 BlueSoleil with cellphone share internet to pc...I test it again with DUN
 bluetooth service...

  AT+CGDCONT=1,IP,MYAPN
  REPLY OK

  ATD*99***1#
  REPLY CONNECT

 After what can i do?I can use url from my terminal?How i keep my
 application to backgroung and open my browser for use internet?

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




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




[android-developers] Re: Problems with Text To Speech

2013-02-12 Thread skink


saex wrote:
 I checked in docens of posts and i can't find another way to construct my
 spanish locale. Please, try to make a better explained answer or to test
 your answer before writting it.



in pseudocode:

locales = get all locales
for locale in locales
  print out locale

pskink

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




[android-developers] Re: Problems with Text To Speech

2013-02-12 Thread skink


saex wrote:
Please, try to make a better explained answer or to test
 your answer before writting it.



btw i hate giving a fish i prefer giving a fish rod, i believe it's
better way of learning for the other side

pskink

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




[android-developers] Re: Canvas Android

2013-02-12 Thread janvi
Thanks 

But those shaders are not suting my requirement

I have drawn vertical rectangle and want to fill lines in that so plz 
suggest me or give me some sample sample example

Thanks in advance

On Friday, February 8, 2013 12:42:52 PM UTC+5:30, skink wrote:



 janvi wrote: 
  Hello all 
  
  I need small info,I have drawn a rectangle using canvas in android now i 
  want to fill this rectangle with lines instead of solid color 
  
  Plz help me out to solve this 
  
  Which gradient is useful in this case?? 

 see all the Shaders available on the platform: 

 http://developer.android.com/reference/android/graphics/Shader.html 

 pskink 


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




Re: [android-developers] AccountManager and storing credentials

2013-02-12 Thread Nikolay Elenkov
On Wed, Feb 13, 2013 at 12:11 AM, saladbowl chloefothe...@gmail.com wrote:

  My understanding is that the AccountManager stores the
 username and password in plain text. On non-rooted devices this seems to be
 relatively OK because the AccountManager DB requires root permissions.
 However, on rooted devices the username and password will be compromised.

Right.


 How easy is it to gain root access/jailbreak an Android device? Should I be
 concerned and assume that relying solely on AccountManager permissions is a
 bad idea (that is my opinion at the moment).


It depends on the vendor and on the device, but it's generally doable. As for
being concerned, it depends who you are target users are and how valuable
the password is. Since the user generally knows the password (they probably
put it there), protecting the it from themselves is not really worth
it. The real
problem might be a rogue app on a rooted devices that scans password DBs,
contacts, etc. and uploads them to a server, etc. If want to protect against
this, you might want to do some more work.

 I was
 thinking about encrypting/decrypting somehow (hashing is of no use as I need
 to be able to get the original password as plain text) - but then I have the
 problem of storing a key somewhere?.


You can derive a key based on some device property such as ANDROID_ID,
MAC address, etc. You can mix those, hash them and then use a password
derivation algorithm to generate an actual key. Then use that to
encrypt/decrypt
your data. Of course, if someone knows the algorithm (say, reverses your app),
they can generate the same key and decrypt the data (you can't really protect
against that). But the rogue app mentioned above probably is not that
intelligent,
and is likely going for the low hanging fruit anyway.

In short, it boils down to who/what are you trying to protect your data from,
and how far are you willing to go to do 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Canvas Android

2013-02-12 Thread skink


janvi wrote:
 Thanks

 But those shaders are not suting my requirement

 I have drawn vertical rectangle and want to fill lines in that so plz
 suggest me or give me some sample sample example

 Thanks in advance

 On Friday, February 8, 2013 12:42:52 PM UTC+5:30, skink wrote:
 
 
 
  janvi wrote:
   Hello all
  
   I need small info,I have drawn a rectangle using canvas in android now i
   want to fill this rectangle with lines instead of solid color
  
   Plz help me out to solve this
  
   Which gradient is useful in this case??
 
  see all the Shaders available on the platform:
 
  http://developer.android.com/reference/android/graphics/Shader.html
 
  pskink
 

did you try all of them?

what about BitmapShader?

pskink

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




[android-developers] OpenGL libGLES_trace how to connect to the server

2013-02-12 Thread dani maoz
Hi
I would like to create my own app which trace opengl package.
(The same concept as OpenGL Trace by google)
My question is how can i create a TCP client which connect to the server.
I don't know the server port , or his ip
Can anyone tell me how to connect to LibGLEs server
thanks

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




Re: [android-developers] AccountManager and storing credentials

2013-02-12 Thread saladbowl
Thanks Nikolay, this is a really good and helpful answer.

So, from your experience - do you think most application developers go down 
the recommended token-based route? or just accept that AccountManager 
relies on root permissions and store the username and password directly (if 
there is no extremely sensitive data, e.g. credit card details)?.

On Tuesday, 12 February 2013 17:05:23 UTC, Nikolay Elenkov wrote:

 On Wed, Feb 13, 2013 at 12:11 AM, saladbowl 
 chloef...@gmail.comjavascript: 
 wrote: 
  
   My understanding is that the AccountManager stores the 
  username and password in plain text. On non-rooted devices this seems to 
 be 
  relatively OK because the AccountManager DB requires root permissions. 
  However, on rooted devices the username and password will be 
 compromised. 

 Right. 

  
  How easy is it to gain root access/jailbreak an Android device? Should I 
 be 
  concerned and assume that relying solely on AccountManager permissions 
 is a 
  bad idea (that is my opinion at the moment). 
  

 It depends on the vendor and on the device, but it's generally doable. As 
 for 
 being concerned, it depends who you are target users are and how valuable 
 the password is. Since the user generally knows the password (they 
 probably 
 put it there), protecting the it from themselves is not really worth 
 it. The real 
 problem might be a rogue app on a rooted devices that scans password DBs, 
 contacts, etc. and uploads them to a server, etc. If want to protect 
 against 
 this, you might want to do some more work. 

  I was 
  thinking about encrypting/decrypting somehow (hashing is of no use as I 
 need 
  to be able to get the original password as plain text) - but then I have 
 the 
  problem of storing a key somewhere?. 
  

 You can derive a key based on some device property such as ANDROID_ID, 
 MAC address, etc. You can mix those, hash them and then use a password 
 derivation algorithm to generate an actual key. Then use that to 
 encrypt/decrypt 
 your data. Of course, if someone knows the algorithm (say, reverses your 
 app), 
 they can generate the same key and decrypt the data (you can't really 
 protect 
 against that). But the rogue app mentioned above probably is not that 
 intelligent, 
 and is likely going for the low hanging fruit anyway. 

 In short, it boils down to who/what are you trying to protect your data 
 from, 
 and how far are you willing to go to do 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] AccountManager and storing credentials

2013-02-12 Thread Nikolay Elenkov
On Wed, Feb 13, 2013 at 2:16 AM, saladbowl chloefothe...@gmail.com wrote:
 Thanks Nikolay, this is a really good and helpful answer.

 So, from your experience - do you think most application developers go down
 the recommended token-based route? or just accept that AccountManager relies
 on root permissions and store the username and password directly (if there
 is no extremely sensitive data, e.g. credit card details)?.


I can't really know about other developers. Tokens require some server-side
infrastructure, so it's safe bet that most people don't do it. But then again,
there is no real need to use AccountManager to store credentials, unless
you need to integrate with background sync or other system services.
It doesn't really provide more protection then storing passwords (in plain
text or encrypted) in your own app's private directory.

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




[android-developers] Re: error message

2013-02-12 Thread njman
more details.

the the error when a menu is opened and closed when i tap somewhere else on 
the screen.

if i select a menu item - i do not get the error message.



On Tuesday, February 12, 2013 11:41:33 AM UTC-5, njman wrote:

 02-12 11:38:57.025: W/InputEventReceiver(14874): Attempted to finish an 
 input event but the input event receiver has already been disposed.


 I'm getting above message when closing a menu.



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




Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-12 Thread Meena Rengarajan
no, i have not done anything in MotionEvent.ACTION_MOVE. But i wrote code
only in ACTION_DOWN and ACTION_UP

On Tue, Feb 12, 2013 at 9:20 PM, bob b...@coolfone.comze.com wrote:

 Why do you say MotionEvent.ACTION_MOVE is not working properly?

 Are you redrawing after a move event?  You probably need to call
 invalidate().



 On Tuesday, February 12, 2013 12:34:28 AM UTC-6, Meena Rengarajan wrote:

 How to draw or write a text like MS-Paint in android using onTouch Event?

 I have tried alot, googled and as many possibilities coded on. No use.
 please anyone help/suggest about this issue !

  Can refer this Video - 
 http://www.youtube.com/**watch?v=v65AUWyfjo0http://www.youtube.com/watch?v=v65AUWyfjo0

 I have created a panel with the collection of different colors,
 pencil, eraser and different shapes similar to MS-Paint. I could be able to
 draw or write on a screen using Touch Event method. But when i draw
 something on a screen (when i touch the screen), MotionEvent.ACTION_Down
 method is calling. So it works fine. When i release my finger from the
 screen, MotionEvent.ACTION_up method is calling and works fine.

 So, my problem is, like MS-PAINT i couldnt be able to see what i drew or
 wrote before i releasing the finger on a screen. For an example, can refer
 this video link- Using pencil. User can see when he dragged the shapes or
 trying to draw a pencil. Also, in this link user draws using pencil and it
 is visible without releasing a finger on the screen.

 But, when i draw something on the screen, once i released the finger only
 it appears.

 What i need is, when user touch the screen itself if he/she moves the
 finger on the screen, user must be able to see what they are trying to draw
 or write on the screen.

 For an Example : If i try to write some word like Apple on a screen , i
 am trying to put A . But when i write letter A, it is invisible unless
 i take my finger from the screen. Once if i released my finger from the
 screen after i drew letterA then only the text or picture has been
 appeared on a screen what i drew.

 So, I have done MotionEvent.ACTION_DOWN and MotionEVent.ACTION_UP. Its
 work fine.

 But, MotionEvent.ACTION_MOVE is not working properly.

 Can you suggest me or any ideas ?

 Any help/suggestions would be highly appreciated, thanks !

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




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




Re: [android-developers] Re: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-12 Thread skink


Meena Rengarajan wrote:
 no, i have not done anything in MotionEvent.ACTION_MOVE. But i wrote code
 only in ACTION_DOWN and ACTION_UP


so why did you say:

cite
But, MotionEvent.ACTION_
MOVE is not working
properly.
/cite

pskink

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




[android-developers] Re: Canvas Android

2013-02-12 Thread bob
 

Why not just use an image?



On Tuesday, February 12, 2013 11:03:57 AM UTC-6, janvi wrote:

 Thanks 

 But those shaders are not suting my requirement

 I have drawn vertical rectangle and want to fill lines in that so plz 
 suggest me or give me some sample sample example

 Thanks in advance

 On Friday, February 8, 2013 12:42:52 PM UTC+5:30, skink wrote:



 janvi wrote: 
  Hello all 
  
  I need small info,I have drawn a rectangle using canvas in android now 
 i 
  want to fill this rectangle with lines instead of solid color 
  
  Plz help me out to solve this 
  
  Which gradient is useful in this case?? 

 see all the Shaders available on the platform: 

 http://developer.android.com/reference/android/graphics/Shader.html 

 pskink 



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




[android-developers] Re: error message

2013-02-12 Thread bob
Put a breakpoint in *onMenuItemSelected*.

See if it gets called right before the crash.




On Tuesday, February 12, 2013 11:34:44 AM UTC-6, njman wrote:

 more details.

 the the error when a menu is opened and closed when i tap somewhere else 
 on the screen.

 if i select a menu item - i do not get the error message.



 On Tuesday, February 12, 2013 11:41:33 AM UTC-5, njman wrote:

 02-12 11:38:57.025: W/InputEventReceiver(14874): Attempted to finish an 
 input event but the input event receiver has already been disposed.


 I'm getting above message when closing a menu.



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




[android-developers] Facebook Nearby Graph API (with out fragment)

2013-02-12 Thread giles ian
Hello,

I need to get nearby places using FB's new graph API. I am able to do that
but it returns me Fragment. Is there an API which will return me only
content (JSON)

Thanks,
-Giles

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




[android-developers] Re: error message

2013-02-12 Thread njman
i don't overload that method.

i overload 

public boolean onOptionsItemSelected(MenuItem item)

and no that method does not get called.





On Tuesday, February 12, 2013 12:58:02 PM UTC-5, bob wrote:

 Put a breakpoint in *onMenuItemSelected*.

 See if it gets called right before the crash.




 On Tuesday, February 12, 2013 11:34:44 AM UTC-6, njman wrote:

 more details.

 the the error when a menu is opened and closed when i tap somewhere else 
 on the screen.

 if i select a menu item - i do not get the error message.



 On Tuesday, February 12, 2013 11:41:33 AM UTC-5, njman wrote:

 02-12 11:38:57.025: W/InputEventReceiver(14874): Attempted to finish an 
 input event but the input event receiver has already been disposed.


 I'm getting above message when closing a menu.



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




[android-developers] Can I Promote My Other Application Using GCM Service.

2013-02-12 Thread rishabh agrawal
Hi I am new bee in Android.I want promote my other cool application using 
push notification Using GCM.Can i use it for this purpose or it is 
violation of Google GCM term   condition please let me know.

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




[android-developers] Validity of the token google

2013-02-12 Thread Paulo Henrique Peres
Anyone know the validity of the token generated by the class
GoogleAuthUtil.getToken ()?
I wonder how long it expires






-- 
*Paulo Henrique Peres*
*Oracle Certified Professional, Java Programmer *
*Oracle Certified Professional, Web Component Developer*
https://play.google.com/store/apps/developer?id=Paulo+Henrique+Peres*
*

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




[android-developers] WindowManger containing view covering copy/select all dialog

2013-02-12 Thread Akshat Jain
 

Hello all,

i have added a view to a framelayout. This framelayout is added to the 
windowmanager.

The flags i have used are: 

WindowManager.LayoutParams wlp;

wlp.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL | 
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 
|WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; 


With this I am able to put the view on the window, but when I long press on 
the text areas  the Select/Select all/Copy dialog comes, the view that I 
have placed on the Window covers that dialog.

The placement of the view is random and non-modal.

Can someone help me on how to push it behind the Select/copy dialogs or any 
system dialogs.


Thanks,

Akshat

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




Re: [android-developers] Re: Paid apps with trial and payments

2013-02-12 Thread Kevin Duffey
Nobu games hits it on the head. You can however host your own app and end
users can click a link on your Site from their phone to install it from
your site.  Updates could be in the format of an email to your users that
would again click the link from their phone to update. I believe this is
possible. Thus as Nobu said you'd be managing your own distribution and
would benefit for the full payment. You would have to write the processing
code our provide some sort of payment option on your Site with an unlock
code or a different apk file they would then download perhaps.
On Feb 8, 2013 8:07 AM, Nobu Games dev.nobu.ga...@gmail.com wrote:

Actually we had this question a few times here and the usual answer is no
you cannot do it because of the Google Play Developer Distribution
Agreementhttps://play.google.com/about/developer-distribution-agreement.html
.

First of all you are limited to the use of so-called payment processors
that are authorized by Google:

*1.2 If you want to charge a fee for your Products, you must also acquire
 and maintain a valid Payment Account from an authorized Payment
 Processor. *


Then there's a special section about free apps on Google Play which
explicitly forbid what you are trying to do:

*3.3 (...) If the Product is free, you will not be charged a Transaction
 Fee. You may not collect future charges from users for copies of the
 Products that those users were initially allowed to download for free.*


Since your primary source of your paid app is outside the Google Play
Market there's another clause that protects Google:

*4.5 Non-Compete. You may not use the Market to distribute or make
 available any Product whose primary purpose is to facilitate the
 distribution of software applications and games for use on Android devices
 outside of the Market.*


Right now it looks pretty clear to me. No need for a lawyer, Google Play
doesn't want that kind of thing to happen. You need your own distribution
channel that is under your control. And since your app sounds very
specialized I think it's pretty much ok to ask for more money. You could
therefore bite the bullet and release your paid app on Google Play with a
price tag that makes you happy (even minus 30%).


On Thursday, February 7, 2013 11:44:24 PM UTC-6, Harish wrote:

 Dear all,

 Need your opinion for listing my app to play store.

 I have a medical app which we are planning to sell using various
 distribution channel in bulk volume.

 We already have license checking mechanism with our site. and we will
 manage license with our support team.

 We give our app 1 week for trial and user have to activate after one week.

 My question is - If I list my app to google play store for broader
 audience then does there any way I can manage bulk licenses without paying
 30% transaction fees. I mean I will have list of users with me who already
 paid for app and they can download app from app store freely.

 Or If I list my app free on market and after 7 days user will pay using
 our payment channel does it violates developer agreement ?

 My main objective of using play store is to manage updates efficiently.

 I see many example where people list free and premium apps on Google, I
 wants to list only free not the premium one. does it violates Google terms
 and condition.

 Looking for your advice

 Regards

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

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




Re: [android-developers] error message

2013-02-12 Thread Kostya Vasilyev
I'm getting the same message on my Galaxy Nexus with 4.2.1 if I open an
action bar menu with the Overflow Affordance Button and then close it.

Tried three or four apps.

Also this:

02-12 23:19:48.043 W/InputMethodManagerService(  390): Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@418afc18attribute=null,
token = android.os.BinderProxy@41b5e218

Must be normal.

-- K

2013/2/12 njman njso...@gmail.com

 02-12 11:38:57.025: W/InputEventReceiver(14874): Attempted to finish an
 input event but the input event receiver has already been disposed.


 I'm getting above message when closing a menu.

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




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




[android-developers] Re: Can I Promote My Other Application Using GCM Service.

2013-02-12 Thread RichardC
Not sure about the TCs but using GCM seems more work than using AdMob with 
100% House ads to promote your applications.

On Tuesday, February 12, 2013 6:46:05 PM UTC, rishabh agrawal wrote:

 Hi I am new bee in Android.I want promote my other cool application using 
 push notification Using GCM.Can i use it for this purpose or it is 
 violation of Google GCM term   condition please let me know.


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




Re: [android-developers] Parser

2013-02-12 Thread Kevin Duffey
The problem with the built in o e is it is similar to a DOM parser for xml
in that it will load the entire json document into memory first. Jackson is
a json stream processor so it uses a lot less memory and is typically much
faster. I lean towards Jackson myself.
On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
wrote:

 JSON is so easy to use, I've never really had a problem with org.json.
  If you can get by using it I would do that, as it's already in the
 API (you won't have statically linked code sitting around clouding
 your app).

 kris

 On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K arunkuma...@npcompete.net
 wrote:
  Hi,
  I want to know which parser is best for android application..
  What is the different between json and jackson parser.
  which parser is best json or JACKSON
 
  --
  Thanks  Regards
  K.Arun Kumar
 
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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




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




[android-developers] Praise for Android Holo Colors Generator

2013-02-12 Thread Nathan
Maybe you all already know about this, but it was very helpful for me. 

http://android-holo-colors.com/

Just enter some colors and generate a bunch of assets for your theme.  I 
made more progress than ever before. 

You can still have your design team modify each of the assets and tweak 
them to your liking, which I did do with some textfield assets. But for me, 
just finding all the assets and attributes that need to be modified would 
be a huge reverse engineering job. 

I am still finding ways to style alert dialogs and the search box, but I'll 
mention those in another thread. 

Nathan

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




[android-developers] best way to copy an existing application

2013-02-12 Thread John Merlino
I have an application already created and up and running on google
play. I need to create a second application where everything is the
same, other than the background views. So I am wondering the easiest
way to essentially clone an application so that all I have to do is
create new keys and change the background images. thanks for response.

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




Re: [android-developers] Parser

2013-02-12 Thread Kristopher Micinski
I don't disagree, It's just that I'm typically processing a very minor
amount of data (responses from web APIs, a small amount of the time).

But like I said, it's a trade off, for any real use of JSON I'd also
recommend something stream based, : )

Kris

On Tue, Feb 12, 2013 at 2:54 PM, Kevin Duffey andjar...@gmail.com wrote:
 The problem with the built in o e is it is similar to a DOM parser for xml
 in that it will load the entire json document into memory first. Jackson is
 a json stream processor so it uses a lot less memory and is typically much
 faster. I lean towards Jackson myself.

 On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 JSON is so easy to use, I've never really had a problem with org.json.
  If you can get by using it I would do that, as it's already in the
 API (you won't have statically linked code sitting around clouding
 your app).

 kris

 On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K arunkuma...@npcompete.net
 wrote:
  Hi,
  I want to know which parser is best for android application..
  What is the different between json and jackson parser.
  which parser is best json or JACKSON
 
  --
  Thanks  Regards
  K.Arun Kumar
 
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google
  Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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


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



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




Re: [android-developers] Gyroscope

2013-02-12 Thread Tux Leonard
It is not impossible but it's complicate to implement the filters.
A simple low pass filter is not enough. To do it right you need to
combine accelerator and gyroscope data. For this purpose you could
implement a complementary or Kalman filter. You find some examples on
the net. Or google for sensorfusion.

2013/2/12 Marta Ribeiro martacunharibeir...@gmail.com:
 Well yes that's my doubt, if you say gyroscope noise and drift will
 introduce errors that need to be compensated for. and i'm not applying any
 filter of my own, i'm just examining the data directly from sensor.event and
 they seem not to have any noise or bias, it seems a bit impossible if the
 tablet does not have some kinf of filter embedded.

 I'm I on the right path here?

 And thank you for your answer!


 On Monday, February 11, 2013 6:39:02 PM UTC, Tux wrote:

 Hi,

 your measurement are as expected. The gyroscope measures the rate or
 rotation in rad/s and in stationary state the turn rate is about Zero.


 http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro

 Standard gyroscopes provide raw rotational data without any filtering
 or correction for noise and drift (bias). In practice, gyroscope noise
 and drift will introduce errors that need to be compensated for. You
 usually determine the drift (bias) and noise by monitoring other
 sensors, such as the gravity sensor or accelerometer.



 2013/2/11 Marta Ribeiro martacunh...@gmail.com:
  Hi!
 
  I'm doing a project, and it requires me to analyse the reliability of a
  tablet's sensors.
 
  I have analysed the gyroscope data when the tablet is stationary, and
  the
  results are an average of -5.3263 *10^{-7} and a standard deviation
  equal to
  0.
 
  Now this leads me to believe that this sensor has some kind of filter
  embedded already, although I can't seem to find any information about
  it.
 
  I appreciate any kind of information regarding this results.
 
  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-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
  ---
  You received this message because you are subscribed to the Google
  Groups
  Android Developers group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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



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




[android-developers] Re: best way to copy an existing application

2013-02-12 Thread RichardC
Create an new Android Library project.
Put all your existing shared code and resources into it.
Create 2 new Android Projects (one with your old package name and the other 
with a new package name), and set them to use your Android Library project.
Put the different resources into the Application Projects.

To setup a Library project see:
http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote:

 I have an application already created and up and running on google 
 play. I need to create a second application where everything is the 
 same, other than the background views. So I am wondering the easiest 
 way to essentially clone an application so that all I have to do is 
 create new keys and change the background images. thanks for response. 


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




[android-developers] Re: best way to copy an existing application

2013-02-12 Thread John Merlino
I don't see where it mentions to copy existing code into the library
project. Am I supposed to copy and paste it?

On Feb 12, 3:24 pm, RichardC richard.crit...@googlemail.com wrote:
 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the other
 with a new package name), and set them to use your Android Library project.
 Put the different resources into the Application Projects.

 To setup a Library project 
 see:http://developer.android.com/tools/projects/projects-eclipse.html#Set...







 On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote:

  I have an application already created and up and running on google
  play. I need to create a second application where everything is the
  same, other than the background views. So I am wondering the easiest
  way to essentially clone an application so that all I have to do is
  create new keys and change the background images. thanks for response.

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




[android-developers] Re: Praise for Android Holo Colors Generator

2013-02-12 Thread bob
 

Can  you post some screenshots of what you have done with this?


Thanks.



On Tuesday, February 12, 2013 1:56:13 PM UTC-6, Nathan wrote:

 Maybe you all already know about this, but it was very helpful for me. 

 http://android-holo-colors.com/

 Just enter some colors and generate a bunch of assets for your theme.  I 
 made more progress than ever before. 

 You can still have your design team modify each of the assets and tweak 
 them to your liking, which I did do with some textfield assets. But for me, 
 just finding all the assets and attributes that need to be modified would 
 be a huge reverse engineering job. 

 I am still finding ways to style alert dialogs and the search box, but 
 I'll mention those in another thread. 

 Nathan


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




[android-developers] Re: Can I Promote My Other Application Using GCM Service.

2013-02-12 Thread bob
From the Terms and Conditions:

You will not promote or facilitate unlawful online gambling or disruptive 
*commercial 
messages* or *advertisements*.


On Tuesday, February 12, 2013 12:46:05 PM UTC-6, rishabh agrawal wrote:

 Hi I am new bee in Android.I want promote my other cool application using 
 push notification Using GCM.Can i use it for this purpose or it is 
 violation of Google GCM term   condition please let me know.


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




[android-developers] Re: Praise for Android Holo Colors Generator

2013-02-12 Thread Nathan


On Tuesday, February 12, 2013 1:03:56 PM UTC-8, bob wrote:

 Can  you post some screenshots of what you have done with this?

There's no real need. 
 
http://android-holo-colors.com/

If you go there, choose a color, some options and some widgets, you can see 
the preview on the web page itself. 

Nathan
 

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




[android-developers] Re: best way to copy an existing application

2013-02-12 Thread RichardC
For an example look at:

android-sdk\samples\android-n\TicTacToeLib

android-sdk\samples\android-n\TicTacToeMain


On Tuesday, February 12, 2013 8:58:16 PM UTC, John Merlino wrote:

 I don't see where it mentions to copy existing code into the library 
 project. Am I supposed to copy and paste it? 

 On Feb 12, 3:24 pm, RichardC richard.crit...@googlemail.com wrote: 
  Create an new Android Library project. 
  Put all your existing shared code and resources into it. 
  Create 2 new Android Projects (one with your old package name and the 
 other 
  with a new package name), and set them to use your Android Library 
 project. 
  Put the different resources into the Application Projects. 
  
  To setup a Library project see:
 http://developer.android.com/tools/projects/projects-eclipse.html#Set... 
  
  
  
  
  
  
  
  On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote: 
  
   I have an application already created and up and running on google 
   play. I need to create a second application where everything is the 
   same, other than the background views. So I am wondering the easiest 
   way to essentially clone an application so that all I have to do is 
   create new keys and change the background images. thanks for response. 


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




[android-developers] Re: best way to copy an existing application

2013-02-12 Thread bob
 

Does he really need to create a new library project?


Or can he just check the Is Library checkbox on his existing project?

https://lh5.googleusercontent.com/-V1ww5FOHONU/URq7qNZ2FxI/AMg/lrxK0vxdDgs/s1600/lib.png






On Tuesday, February 12, 2013 2:24:22 PM UTC-6, RichardC wrote:

 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the 
 other with a new package name), and set them to use your Android Library 
 project.
 Put the different resources into the Application Projects.

 To setup a Library project see:

 http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

 On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote:

 I have an application already created and up and running on google 
 play. I need to create a second application where everything is the 
 same, other than the background views. So I am wondering the easiest 
 way to essentially clone an application so that all I have to do is 
 create new keys and change the background images. thanks for response. 



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




Re: [android-developers] Fwd:

2013-02-12 Thread Jim Graham
On Mon, Feb 11, 2013 at 11:18:25AM +0100, murali krishna wrote:
 http://www.asscon-tatto.it/1fiuwp.php?s=lf

Hmmm, let's see, no subject (thus CLEARLY NOTHING IMPORTANT AT ALL),
and no problem, question, etc.

Ok, here's your answer:  42.

Hope that helps.
   --jim


-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com  | Dave Aronson:As your life flashes before
 Running Mac OS X Lion  |  your eyes, in the unit of time known as an
ICBM / Hurricane: |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.  59909W  |

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




Re: [android-developers]

2013-02-12 Thread Jim Graham
On Mon, Feb 11, 2013 at 09:02:23AM -0800, Robert Scott wrote:
 http://erzurumasml.com/umxvdmb/hvafchfv6ddnqx03yimdom9muavmh6z3ro6hrcj/

No subject (i.e, nothing that matters) and no message content.

Here's your answer, then:  42


-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com  | Dave Aronson:As your life flashes before
 Running Mac OS X Lion  |  your eyes, in the unit of time known as an
ICBM / Hurricane: |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.  59909W  |

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




[android-developers] Styling/themeing an alert dialog.

2013-02-12 Thread Nathan
I've made some progress in applyin 

But it doesn't appear to affect the AlertDialog so far. 
Meaning:
It still has a blue bar across the middle from the Holo Dark theme.
The buttons. ( ie OK, Cancel) are still the Holo Dark default, not the 
styled buttons I would want. 

So far, i have only succeeded in changing the color of the title text.  

I have not reversed engineered what attributes. 

Has anyone done this? Is there an example you can point to.  

Nathan

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




Re: [android-developers] Fwd:

2013-02-12 Thread Jim Graham
On Mon, Feb 11, 2013 at 08:33:14PM +0100, Donal Rafferty wrote:
 http://www.pixfoto.it/6qydll.php?s=ot

Once again...no subject, meaning the  OP has nothing to ask, as confirmed 
by the complete lack of content.  Here's your answer, then:  42

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com  | Dave Aronson:As your life flashes before
 Running Mac OS X Lion  |  your eyes, in the unit of time known as an
ICBM / Hurricane: |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.  59909W  |

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




[android-developers] Re: best way to copy an existing application

2013-02-12 Thread Lew
bob wrote:

 Does he really need to create a new library project?

   Yes.
 

 Or can he just check the Is Library checkbox on his existing project?

No.
 

 RichardC wrote:

 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the 
 other with a new package name), and set them to use your Android Library 
 project.
 Put the different resources into the Application Projects.

 To setup a Library project see:

 http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

 John Merlino wrote:

 I have an application already created and up and running on google 
 play. I need to create a second application where everything is the 
 same, other than the background views. So I am wondering the easiest 
 way to essentially clone an application so that all I have to do is 
 create new keys and change the background images. thanks for response. 


-- 
Lew
 

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




[android-developers] Google Play Licensing documentation issue

2013-02-12 Thread g...@deanblakely.com
Im trying to implement licensing for my app and I'm following the docs at 
http://developer.android.com/google/play/licensing/index.html#test-env 
but I'm finding it very challenging.  For instance...
 
The section pasted below says that we should sign in to our publisher 
account (do they mean developer console??) and click Edit Profile.  The 
developer console does not have such a section but I find that if I go to 
the old design there is a Edit Profile link.  That takes me to an area 
that says we've Moved and that i should go back to the new 
design/Services and API's.  I go back there but the functionality described 
in the paste below is not there.
 
So, it's not clear how I tell Google Play Licensing what responses I want 
in my test.  This is just one example.
 
I tried to implement the Sample but it won't compile due to errors. (I 
have another post on SO) on that issue.
 
Is there any decent documentation on this?
Thanks, Gary
 
 
 
 

https://lh5.googleusercontent.com/-JsulRIrVj5U/URrLZyM7_0I/AAw/ryhk3wo5K2Q/s1600/LicChk.png
 

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




[android-developers] Customizing progress Dialogs

2013-02-12 Thread Ansh
Hi Guys ,

I want to customize the progress dialog for my app.I want to show only 
spinner spinning without the black background.I have googled a lot but 
nothings seems to be working.Please tell me how can i achieve that effect. 

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




[android-developers] Re: Customizing progress Dialogs

2013-02-12 Thread skink


Ansh wrote:
 Hi Guys ,

 I want to customize the progress dialog for my app.I want to show only
 spinner spinning without the black background.I have googled a lot but
 nothings seems to be working.Please tell me how can i achieve that effect.

what would you like to see instead of black background?

pskink

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




[android-developers] Re: Customizing progress Dialogs

2013-02-12 Thread ravi .
You can use ProgressBar widget. It will show only spinner

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




[android-developers] Restriction in reading logs in higher version of android

2013-02-12 Thread Bajrang Asthana
Hi all,

As i heard that from 4.1+ onwards we will not be able to use the following 
permissions:

uses-permission android:name=android.permission.READ_LOGS /

But just now i tried it with my jelly beans on emulator (API=16) and it 
seems i was able to give the permissions and even i am able to read logs 
from these packages:


com.android.gallery/com.android.camera.GalleryPicker


Whats wrong or if i am missing anything?

Thanks



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




[android-developers] Gallery

2013-02-12 Thread Arun Kumar K
Hi Guys,

I want to get the height of the gallery at run time
and i want to change the height of the gallery at run time..
How can i do this..
Can any explain me

-- 
*Thanks  Regards*
*K.Arun Kumar*

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




[android-developers] Android App is installed twice in Android Device.

2013-02-12 Thread Seshu
Hi All,
  I downloaded the android project from internet
and i renamed the package name and then i done small modifications to
that code. If i installed the app in the android real device showing
two apps. if i removed the app using command prompt both apps are
deleting at a time. how to solve this problem???
Thanks to all,

Regards,
S.Seshu.

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




[android-developers] Re: Android App is installed twice in Android Device.

2013-02-12 Thread ravi .
Hi
Take a look at this link
http://stackoverflow.com/questions/8014149/how-to-install-applications-with-same-package-name-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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] change child relativelayout content in a fragment

2013-02-12 Thread Summer
This is what i need: in one fragment, i have two buttons, by toggling those 
two buttons, the page will show different contents(both will be from layout 
files).
My layout file:
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical 

LinearLayout
android:layout_width=match_parent
android:layout_height=wrap_content
android:background=@color/grey 

Button
android:id=@+id/btn0
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_weight=0.69
android:background=@color/dark_grey
android:text=Button 0 /

Button
android:id=@+id/btn1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_weight=0.51
android:text=Button1 /


RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=wrap_content
android:layout_height=wrap_content 
android:id=@+id/details/
/LinearLayout

/LinearLayout

java code: (only list one button is clicked)

final RelativeLayout detailsLayout = 
(RelativeLayout)view.findViewById(R.id.details);
 btn0.setOnClickListener(new OnClickListener() {

public void onClick(View arg0) {
*View child = getActivity().getLayoutInflater().inflate(R.layout.content1, 
container, false);*
* detailsLayout .addView(child);// This is right?*
 return;
}

});

Questions:
1. when the detail content got inflated, the buttons got squeezed to the 
left side. (previous on top of the page)
2. when another button was clicked, the content got overlapped. how to 
solve this?


Thanks a lot!!!

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