[android-developers] how can spotify plays local(downloaded) songs so fast?

2011-05-11 Thread Hitendrasinh Gohil
hi,

can anyone tell me how the spotify plays local(downloaded) songs so
fast though it is encrypted and with low configuration device it also
plays fast.no barrier to play local encrypted song for spotify!


I really need some workaround for this?

anyone?
anyguess?

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


[android-developers] help with ImageView maxHeight set, but ignored

2011-05-11 Thread Brill Pappin
I've got the maxHeight et on an ImageView but when I set a Bitmap as the 
source, the ImageView grows in the layout to cover adjacent components.
(The image is larger than the View, taken from the camera, but I'm expecting 
to get scaled).

Can anyone give me a hint why that is?

- Brill

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

[android-developers] Re: hash functions

2011-05-11 Thread gjs
Hi,

1st link was to simply show mention of longer bit length SHA
algorithms in Android SDK, not how to go about effectively using them,
which usually involves 'salt' and other measures as other have
discussed here and else where.

MD5 (128 bits) is 'weaker' than SHA1 (160 bits) only by virtue of
having less bits, without seeking to start an argument both are
'broken/have collisions' in theory/practice anyway, hence SHA3 contest
http://csrc.nist.gov/groups/ST/hash/sha-3/index.html

http://www.schneier.com/blog/archives/2005/06/more_md5_collis.html
http://www.schneier.com/blog/archives/2005/02/cryptanalysis_o.html
http://www.schneier.com/blog/archives/2011/02/nist_defines_ne.html

Regards

On May 10, 5:52 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Tue, May 10, 2011 at 3:59 PM, gjs garyjamessi...@gmail.com wrote:
 http://developer.android.com/reference/java/security/spec/MGF1Paramet...

  SHA256, 384, 512

 What does the mask generation function has to do with this?
 Don't just paste random links.



 http://developer.android.com/reference/java/security/MessageDigest.html

  MD5 is weaker than SHA

 Qualify 'weaker'. See above.

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


[android-developers] Re: hash functions

2011-05-11 Thread Brill Pappin
Here you go.
This is some old code for a fairly light encryption job. You might want to 
adjust the algorithm a bit to use at least SHA (also maybe not use DES).
I think I'd also make the salt mutable based on a second input, but it 
really depends on how much you care about protecting what your encrypting.

- Brill

import javax.crypto.Cipher;

import javax.crypto.SecretKey;

import javax.crypto.SecretKeyFactory;

import javax.crypto.spec.PBEKeySpec;

import javax.crypto.spec.PBEParameterSpec;


import android.util.Log;


public class PBECypher {

private static final String TAG = PBECypher;

private final static String HEX = 0123456789ABCDEF;

private Cipher encryptCipher;

private Cipher decryptCipher;


 public PBECypher(char[] password) {

super();

initCiphers(password);

}


 private void initCiphers(char password[]) {

PBEKeySpec pbeKeySpec;

PBEParameterSpec pbeParamSpec;

SecretKeyFactory keyFac;

byte[] salt = { (byte) 0xc7, (byte) 0x73, (byte) 0x21, (byte) 0x8c,

(byte) 0x7e, (byte) 0xc8, (byte) 0xee, (byte) 0x99 };

int count = 20;

pbeParamSpec = new PBEParameterSpec(salt, count);

pbeKeySpec = new PBEKeySpec(password);

try {

keyFac = SecretKeyFactory.getInstance(PBEWithMD5AndDES);

SecretKey pbeKey = keyFac.generateSecret(pbeKeySpec);

encryptCipher = Cipher.getInstance(PBEWithMD5AndDES);

decryptCipher = Cipher.getInstance(PBEWithMD5AndDES);

encryptCipher.init(Cipher.ENCRYPT_MODE, pbeKey, pbeParamSpec);

decryptCipher.init(Cipher.DECRYPT_MODE, pbeKey, pbeParamSpec);

} catch (Exception e) {

Log.v(TAG, e.toString());

}

}


 public byte[] encrypt(byte[] decrypted) throws Exception {

byte[] output = encryptCipher.doFinal(decrypted);

return output;

}


 public byte[] decrypt(byte[] encrypted) throws Exception {

byte[] decrypted = decryptCipher.doFinal(encrypted);

return decrypted;

}


 public String encryptString(String decrypted) throws Exception {

byte[] input = decrypted.getBytes(UTF-8);

return toHexFromByte(encrypt(input));

}


 public String decryptString(String encrypted) throws Exception {

byte[] input = toByteFromHex(encrypted);

return new String(decrypt(input), UTF-8);

}


 public static String toHex(String txt) {

return toHexFromByte(txt.getBytes());

}


 public static String fromHex(String hex) {

return new String(toByteFromHex(hex));

}


 public static byte[] toByteFromHex(String hexString) {

int len = hexString.length() / 2;

byte[] result = new byte[len];

for (int i = 0; i  len; i++) {

result[i] = Integer.valueOf(hexString.substring(2 * i, 2 * i + 2),

16).byteValue();

}

return result;

}


 public static String toHexFromByte(byte[] buf) {

if (buf == null) {

return ;

}

StringBuffer result = new StringBuffer(2 * buf.length);

for (int i = 0; i  buf.length; i++) {

appendHex(result, buf[i]);

}

return result.toString();

}


 private static void appendHex(StringBuffer sb, byte b) {

sb.append(HEX.charAt((b  4)  0x0f)).append(HEX.charAt(b  0x0f));

}

}

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

Re: [android-developers] Re: hash functions

2011-05-11 Thread Brill Pappin
Nod to Bob on not doing it yourself... there is no reason to do so.
There is nothing worse than your masterpiece of unbreakable encryption that 
only you don't know is full of holes.

I've seen some pretty silly things done in the name of extra encryption 
and it's just not worth your time.

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

[android-developers] Re: In a Native C program, how to call java API: ActivityManager::getMemoryInfo()

2011-05-11 Thread FrankG
IMHO instead of dealing via JNI with the ActivityManager I from you
native
code I would create a java wrapper and your native code only interacts
with this wrapper . This allows you to provide an easier interface.

Good luck ! Frank


BTW : I think this kind of question is out of scope of this particular
group.



On 10 Mai, 13:41, linlo...@gmail.com wrote:
 In Java program, we can use following codes to get the system memory info:
 ===
 ActivityManager activityManager = (ActivityManager)
 getSystemService(ACTIVITY_SERVICE);
 MemoryInfo info = new MemoryInfo();
 activityManager.*getMemoryInfo*(info);
 ===

 But now, we need to get system memory info from Native C program. So, I have
 to implement following codes to new MemoryInfo object:
 ===
     jclass cls = env-FindClass(android/app/ActivityManager$MemoryInfo);
     jmethodID ctor = env-GetMethodID(cls, init, ()V);
     jobject *objMemoryInfo* = env-NewObject(cls, ctor);
 ===

 Up to now, we have got the MemoryInfo's object objMemoryInfo.

 Then I need to input *objMemoryInfo* to *parcelMemoryInfo*, but don't
 how to convert from Parcelable to Parcel:
 ===
     int GET_MEMORY_INFO_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION+75;

     spIServiceManager sm = defaultServiceManager();
     spIBinder am = sm-getService(String16(activity));
     Parcel *parcelMemoryInfo* = *objMemoryInfo*; * //HERE: how to convert
 from Parcelable to Parcel
 *    Parcel reply;
     status_t ret = am-transact(GET_MEMORY_INFO_TRANSACTION, *
 parcelMemoryInfo*, reply);
 ===
 Thanks.

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


[android-developers] Re: hash functions

2011-05-11 Thread Brill Pappin
Arg, just reread your opost.
All you want is a hash (as in a one way hash)?
The encryption decryption confused me ;)

SHA is likely adequate... simply do a google search for java sha and 
you'll find a tone of examples on digesting a string... most of them will 
work in Android.

- Brill

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

[android-developers] Re: directly loading dynamically created classes (in dex format)

2011-05-11 Thread Brill Pappin
Hmm, too bad... be a pretty good way to make things hard on crackers if it 
worked.
Think of a world were your app needed to download a chunk of its code (at 
least once) encrypted to the user who purchased it.

Not impossible to get around, but it would require some serious attention to 
detail.

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

[android-developers] Re: hash functions

2011-05-11 Thread Brill Pappin
Ahh... love this little library.

See:
http://www.jasypt.org/howtoencryptuserpasswords.html

- Brill

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

[android-developers] Re: Bitmap Distortion

2011-05-11 Thread Sourav Howlader
Hi neuromit,

Try this, hope it will solve your problem.

Paint mPaint = new Paint();
mPaint.setAntiAlias(true);
mPaint.setFilterBitmap(true);
mPaint.setDither(true);


Regards,
Sourav

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


[android-developers] Why can't I set the device Microphone mute

2011-05-11 Thread Ian Kao@TW
Now I am trying to build a apk which can control the device's
hardware.
When I try to mute microphone with the AudioManager.muteMicrophone
and AudioSystem.muteMicrophone methods. As a result, I can only mute
the
Microphone in my own apk, when I jump to another apk such as some
other recorder,
the microphone seem to do nothing with my setting...

But there seem to be only one way to the JNI, so I am very confuced,
is there any other solution can help me with this??

To sum up, I want to make an apk whick can mute my device's
microphone,
anybody can give me a few hints about it?

Or I can only make it by turn the driver down?

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


[android-developers] Re: Override the Status bar

2011-05-11 Thread Faboom
Is it possible to customize the hneycomb status bar, so that it fits
more seamlessly in the overall design of my app?

Cheers,
Fabian

On 15 Mrz., 14:57, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Mar 15, 2011 at 8:54 AM, Rahul Garg rahul.lnm...@gmail.com wrote:
  What do you mean by custom firmware, can you please elaborate more. because
  I want to run an service which will
  override the status bar.

 You cannot run a service which will override the status bar.

 You can, however, download the source code to Android, make changes to
 it, and attempt to get it running on your own hardware. 
 Visithttp://source.android.comfor more.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] requestLocationUpdates ignore minTime parameter?

2011-05-11 Thread Daniel Rindt
Hello droids,

i use requestLocationUpdates with values like 1000, 15000 and so on. But i 
experience that onLocationChanged is called in a smaller timeframe than the 
given from 15000msecs. The documentation says:
minTime - the minimum time interval for notifications, in milliseconds. 
This field is only used as a hint to conserve power, and actual time between 
location updates may be greater or lesser than this value.

So what i am do wrong that it is not working as expected?

Thanks for all suggestions
Daniel

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

[android-developers] how to play audio file chunks without interruption?

2011-05-11 Thread Hitendrasinh Gohil
hi,

I have a 512kb chunks of mp3 file.i need to play it without
interruption and seek should be supported .how can i play number of
audio chunks without interruption?


regards,
hitendrasinh gohil

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


[android-developers] do you know esdn.ws?

2011-05-11 Thread TobyKaos
hello I receive 2 mail of ESDN.ws to integrate my game on facebook
market provide by esdn.

Do you know it?

their website does not respond (404 error).

Thank you.

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


[android-developers] Re: Convert from Polyline to ArrayListLocation

2011-05-11 Thread Felix Garcia Lainez
It is not unrealistic... Imagine i have stored in a database a route
in polyline format (in order to optimize storage), and i get that
polyline string from a web service. Imagine i want to show it, or do
some calculations on Android client... That is the reason to convert
from polyline string to an array of location points...

On 10 mayo, 23:28, Igor Prilepov iprile...@gmail.com wrote:
 It is unrealistic because people collect points and then show them as
 polyline, polygon or just dots not the other way around.
 It is unrealistic because Google MapActivity on Android is different from
 the full scale Google Map API.
 It is trivial because any Polyline (or Polygon) should be stored as some set
 of points and therefore all you need to do is to open a documentation to
 find out how exactly to do this. For example, if you 
 openhttp://code.google.com/apis/maps/documentation/javascript/3.3/referen...you
 will find getPath()method to get 
 MVCArrayhttp://code.google.com/apis/maps/documentation/javascript/3.3/referen...
  LatLnghttp://code.google.com/apis/maps/documentation/javascript/3.3/referen...



 .

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


[android-developers] SocketException: Bad file number

2011-05-11 Thread nino
I get a SocketException: Bad file number whenever I try to use a
BufferedReader on a HttpResponse. Basically I try to parse my response
from the server. The strange thing is, that it only happens on my LG
2x (Android 2.2.2), I don't get this error on the Android Emulator
(Google 2.2) and on a HTC (2.2).

In this thread (http://stackoverflow.com/questions/5609688/android-
what-is-a-bad-file-number-socketexception) someone explained why the
error occurs. But why is the problem only happening on the LG phone,
and more importantly, how can I solve it?

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


[android-developers] Re: hash functions

2011-05-11 Thread Bob Kerns
No, he thinks he just wants a hash to construct a key from a password.

Probably, he just wants to encrypt / decrypt, in which case, your code is 
mostly adequate, except for a serious flaw, of a constant salt. A constant 
salt defeats the purpose; you can construct a perfectly fine dictionary of 
pre-computed keys for any fixed salt.

What you want to do is to generate a random salt, and prepend it to your 
encrypted result. Then to decrypt, extract it again, and use that for 
decryption. The reasons are laid out in the link you post in the next 
message.

And don't use MD5. It may be good enough, but there's really no reason to 
do so, because at least SHA-1 is available.

Anyway, he probably really just wants to encrypt and decrypt, and aside from 
the above flaws, you probably gave him just what he needs.


On Wednesday, May 11, 2011 12:09:16 AM UTC-7, Brill Pappin wrote:

 Arg, just reread your opost.
 All you want is a hash (as in a one way hash)?
 The encryption decryption confused me ;)

 SHA is likely adequate... simply do a google search for java sha and 
 you'll find a tone of examples on digesting a string... most of them will 
 work in Android.

 - Brill


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

[android-developers] Re: HttpsURLConnection's getResponseCode() returns -1

2011-05-11 Thread Mika
Hi,

I sometimes had similar kind of problems, where one request received
the correct responseCode but the second request to the same URL failed
with request code -1. After setting http.keepAlive system property to
false, everything started to function properly. So maybe you could try
adding this line  System.setProperty(http.keepAlive, false); to
your code. Maybe it'll help.

-Mika

On May 11, 3:36 am, John Gaby jg...@gabysoft.com wrote:
 I am trying to use HttpsURLConnection to connect to a secure site, and
 it is failing and getResponseCode() is returning -1.  The following is
 the code that I am using.  Note that this very same code works in
 other cases.  Can anyone give me a clue as to why I might get the -1,
 and how I can get more information about what is going wrong.  Also
 note, that if I take the URL that I am trying to connect to in this
 call and paste it into a browser, I get the correct response, so I am
 pretty sure that the URL itself is correct.  In this particular call,
 m_data is null, so it is performing a GET and no data is written.

 Thanks

     HttpsURLConnection connection = null;

     try
     {
         URL url = new URL(arg0[0]);
         connection = (HttpsURLConnection) url.openConnection();

         // Allow Inputs  Outputs if there is data to send
         connection.setDoInput(true);
         connection.setDoOutput(m_data != null);
         connection.setUseCaches(false);

         // Enable GET or POST depending on whether there is data to
 send
         connection.setRequestMethod((m_data == null) ? GET :
 POST);

         connection.setRequestProperty(Connection, Keep-Alive);
         connection.setRequestProperty(Content-Type, application/
 octet-stream);

         if (m_data != null)
         {
             DataOutputStream outputStream = null;

             connection.setFixedLengthStreamingMode(m_data.length);

             outputStream = new
 DataOutputStream( connection.getOutputStream() );
             outputStream.write(m_data);

             outputStream.flush();
             outputStream.close();
         }

         // Responses from the server (code and message)
         int serverResponseCode = connection.getResponseCode();
         String serverResponseMessage =
 connection.getResponseMessage();

         InputStream inputStream = connection.getInputStream();

         int nBytes;

         m_curBytes    = 0;
         m_totBytes    = connection.getContentLength();

         byte[] bytes = new byte[65536];

         while ((nBytes = inputStream.read(bytes))  0)
         {
             if (m_file != null)
             {
                 m_file.write(bytes, 0, nBytes);
             }
             else if (m_result != null)
             {
                 m_result.append(bytes, 0, nBytes);
             }

             m_curBytes    += nBytes;

             m_handler.post(new Runnable()
             {
                 public void run()
                 {
                     if (m_pInet != 0)
                     {
                         GDownloadProgress(m_pInet, m_curBytes,
 m_totBytes);
                     }
                     else
                     {
                         int i = 0;
                     }
                 }
             });

         }

         if (m_file != null)
         {
             m_error = false;
         }
         else if (m_result != null)
         {
             m_error    = (m_result.length() = 0);
         }
         else
         {
             m_error    = true;
         }
     }
     catch (Exception ex)
     {
         GSystem.GLogWarning(GINet: error =  + ex.getMessage());
     }

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


[android-developers] Re: Why can't I set the device Microphone mute

2011-05-11 Thread Mika
Maybe the other application just puts the microphone on again?

-Mika

On May 11, 10:47 am, Ian Kao@TW ian@gmail.com wrote:
 Now I am trying to build a apk which can control the device's
 hardware.
 When I try to mute microphone with the AudioManager.muteMicrophone
 and AudioSystem.muteMicrophone methods. As a result, I can only mute
 the
 Microphone in my own apk, when I jump to another apk such as some
 other recorder,
 the microphone seem to do nothing with my setting...

 But there seem to be only one way to the JNI, so I am very confuced,
 is there any other solution can help me with this??

 To sum up, I want to make an apk whick can mute my device's
 microphone,
 anybody can give me a few hints about it?

 Or I can only make it by turn the driver down?

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


[android-developers] Re: Adding points automatic

2011-05-11 Thread lbendlin
Read up about polylines. Don't try to fight the API, use it.

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

[android-developers] Re: menu item disabled, but clickable

2011-05-11 Thread lbendlin
Why do you show it if it is disabled?  Only causes user frustration.

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

[android-developers] Android data storage issue

2011-05-11 Thread boyscout ninja
I have an app which stores data in a SQLite database, when the app is
just installed it uses 8kb of data and when I start inserting data
obviously the size increases. The weird thing is when I start cleaning
my database tables, I empty completely the database but I will never
recover the first 8kb of data but much more, in some cases more than
100kb, where this data come from?

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


Re: [android-developers] Re: Override the Status bar

2011-05-11 Thread Mark Murphy
There is no status bar on Honeycomb.

There is the system bar, on the bottom. This cannot be modified.

There is the action bar, on the top. This can be modified somewhat. Whether
it can be modified to fit more seamlesslessly in the overall design of
[your] app, I cannot say.

Mark Murphy
mmur...@commonsware.com
On May 11, 2011 1:00 AM, Faboom bu...@uni-koblenz.de wrote:
 Is it possible to customize the hneycomb status bar, so that it fits
 more seamlessly in the overall design of my app?

 Cheers,
 Fabian

 On 15 Mrz., 14:57, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Mar 15, 2011 at 8:54 AM, Rahul Garg rahul.lnm...@gmail.com
wrote:
  What do you mean by custom firmware, can you please elaborate more.
because
  I want to run an service which will
  override the status bar.

 You cannot run a service which will override the status bar.

 You can, however, download the source code to Android, make changes to
 it, and attempt to get it running on your own hardware.
Visithttp://source.android.comfor more.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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

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

[android-developers] Out of three buttons, one button is not working

2011-05-11 Thread mack2978
Hi All,

I am baffling with below issue. Out of three buttons, save button is
not working and its onclick is not hitting. Any idea anyone.below
code and XML i am using.

  setContentView(R.layout.myimageview);
mImageView = (ImageView) findViewById(R.id.imageview);
mImageView.setDrawingCacheEnabled(true);
mImageView.setImageResource(param1);
mslideshow = (ImageButton)findViewById(R.id.slideshow);
mSave = (ImageButton)findViewById(R.id.msave);


mslideshow.setOnClickListener(new OnClickListener() {
public void onClick(View view) {

Intent MyIntent = new Intent(myimageview.this,
slideshowview.class);
startActivity(MyIntent);

}
});


mSave.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
saveWallpaperToSD(saveFile+.png);
updateExternalStorageState();
}
});



msetwallpaper = (ImageButton) findViewById(R.id.setwallpaper);
msetwallpaper.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
  wallpaperManager.setWallpaperOffsetSteps(0.5f,
0.5f);
 
wallpaperManager.setWallpaperOffsets(view.getRootView().getWindowToken(),
0.5f, 0.5f);
//wallpaperManager.suggestDesiredDimensions(320,
480);
try {

wallpaperManager.setBitmap(mImageView.getDrawingCache());
} catch (IOException e) {
// TODO Auto-generated catch 
block
e.printStackTrace();
}
finish();
}
});


XML:
?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=@drawable/inner_bg

ImageView
android:layout_width=fill_parent
android:layout_height=435dp
android:id=@+id/imageview
android:adjustViewBounds=true
android:gravity=center/

ImageButton
android:id=@+id/setwallpaper
style=@android:style/Widget.Button.Inset
android:src=@drawable/btn_setwallpaper
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/imageview
android:layout_alignLeft=@+id/imageview
/

ImageButton
android:id=@+id/msave
style=@android:style/Widget.Button.Inset
android:src=@drawable/btn_save
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/imageview
android:layout_alignLeft=@+id/slideshow
android:layout_alignRight=@+id/setwallpaper
android:onClick=selfDestruct
/

  ImageButton
android:id=@+id/slideshow
style=@android:style/Widget.Button.Inset
android:src=@drawable/btn_slideshow
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/imageview
android:layout_alignRight=@+id/imageview
/

/RelativeLayout

thanks,

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


[android-developers] Re: Not able to make perticualar pixels in image as transparent

2011-05-11 Thread mack2978
Thanks Bob

On May 7, 11:24 pm, Bob Kerns r...@acm.org wrote:
 Perhaps this example (showing a variety of techniques) will be of
 assistance:

 https://groups.google.com/forum/#!search/authormsg:fametest,RtVO9WT4U...

 Among other things, it uses AvoidXfermode to select magenta pixels to be
 replaced with transparent.

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


Re: [android-developers] Re: menu item disabled, but clickable

2011-05-11 Thread Marcin Orlowski
On 11 May 2011 13:34, lbendlin l...@bendlin.us wrote:

 Why do you show it if it is disabled?  Only causes user frustration.


I disagree. Hidding elements may cause even more frustration as it tells
nothing at all to the users. This usually is quite confusing by default
(where the f*k is that stupid button?!) while item shown but disabled
clearly tells you cannot use it.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*






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

Re: [android-developers] Out of three buttons, one button is not working

2011-05-11 Thread Marcin Orlowski
On 11 May 2011 14:28, mack2978 smashmah...@gmail.com wrote:


   android:onClick=selfDestruct




Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

[android-developers] Scheduling restart of crashed service

2011-05-11 Thread Pandi
Hi,

I am running monkey test with the following command

adb shell monkey -v --ignore-timeouts --ignore-crashes --ignore-
security-exceptions -s 100 --throttle 500 100. I am getting event
log Scheduling restart of crashed service
com.android.music/.MediaPlaybackService in 5000ms

when i run the monkey without --ignore-crashes, then also the i get
the event log. But the crash message does not stop monkey. The device
still continues running monkey. Is this real crash? I did not get
crash message from logcat. Please help me understanding why this
message is logged.

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


[android-developers] Re: menu item disabled, but clickable

2011-05-11 Thread Zanarotti Michele
Ibendlin, sometimes menu items are based on a situation, as money to buy 
something (think of a game). I want to show
to the user what he/she can buy, but make the button inactive because the 
overall money is not enough. I saw pratically every
game/site doing this.
Android is graying out the item, but the nonsense is to make it clickable. 
Furthermore, when a disabled button is clicked
the onItemSelected event is not launched (as desired), so , why closing the 
menu ??

Any clue ??


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

Re: [android-developers] requestLocationUpdates ignore minTime parameter?

2011-05-11 Thread TreKing
On Wed, May 11, 2011 at 3:34 AM, Daniel Rindt
daniel.ri...@googlemail.comwrote:

 *and actual time between location updates may be greater or lesser than
 this value*


Did you read this part of the documentation you quoted?

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

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

Re: [android-developers] Re: menu item disabled, but clickable

2011-05-11 Thread TreKing
On Wed, May 11, 2011 at 8:14 AM, Zanarotti Michele 
zanarotti.mich...@gmail.com wrote:

 I want to show to the user what he/she can buy, but make the button
 inactive because the overall money is not enough. I saw pratically
 every game/site doing this.


Instead of disabling the button, consider showing a dialog that clearly
explains they have insufficient funds.

Android is graying out the item, but the nonsense is to make it clickable.
 Furthermore, when a disabled button is clicked
 the onItemSelected event is not launched (as desired), so , why closing the
 menu ??

 Any clue ??


That's just how it works, AFAICT.

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

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

[android-developers] Re: I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-11 Thread Emanuel Moecklin
Hi Dianne

One of the main issues I'm having with Android is supporting all major
API levels.
A lot of problems could be solved easily if I had to support only the
newer version but my apps need to run on Android=1.6 (finally decided
not to support 1.5 any longer).
As much as I appreciate all the new cool stuff Google is bringing with
the new versions of Android most of these functions are pretty useless
to me.
Of course I'm using reflection in certain cases but that's honestly
not my preferred programming style.
SCREENLAYOUT_SIZE_XLARGE unfortunately isn't supported before
Gingerbread so it's either using reflection or my approach (maybe
there are other solutions) to _really_ solve Droid's problem (I agree
that the nosensor approach is not the right one).

Also I want to thank you for your ongoing and very helpful support in
this forum.
I really appreciate it.

Emanuel Moecklin
1gravity LLC

On May 9, 5:06 pm, Dianne Hackborn hack...@android.com wrote:
 You don't need to do that work to find the size of the screen.  In the
 activity, just getResources().getConfiguration(), and in the Configuration
 object is the screen size along with many of the other resource
 configurations.

 On Mon, May 9, 2011 at 4:55 PM, Emanuel Moecklin 1gravity...@gmail.comwrote:









  Not simple but doable:

  1. Create an abstract custom view MyView with a method public boolean
  isXLarge()
  2. Create two sub classes MyView1 and MyView2. MyView1 returns false
  in isXLarge(), MyView2 returns true.
  3. Add MyView1 to the three portrait layouts (in layout-small, layout-
  normal and layout-large) and MyView2 to the landscape layout (in
  layout-xlarge)
  4. In your activity get the MyView view (using findViewById) and check
  isXLarge(). If the method returns true then set the orientation of the
  activity to landscape, otherwise to portrait:
     e.g.
  activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

  Emanuel Moecklin
  1gravity LLC

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

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

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

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


Re: [android-developers] Re: menu item disabled, but clickable

2011-05-11 Thread Marcin Orlowski
On 11 May 2011 15:14, Zanarotti Michele zanarotti.mich...@gmail.com wrote:

 Ibendlin, sometimes menu items are based on a situation, as money to buy
 something (think of a game). I want to show
 to the user what he/she can buy, but make the button inactive because the
 overall money is not enough. I saw pratically every
 game/site doing this.


This is wrong approch then. Disabling button only  tells you can't buy.
But it do not tell why. It would then be better
to leave button/menu available but pop up a dialog (or whatever) saying that
this item requires XXX of currency while
you have 0 or YYY (which is ZZZ short). This is even better as, assuming
your goal is to sell, you can easily add next
button to that dialog/activity to redirect user to i.e. checkout/paypal etc.
so he could add funds to the account while on
shopping spree instead of just teling him no. get out.

Android is graying out the item, but the nonsense is to make it clickable.
 Furthermore, when a disabled button is clicked
 the onItemSelected event is not launched (as desired), so , why closing the
 menu ??


Do agree it's counter intuitive. It may also be a bug (or works by design
even when not in the best manner). Considered filling
bug report at b.android.com?


Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

Re: [android-developers] Re: I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-11 Thread Kostya Vasilyev

11.05.2011 17:24, Emanuel Moecklin пишет:

SCREENLAYOUT_SIZE_XLARGE unfortunately isn't supported before
Gingerbread so it's either using reflection or my approach (maybe
there are other solutions) to_really_  solve Droid's problem (I agree
that the nosensor approach is not the right one).



Why would you need reflection for a simple integer constant?

You can just define your own, the value is 4.

Besides, it's defined as a static final and so is inlined by the 
compiler even if referenced by its symbolic name.


-- Kostya

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


[android-developers] Signature and certificate

2011-05-11 Thread Jeje
Hi,

How the Android system verify if an application has a correct
certificate or signature before this application will be installed and
launched ? What are the methods, classes, packages in the source
code ?

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


[android-developers] Re: How to Override progress bar message i.e.. 0/100

2011-05-11 Thread Emanuel Moecklin
I guess he is talking about ProgressDialog and not just about
ProgressBar.
With ProgressDialog the progress text (x% and y/z) can indeed not be
changed.
The solution is to have - as you suggestr - a custom layout with a
ProgressBar widget and TextViews that need to be updated manually.

Emanuel Moecklin
1gravity LLC

On May 10, 8:09 am, lbendlin l...@bendlin.us wrote:
 The progressbar is just that - a bar. You have to code the other view
 elements yourself. Add them all to a relative layout, use them in the
 dialog, and then refresh the values during onProgressUpdate.

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


[android-developers] javascript in webview to java?

2011-05-11 Thread Droid
I want to try processing text in a normal java activity from the text
output of a javascript library in webview.
 BUT how? Suppose i could write to a file and then read but that is
cumbersome.

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


Re: [android-developers] javascript in webview to java?

2011-05-11 Thread Kostya Vasilyev

You can make a Java object accessible to JavaScript inside the WebView:

http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object, 
java.lang.String)



-- Kostya

11.05.2011 18:17, Droid пишет:

I want to try processing text in a normal java activity from the text
output of a javascript library in webview.
  BUT how? Suppose i could write to a file and then read but that is
cumbersome.




--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


[android-developers] Programmatically add contact and start Dialer with some delay

2011-05-11 Thread viktor
Hi,

My app create new contact, inserts it into DB, and with little
delay(300 - 500 мс) Dialer  will start with number of new contact.

At first try Dialer shows only a number on the Screen, after second
try it shows Full name.

This action repeats every time when phone was rebooted.

Somebody has any ideas?

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


[android-developers] Re: HttpsURLConnection's getResponseCode() returns -1

2011-05-11 Thread John Gaby
Thanks for the tip, that does indeed fix the problem.  Can you tell me
what the ramifications of setting the keepAlive to false are?

Thanks.

On May 11, 3:18 am, Mika mika.ristim...@gmail.com wrote:
 Hi,

 I sometimes had similar kind of problems, where one request received
 the correct responseCode but the second request to the same URL failed
 with request code -1. After setting http.keepAlive system property to
 false, everything started to function properly. So maybe you could try
 adding this line  System.setProperty(http.keepAlive, false); to
 your code. Maybe it'll help.

 -Mika

 On May 11, 3:36 am, John Gaby jg...@gabysoft.com wrote:

  I am trying to use HttpsURLConnection to connect to a secure site, and
  it is failing and getResponseCode() is returning -1.  The following is
  the code that I am using.  Note that this very same code works in
  other cases.  Can anyone give me a clue as to why I might get the -1,
  and how I can get more information about what is going wrong.  Also
  note, that if I take the URL that I am trying to connect to in this
  call and paste it into a browser, I get the correct response, so I am
  pretty sure that the URL itself is correct.  In this particular call,
  m_data is null, so it is performing a GET and no data is written.

  Thanks

      HttpsURLConnection connection = null;

      try
      {
          URL url = new URL(arg0[0]);
          connection = (HttpsURLConnection) url.openConnection();

          // Allow Inputs  Outputs if there is data to send
          connection.setDoInput(true);
          connection.setDoOutput(m_data != null);
          connection.setUseCaches(false);

          // Enable GET or POST depending on whether there is data to
  send
          connection.setRequestMethod((m_data == null) ? GET :
  POST);

          connection.setRequestProperty(Connection, Keep-Alive);
          connection.setRequestProperty(Content-Type, application/
  octet-stream);

          if (m_data != null)
          {
              DataOutputStream outputStream = null;

              connection.setFixedLengthStreamingMode(m_data.length);

              outputStream = new
  DataOutputStream( connection.getOutputStream() );
              outputStream.write(m_data);

              outputStream.flush();
              outputStream.close();
          }

          // Responses from the server (code and message)
          int serverResponseCode = connection.getResponseCode();
          String serverResponseMessage =
  connection.getResponseMessage();

          InputStream inputStream = connection.getInputStream();

          int nBytes;

          m_curBytes    = 0;
          m_totBytes    = connection.getContentLength();

          byte[] bytes = new byte[65536];

          while ((nBytes = inputStream.read(bytes))  0)
          {
              if (m_file != null)
              {
                  m_file.write(bytes, 0, nBytes);
              }
              else if (m_result != null)
              {
                  m_result.append(bytes, 0, nBytes);
              }

              m_curBytes    += nBytes;

              m_handler.post(new Runnable()
              {
                  public void run()
                  {
                      if (m_pInet != 0)
                      {
                          GDownloadProgress(m_pInet, m_curBytes,
  m_totBytes);
                      }
                      else
                      {
                          int i = 0;
                      }
                  }
              });

          }

          if (m_file != null)
          {
              m_error = false;
          }
          else if (m_result != null)
          {
              m_error    = (m_result.length() = 0);
          }
          else
          {
              m_error    = true;
          }
      }
      catch (Exception ex)
      {
          GSystem.GLogWarning(GINet: error =  + ex.getMessage());
      }



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


[android-developers] Re: I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-11 Thread Emanuel Moecklin
You are right, because the variable is static final I could just use
its value 4.
If it weren't static final I wouldn't do that even if the docs say
Constant Value: 4 (0x0004).

On May 11, 9:54 am, Kostya Vasilyev kmans...@gmail.com wrote:
 11.05.2011 17:24,EmanuelMoecklinпишет:

  SCREENLAYOUT_SIZE_XLARGE unfortunately isn't supported before
  Gingerbread so it's either using reflection or my approach (maybe
  there are other solutions) to_really_  solve Droid's problem (I agree
  that the nosensor approach is not the right one).

 Why would you need reflection for a simple integer constant?

 You can just define your own, the value is 4.

 Besides, it's defined as a static final and so is inlined by the
 compiler even if referenced by its symbolic name.

 -- Kostya

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

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


[android-developers] Re: Out of three buttons, one button is not working

2011-05-11 Thread mack2978
I removed this still not working

On May 11, 5:44 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 11 May 2011 14:28, mack2978 smashmah...@gmail.com wrote:

    android:onClick=selfDestruct

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
 *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
 *Twitterhttp://webnetmobile.com/twitter/
 *

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


[android-developers] Re: Out of three buttons, one button is not working

2011-05-11 Thread viktor
Is Button selector switches if you push the Button?

On 11 Тра, 15:28, mack2978 smashmah...@gmail.com wrote:
 Hi All,

 I am baffling with below issue. Out of three buttons, save button is
 not working and its onclick is not hitting. Any idea anyone.    below
 code and XML i am using.

   setContentView(R.layout.myimageview);
         mImageView = (ImageView) findViewById(R.id.imageview);
         mImageView.setDrawingCacheEnabled(true);
         mImageView.setImageResource(param1);
         mslideshow = (ImageButton)findViewById(R.id.slideshow);
         mSave = (ImageButton)findViewById(R.id.msave);

         mslideshow.setOnClickListener(new OnClickListener() {
             public void onClick(View view) {

                     Intent MyIntent = new Intent(myimageview.this,
 slideshowview.class);
                     startActivity(MyIntent);

             }
         });

         mSave.setOnClickListener(new OnClickListener() {
             public void onClick(View view) {
                 saveWallpaperToSD(saveFile+.png);
                     updateExternalStorageState();
             }
         });

         msetwallpaper = (ImageButton) findViewById(R.id.setwallpaper);
         msetwallpaper.setOnClickListener(new OnClickListener() {
             public void onClick(View view) {
                   wallpaperManager.setWallpaperOffsetSteps(0.5f,
 0.5f);

 wallpaperManager.setWallpaperOffsets(view.getRootView().getWindowToken(),
 0.5f, 0.5f);
                     //wallpaperManager.suggestDesiredDimensions(320,
 480);
                     try {
                                                 
 wallpaperManager.setBitmap(mImageView.getDrawingCache());
                                         } catch (IOException e) {
                                                 // TODO Auto-generated catch 
 block
                                                 e.printStackTrace();
                                         }
                     finish();
             }
         });

 XML:
 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:background=@drawable/inner_bg
         
     ImageView
         android:layout_width=fill_parent
         android:layout_height=435dp
         android:id=@+id/imageview
         android:adjustViewBounds=true
         android:gravity=center/

         ImageButton
             android:id=@+id/setwallpaper
             style=@android:style/Widget.Button.Inset
             android:src=@drawable/btn_setwallpaper
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_below=@id/imageview
             android:layout_alignLeft=@+id/imageview
         /

         ImageButton
                         android:id=@+id/msave
             style=@android:style/Widget.Button.Inset
             android:src=@drawable/btn_save
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_below=@id/imageview
             android:layout_alignLeft=@+id/slideshow
             android:layout_alignRight=@+id/setwallpaper
                         android:onClick=selfDestruct
         /

           ImageButton
                         android:id=@+id/slideshow
             style=@android:style/Widget.Button.Inset
             android:src=@drawable/btn_slideshow
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_below=@id/imageview
             android:layout_alignRight=@+id/imageview
         /

 /RelativeLayout

 thanks,

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

[android-developers] How to launch other installed program in code?

2011-05-11 Thread wilkas
I'm noob, so pls be patient. 
Trying to launch Opera MiniBrowser from my code. Reffered to these resources 
on launching other programs: 
http://markmail.org/message/hztjnsuhv7wnrdkb#query:+page:1+mid:ct7yftkr2twaee3z+state:results
; 
http://www.tutorialforandroid.com/2011/01/opening-activity-with-string-in-android.html

http://www.tutorialforandroid.com/2011/01/opening-activity-with-string-in-android.htmlWith
 
this peace of code:
ListResolveInfo launchablePrograms = getPackageManager()
.queryIntentActivities(new Intent(Intent.ACTION_MAIN), 0);

for (int i = 0; i  launchablePrograms.size(); i++) {
Log.d(myTag, Program:  + i +   + launchablePrograms.get(i));
}
I've looked for all launchable programs and found 
com.opera.mini.android.Browser.

With this peace of code:
try {
Intent i = new Intent(this,
Class.forName(com.opera.mini.android.Browser));
startActivity(i);
} catch (ClassNotFoundException e) {
Log.d(myTag, Shoudnt get here);
}
I'm trying to launch Opera MiniBrowser, but I get exception message Shoudnt 
get here as class would not be found. Tried with my other programs aswell.

What am I doing wrong?
This launcher is solely for personal use. I'm making launcher, that would 
change some settings (like WIFI, GPS state) and launch my desired program in 
a single tap

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

[android-developers] Stable Built environment for Nexus S

2011-05-11 Thread Markus
Hello friends,

I am looking for a stable built environment to build a custom ROM.
BUT all branches I tryed dont work clean in Nexus S.

My attemts:
repo init -u git://android.git.kernel.org/platform/manifest.git -b
android-2.3.3_r1
repo init -u git://android.git.kernel.org/platform/manifest.git -b
android-2.3.3_r1.1
repo init -u git://android.git.kernel.org/platform/manifest.git -b
android-2.3.4_r1
repo init -u git://android.git.kernel.org/platform/manifest.git -b
gingerbread
repo init -u git://android.git.kernel.org/platform/manifest.git -b
master

On all branches there are problems with NFC (an error occures is
showing when I activate it)
And when I try to activate WLAN then thy System is hang up and I have
to remove the battery to restart it.

On Installation I get an error that the baseband version is not right,
my baseband is I9020XXKB3
If I add my baseband version to board-info then installation is OK.

Maybe is that the reason for my Hardware Errors with NFC and WLAN?

would be happy for some infos and tips

best regards
Markus

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


Re: [android-developers] How to launch other installed program in code?

2011-05-11 Thread Kostya Vasilyev
You are trying to refer to Opera's Java class as if it were defined in your
application. This is not working because it's not.

You can specify the package and class names with the other setClassName,
the one that takes two strings.
11.05.2011 19:16 пользователь wilkas wil...@gmail.com написал:

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

Re: [android-developers] Stable Built environment for Nexus S

2011-05-11 Thread Marcin Orlowski
On 11 May 2011 17:16, Markus markus.tau...@gmail.com wrote:

 Hello friends,

 I am looking for a stable built environment to build a custom ROM.
 BUT all branches I tryed dont work clean in Nexus S.


You're on wrong group. android-building or any related to building android
(NOT building FOR android) is better. Here's what's available:
http://source.android.com/community/index.html

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

[android-developers] Re: Scheduling restart of crashed service

2011-05-11 Thread lbendlin
Why do you let the monkey run against Android itself? You probably want to 
specify your application package, and prohibit monkey from jumping out of 
the sandbox.

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

[android-developers] Re: Out of three buttons, one button is not working

2011-05-11 Thread mack2978
No, it doesn't, I put breakpoint under onclick() but control doesn't
come under it.

On May 11, 8:14 pm, viktor victor.scherb...@gmail.com wrote:
 Is Button selector switches if you push the Button?

 On 11 Тра, 15:28,mack2978smashmah...@gmail.com wrote:



  Hi All,

  I am baffling with below issue. Out of three buttons, save button is
  not working and its onclick is not hitting. Any idea anyone.    below
  code and XML i am using.

    setContentView(R.layout.myimageview);
          mImageView = (ImageView) findViewById(R.id.imageview);
          mImageView.setDrawingCacheEnabled(true);
          mImageView.setImageResource(param1);
          mslideshow = (ImageButton)findViewById(R.id.slideshow);
          mSave = (ImageButton)findViewById(R.id.msave);

          mslideshow.setOnClickListener(new OnClickListener() {
              public void onClick(View view) {

                      Intent MyIntent = new Intent(myimageview.this,
  slideshowview.class);
                      startActivity(MyIntent);

              }
          });

          mSave.setOnClickListener(new OnClickListener() {
              public void onClick(View view) {
                  saveWallpaperToSD(saveFile+.png);
                      updateExternalStorageState();
              }
          });

          msetwallpaper = (ImageButton) findViewById(R.id.setwallpaper);
          msetwallpaper.setOnClickListener(new OnClickListener() {
              public void onClick(View view) {
                    wallpaperManager.setWallpaperOffsetSteps(0.5f,
  0.5f);

  wallpaperManager.setWallpaperOffsets(view.getRootView().getWindowToken(),
  0.5f, 0.5f);
                      //wallpaperManager.suggestDesiredDimensions(320,
  480);
                      try {
                                                  
  wallpaperManager.setBitmap(mImageView.getDrawingCache());
                                          } catch (IOException e) {
                                                  // TODO Auto-generated 
  catch block
                                                  e.printStackTrace();
                                          }
                      finish();
              }
          });

  XML:
  ?xml version=1.0 encoding=utf-8?
  RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
  android
          android:layout_width=fill_parent
          android:layout_height=wrap_content
          android:background=@drawable/inner_bg
          
      ImageView
          android:layout_width=fill_parent
          android:layout_height=435dp
          android:id=@+id/imageview
          android:adjustViewBounds=true
          android:gravity=center/

          ImageButton
              android:id=@+id/setwallpaper
              style=@android:style/Widget.Button.Inset
              android:src=@drawable/btn_setwallpaper
              android:layout_width=wrap_content
              android:layout_height=wrap_content
              android:layout_below=@id/imageview
              android:layout_alignLeft=@+id/imageview
          /

          ImageButton
                          android:id=@+id/msave
              style=@android:style/Widget.Button.Inset
              android:src=@drawable/btn_save
              android:layout_width=wrap_content
              android:layout_height=wrap_content
              android:layout_below=@id/imageview
              android:layout_alignLeft=@+id/slideshow
              android:layout_alignRight=@+id/setwallpaper
                          android:onClick=selfDestruct
          /

            ImageButton
                          android:id=@+id/slideshow
              style=@android:style/Widget.Button.Inset
              android:src=@drawable/btn_slideshow
              android:layout_width=wrap_content
              android:layout_height=wrap_content
              android:layout_below=@id/imageview
              android:layout_alignRight=@+id/imageview
          /

  /RelativeLayout

  thanks,

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

[android-developers] Re: Out of three buttons, one button is not working

2011-05-11 Thread viktor
It's magic, Try to use android:layout_toRightOf=@id/.

I guess one of yours button overlapped center button, try to play with
layout.

On 11 Тра, 18:52, mack2978 smashmah...@gmail.com wrote:
 No, it doesn't, I put breakpoint under onclick() but control doesn't
 come under it.

 On May 11, 8:14 pm, viktor victor.scherb...@gmail.com wrote:







  Is Button selector switches if you push the Button?

  On 11 Тра, 15:28,mack2978smashmah...@gmail.com wrote:

   Hi All,

   I am baffling with below issue. Out of three buttons, save button is
   not working and its onclick is not hitting. Any idea anyone.    below
   code and XML i am using.

     setContentView(R.layout.myimageview);
           mImageView = (ImageView) findViewById(R.id.imageview);
           mImageView.setDrawingCacheEnabled(true);
           mImageView.setImageResource(param1);
           mslideshow = (ImageButton)findViewById(R.id.slideshow);
           mSave = (ImageButton)findViewById(R.id.msave);

           mslideshow.setOnClickListener(new OnClickListener() {
               public void onClick(View view) {

                       Intent MyIntent = new Intent(myimageview.this,
   slideshowview.class);
                       startActivity(MyIntent);

               }
           });

           mSave.setOnClickListener(new OnClickListener() {
               public void onClick(View view) {
                   saveWallpaperToSD(saveFile+.png);
                       updateExternalStorageState();
               }
           });

           msetwallpaper = (ImageButton) findViewById(R.id.setwallpaper);
           msetwallpaper.setOnClickListener(new OnClickListener() {
               public void onClick(View view) {
                     wallpaperManager.setWallpaperOffsetSteps(0.5f,
   0.5f);

   wallpaperManager.setWallpaperOffsets(view.getRootView().getWindowToken(),
   0.5f, 0.5f);
                       //wallpaperManager.suggestDesiredDimensions(320,
   480);
                       try {
                                                   
   wallpaperManager.setBitmap(mImageView.getDrawingCache());
                                           } catch (IOException e) {
                                                   // TODO Auto-generated 
   catch block
                                                   e.printStackTrace();
                                           }
                       finish();
               }
           });

   XML:
   ?xml version=1.0 encoding=utf-8?
   RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
   android
           android:layout_width=fill_parent
           android:layout_height=wrap_content
           android:background=@drawable/inner_bg
           
       ImageView
           android:layout_width=fill_parent
           android:layout_height=435dp
           android:id=@+id/imageview
           android:adjustViewBounds=true
           android:gravity=center/

           ImageButton
               android:id=@+id/setwallpaper
               style=@android:style/Widget.Button.Inset
               android:src=@drawable/btn_setwallpaper
               android:layout_width=wrap_content
               android:layout_height=wrap_content
               android:layout_below=@id/imageview
               android:layout_alignLeft=@+id/imageview
           /

           ImageButton
                           android:id=@+id/msave
               style=@android:style/Widget.Button.Inset
               android:src=@drawable/btn_save
               android:layout_width=wrap_content
               android:layout_height=wrap_content
               android:layout_below=@id/imageview
               android:layout_alignLeft=@+id/slideshow
               android:layout_alignRight=@+id/setwallpaper
                           android:onClick=selfDestruct
           /

             ImageButton
                           android:id=@+id/slideshow
               style=@android:style/Widget.Button.Inset
               android:src=@drawable/btn_slideshow
               android:layout_width=wrap_content
               android:layout_height=wrap_content
               android:layout_below=@id/imageview
               android:layout_alignRight=@+id/imageview
           /

   /RelativeLayout

   thanks,

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

[android-developers] Query on Programming Model in Recorder

2011-05-11 Thread Ganesh
Dear Experts,

From the sources, I observe that the data from Camera is read by the
encoder through a PULL model. However, Camera can't generate frames
whenever the encoder requires a frame and instead should work on a
PUSH model. To ensure the real-time behavior of the system, one would
require a jitter buffer between Camera and Encoder to facilitate a
PUSH from camera and PULL from Encoder.

Has this been factored into the current design? I couldn't exactly
match this thought process with the sources. If the experts could
provide some pointers or help me correct my understanding, it would be
useful.

Thanks for your help.

Cheers,
Ganesh

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


[android-developers] Re: eCarrel: tech eBook reader and bookstore for Android 3.0 tablets

2011-05-11 Thread Bill Michaelson
I was about to try it, but it wants read/write access to personal
contacts.

On May 10, 9:35 pm, jacek jacek.ambroz...@gmail.com wrote:
 Just shipped today, a new eReading solution mostly for developers,
 with bookstore filled by all the latest and greatest O'Reilly titles.
 You will find lots of recent titles very highly relevant to what we do
 in Android programming,
 including books on HTML5, SQLite, JavaScript, etc. etc.
 One book, Mining the Social Web is GitHub integrated; soon there
 will be more

 https://market.android.com/details?id=com.ambrosoft.searchlib

 You can preview all the books before buying at a discount.
 After you buy a book, you will be able to download EPUB for your
 archival purposes
 eCarrel is specialized for non-fiction, scientific or technical text.
 Superb search engine and social networking built-in.

 This is only a beta so please be patient -- bugs are quite likely,
 as you can expect.
 I'd love to get your positive feedback and ideas for improvement.

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


[android-developers] Re: Out of three buttons, one button is not working

2011-05-11 Thread mack2978
Great Viktor...It worked..but still i am clueless why it not worked
using layout_alignRight? Anyways thanks..

On May 11, 9:14 pm, viktor victor.scherb...@gmail.com wrote:
 It's magic, Try to use android:layout_toRightOf=@id/.

 I guess one of yours button overlapped center button, try to play with
 layout.

 On 11 Тра, 18:52,mack2978smashmah...@gmail.com wrote:



  No, it doesn't, I put breakpoint under onclick() but control doesn't
  come under it.

  On May 11, 8:14 pm, viktor victor.scherb...@gmail.com wrote:

   Is Button selector switches if you push the Button?

   On 11 Тра, 15:28,mack2978smashmah...@gmail.com wrote:

Hi All,

I am baffling with below issue. Out of three buttons, save button is
not working and its onclick is not hitting. Any idea anyone.    below
code and XML i am using.

  setContentView(R.layout.myimageview);
        mImageView = (ImageView) findViewById(R.id.imageview);
        mImageView.setDrawingCacheEnabled(true);
        mImageView.setImageResource(param1);
        mslideshow = (ImageButton)findViewById(R.id.slideshow);
        mSave = (ImageButton)findViewById(R.id.msave);

        mslideshow.setOnClickListener(new OnClickListener() {
            public void onClick(View view) {

                    Intent MyIntent = new Intent(myimageview.this,
slideshowview.class);
                    startActivity(MyIntent);

            }
        });

        mSave.setOnClickListener(new OnClickListener() {
            public void onClick(View view) {
                saveWallpaperToSD(saveFile+.png);
                    updateExternalStorageState();
            }
        });

        msetwallpaper = (ImageButton) findViewById(R.id.setwallpaper);
        msetwallpaper.setOnClickListener(new OnClickListener() {
            public void onClick(View view) {
                  wallpaperManager.setWallpaperOffsetSteps(0.5f,
0.5f);

wallpaperManager.setWallpaperOffsets(view.getRootView().getWindowToken(),
0.5f, 0.5f);
                    //wallpaperManager.suggestDesiredDimensions(320,
480);
                    try {
                                                
wallpaperManager.setBitmap(mImageView.getDrawingCache());
                                        } catch (IOException e) {
                                                // TODO Auto-generated 
catch block
                                                e.printStackTrace();
                                        }
                    finish();
            }
        });

XML:
?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
        android:layout_width=fill_parent
        android:layout_height=wrap_content
        android:background=@drawable/inner_bg
        
    ImageView
        android:layout_width=fill_parent
        android:layout_height=435dp
        android:id=@+id/imageview
        android:adjustViewBounds=true
        android:gravity=center/

        ImageButton
            android:id=@+id/setwallpaper
            style=@android:style/Widget.Button.Inset
            android:src=@drawable/btn_setwallpaper
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_below=@id/imageview
            android:layout_alignLeft=@+id/imageview
        /

        ImageButton
                        android:id=@+id/msave
            style=@android:style/Widget.Button.Inset
            android:src=@drawable/btn_save
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_below=@id/imageview
            android:layout_alignLeft=@+id/slideshow
            android:layout_alignRight=@+id/setwallpaper
                        android:onClick=selfDestruct
        /

          ImageButton
                        android:id=@+id/slideshow
            style=@android:style/Widget.Button.Inset
            android:src=@drawable/btn_slideshow
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_below=@id/imageview
            android:layout_alignRight=@+id/imageview
        /

/RelativeLayout

thanks,

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


[android-developers] Interactions between classes

2011-05-11 Thread Abalufaske
I have 2 class: Class A and Class B

The class A has a user interface and class B not

The class B has a method that makes an ArrayList and if fills it with
data (in the same function) it returns the ArrayList

How can i get from Class A that object filled of data?

Class B method cannot be static (uses this. several times)

I tried getApplication() but it crashes with a null pointer
exception.  I don't want to examine the code i need to know how can I
interact with other classes methods or vars, manuals about that are
welcome also :)

Sorry if i don't explain too much and thank you before you answer :)

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


[android-developers] Password Manager For Ipad and other fPlatforms

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

Re: [android-developers] Interactions between classes

2011-05-11 Thread TreKing
On Wed, May 11, 2011 at 12:23 PM, Abalufaske abalufa...@gmail.com wrote:

 How can i get from Class A that object filled of data?


This will vary wildly depending on what your classes actually are
(Activities, Services, etc) and how they're actually used.

You probably should add more detail and example of your issue.

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

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

[android-developers] cracked screen

2011-05-11 Thread bob
I saw this app called cracked screen that basically overlays a bitmap
on the screen and makes it look cracked as a joke.  Somehow the app
continues to put the crack on the screen even as the user continues to
use the phone.  Anyone know how to do this?

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


[android-developers] Binder thread Migration

2011-05-11 Thread Nitin Mahajan
Hello,

While reading through the OpenBinder documentation I came across a
statement which said

The kernel module emulates a thread migration model by propagating
thread priorities across processes as IPCs are dispatched.

This means that the priority of the thread executing the IPC in remote
process is made same as priority of the thread initiating the IPC in
it's process.

How does this priority propagation helps?

Can someone please explain this Emulation of Thread Migration in
Android binder more clear?

Thanks and regards
-Nitin

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


[android-developers] RTSP video stream with authentication

2011-05-11 Thread rohit
Hello Guys,

Does the Android supports to play rtsp video feed with initial
authentication like in Axis web cam feed?

rohit

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


[android-developers] good 2d physics engine

2011-05-11 Thread bob
Can anyone recommend a good 2d physics engine for Android?

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


Re: [android-developers] good 2d physics engine

2011-05-11 Thread TreKing
On Wed, May 11, 2011 at 1:28 PM, bob b...@coolgroups.com wrote:

 Can anyone recommend a good 2d physics engine for Android?


Always check the Google's first, as this type of question has usually
already been asked (and answered) repeatedly.
http://tinyurl.com/6cm8mwk

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

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

[android-developers] Re: eCarrel: tech eBook reader and bookstore for Android 3.0 tablets

2011-05-11 Thread jacek
eCarrel is a social reader (apart from other features)
and you will be able to add Contacts to talk about books
and share stuff

But... I am with you: this is a scary access right.
As an Android developer from the beginning
I've given much thought to security issues,
perceptions and problems.
It is true that an app with access to your contacts
can steal the contacts and send them over anywhere it wants.

So:

1) I hereby solemnly promise NOT to be doing anything evil
2) I will investigate if there is a chance the app can live
   without this permission

I fully agree that it is scary (and it should be) to grant certain
permisions...


On May 11, 12:53 pm, Bill Michaelson wmmichael...@gmail.com wrote:
 I was about to try it, but it wants read/write access to personal
 contacts.

 On May 10, 9:35 pm, jacek jacek.ambroz...@gmail.com wrote:

  Just shipped today, a new eReading solution mostly for developers,
  with bookstore filled by all the latest and greatest O'Reilly titles.
  You will find lots of recent titles very highly relevant to what we do
  in Android programming,
  including books on HTML5, SQLite, JavaScript, etc. etc.
  One book, Mining the Social Web is GitHub integrated; soon there
  will be more

 https://market.android.com/details?id=com.ambrosoft.searchlib

  You can preview all the books before buying at a discount.
  After you buy a book, you will be able to download EPUB for your
  archival purposes
  eCarrel is specialized for non-fiction, scientific or technical text.
  Superb search engine and social networking built-in.

  This is only a beta so please be patient -- bugs are quite likely,
  as you can expect.
  I'd love to get your positive feedback and ideas for improvement.



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


Re: [android-developers] How to launch other installed program in code?

2011-05-11 Thread wilkas


 You can specify the package and class names with the other setClassName, 
 the one that takes two strings.

I've tried this peace of code:
 Intent i = new Intent();
i.*setClassName*(com.opera.mini.android, Browser);
startActivity(i);
But my activity just crashes :/ 

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

[android-developers] Re: Interactions between classes

2011-05-11 Thread Abalufaske
class A is extends activity class B only have functions don't extend
anything

On May 11, 7:33 pm, TreKing treking...@gmail.com wrote:
 On Wed, May 11, 2011 at 12:23 PM, Abalufaske abalufa...@gmail.com wrote:
  How can i get from Class A that object filled of data?

 This will vary wildly depending on what your classes actually are
 (Activities, Services, etc) and how they're actually used.

 You probably should add more detail and example of your issue.

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

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


[android-developers] Re: Interactions between classes

2011-05-11 Thread Abalufaske
class B retrieve data of contentProvider and store it in a ArrayList

On May 11, 9:21 pm, Abalufaske abalufa...@gmail.com wrote:
 class A is extends activity class B only have functions don't extend
 anything

 On May 11, 7:33 pm, TreKing treking...@gmail.com wrote:







  On Wed, May 11, 2011 at 12:23 PM, Abalufaske abalufa...@gmail.com wrote:
   How can i get from Class A that object filled of data?

  This will vary wildly depending on what your classes actually are
  (Activities, Services, etc) and how they're actually used.

  You probably should add more detail and example of your issue.

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

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


[android-developers] Re: Interactions between classes

2011-05-11 Thread Abalufaske
class B get data of contentprovider and store it in a arraylist

On May 11, 9:21 pm, Abalufaske abalufa...@gmail.com wrote:
 class A is extends activity class B only have functions don't extend
 anything

 On May 11, 7:33 pm, TreKing treking...@gmail.com wrote:







  On Wed, May 11, 2011 at 12:23 PM, Abalufaske abalufa...@gmail.com wrote:
   How can i get from Class A that object filled of data?

  This will vary wildly depending on what your classes actually are
  (Activities, Services, etc) and how they're actually used.

  You probably should add more detail and example of your issue.

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

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


Re: [android-developers] How to launch other installed program in code?

2011-05-11 Thread Kostya Vasilyev

Try this:

i.*/setClassName/*(com.opera.mini.android, 
com.opera.mini.android.Browser);


-- Kostya

11.05.2011 23:14, wilkas ?:


You can specify the package and class names with the other
setClassName, the one that takes two strings.

I've tried this peace of code:
Intent i = new Intent();
i.*/setClassName/*(com.opera.mini.android, Browser);
startActivity(i);
But my activity just crashes :/
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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

[android-developers] Re: eCarrel: tech eBook reader and bookstore for Android 3.0 tablets

2011-05-11 Thread jacek
I have just checked... I have used code from

http://developer.android.com/resources/samples/SampleSyncAdapter/index.html

which requires READ_CONTACTS

http://developer.android.com/resources/samples/SampleSyncAdapter/AndroidManifest.html



I would rather get rid some functionality
then to scare people away...

I will next check if I can remove portions of code borrowed from
SampleSyncAdapter
while not breaking the app

On May 11, 12:53 pm, Bill Michaelson wmmichael...@gmail.com wrote:
 I was about to try it, but it wants read/write access to personal
 contacts.

 On May 10, 9:35 pm, jacek jacek.ambroz...@gmail.com wrote:

  Just shipped today, a new eReading solution mostly for developers,
  with bookstore filled by all the latest and greatest O'Reilly titles.
  You will find lots of recent titles very highly relevant to what we do
  in Android programming,
  including books on HTML5, SQLite, JavaScript, etc. etc.
  One book, Mining the Social Web is GitHub integrated; soon there
  will be more

 https://market.android.com/details?id=com.ambrosoft.searchlib

  You can preview all the books before buying at a discount.
  After you buy a book, you will be able to download EPUB for your
  archival purposes
  eCarrel is specialized for non-fiction, scientific or technical text.
  Superb search engine and social networking built-in.

  This is only a beta so please be patient -- bugs are quite likely,
  as you can expect.
  I'd love to get your positive feedback and ideas for improvement.



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


Aw: Re: [android-developers] requestLocationUpdates ignore minTime parameter?

2011-05-11 Thread Daniel Rindt
Ah ok, yes now i got it. Good when english is your native language. :-) 
Thanks!

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

[android-developers] Re: Mapactivity second intent

2011-05-11 Thread ingy abbas
ye !!

On May 11, 2:39 am, TreKing treking...@gmail.com wrote:
 On Tue, May 10, 2011 at 6:48 PM, ingy abbas ingy.abba...@gmail.com wrote:
  *05-11 02:46:19.843: ERROR/AndroidRuntime(311):
  java.lang.NoClassDefFoundError: yaraby.y.Mapy*

 Did you include the class in you manifest?

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

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


[android-developers] Re: I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-11 Thread nadam
Actually, it's even simpler. Since it's a static final, the value is
built into your apk-file at compile time, so you can use
SCREENLAYOUT_SIZE_XLARGE no matter what version the device is running.
You can try this for instance using an emulator with Android 1.6 and
an app compiled against Android 2.3 with minSdkVersion=4 and
targetSdkVersion=9.

On 11 Maj, 16:47, Emanuel Moecklin 1gravity...@gmail.com wrote:
 You are right, because the variable is static final I could just use
 its value 4.
 If it weren't static final I wouldn't do that even if the docs say
 Constant Value: 4 (0x0004).

 On May 11, 9:54 am, Kostya Vasilyev kmans...@gmail.com wrote:







  11.05.2011 17:24,EmanuelMoecklinпишет:

   SCREENLAYOUT_SIZE_XLARGE unfortunately isn't supported before
   Gingerbread so it's either using reflection or my approach (maybe
   there are other solutions) to_really_  solve Droid's problem (I agree
   that the nosensor approach is not the right one).

  Why would you need reflection for a simple integer constant?

  You can just define your own, the value is 4.

  Besides, it's defined as a static final and so is inlined by the
  compiler even if referenced by its symbolic name.

  -- Kostya

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

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


[android-developers] Re: eCarrel: tech eBook reader and bookstore for Android 3.0 tablets

2011-05-11 Thread jacek
Thanks to Bill's feedback I went into the code and found out
that I may safely remove the code that used READ_CONTACTS
in fact both READ as well as WRITE_CONTACTS permissions
are now gone, which is a good thing, since especially
READ_CONTACTS is scary...

That said, anybody who will use SampleSynAdapter Android sample
is likely to run into the same issue

For instance, Last.fm app and many others also ask for READ_CONTACTS

Perhaps, we treat the better known apps as implicitly trusted
But should we really?

I wonder if making READ/WRITE CONTACTS somehow more fine grained,
eg. limiting an app's view on the Contacts DB to just the contacts
under the app's control would be a good idea?



https://market.android.com/details?id=com.ambrosoft.searchlib

On May 11, 3:44 pm, jacek jacek.ambroz...@gmail.com wrote:
 I have just checked... I have used code from

 http://developer.android.com/resources/samples/SampleSyncAdapter/inde...

 which requires READ_CONTACTS

 http://developer.android.com/resources/samples/SampleSyncAdapter/Andr...

 I would rather get rid some functionality
 then to scare people away...

 I will next check if I can remove portions of code borrowed from
 SampleSyncAdapter
 while not breaking the app

 On May 11, 12:53 pm, Bill Michaelson wmmichael...@gmail.com wrote:

  I was about to try it, but it wants read/write access to personal
  contacts.

  On May 10, 9:35 pm, jacek jacek.ambroz...@gmail.com wrote:

   Just shipped today, a new eReading solution mostly for developers,
   with bookstore filled by all the latest and greatest O'Reilly titles.
   You will find lots of recent titles very highly relevant to what we do
   in Android programming,
   including books on HTML5, SQLite, JavaScript, etc. etc.
   One book, Mining the Social Web is GitHub integrated; soon there
   will be more

  https://market.android.com/details?id=com.ambrosoft.searchlib

   You can preview all the books before buying at a discount.
   After you buy a book, you will be able to download EPUB for your
   archival purposes
   eCarrel is specialized for non-fiction, scientific or technical text.
   Superb search engine and social networking built-in.

   This is only a beta so please be patient -- bugs are quite likely,
   as you can expect.
   I'd love to get your positive feedback and ideas for improvement.



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


[android-developers] Re: How to Get 3G/UMTS Signal Strength Values: HELP PLEASE!

2011-05-11 Thread Ahmed
Hi Aussie, did you ever get an answer to this question? I'm running into the 
same situation and not sure if I should use getGsmSignalStrength for both GSM 
and UMTS. Even if this is correct, how about the rscp, ecio, etc.
Thank you,
Ahmed



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


[android-developers] Re: SectionIndexer Tweak

2011-05-11 Thread Alex Duhamel

 flag() and toggleFlag() are my own functions.

Lee - I'm having the same problem.  
Do you mind sharing your flag() and toggleFlag() functions?

Thanks...Alex



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


[android-developers] Re: NFC JNI Error on Nexus S

2011-05-11 Thread fordeveloper
Ya, am having the same issue with one particular card everytime. The
transcieve fails, and the nfc polling restarts everytime.

On Apr 20, 1:25 pm, Myroslav Bachynskyi bachyns...@gmail.com wrote:
 04-16 15:46:22.809: INFO/ActivityManager(118): Starting: Intent {
 act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
 flg=0x1020 cmp=com.myro/.NFCTestActivity bnds=[5,231][115,349] } from
 pid 201
 04-16 15:46:22.914: VERBOSE/RenderScript_jni(201): surfaceDestroyed
 04-16 15:46:23.242: INFO/ActivityManager(118): Displayed
 com.myro/.NFCTestActivity: +355ms
 04-16 15:46:27.191: INFO/NfcService(567): Dispatching to override intent
 PendingIntent{40529548: android.os.BinderProxy@40528cc0}
 04-16 15:46:27.195: INFO/ActivityManager(118): Starting: Intent {
 act=android.nfc.action.TAG_DISCOVERED flg=0x3000
 cmp=com.myro/.NFCTestActivity (has extras) } from pid -1
 04-16 15:46:27.422: INFO/NFC Reader(539): Tag successfully scanned, and
 information read
 04-16 15:46:28.660: DEBUG/NativeNfcTag(567): Tag lost, restarting polling
 loop
 04-16 15:46:34.930: INFO/NfcService(567): Dispatching to override intent
 PendingIntent{4052b470: android.os.BinderProxy@40528cc0}
 04-16 15:46:34.934: INFO/ActivityManager(118): Starting: Intent {
 act=android.nfc.action.TAG_DISCOVERED flg=0x3000
 cmp=com.myro/.NFCTestActivity (has extras) } from pid -1
 04-16 15:46:43.504: WARN/System.err(539): java.io.IOException
 04-16 15:46:43.504: WARN/System.err(539):     at
 android.nfc.tech.BasicTagTechnology.connect(BasicTagTechnology.java:81)
 04-16 15:46:43.508: WARN/System.err(539):     at
 android.nfc.tech.IsoDep.connect(IsoDep.java:40)
 04-16 15:46:43.508: WARN/System.err(539):     at
 com.myro.NFCTestActivity.processTag(NFCTestActivity.java:73)
 04-16 15:46:43.508: WARN/System.err(539):     at
 com.myro.NFCTestActivity.access$0(NFCTestActivity.java:66)
 04-16 15:46:43.516: WARN/System.err(539):     at
 com.myro.NFCTestActivity$1.run(NFCTestActivity.java:60)
 04-16 15:46:43.520: WARN/System.err(539):     at
 java.lang.Thread.run(Thread.java:1019)
 04-16 15:46:43.629: ERROR/NFC JNI(567): phLibNfc_RemoteDev_CheckPresence()
 returned 0x0095[NFCSTATUS_INVALID_HANDLE]
 04-16 15:46:43.629: DEBUG/NativeNfcTag(567): Tag lost, restarting polling
 loop
 04-16 15:46:43.629: ERROR/NFC JNI(567):
 phLibNfc_RemoteDev_Disconnect(293e90) returned
 0x0095[NFCSTATUS_INVALID_HANDLE]
 04-16 15:46:44.117: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:46:44.117: WARN/NfcService(567): Failed to connect to tag
 04-16 15:46:44.117: ERROR/NFC JNI(567): doDisconnect() - Target already
 disconnected
 04-16 15:46:44.574: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:46:44.574: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:46:44.574: WARN/NfcService(567): Failed to connect to tag
 04-16 15:46:44.574: ERROR/NFC JNI(567): doDisconnect() - Target already
 disconnected
 04-16 15:46:45.035: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:46:45.035: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:46:45.035: WARN/NfcService(567): Failed to connect to tag
 04-16 15:46:45.035: ERROR/NFC JNI(567): doDisconnect() - Target already
 disconnected
 ...
 04-16 15:51:31.301: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:51:31.301: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:51:31.305: WARN/NfcService(567): Failed to connect to tag
 04-16 15:51:31.305: ERROR/NFC JNI(567): doDisconnect() - Target already
 disconnected
 04-16 15:51:31.766: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:51:31.766: ERROR/NFC JNI(567): phLibNfc_RemoteDev_Connect(RW)
 returned 0x00ff[NFCSTATUS_FAILED]
 04-16 15:51:31.766: WARN/NfcService(567): Failed to connect to tag
 04-16 15:51:31.766: ERROR/NFC JNI(567): doDisconnect() - Target already
 disconnected
 04-16 15:51:32.172: WARN/dalvikvm(567): ReferenceTable overflow (max=512)
 04-16 15:51:32.172: WARN/dalvikvm(567): Last 10 entries in JNI local
 reference table:
 04-16 15:51:32.172: WARN/dalvikvm(567):   502: 0x40532ee8 cls=[I (28 bytes)
 04-16 15:51:32.172: WARN/dalvikvm(567):   503: 0x40532f08 cls=[I (28 bytes)
 04-16 15:51:32.172: WARN/dalvikvm(567):   504: 0x40532f28 cls=[I (28 bytes)
 04-16 15:51:32.176: WARN/dalvikvm(567):   505: 0x40518b10
 cls=Ljava/lang/Class; 'Lcom/android/nfc/NativeNfcTag;' (188 bytes)
 04-16 15:51:32.176: WARN/dalvikvm(567):   506: 0x40532f80 cls=[B (20 bytes)
 04-16 15:51:32.180: WARN/dalvikvm(567):   507: 0x40532f98 cls=[I (28 bytes)
 04-16 15:51:32.184: WARN/dalvikvm(567):   508: 0x40532fb8 cls=[I (28 bytes)
 04-16 15:51:32.184: WARN/dalvikvm(567):   509: 0x40532fd8 cls=[I (28 bytes)
 04-16 15:51:32.184: 

[android-developers] Re: emulator too slow

2011-05-11 Thread Eamonn Dunne
Not really, its a known issue, the Google IO talks mentioned they are 
working on 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

Re: [android-developers] good 2d physics engine

2011-05-11 Thread Kristopher Micinski
The problem with this is that inevitably whenever someone does this their
thread appears as the first link soon after...

Kris

On Wed, May 11, 2011 at 2:57 PM, TreKing treking...@gmail.com wrote:

 On Wed, May 11, 2011 at 1:28 PM, bob b...@coolgroups.com wrote:

 Can anyone recommend a good 2d physics engine for Android?


 Always check the Google's first, as this type of question has usually
 already been asked (and answered) repeatedly.
 http://tinyurl.com/6cm8mwk


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

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


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

[android-developers] Re: hash functions

2011-05-11 Thread DanH
Salt doesn't prevent dictionary attacks at all.  If I know that the
password is an 6-character alpha then I can try all combos of that,
dictionary or otherwise, regardless of how salted the encryption is.

I've seen iteration add considerable overhead.  In one SqlCipher
implementation iteration was the vast majority of the CPU costs of
doing a rekey.

On May 10, 11:13 pm, Bob Kerns r...@acm.org wrote:
 I think you missed part of what I was saying. It's important, so let me try
 to be more clear.

 Each of the two components does a different job.

 The salt prevents dictionary attacks, by expanding the space of dictionaries
 by the size of the salt (say, 2^128 or whatever you use.)

 The protection against trial-and-error cracking is where the iteration comes
 in -- you make it take a long time to generate the final key from the
 password.

 The salt isn't (in this context) to prevent plaintext attacks, but
 dictionary attacks, which are EXTREMELY relevant to this case.

 Increasing the length of a weak password has surprisingly little effect in
 the real world. Some, definitely, but not on the scale you'd expect from
 sheer length. And in a lot of contexts, you really can't force users to use
 such long passwords -- the password I'm forced to use on my phone for
 corporate security reasons is very very close to to rendering my phone
 unusable.

 The overhead that the iteration adds to the normal path is generally
 negligible, because it's done on the client side, once. You can tune the
 iteration count to balance the performance requirements vs the security
 requirements. If 100 ms is acceptable, then choose your iteration count
 accordingly, and you will limit the attacker to 10 attempts per second per
 CPU, which certainly beats 1000 attempts per second per CPU.

 On Tuesday, May 10, 2011 8:35:00 PM UTC-7, DanH wrote:

  Of course, hashing a password, per se, doesn't really make it any
  stronger.  And doing things like using a salt don't do much if the
  concern is simple trial-and-error cracking of a single encrypted
  message (unless you're relying on security by obscurity).  Salting
  does help prevent known plaintext attacks and signature spoofing, but
  those are not likely to be problems in low-volume messaging.
  Iterating on an expensive hash can help discourage the trial-and-error
  cracking attack, but it can add considerable overhead to the normal
  path, and simply increasing the length of a weak password would be far
  more effective.

  On May 10, 5:34 pm, Bob Kerns r@acm.org wrote:
   The fundamental problem with starting with a human-managed password is
  that
   there is not a lot of entropy -- the possible values are not distributed
   over a huge range, compared to what an attacker could try with
   trial-and-error.

   So just doing SHA1 or SHA256 for that matter, is not sufficient for a
  strong
   key generation algorithm.

   The first thing you need to address are dictionary attacks, where the
   attacker can pre-compute a large dictionary of keys from likely
  passwords.
   Here, you can inject randomness into the process. What you do is to start

   with a large random number, termed a 'salt'. This is not a secret --
  you'll
   save it away in cleartext somehow, and then combine it with the user's
   password. While the attacker could afford to build a dictionary of keys
   based on passwords, a dictionary of possible salt values + passwords
  would
   be vastly larger.

   The other thing you need to do is to protect against trial-and-error
   attacks. To do this, what you do is make it expensive enough to compute
  the
   key that an attacker simply couldn't try enough to get anywhere. The
  usual
   way of doing this is to iterate some expensive function -- such as SHA1.
   More precisely, you iterate this:

   hash = f(hash)

   where f is some function that is expensive, and does not collapse the
  space
   of possible values into some smaller set. One way to accomplish this
  would
   be:
   f(hash) = hash xor sha1(hash).

   I went with SHA1 above, because I want to tie this to PBKDF2, which
  Nikolay
   referenced.

   What I outline above is roughly what PBKDF2 does for you. You can read
  the
   full details in rfc2898 http://tools.ietf.org/html/rfc2898, and I
   encourage you to do so. I did skip over a lot of detail to focus on the
   motivation and approach.

   So there are basically two parameters -- the salt (selected randomly) and

   the iteration count (selected to make it expensive but not too
  expensive).
    iOS4 uses I believe something like 1 iterations. Blackberry used 1,
  and
   was seriously pwned as a result.

   Together, these compensate for the narrow range of human-generated
   passwords.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

[android-developers] Boot Camp: Mobile Application Development

2011-05-11 Thread vix
For the first time in NCR region!!

A golden opportunity to ride the next wave of Mobile Application
Development! Come learn about the rapidly growing Mobile Applet
Industry from the industry insiders.

What?
iPhone-Android: What lies beneath?
Live interaction with industry experts
Live iPhone-Android Demo Session
Career opportunities in Mobile Application Development
Best Ideas Contest
Exciting Prizes including 1 day FREE Lab Session

Visit us at: www.cdcgroup.in
Like us at: www.facebook.com/cdcgroup

Contact: 0120-4107197

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


[android-developers] C Sharp Basics

2011-05-11 Thread ANUJ BATTA
To know more about C Sharp Basics with Examples in very easy way then
please visit:

http://csharpexpress.blogspot.com/

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


[android-developers] android.view.WindowManager$BadTokenException

2011-05-11 Thread homefire
Hi

When I try to make PopupWindow at onCreate(), the BadTokenException is
thrown.
If there is some delays when make PopupWindow, the Exception does not
occur.
But It doesn't seem a good solution.
How can I make PopupWindow at onCreate() without Exception?

05-09 21:36:09.820: ERROR/AndroidRuntime(8803):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{exam.pop/exam.pop.popActivity}:
android.view.WindowManager$BadTokenException: Unable to add window --
token null is not valid; is your activity running?
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.os.Looper.loop(Looper.java:123)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.app.ActivityThread.main(ActivityThread.java:4627)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
java.lang.reflect.Method.invokeNative(Native Method)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
java.lang.reflect.Method.invoke(Method.java:521)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
dalvik.system.NativeStart.main(Native Method)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): Caused by:
android.view.WindowManager$BadTokenException: Unable to add window --
token null is not valid; is your activity running?
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.view.ViewRoot.setView(ViewRoot.java:505)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.view.Window$LocalWindowManager.addView(Window.java:424)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.widget.PopupWindow.invokePopup(PopupWindow.java:828)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.widget.PopupWindow.showAtLocation(PopupWindow.java:688)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
exam.pop.popActivity.makepopup(popActivity.java:41)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
exam.pop.popActivity.onCreate(popActivity.java:22)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
05-09 21:36:09.820: ERROR/AndroidRuntime(8803): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)

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

makepopup();
}

public void makepopup(){
LayoutInflater li = LayoutInflater.from(this);
View v1 = li.inflate(R.layout.newpop, null);
popup = new PopupWindow(v1, 400, 240, true);
popup.showAtLocation(v1, Gravity.CENTER, 0, 0);

Button btClose = (Button)v1.findViewById(R.id.close);
btClose.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if(popup != null)
popup.dismiss();
}
});
}

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


[android-developers] Segmentation fault when loading a certain class from an OSGi framework under Android 2.2 2.3

2011-05-11 Thread Sierra
Hello,

... I'm afraid that asking in this group might be the last change to
get an idea how to solve the problem I'm currently facing - I have not
found any solution when searching the web... :-(

I face the following problem: I try to develop an application in an
OSGi framework under Android (resp., in an Android Emulator under
Windows 7). Generally, the OSGi framework (Apache Felix) works fine,
all the services of the installed bundles are registered. When I now
start a client bundle which wants to use a particular one of the
installed services, I get a segmentation fault when I try to retrieve
the service from the framework, and the OSGi framework simply crashes.
Other services can be retrieved  used without any problems. I already
found out that this must be somehow in relation to the fact that the
OSGi service uses a javax.security.auth.Subject in some of its method
signatures; it seems as if the Dalvik VM has a problem with loading
this class in this particular context (I also wrote some other test
code (by means of OSGi bundles) which for example creates an instance
of a Subject - in this case, everything works fine).

Here is an excerpt from the log; the problem appear (I think) in the
7th line:

++
05-09 13:20:08.740: DEBUG/dalvikvm(13668): DEX prep './felix-cache/
bundle10/version10.0/bundle.jar': unzip in 10ms, rewrite 153ms
05-09 13:20:19.819: DEBUG/dalvikvm(13668): DexOpt: --- BEGIN
'bundle.jar' (bootstrap=0) ---
05-09 13:20:19.929: DEBUG/dalvikvm(13750): DexOpt: load 10ms, verify
0ms, opt 3ms
05-09 13:20:19.939: DEBUG/dalvikvm(13668): DexOpt: --- END
'bundle.jar' (success) ---
05-09 13:20:19.939: DEBUG/dalvikvm(13668): DEX prep './felix-cache/
bundle34/version0.0/bundle.jar': unzip in 1ms, rewrite 116ms
05-09 13:20:20.009: DEBUG/dalvikvm(13668): GC_FOR_MALLOC freed 10683
objects / 957840 bytes in 54ms
05-09 13:20:20.079: WARN/dalvikvm(13668): VFY: unable to find class
referenced in signature (Ljavax/security/auth/Subject;)
05-09 13:20:20.379: INFO/DEBUG(31): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
05-09 13:20:20.379: INFO/DEBUG(31): Build fingerprint: 'generic/sdk/
generic/:2.2/FRF91/43546:eng/test-keys'
05-09 13:20:20.389: INFO/DEBUG(31): pid: 13668, tid: 13679   /
system/bin/dalvikvm 
05-09 13:20:20.389: INFO/DEBUG(31): signal 11 (SIGSEGV), fault addr
0024
05-09 13:20:20.399: INFO/DEBUG(31):  r0   r1 4013fc48  r2
00011074  r3 80087fc4
05-09 13:20:20.399: INFO/DEBUG(31):  r4 80088d1c  r5 400fb210  r6
  r7 41f695f1
05-09 13:20:20.399: INFO/DEBUG(31):  r8 80013b00  r9 400fb210  10
401abeb0  fp 0002e0c8
05-09 13:20:20.409: INFO/DEBUG(31):  ip 80088098  sp 422e1d38  lr
8005ee23  pc 8005cdce  cpsr 2030
05-09 13:20:20.449: INFO/DEBUG(31):  #00  pc 0005cdce  /system/
lib/libdvm.so
05-09 13:20:20.449: INFO/DEBUG(31):  #01  pc 0005ee1e  /system/
lib/libdvm.so
05-09 13:20:20.449: INFO/DEBUG(31):  #02  pc 0005ee8c  /system/
lib/libdvm.so
05-09 13:20:20.449: INFO/DEBUG(31):  #03  pc 0005ef6c  /system/
lib/libdvm.so
05-09 13:20:20.459: INFO/DEBUG(31):  #04  pc 0005f13e  /system/
lib/libdvm.so
05-09 13:20:20.459: INFO/DEBUG(31):  #05  pc 00017c60  /system/
lib/libdvm.so
05-09 13:20:20.459: INFO/DEBUG(31):  #06  pc 0001e8c4  /system/
lib/libdvm.so
05-09 13:20:20.469: INFO/DEBUG(31):  #07  pc 0001d790  /system/
lib/libdvm.so
05-09 13:20:20.469: INFO/DEBUG(31):  #08  pc 00053eec  /system/
lib/libdvm.so
05-09 13:20:20.469: INFO/DEBUG(31):  #09  pc 00054102  /system/
lib/libdvm.so
05-09 13:20:20.479: INFO/DEBUG(31):  #10  pc 0004825a  /system/
lib/libdvm.so
05-09 13:20:20.479: INFO/DEBUG(31):  #11  pc 0001103c  /system/
lib/libc.so
05-09 13:20:20.479: INFO/DEBUG(31):  #12  pc 00010b20  /system/
lib/libc.so
05-09 13:20:20.479: INFO/DEBUG(31): code around pc:
05-09 13:20:20.489: INFO/DEBUG(31): 8005cdac 10831a98 43584803
46c04770 0002b228
05-09 13:20:20.489: INFO/DEBUG(31): 8005cdbc 0374 aaab
4b12b510 2900447b
05-09 13:20:20.489: INFO/DEBUG(31): 8005cdcc 6a42d01e 062424b0
4c0f1912 4c0f591b
05-09 13:20:20.489: INFO/DEBUG(31): 8005cddc 681b3394 dc0442a2
d0022b00 181800d0
05-09 13:20:20.499: INFO/DEBUG(31): 8005cdec 3050e000 3b016843
e007009a 58a46804
05-09 13:20:20.499: INFO/DEBUG(31): code around lr:
05-09 13:20:20.499: INFO/DEBUG(31): 8005ee00 f7ff1c07 4c14ffe9
48141c06 5824447c
05-09 13:20:20.499: INFO/DEBUG(31): 8005ee10 6820348c f7b43014
6ce9e982 f7fd1c30
05-09 13:20:20.499: INFO/DEBUG(31): 8005ee20 9001ffd1 30146820
ec66f7b4 20019b01
05-09 13:20:20.499: INFO/DEBUG(31): 8005ee30 d10e2b00 1c386ce9
ffcef7ff d0011e04
05-09 13:20:20.509: INFO/DEBUG(31): 8005ee40 d1032e00 ff20f7e7
63012100 42501b32
05-09 13:20:20.509: INFO/DEBUG(31): stack:
05-09 13:20:20.509: INFO/DEBUG(31): 422e1cf8  401f1180  /dev/
ashmem/mspace/dalvik-heap/0 (deleted)
05-09 13:20:20.509: INFO/DEBUG(31): 422e1cfc  8006caa4  /system/
lib/libdvm.so

[android-developers] RatingBar

2011-05-11 Thread neha
How can i resize size of stars in RatingBar??

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


[android-developers] GPS

2011-05-11 Thread Innocent
Hi guys I'm working on a project and my GPS on the emulator am using
doesn't seem to function!! WHEN I try to run a simple program to show
my location it does not get the location!! Could some one please
help!

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


[android-developers] Mixing of voice

2011-05-11 Thread neha
I want to record and play audio simultaneously.And the saved audio
should be mixer of recorded and played audio.
Can anyone suggest me how can i achieve this.

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


[android-developers] How to enable Proguard obfuscation protection within Eclipse IDE 3.6.2 for Android App

2011-05-11 Thread stupid_coder
I looked at the documentation for ProGuard on Android Developer's
section at developer.android.com and it basically said that Proguard
obfuscation is done once you chose to Build the Project in Release
mode

So I looked at the menu options in Eclipse IDE and noticed a
default.properties file where one can specify the inclusion of
proguard obfuscation. Yet the comments on top of the file
default.properties stated not to manually edit the file

Then on the Project menu in Eclipse the two menu options namely Build
All and Build Project seem disabled

I create plain vanilla apps for finance niche and wanted to know if
the .apk that is generated by the Eclipse IDE once I run the app is
obfuscated or not. If not how can I get the options enabled that
Proguard obfuscation is done by the Eclipse IDE

Thanks for your time, if my questions sounds stupid then you may have
noticed the screen handle of mine :)

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


[android-developers] Re: Phone crash on volume key

2011-05-11 Thread Pierluigi
Hello,
I've the same issue using SoundPool:

*E/AudioFlinger( 7762): no more track names available*
*E/AudioTrack( 7838): AudioFlinger could not create track, status: -12*
*E/SoundPool( 7838): Error creating AudioTrack*

I play short sounds several times and after a while I loose the sounds, than 
if I touch the volume key the device (Nexus S with Android 2.3.4) reboots. 
How do you solve this?

If I use SoundPool.release() it is no longer possibile to use the SoundPool 
again... have you any hint?

Thanks

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

[android-developers] Re: Not able to find adb.exe

2011-05-11 Thread Denys
Hi Yogi,

Your version of Eclipse is not officially supported by ADT plugin,
however you still able to install it there:
Here is the extract from the ADT 10.0.1 release notes:
Fix issue in which ADT 10.0.0 would install on Eclipse 3.4 and lower,
even though ADT requires Eclipse 3.5 or higher (as of 10.0.0).

Try to install newer version of Eclipse, ADT officially supports
Eclipse Gallileo and higher. Hope that this will fix your issue.

On May 8, 4:54 pm, yogesh yogeshlanje...@gmail.com wrote:
 Hi all,
 I am new to Android. I have downloaded all the SDK Components from SDK
 Installer. I am using ecllipse Ganymede. Also, I have installed
 ADT-10.0.1 in ecllipse. But when I browse my sdk location in Window 
 Preferences  Android, it is showing error as 'Could not find adb.exe
 in Adroid-SDK\tools\'. In my Android sdk, adb.exe is located inside
 'Android-SDK\platform-tools\' directory. How can I able to change this
 adb.exe file path? I have included Android-SDK\platform-tools\
 directory in PATH variable.
 Anybody please help me out.

 Cheers,
  Yogi

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


Re: [android-developers] Not able to find adb.exe

2011-05-11 Thread
Tax

--
Sent via Nokia Email

--Original message--
From: yogesh yogeshlanje...@gmail.com
To: Android Developers android-developers@googlegroups.com
Date: Sunday, May 8, 2011 6:54:35 AM GMT-0700
Subject: [android-developers] Not able to find adb.exe

Hi all,
I am new to Android. I have downloaded all the SDK Components from SDK
Installer. I am using ecllipse Ganymede. Also, I have installed
ADT-10.0.1 in ecllipse. But when I browse my sdk location in Window 
Preferences  Android, it is showing error as 'Could not find adb.exe
in Adroid-SDK\tools\'. In my Android sdk, adb.exe is located inside
'Android-SDK\platform-tools\' directory. How can I able to change this
adb.exe file path? I have included Android-SDK\platform-tools\
directory in PATH variable.
Anybody please help me out.

Cheers,
 Yogi

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

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


[android-developers] in app billing: PURCHASE_STATE_CHANGED sends empty orders

2011-05-11 Thread Uwe Post
Dear list,

in 5-10% of all purchases, my BillingReceiver (basically taken from
the dungeons sample) gets a PURCHASE_STATE_CHANGED notification with
empty orders list:

05-08 17:15:17.294 D/BillingReceiver(13171)purchaseStateChanged:
{nonce:4596323482244846986,orders:[]}

The BillingService does not confirm this notification because that
code is never reached when orders is empty, but immediately I get a
RESPONSE_CODE with RESULT_OK.

The net result is that the user pays money but the app doesn't give
him anything for it, because it cannot process any order from an empty
list using BillingResponseHandler.purchaseResponse(). This is
obviously a bad thing.

The purchased item is in all known cases a non-managed in app product.

Is this known? Am I doing something wrong? How shall I handle this
case?

Thanks

Uwe

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


[android-developers] Android Start up

2011-05-11 Thread LiTTle
Hi everyone,

I am new in android development. I am coming from J2ME. I am trying to
build my first Android application. The application is Hello World
as it is described at Google's guidelines. I use Eclipse Editor to
create the application and I followed the steps as Pro Android 2
said. The preblems are the following:
1). Android emulator starts with the delay of 7 minutes!!! I use my
netbook to create the app. Is it normal this delay?
2). Apart from this delay, after the emulator starts successfully my
application is never executed!!!

PS: The code sample I use is the example with the TextView (http://
developer.android.com/resources/tutorials/hello-world.html)

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


[android-developers] Loading external images into android application

2011-05-11 Thread surya tej
Hi All,

I am developing an application which need to load images from android file
system . I could not load the images in this manner.Kindly help me.

Thanks in advance
-- 
Thanks  Regards,

Suryatej,
 9247714040.


Please  Save paper,   Save trees.
Please don't print this email and documents unless it is really necessary.

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

[android-developers] android jsoup

2011-05-11 Thread bonn-i
hello all
I want to extract data from a website which includes some javascript
content and relay it to my app..is there anyone with clear help to
assist me on this? i already have the jsoup jar file in my library
thanks

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


[android-developers] System Administrator with Active Directory, AZ

2011-05-11 Thread junaid alam
Hello,

Hope you are doing well!!

I have an urgent requirement with one of my client . If you are
comfortable with the following requirement then please send me your
updated resume along with contact details ASAP.

Active Directory
Location: Tempe, AZ
Duration: 4 Months

Requirements:
- 5+ years of Active Directory experience
- Level 3 Active Directory Administration/Architecture skills
- Good AD troubleshooting skills
- Good AD design skills
- Extensive GPO configuration experience
- Extensive Active Directory experience in a multi-domain forest
- Windows 2008 Server working experience
- Windows 2003 Server working experience
- Good DNS experience
- Optional - Microsoft Certification

Skills:
a.Strong Active Directory troubleshooting skills
b.Strong Active Directory design and administrations
skills
c. Good GPO knowledge
d.Sound knowledge of Windows server 2003 and 2008
e.DNS / DHCP
f. Exposure to Dell Server hardware.

Certifications:
1.MCSE certification  valued

Key skills required:
1) Windows 2008/2003 Servers administration in Active Directory.
2) GPO experience
3) AD experience in multi domain environment


Regards,

Junaid Alam
Technical Recruiter
E-mail: jun...@sysmind.com
Phone: 609-897-9670 Ext – 213
Fax: 302-269-7171


SysMind LLC | 38 Washington Rd | Princeton Jn, NJ-08550 | www.sysmind.com

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


[android-developers] Sams Teach Yourself Android... Layout difficulty

2011-05-11 Thread Sprouter
Hi, I'm new to Android.

I'm onto chapter 8 of the Sams Teach Yourself Android Application
Development in 24 Hours and am having a difficulty.  There are several
layouts including splash defined by splash.xml and menu defined by
menu.xml.  I have a ListView control named Listview_Menu defined in
menu.xml. My difficulty is within a java file QuizMenuActivity.java

package com.androidbook.triviaquiz;

import android.os.Bundle;
import android.widget.ListView;

public class QuizMenuActivity extends QuizActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.menu);

When I attempt to code ListView menuList = (ListView)
findViewById(R.id.ListView_Menu); I get an error - the available
controls come from splash.xml rather than menu.xml, i.e. when I type
ListView menuList = (ListView) findViewById(R.id. the dropdown list is
populated by the controls in splash.xml

Could someone point out where I'm going wrong,

Thanks

Frank

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


[android-developers] help with scrollto

2011-05-11 Thread owengerig
as you can see from the code below all im trying todo is load a
webpage then have it auto scroll to a part of that page. u can see in
the first button i've tried just calling scrollTo directly on the
webview but that doesnt work. as well as implementing a subclass that
extends the webviewclient.
whats weird i guess is that the subclass thing kind of works. but on
first go the page loads normal then when i click the opposite button
it scrolls(which seems only horizontal)

i really just need the webview to scroll down(vertical) a little bit

--
Button Button = (Button) findViewById(R.id.button);
Button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView
.loadUrl(http://252Fblog.us.pln.com%252F;);
webView.scrollTo(30, 30);
}
});
---tried these as well

  private class HelloWebViewClient extends WebViewClient {
@Override
public void onPageFinished(WebView view, String url){
view.scrollTo(50, 0);
}
}

---

private class HelloWebViewClient extends WebViewClient {
   @Override
   public void onLoadResource(WebView view, String url){
  view.scrollTo(300, 0);
   }
   @Override
   public void onPageFinished(WebView view, String url){
  view.scrollTo(300, 0);
   }
   public void doUpdateVisitedHistory (WebView view, String url,
boolean isReload){
  view.scrollTo(300, 0);
   }

   }
}

--

@Override
   protected void onLayout(boolean changed, int l, int t, int r, int
b) {

  super.onLayout(changed, l, t, r, b);

  if(changed)
 scrollTo(90, 0);
   }

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


[android-developers] Background Task Running Implementation.

2011-05-11 Thread Goutham P N
Hi All,

I have timings for some schedules in the database and I need to notify
user based on that timings and this timings are 100+. Can you help me
out how to implement this.

Thanks  Regards.

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


[android-developers] Develop apps on-the-fly?

2011-05-11 Thread keksinen
Hey there,

I'm wondering whether I should move to developing android apps. As I
know next to nothing on android, I'd like to know if there is a way to
do the developing on an actual android device, or whether I'd be
necessary to get a SDK on an external machine as it seems to be done.
So again: is it possible or in any case convenient to do app
developing on android itself?

Cheers

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


[android-developers] Post Documentation corrections?

2011-05-11 Thread Yousry Abdallah
Is it possible to report (respectively update) outdated or erroneous
documentation entries?

For example the entry 
http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html
references a faulty XML document. I would also like to add the
restriction that an animation cannot be stated from the UI-Thread.

In other projects I often see possibilities to send comments or a
wiki approach, where you can post your suggestions for
discussion.

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


  1   2   3   >