Re: [android-developers] ایران رتبه اول رشد علمی در مقالات علمی

2012-03-17 Thread Anirudh Loya
ENGLISH

2012/3/18 lbendlin 

> прелесть
>
>
> On Saturday, March 17, 2012 10:22:09 AM UTC-4, Hyunseok Lee wrote:
>>
>> 씹세 모야 이거
>> 2012. 3. 17. 오전 5:29에 "hosein bitaraf" 님이 작성:
>> >
>> > بسم الله الرحمن الرحیم
>> > بسیاری از ما در باره ی ایران و وضعیت علمی و فرهنگی آن بسیار بدبین
>> هستیم. ومیپنداریم که کشور در زمینه ها علمی و فرهنگی بسیار ضعیف است. ولی با
>> دیدن این اینفو گرافی میتوانیم دید واقع بینانه تری نسبت به ایران داشته
>> باشیم. و این دید اشتباه را کمی تصحیح کنیم. این که اشکالات را ببینیم خوب است
>> و لی این که نکات مثبت را نبینیم خیلی بد است و باعث میشود که نکات قوت کم کم
>> کمرنگ شود و در نهایت از بین برود. به امید پیشرفت روز افزون ایران اسلامی.
>> >
>> > http://infographic.ir/**infographic/#t=load&f=0&l=18&**i=1216
>> > منبع :  
>> > http://www.nature.com/news/**365-days-2011-in-review-1.9684
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@**
>> googlegroups.com 
>> > To unsubscribe from this group, 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
>



-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*Love your Job but don't Love your company, Because you may not know when
your company stops loving you.--  Voice Of Love*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Please can i have source codes for tictactoe game for android?

2012-03-17 Thread Save My Life!
I just mean to say,that forum is not for asking a whole code.
Absolutly,we help for algorithm not for code.
On Mar 17, 2012 2:02 AM, "Lew"  wrote:

> Bhavin wrote:
>>
>> Dear Jane.
>> Please see the rule [sic] of this forum.
>> U [sic] can't ask for code here...
>>
> Of course you can. You can ask for all kinds of Android
> application-programming help. You can discuss all kinds of Android
> application-programming issues. I don't find any such rule as you describe
> anywhere, and I looked after reacting in shocked surprise to your post. Can
> you cite where you found this rule, please?
>
> Jane, tic-tac-toe is a standard student problem, and is well documented.
> Find an algorithm and translate it to Java, then build it into an APK and
> mount it on your device.
>
> --
> Lew
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Simple XML Error

2012-03-17 Thread CaRRtel Industres
Could someone please tell me why i get this error. "error: Error parsing 
XML: junk after document element" I am attempting to include ads at the 
bottom of my app and I can't figure out this problem.









Thanks in advance

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

Re: [android-developers] Play Store Share Action

2012-03-17 Thread TreKing
On Sat, Mar 17, 2012 at 10:35 PM, CaRRtel Industres <
carrtelindustr...@gmail.com> wrote:

> Yes, I'm positive. it's not what I'm looking for. The link he gives is for
> me to build an app where I have a share button but I just want to have
> access to the share button in the Google Play Store. See the difference?


You can't "have access to the share button in the Google Play Store."

What you can do is be a handler of the share intent it generates.

Try this then: http://lmgtfy.com/?q=android+handle+share+intent

-
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] Play Store Share Action

2012-03-17 Thread CaRRtel Industres
Yes, I'm positive. it's not what I'm looking for. The link he gives is for 
me to build an app where I have a share button but I just want to have 
access to the share button in the Google Play Store. See the difference?

On Saturday, March 17, 2012 10:23:42 PM UTC-5, MagouyaWare wrote:
>
> Are you sure you tried that? Because I clicked on his link and guess what? 
>
> THE VERY FIRST SEARCH RESULT GIVES YOU A TUTORIAL ON HOW TO CREATE A SHARE 
> INTENT!!!
> On Mar 17, 2012 8:46 PM, "CaRRtel Industres"  
> wrote:
>
>> I've already tried that. I haven't found anything that can help me. 
>> That's why I have posted here.
>>
>> On Saturday, March 17, 2012 9:39:12 PM UTC-5, TreKing wrote:
>>>
>>> On Sat, Mar 17, 2012 at 8:17 PM, CaRRtel Industres <
>>> carrtelindustr...@gmail.com> wrote:
>>>
 Could someone please tell me how I can include my app in the "Share" 
 action.

>>> I specifically want to be able to receive the share action from the 
 Google Play Store. Any help or functional code would be much appreciated. 
 Thanks in advance. 
>>>
>>>
>>> http://lmgtfy.com/?q=android+**share+intent
>>>
>>> --**--**
>>> --**---
>>> 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

Re: [android-developers] Play Store Share Action

2012-03-17 Thread Justin Anderson
Are you sure you tried that? Because I clicked on his link and guess what?

THE VERY FIRST SEARCH RESULT GIVES YOU A TUTORIAL ON HOW TO CREATE A SHARE
INTENT!!!
On Mar 17, 2012 8:46 PM, "CaRRtel Industres" 
wrote:

> I've already tried that. I haven't found anything that can help me. That's
> why I have posted here.
>
> On Saturday, March 17, 2012 9:39:12 PM UTC-5, TreKing wrote:
>>
>> On Sat, Mar 17, 2012 at 8:17 PM, CaRRtel Industres <
>> carrtelindustr...@gmail.com> wrote:
>>
>>> Could someone please tell me how I can include my app in the "Share"
>>> action.
>>>
>> I specifically want to be able to receive the share action from the
>>> Google Play Store. Any help or functional code would be much appreciated.
>>> Thanks in advance.
>>
>>
>> http://lmgtfy.com/?q=android+**share+intent
>>
>> --**--**
>> --**---
>> 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] How can I adjust the WiFi RF power to decrease the RF dBm

2012-03-17 Thread Tubuntu
hello everybody, is there anybody to share some information to adjust
the RF power of WiFi so that I can decrease the RF dBm.
thanks and best 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


Re: [android-developers] Play Store Share Action

2012-03-17 Thread CaRRtel Industres
I've already tried that. I haven't found anything that can help me. That's 
why I have posted here.

On Saturday, March 17, 2012 9:39:12 PM UTC-5, TreKing wrote:
>
> On Sat, Mar 17, 2012 at 8:17 PM, CaRRtel Industres <
> carrtelindustr...@gmail.com> wrote:
>
>> Could someone please tell me how I can include my app in the "Share" 
>> action.
>>
> I specifically want to be able to receive the share action from the Google 
>> Play Store. Any help or functional code would be much appreciated. Thanks 
>> in advance. 
>
>
> http://lmgtfy.com/?q=android+share+intent
>
>
> -
> 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] Play Store Share Action

2012-03-17 Thread TreKing
On Sat, Mar 17, 2012 at 8:17 PM, CaRRtel Industres <
carrtelindustr...@gmail.com> wrote:

> Could someone please tell me how I can include my app in the "Share"
> action.
>
I specifically want to be able to receive the share action from the Google
> Play Store. Any help or functional code would be much appreciated. Thanks
> in advance.


http://lmgtfy.com/?q=android+share+intent

-
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: Application Recycling

2012-03-17 Thread Doug
In ICS there is a Developer Option called "Don't keep activities".  If you 
check it, activities and their fragments will go through a complete cycle 
of create/destroy, which will test their ability to save and restore their 
instance states.  This is the same as if your app will killed and restored 
at each activity transition.

Older devices and emulators might have a Spare Parts app that can toggle a 
similar setting.

Doug

On Wednesday, March 14, 2012 8:51:15 AM UTC-7, Trey wrote:
>
> I'm trying to test my application's ability to be restored after my 
> phone reclaims it for memory. I'm unable to find a consistent way to 
> reproduce this behavior. 
>
> My first questions is: 
> What is the official term for this? "Application Recycling" doesn't 
> seem to help me find any information online. 
>
> Once I know what it's called I should be able to find some info, and 
> even search these forums accurately and find an answer; but if anyone 
> is willing to point me in the right direction I would appreciate that 
> as well! 
>
> Thanks, 
> Trey

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Http request and http requests

2012-03-17 Thread Michael Leung
You can use DefaultHttpClient
Please google "Http Client Android", I believe you can find some examples
about that.
But are you considering to build a REST system?

On Sat, Mar 17, 2012 at 12:22 AM, Justin Anderson wrote:

> Then do it...
> On Mar 16, 2012 7:59 AM, "Robert Gichohi" 
> wrote:
>
>> hi I wanted to incorporate Http request and http requests in my android
>> project and connect it to php server
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

[android-developers] Re: Connect MediaRecorder to MediaPlayer

2012-03-17 Thread Doug
Generally speaking, video streams need to be seekable in order to play.  
The exception to this is video streams that were specially constructed to 
be streamable, which I'm pretty sure you will not get out of a 
MediaRecorder.

Doug

On Tuesday, March 13, 2012 2:40:38 PM UTC-7, Jeff wrote:
>
> I want to test running both the hardware video encoder and decoder 
> simultaneously. To that end I'm trying to figure out how to connect the 
> output of a MediaRecorder as the input to a MediaPlayer. The only way I 
> could figure out to do this was through DatagramSockets connected through 
> the loopback and ParcelFileDescriptors. I'm having some trouble getting 
> this to work though. Is there a better way to hook up a MediaRecorder to a 
> MediaPlayer? Know of any sample code that exists?
>
> Thanks in advance.
>

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

Re: [android-developers] Installation 64-bit Windows 7 [SOLVED]

2012-03-17 Thread Mark Carter
I *always* run Eclipse as Administrator these days, because of such 
problems I have experienced in the past.

On Sunday, 18 March 2012 06:56:48 UTC+8, Bob Plantz wrote:
>
> Thanks to the help posted here, I finally solved the problem by running 
> Eclipse as administrator and installing the SDK that way. As pointed out, 
> this means I have to run as administrator to do updates, etc. Similar to 
> using sudo in my Ubuntu.
>
> --Bob
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Play Store Share Action

2012-03-17 Thread CaRRtel Industres
Could someone please tell me how I can include my app in the "Share" 
action. I specifically want to be able to receive the share action from the 
Google Play Store. Any help or functional code would be much appreciated. 
Thanks in advance.

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

Re: [android-developers] How to read the large sized text file

2012-03-17 Thread TreKing
On Sat, Mar 17, 2012 at 3:16 AM, Narendra Singh Rathore <
nsr.curi...@gmail.com> wrote:

>
>  The above message indicates that *getMessage() returns NULL* here.


Well, that is unfortunate. At this point, I would recommend you grab the
source and look up AssetManager.readAsset and see where it throws
exceptions.

-
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] Installation 64-bit Windows 7 [SOLVED]

2012-03-17 Thread Bob Plantz
Thanks to the help posted here, I finally solved the problem by running 
Eclipse as administrator and installing the SDK that way. As pointed out, 
this means I have to run as administrator to do updates, etc. Similar to 
using sudo in my Ubuntu.

--Bob


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] javax.crypto.BadPaddingException: pad block corrupted

2012-03-17 Thread Italo Mendonça Rocha
 I'm trying to encrypt and decrypt a file using a key that the user typed. All
these operations are done in Android. At the moment I decrypt I get a
javax.crypto.BadPaddingException: pad block corrupted. The same code works
normally on Windows PC. Why?

Here is my code:

*The call:*
*Encrypt:*
String fileNameInput =
Environment.getExternalStorageDirectory().toString() + File.separator +
SAVE_FOLDER + File.separator + "file";
String fileNameOutput =
Environment.getExternalStorageDirectory().toString() + File.separator +
AVE_FOLDER + File.separator + "file_crypted";
Crypto c = new Crypto(userKey);
c.encrypt(new FileInputStream(fileNameInput), new
FileOutputStream(fileNameOutput));
*Decrypt:*
String fileNameInput =
Environment.getExternalStorageDirectory().toString() + File.separator +
SAVE_FOLDER + File.separator + "file_crypted";
String fileNameOutput =
Environment.getExternalStorageDirectory().toString() + File.separator +
AVE_FOLDER + File.separator + "file_decrypted";
Crypto c = new Crypto(userKey);
c.encrypt(new FileInputStream(fileNameInput), new
FileOutputStream(fileNameOutput));

*The class Crypto:*
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.MessageDigest;
import java.security.SecureRandom;
import java.security.spec.AlgorithmParameterSpec;

import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.CipherOutputStream;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;

import android.graphics.Bitmap;
import br.com.italomr.photocrypt.util.Domain;
import br.com.italomr.photocrypt.util.StringOutputStream;

public class Crypto {
private Cipher ecipher;
private Cipher dcipher;

private static final String AES = "AES";
private static final String AES_PADDING = "AES/CBC/PKCS5Padding";
private static final String MD5 = "MD5";
private static final String HEXES = "0123456789ABCDEF";

/**
 * Input a string that will be md5 hashed to create the key.
 *
 * @return void, cipher initialized
 */

public Crypto() {
try {
KeyGenerator kgen = KeyGenerator.getInstance(AES);
kgen.init(128);
this.setupCrypto(kgen.generateKey());
} catch (Exception e) {
e.printStackTrace();
}
}

public Crypto(String key) {
SecretKeySpec skey = new SecretKeySpec(getMD5(key), AES);
this.setupCrypto(skey);
}

private void setupCrypto(SecretKey key) {
// Create an 8-byte initialization vector
byte[] iv = new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f };

AlgorithmParameterSpec paramSpec = new IvParameterSpec(iv);
try {
ecipher = Cipher.getInstance(AES_PADDING);
dcipher = Cipher.getInstance(AES_PADDING);

// CBC requires an initialization vector
ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
} catch (Exception e) {
e.printStackTrace();
}
}

// Buffer used to transport the bytes from one stream to another
byte[] buf = new byte[1024];

public void encrypt(InputStream in, OutputStream out) {
try {
// Bytes written to out will be encrypted
out = new CipherOutputStream(out, ecipher);

// Read in the cleartext bytes and write to out to encrypt
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
out.write(buf, 0, numRead);
}
out.close();
} catch (java.io.IOException e) {
e.printStackTrace();
}
}

public byte[] encrypt(byte[] data) {
try {
byte[] ciphertext = ecipher.doFinal(data);
return ciphertext;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}

public void decrypt(InputStream in, OutputStream out) {
try {
// Bytes read from in will be decrypted
in = new CipherInputStream(in, dcipher);

// Read in the decrypted bytes and write the cleartext to out
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
out.write(buf, 0, numRead);
}

out.close();
} catch (java.io.IOException e) {
e.printStackTrace();
}
}

public byte[] decrypt(byte[] ciphertext) {
try {
// To convert to String
// String plaintext = new String(dcipher.doFinal(ciphertext),
// Domain.UTF8);
return dciphe

Re: [android-developers] ایران رتبه اول رشد علمی در مقالات علمی

2012-03-17 Thread lbendlin
прелесть

On Saturday, March 17, 2012 10:22:09 AM UTC-4, Hyunseok Lee wrote:
>
> 씹세 모야 이거
> 2012. 3. 17. 오전 5:29에 "hosein bitaraf" 님이 작성:
> >
> > بسم الله الرحمن الرحیم
> > بسیاری از ما در باره ی ایران و وضعیت علمی و فرهنگی آن بسیار بدبین هستیم. 
> ومیپنداریم که کشور در زمینه ها علمی و فرهنگی بسیار ضعیف است. ولی با دیدن 
> این اینفو گرافی میتوانیم دید واقع بینانه تری نسبت به ایران داشته باشیم. و 
> این دید اشتباه را کمی تصحیح کنیم. این که اشکالات را ببینیم خوب است و لی این 
> که نکات مثبت را نبینیم خیلی بد است و باعث میشود که نکات قوت کم کم کمرنگ شود 
> و در نهایت از بین برود. به امید پیشرفت روز افزون ایران اسلامی.
> >
> > http://infographic.ir/infographic/#t=load&f=0&l=18&i=1216
> > منبع :  http://www.nature.com/news/365-days-2011-in-review-1.9684
> >
> >
> > -- 
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Intent always restarts activity, even if already running...

2012-03-17 Thread RedBullet
OK, got it. Just needed the right notification flags... Thought it had to 
do with the intent! Sheesh!

On Saturday, March 17, 2012 3:24:19 PM UTC-4, RedBullet wrote:
>
> So, I am creating a notification which, when selected, I would like to 
> make my app the active app. But what it is doing instead is re-starting the 
> app even though I know it is still running.
>
> Here is how I create the notification, I suspect I need to be more clever 
> with the Intent:
>
> private void createNotification()
> {
> NotificationManager notificationManager = (NotificationManager) 
> getSystemService(NOTIFICATION_SERVICE);
> Notification notification = new Notification(R.drawable.icon,
> "A new notification", System.currentTimeMillis());
> // Hide the notification after its selected
> notification.flags |= Notification.FLAG_AUTO_CANCEL;
>  Intent intent = new Intent(this, RideRoutingActivity.class);
> PendingIntent activity = PendingIntent.getActivity(this, 0, intent, 0);
> notification.setLatestEventInfo(this, "This is the title",
> "This is the text", activity);
> notification.number += 1;
> notificationManager.notify(0, notification);
> }
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Intent always restarts activity, even if already running...

2012-03-17 Thread RedBullet
So, I am creating a notification which, when selected, I would like to make 
my app the active app. But what it is doing instead is re-starting the app 
even though I know it is still running.

Here is how I create the notification, I suspect I need to be more clever 
with the Intent:

private void createNotification()
{
NotificationManager notificationManager = (NotificationManager) 
getSystemService(NOTIFICATION_SERVICE);
Notification notification = new Notification(R.drawable.icon,
"A new notification", System.currentTimeMillis());
// Hide the notification after its selected
notification.flags |= Notification.FLAG_AUTO_CANCEL;
 Intent intent = new Intent(this, RideRoutingActivity.class);
PendingIntent activity = PendingIntent.getActivity(this, 0, intent, 0);
notification.setLatestEventInfo(this, "This is the title",
"This is the text", activity);
notification.number += 1;
notificationManager.notify(0, notification);
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Question about using dimension resources in other resources vs. in Java code

2012-03-17 Thread Kostya Vasilyev
The return value is in pixels, converted from whatever value in the 
 resource based on current display metrics.


There are three versions of getDimension, differing in rounding rules.

http://developer.android.com/reference/android/content/res/Resources.html#getDimension(int) 



-- K

17.03.2012 21:23, David Karr ?:


In Java code, however, it appears that you reference a dimension 
resource like this:


float dimen =
activity.getResources().getDimension(R.dimen.mysize_in_pixels);


That looks to me like it's only returning the dimensionless value 
("5", for instance).


--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Market device-filtering question

2012-03-17 Thread Mark Murphy
What permissions are you requesting? And, did you add the appropriate
 elements as needed for things the permissions imply
that you do not actually need?

http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions

On Sat, Mar 17, 2012 at 2:12 PM, Keith Wiley  wrote:
> I realize this question is more about the market than android code
> development, but by Google's own admission they have completely shut
> down the market forums coincident with the switch to Google Play, and
> my question *is* about how to properly configure an app for the
> market, so that's sort of a developer question.
>
> My problem is that a potential customer with a 10.1" Galaxy Tab says
> he can't see my app in the market (or Play or whatever stupid name
> they recently gave it that makes it seem like Google only sells silly
> games and not serious business software!), but he *can* see it from
> his phone...so it isn't excluded for his region or some currency
> issue.  Rather, it would appear that the market is filter-excluding my
> app specifically on his tablet.  I have the following entry in my
> manifest, which I would have expected to avoid this kind of problem:
>
>                        android:xlargeScreens="true"
>                android:largeScreens="true"
>                android:normalScreens="true"
>                android:smallScreens="true"
>                android:anyDensity="true" />
>
> Is there something else I need to put in the manifest to make the app
> appear on tablets?  At a higher level of abstraction, is there a
> general way of knowing precisely why an app is being excluded for
> certain devices so that developers can readily solve these kinds of
> problems?
>
> Thank you.
>
> 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



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

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

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


Re: [android-developers] On Reciving SMS Calling Web Service.

2012-03-17 Thread Marcin Orlowski
Register for SMS broadcasts. Once you got SMS, get the mesaage body and
parse its content. if you wind what you look for, then fire up the code
talking to web service.

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook *,
*Google+*and
*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] Eclipse Problem

2012-03-17 Thread Marcin Orlowski
On 17 March 2012 11:48, ANNE LOKESH  wrote:

> Thank You,
>
>
> but didn't got rectified does eclipse support windows7..???
>

Sure. Works fine here win 7/64bit.

PS: you seem to have broken "?" key...

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook *,
*Google+*and
*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] Market device-filtering question

2012-03-17 Thread Keith Wiley
I realize this question is more about the market than android code
development, but by Google's own admission they have completely shut
down the market forums coincident with the switch to Google Play, and
my question *is* about how to properly configure an app for the
market, so that's sort of a developer question.

My problem is that a potential customer with a 10.1" Galaxy Tab says
he can't see my app in the market (or Play or whatever stupid name
they recently gave it that makes it seem like Google only sells silly
games and not serious business software!), but he *can* see it from
his phone...so it isn't excluded for his region or some currency
issue.  Rather, it would appear that the market is filter-excluding my
app specifically on his tablet.  I have the following entry in my
manifest, which I would have expected to avoid this kind of problem:



Is there something else I need to put in the manifest to make the app
appear on tablets?  At a higher level of abstraction, is there a
general way of knowing precisely why an app is being excluded for
certain devices so that developers can readily solve these kinds of
problems?

Thank you.

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] Question about using dimension resources in other resources vs. in Java code

2012-03-17 Thread David Karr
I'm just reading about dimension resources (Pro Android 4), and it seems 
curious how dimension resources are referenced in Java code (at least as 
specified in this book).

The resource value consists of the value and the dimension, like "5px" or 
"5dp" or "5sp".

You could reference this in a layout resource, like to set the "textSize" 
of a TextView.  My assumption is that the unit specified in the dimension 
would be used in that calculation, which would result in slightly different 
sizes for the previous examples. That is only an assumption. It seems 
reasonable.  What would be the point of specifying the unit if it isn't 
used anywhere?

In Java code, however, it appears that you reference a dimension resource 
like this:

float dimen = 
> activity.getResources().getDimension(R.dimen.mysize_in_pixels);
>

That looks to me like it's only returning the dimensionless value ("5", for 
instance). 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: application failing on similar devices

2012-03-17 Thread momo
thanks all - good info.
>
>

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

[android-developers] Re: facepreview20120218.apk does not install with adb

2012-03-17 Thread karan hans
in case youre wondering what this error msg is then look at the log when i 
first ran it
 
 
 
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb install 
faceprevie
w-20120218.apk
104 KB/s (11286 bytes in 0.105s)
pkg: /data/local/tmp/facepreview-20120218.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
what is this signed unsigned business

On Saturday, March 17, 2012 9:11:56 PM UTC+5:30, karan hans wrote:

> C:\Program Files (x86)\Android\android-sdk\platform-tools>adb install 
> faceprevie
> w-20120218.apk
> 75 KB/s (3814528 bytes in 49.143s)
> pkg: /data/local/tmp/facepreview-20120218.apk
> Failure [INSTALL_FAILED_ALREADY_EXISTS]
>  the author of this app was able to run it on his comp. his eaact words 
> were that android is quite buggy so youll have to ask android developers.
> and one more thing this app works on android8 and not android 15 so will i 
> have to get a new adb
>  
> iam quite confused. iam a greenhorn so please help me out
>

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

Re: [android-developers] facepreview20120218.apk does not install with adb

2012-03-17 Thread Kostya Vasilyev
adb install -r "filename"
 17.03.2012 19:50 пользователь "Ralph Bergmann | the4thFloor.eu" <
ra...@the4thfloor.eu> написал:

> Am 17.03.12 16:41, schrieb karan hans:
> > Failure [INSTALL_FAILED_ALREADY_EXISTS]
>  ^^
>
>
> Ralph
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: application failing on similar devices

2012-03-17 Thread Kostya Vasilyev
That kind of row count is definitely on the high side of things if you're
running your query on the UI thread.

Given this, the difference you're seeing may be due to device performance
variations, and have nothing to do with the different Android versions.

Even if you're not getting an ANR on your device, you may be coming close,
and measuring your query performance should be helpful.
 17.03.2012 19:14 пользователь "momo"  написал:

> I think the only real chance of success is for me to go find the device
> locally.
>
> More generally, do you see anything especially problematic with this:
>
> 1. a single sqlite query joining 2 tables via a 3rd bridge table,
> selecting 2 colums with an order by and collate unicode, that'll return
> 3000-4000 rows.  invoked with db.rawQuery.
> 2. pass that to a simple custom adapter (BaseAdapter extension, getView
> creates a single textview, recycles views when possible)
> 3. a single ListView gets the adapter updated via setAdapter (not using
> notifyDataSetChanged because the cursors are from two different datasets).
>
> Thanks for your 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] facepreview20120218.apk does not install with adb

2012-03-17 Thread Ralph Bergmann | the4thFloor.eu
Am 17.03.12 16:41, schrieb karan hans:
> Failure [INSTALL_FAILED_ALREADY_EXISTS]
  ^^


Ralph

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: facepreview20120218.apk does not install with adb

2012-03-17 Thread karan hans
also i dont have an android device and am trying to run the application on 
emulator
On Saturday, March 17, 2012 9:11:56 PM UTC+5:30, karan hans wrote:
>
> C:\Program Files (x86)\Android\android-sdk\platform-tools>adb install 
> faceprevie
> w-20120218.apk
> 75 KB/s (3814528 bytes in 49.143s)
> pkg: /data/local/tmp/facepreview-20120218.apk
> Failure [INSTALL_FAILED_ALREADY_EXISTS]
>  the author of this app was able to run it on his comp. his eaact words 
> were that android is quite buggy so youll have to ask android developers.
> and one more thing this app works on android8 and not android 15 so will i 
> have to get a new adb
>  
> iam quite confused. iam a greenhorn so please help me out
>

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

[android-developers] facepreview20120218.apk does not install with adb

2012-03-17 Thread karan hans
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb install 
faceprevie
w-20120218.apk
75 KB/s (3814528 bytes in 49.143s)
pkg: /data/local/tmp/facepreview-20120218.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
 the author of this app was able to run it on his comp. his eaact words 
were that android is quite buggy so youll have to ask android developers.
and one more thing this app works on android8 and not android 15 so will i 
have to get a new adb
 
iam quite confused. iam a greenhorn so please help me out

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

Re: [android-developers] Re: application failing on similar devices

2012-03-17 Thread Mark Murphy
On Sat, Mar 17, 2012 at 11:14 AM, momo  wrote:
> More generally, do you see anything especially problematic with this:
>
> 1. a single sqlite query joining 2 tables via a 3rd bridge table, selecting
> 2 colums with an order by and collate unicode, that'll return 3000-4000
> rows.  invoked with db.rawQuery.

That is likely to be slow. Be sure you are doing this part on a
background thread (e.g., Loader, AsyncTask)

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

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

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


Re: [android-developers] Re: application failing on similar devices

2012-03-17 Thread momo
I think the only real chance of success is for me to go find the device 
locally.

More generally, do you see anything especially problematic with this:

1. a single sqlite query joining 2 tables via a 3rd bridge table, selecting 
2 colums with an order by and collate unicode, that'll return 3000-4000 
rows.  invoked with db.rawQuery.
2. pass that to a simple custom adapter (BaseAdapter extension, getView 
creates a single textview, recycles views when possible)
3. a single ListView gets the adapter updated via setAdapter (not using 
notifyDataSetChanged because the cursors are from two different datasets).

Thanks for your help.

>

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

Re: [android-developers] Re: application failing on similar devices

2012-03-17 Thread Kostya Vasilyev
In theory, there should not be any difference.

In practice, your friend is seeing an ANR and you are not.

The difference between theory and practice is that, in theory, there is no
difference  :-)

Regarding the traces.txt - you could add code to grab this file to your
application. Consider it a special remote debugging feature.
 17.03.2012 18:23 пользователь "momo"  написал:

> The adapter takes a Cursor that's a product of a single SQLite query.  On
> my device I can toggle between the two adapters almost instantly, with
> virtually no wait time - I can touch each button alternately as quickly as
> I can physically with no problems in rendering (dozens of times in a few
> seconds), yet on his device a single touch creates the issue.  Can there
> really be that much difference in the two devices (mine is a Samsung Galaxy
> SII on 2.3.6, his is a Samsung Nexus S on 2.3.7)?
>
> On Saturday, March 17, 2012 8:49:34 AM UTC-5, Chris Mawata wrote:
>>
>> Looks like it is taking too long to populate the ListView. You are
>> probably doing
>> work on the UI thread that takes more than a few seconds.
>>
>> On Mar 16, 7:34 pm, momo  wrote:
>> > I debug with a Samsung Galaxy SII, running 2.3.6.  I created an app
>> that
>> > runs fine, every time, even under stress, on this device.  I uploaded
>> for a
>> > colleague in another state, using a device with 2.3.7 (I believe it's a
>> > Nexus One).
>> >
>> > On his device, the app gives a "Not responding - Force Close or Wait"
>> > dialog when clicking a button that switches a ListView's adapter
>> between 2
>> > DB Cursors.
>> >
>> > I tried on the emulator.  Literally an hour and 45 minutes later (most
>> of
>> > this time was spent converting JSON from a remote server to a local
>> SQLite
>> > DB on the device, which happens only once during install, and I don't
>> > believe has any bearing on the issue I'm describing), I was able to
>> > recreate the problem, but nothing was reported in logcat.
>> >
>> > Any ideas why I'm seeing this different results?  My device works every
>> > time, his fails every time.  I've tried targetting 2.1 and 2.2 - both
>> have
>> > the same results on both devices and the emulator.
>> >
>> > TYIA
>> >
>> >
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: application failing on similar devices

2012-03-17 Thread momo
The adapter takes a Cursor that's a product of a single SQLite query.  On 
my device I can toggle between the two adapters almost instantly, with 
virtually no wait time - I can touch each button alternately as quickly as 
I can physically with no problems in rendering (dozens of times in a few 
seconds), yet on his device a single touch creates the issue.  Can there 
really be that much difference in the two devices (mine is a Samsung Galaxy 
SII on 2.3.6, his is a Samsung Nexus S on 2.3.7)?

On Saturday, March 17, 2012 8:49:34 AM UTC-5, Chris Mawata wrote:
>
> Looks like it is taking too long to populate the ListView. You are 
> probably doing 
> work on the UI thread that takes more than a few seconds. 
>
> On Mar 16, 7:34 pm, momo  wrote: 
> > I debug with a Samsung Galaxy SII, running 2.3.6.  I created an app that 
> > runs fine, every time, even under stress, on this device.  I uploaded 
> for a 
> > colleague in another state, using a device with 2.3.7 (I believe it's a 
> > Nexus One). 
> > 
> > On his device, the app gives a "Not responding - Force Close or Wait" 
> > dialog when clicking a button that switches a ListView's adapter between 
> 2 
> > DB Cursors. 
> > 
> > I tried on the emulator.  Literally an hour and 45 minutes later (most 
> of 
> > this time was spent converting JSON from a remote server to a local 
> SQLite 
> > DB on the device, which happens only once during install, and I don't 
> > believe has any bearing on the issue I'm describing), I was able to 
> > recreate the problem, but nothing was reported in logcat. 
> > 
> > Any ideas why I'm seeing this different results?  My device works every 
> > time, his fails every time.  I've tried targetting 2.1 and 2.2 - both 
> have 
> > the same results on both devices and the emulator. 
> > 
> > TYIA 
> > 
> >

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

Re: [android-developers] ایران رتبه اول رشد علمی در مقالات علمی

2012-03-17 Thread 이현석
씹세 모야 이거
2012. 3. 17. 오전 5:29에 "hosein bitaraf" 님이 작성:
>
> بسم الله الرحمن الرحیم
> بسیاری از ما در باره ی ایران و وضعیت علمی و فرهنگی آن بسیار بدبین هستیم.
ومیپنداریم که کشور در زمینه ها علمی و فرهنگی بسیار ضعیف است. ولی با دیدن
این اینفو گرافی میتوانیم دید واقع بینانه تری نسبت به ایران داشته باشیم. و
این دید اشتباه را کمی تصحیح کنیم. این که اشکالات را ببینیم خوب است و لی این
که نکات مثبت را نبینیم خیلی بد است و باعث میشود که نکات قوت کم کم کمرنگ شود
و در نهایت از بین برود. به امید پیشرفت روز افزون ایران اسلامی.
>
> http://infographic.ir/infographic/#t=load&f=0&l=18&i=1216
> منبع :  http://www.nature.com/news/365-days-2011-in-review-1.9684
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: application failing on similar devices

2012-03-17 Thread Kostya Vasilyev
If you don't have access to the device, you could ask your friend to
email you /data/anr/traces.txt which automatically records ANRs as
they happen, including their stack traces.

The file is world-readable (although the parent directory is not).
There must be a way to get it even from a non-rooted device by using
one of the bazillion file manager apps available in Market.

If you do have access to the device, run the app from Eclipse in debug
mode, and when you get the ANR, use the debugger to pause the UI
thread, then check what it's doing.

-- K

17 марта 2012 г. 17:49 пользователь Chris Mawata
 написал:
> Looks like it is taking too long to populate the ListView. You are
> probably doing
> work on the UI thread that takes more than a few seconds.
>
> On Mar 16, 7:34 pm, momo  wrote:
>> I debug with a Samsung Galaxy SII, running 2.3.6.  I created an app that
>> runs fine, every time, even under stress, on this device.  I uploaded for a
>> colleague in another state, using a device with 2.3.7 (I believe it's a
>> Nexus One).
>>
>> On his device, the app gives a "Not responding - Force Close or Wait"
>> dialog when clicking a button that switches a ListView's adapter between 2
>> DB Cursors.
>>
>> I tried on the emulator.  Literally an hour and 45 minutes later (most of
>> this time was spent converting JSON from a remote server to a local SQLite
>> DB on the device, which happens only once during install, and I don't
>> believe has any bearing on the issue I'm describing), I was able to
>> recreate the problem, but nothing was reported in logcat.
>>
>> Any ideas why I'm seeing this different results?  My device works every
>> time, his fails every time.  I've tried targetting 2.1 and 2.2 - both have
>> the same results on both devices and the emulator.
>>
>> TYIA
>>
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] ArrayIndexOutOfBoundsException when calling Dialog.show()

2012-03-17 Thread Mark Carter
I'm seeing this on a Samsung Galaxy S II (GT-I9100G).

I'm building against level 14, targeting level 10 (min level 3).

I assume it's something to do with themes but have no idea where to start. 
I'm pretty sure it's not happening on all Galaxy SIIs otherwise I would be 
getting a lot more reports.

Or maybe the activity has been destroyed by the time this code is called - 
would that cause it?

AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setIcon(R.drawable.app_icon);
builder.setTitle("my title");
builder.setMessage("my message");
builder.setPositiveButton(R.string.ok, null);
builder.show();

java.lang.ArrayIndexOutOfBoundsException: null
 at android.content.res.TypedArray.getInt(TypedArray.java:248)
 at android.widget.ScrollView.(ScrollView.java:173)
 at android.widget.ScrollView.(ScrollView.java:161)
 at java.lang.reflect.Constructor.constructNative(Constructor.java:-2)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
 at android.view.LayoutInflater.createView(LayoutInflater.java:505)
 at 
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
 at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
 at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
 at 
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:215)
 at 
com.android.internal.app.AlertController.installContent(AlertController.java:215)
 at android.app.AlertDialog.onCreate(AlertDialog.java:251)
 at android.app.Dialog.dispatchOnCreate(Dialog.java:307)
 at android.app.Dialog.show(Dialog.java:225)
 at android.app.AlertDialog$Builder.show(AlertDialog.java:823)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: application failing on similar devices

2012-03-17 Thread Chris Mawata
Looks like it is taking too long to populate the ListView. You are
probably doing
work on the UI thread that takes more than a few seconds.

On Mar 16, 7:34 pm, momo  wrote:
> I debug with a Samsung Galaxy SII, running 2.3.6.  I created an app that
> runs fine, every time, even under stress, on this device.  I uploaded for a
> colleague in another state, using a device with 2.3.7 (I believe it's a
> Nexus One).
>
> On his device, the app gives a "Not responding - Force Close or Wait"
> dialog when clicking a button that switches a ListView's adapter between 2
> DB Cursors.
>
> I tried on the emulator.  Literally an hour and 45 minutes later (most of
> this time was spent converting JSON from a remote server to a local SQLite
> DB on the device, which happens only once during install, and I don't
> believe has any bearing on the issue I'm describing), I was able to
> recreate the problem, but nothing was reported in logcat.
>
> Any ideas why I'm seeing this different results?  My device works every
> time, his fails every time.  I've tried targetting 2.1 and 2.2 - both have
> the same results on both devices and the emulator.
>
> TYIA
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] application failing on similar devices

2012-03-17 Thread Test


momo  :كتب

>I debug with a Samsung Galaxy SII, running 2.3.6.  I created an app that 
>runs fine, every time, even under stress, on this device.  I uploaded for a 
>colleague in another state, using a device with 2.3.7 (I believe it's a 
>Nexus One).
>
>On his device, the app gives a "Not responding - Force Close or Wait" 
>dialog when clicking a button that switches a ListView's adapter between 2 
>DB Cursors.
>
>I tried on the emulator.  Literally an hour and 45 minutes later (most of 
>this time was spent converting JSON from a remote server to a local SQLite 
>DB on the device, which happens only once during install, and I don't 
>believe has any bearing on the issue I'm describing), I was able to 
>recreate the problem, but nothing was reported in logcat.
>
>Any ideas why I'm seeing this different results?  My device works every 
>time, his fails every time.  I've tried targetting 2.1 and 2.2 - both have 
>the same results on both devices and the emulator.
>
>TYIA
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Android Developers" group.
>To post to this group, send email to android-developers@googlegroups.com
>To unsubscribe from this group, send email to
>android-developers+unsubscr...@googlegroups.com
>For more options, visit this group at
>http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Eclipse Problem

2012-03-17 Thread Test


Marcin Orlowski  :كتب

>Ensure you are using latest eclipse (3.7?) and latest ADT (v17beta4 is
>quite stable). if it is your
>layout and it holds no custom views you shall be fine. if it will still be
>crashing, you have to open
>it in plain text view, remove all items and put each by each back, checking
>which one blows
>visual editor up.
>
>Regards,
>Marcin Orlowski
>
>*Tray Agenda * - keep you daily schedule handy...
>*Date In Tray*  - current date at glance...
>WebnetMobile on *Facebook *,
>*Google+*and
>*Twitter *
>
>
>
>On 15 March 2012 16:31, lokesh  wrote:
>
>> When ever i open xml layout in eclipse , eclipse is totally closing
>> without saving.
>>
>>
>> can any one tell me whats the problem and how to resolve it..
>>
>>
>> Thanks in advance...
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Android Developers" group.
>To post to this group, send email to android-developers@googlegroups.com
>To unsubscribe from this group, send email to
>android-developers+unsubscr...@googlegroups.com
>For more options, visit this group at
>http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Eclipse Problem

2012-03-17 Thread srinivasan
TRY TO USE ECLIPSE HELIOS

On Sat, Mar 17, 2012 at 4:18 PM, ANNE LOKESH  wrote:

> Thank You,
>
>
> but didn't got rectified does eclipse support windows7..???
>
>
>
>
>
>
>
>
>
>
> On Fri, Mar 16, 2012 at 3:25 PM, Marcin Orlowski  > wrote:
>
>> Ensure you are using latest eclipse (3.7?) and latest ADT (v17beta4 is
>> quite stable). if it is your
>> layout and it holds no custom views you shall be fine. if it will still
>> be crashing, you have to open
>> it in plain text view, remove all items and put each by each back,
>> checking which one blows
>> visual editor up.
>>
>> Regards,
>> Marcin Orlowski
>>
>> *Tray Agenda * - keep you daily schedule
>> handy...
>> *Date In Tray*  - current date at glance...
>> WebnetMobile on *Facebook *, 
>> *Google+*and
>> *Twitter *
>>
>>
>>
>> On 15 March 2012 16:31, lokesh  wrote:
>>
>>>  When ever i open xml layout in eclipse , eclipse is totally closing
>>> without saving.
>>>
>>>
>>> can any one tell me whats the problem and how to resolve it..
>>>
>>>
>>> Thanks in advance...
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Eclipse Problem

2012-03-17 Thread ANNE LOKESH
Thank You,


but didn't got rectified does eclipse support windows7..???










On Fri, Mar 16, 2012 at 3:25 PM, Marcin Orlowski
wrote:

> Ensure you are using latest eclipse (3.7?) and latest ADT (v17beta4 is
> quite stable). if it is your
> layout and it holds no custom views you shall be fine. if it will still be
> crashing, you have to open
> it in plain text view, remove all items and put each by each back,
> checking which one blows
> visual editor up.
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda * - keep you daily schedule
> handy...
> *Date In Tray*  - current date at glance...
> WebnetMobile on *Facebook *, 
> *Google+*and
> *Twitter *
>
>
>
> On 15 March 2012 16:31, lokesh  wrote:
>
>> When ever i open xml layout in eclipse , eclipse is totally closing
>> without saving.
>>
>>
>> can any one tell me whats the problem and how to resolve it..
>>
>>
>> Thanks in advance...
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] how to write RTSP application in apk layer in android

2012-03-17 Thread Harishkumar V
basically, i have rtsp live stream (encoded video+audio data, can be an mp4
file also) from server, i need to capture and store in sdcard in mp4
container.

android mediaplayer can play back that rtsp stream, but, i do know, how to
store ?
android mediarecorder supports only from local camera source?

On Sat, Mar 17, 2012 at 3:55 PM, Anirudh Loya wrote:

> Wht do u mean by RSTP client app and in APK layer ?
>
> On Sat, Mar 17, 2012 at 2:33 PM, Harishkumar V wrote:
>
>> Hi,
>>
>> I need to write an rtsp client application basically in android apk
>> layer, i searched, but do no know, where to start?
>> is there any examples ?
>>
>>
>> --
>> Thanks and Regards,
>> Harish Kumar. V
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
>
> Thank you
>
> Anirudh Loya | Android Developer**
>
> Desk: +9140-30681824 | Mobile: +91*9246561265*
>
> *Love your Job but don't Love your company, Because you may not know when
> your company stops loving you.--  Voice Of Love*
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks and Regards,
Harish Kumar. V

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 write RTSP application in apk layer in android

2012-03-17 Thread Anirudh Loya
Wht do u mean by RSTP client app and in APK layer ?

On Sat, Mar 17, 2012 at 2:33 PM, Harishkumar V wrote:

> Hi,
>
> I need to write an rtsp client application basically in android apk layer,
> i searched, but do no know, where to start?
> is there any examples ?
>
> --
> Thanks and Regards,
> Harish Kumar. V
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*Love your Job but don't Love your company, Because you may not know when
your company stops loving you.--  Voice Of Love*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 block a particular resource from loading in webview

2012-03-17 Thread Rahul Verma


I've searched a lot for this but did not find any answers. I am developing 
an android app in which at some point, a webview is displayed which shows 
you a webpage. But I am really worried about a small advertisement on the 
web view which shows porn content. Is there any way I can block that from 
loading on the webpage? Every resource passes the onLoadingRecource() 
method...Is 
this the place where i can find a solution? I really need help. Thank you.

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

Re: [android-developers] Latency too high with RTSP and mediaPlayer framework

2012-03-17 Thread Harishkumar V
Hi,

Can u give snippet, how to do this?
i am trying the same, recieve stream from live camera and store into file
with .mp4 container , later for local playback.

On Tue, Aug 16, 2011 at 12:04 PM, xoom  wrote:

>
> Hi,
>
> I am an android developer, I am developing an application which can
> receive live video from the streaming server/IP camera over RTSP/RTP
> using mediaPlayer framework. Its working well but I am facing problem
> with the latency, which is around 4-7 minutes in case of QVGA
> (320x240) H.264 streams in local LAN.
>
> So, is there any way I can minimize the latency? When I saw the DDMS
> debug prints it shows that the media player buffers some amount of
> video. Is it possible to minimize that buffering limit?
>
> 4-7 minutes of latency in case of local LAN is very high for my
> application... :(
>
> Thanks in advance...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks and Regards,
Harish Kumar. V

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 write RTSP application in apk layer in android

2012-03-17 Thread Harishkumar V
Hi,

I need to write an rtsp client application basically in android apk layer,
i searched, but do no know, where to start?
is there any examples ?

-- 
Thanks and Regards,
Harish Kumar. V

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Facebook integration

2012-03-17 Thread Live Happy
u can follow this tutorial have all step and also instal the sdk who
include some example you can use them in ur application

http://developers.facebook.com/docs/mobile/android/build/

On Fri, Mar 16, 2012 at 4:06 PM, Narendra Singh Rathore <
nsr.curi...@gmail.com> wrote:

>
>
> On Mon, Mar 12, 2012 at 4:25 PM, Live Happy  wrote:
>
>> i have integrate face book in my android  application
>>
>
> Can you please suggest me how to integrate that in brief steps?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] How to read the large sized text file

2012-03-17 Thread Narendra Singh Rathore
On Fri, Mar 16, 2012 at 8:18 PM, TreKing  wrote:

> You posted the exception itself. You did NOT post the exception's MESSAGE.
> I said before, if you call getMessage() on the exception object, it gives
> you a REASON WHY the generic IOException was raised.
>

OK, I got what you mean.

Well, I tried this to show the exception's MESSAGE --

*catch (IOException e) {
String err = (e.getMessage()==null)?"No message
here":e.getMessage();
Log.e("IOException:",err);

throw new RuntimeException(e);
}*



>
> So, again ... what is the exception's MESSAGE?
>
>



so, here is the MESSAGE as follows:

1) *In case of using Byte Array, my message is:*

 *No message here*

 The above message indicates that *getMessage() returns NULL* here.

Now, when I used e.printStackTrace() instead of e.getMessage, I got
following result.

03-17 12:43:28.631: WARN/System.err(480): java.io.IOException
03-17 12:43:28.771: WARN/System.err(480): at
android.content.res.AssetManager.readAsset(Native Method)
03-17 12:43:28.782: WARN/System.err(480): at
android.content.res.AssetManager.access$700(AssetManager.java:36)
03-17 12:43:28.820: WARN/System.err(480): at
android.content.res.AssetManager$AssetInputStream.read(AssetManager.java:571)
03-17 12:43:28.850: WARN/System.err(480): at
com.universal.dictionary.onCreate(dictionary.java:30)
03-17 12:43:28.870: WARN/System.err(480): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-17 12:43:28.870: WARN/System.err(480): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-17 12:43:28.892: WARN/System.err(480): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-17 12:43:28.892: WARN/System.err(480): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-17 12:43:28.920: WARN/System.err(480): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-17 12:43:28.920: WARN/System.err(480): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-17 12:43:28.939: WARN/System.err(480): at
android.os.Looper.loop(Looper.java:123)
03-17 12:43:28.939: WARN/System.err(480): at
android.app.ActivityThread.main(ActivityThread.java:4627)
03-17 12:43:28.951: WARN/System.err(480): at
java.lang.reflect.Method.invokeNative(Native Method)
03-17 12:43:28.961: WARN/System.err(480): at
java.lang.reflect.Method.invoke(Method.java:521)
03-17 12:43:28.961: WARN/System.err(480): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-17 12:43:28.971: WARN/System.err(480): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-17 12:43:28.991: WARN/System.err(480): at
dalvik.system.NativeStart.main(Native Method)
*

2) In case of using BufferedInputStream, here is my message:*

The output is same even in this case.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] On Reciving SMS Calling Web Service.

2012-03-17 Thread ravindra bhavsar
Hello Developers,

   I want to call web service when mobile receiving 
message with particular word like "abc".If  "abc" is found then call the 
web service and if not found then don't do anything.*Is it possible? if yes,

then please tell me how to i do that?
*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MediaRecorder - buffered encoding of video

2012-03-17 Thread Daniel Drozdzewski
On Friday, 16 March 2012, paul  wrote:
> Thank you for than answer, but that isn't a solution for the problem.
Doing it that way, leads to a delay depending on the recording time to that
file. Also there would be an interruption of the video stream.

I don't think you got the idea... Recording would be happening to fileB
while previously recorded fileA would be sent through the socket at the
same time. The only interuption in the video stream would be due to
stopping of the recording, passing the recorded file to the sender,
reseting of the recorder and setting it up with the new file. All that
should take under a second.

HTH

> I want to use the captured and encoded video for videoconferencing, so
any kind of delay is not acceptable.
>> ..do you mean storing it in the buffer and creating a delay/jitter?
> It seem to me that the video encoder works in that way. I don't want a
delay.
>
> Am Freitag, 16. März 2012 17:54:29 UTC+1 schrieb Daniel Drozdzewski:
>>
>> On 16 March 2012 15:22, paul  wrote:
>> > Then it would write out the data when the stop function is called.
>>
>> ..do you mean storing it in the buffer and creating a delay/jitter?
>>
>> You will have to look at double buffering using 2 files ... while one
>> is being recorded to, the other will be sent through the socket. Once
>> writing is finished, you stop the recorder, point it at new file and
>> restart it, while taking  just finished file and sending it. Sent
>> files can be discarded or left for the sake of having a local copy.
>>
>> --
>> Daniel Drozdzewski
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
Daniel Drozdzewski

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