Re: [android-developers] Blocking Outgoing SMS

2012-05-01 Thread uttam agarwal
Hi Asheesh,

We are asking for blocking the outgoing sms not reading the sms details. We
can read the details. Anyways you can block incoming sms not outgoing sms .
I thought you knew to block outgoing sms when you said yes when i mailed.

Anyways Thanks

Regards,
Uttam Agarwal

On Wed, May 2, 2012 at 11:51 AM, asheesh arya wrote:

> I don't know how you can block an sms message before it is received.
>
> However, reading a SMS via Android can be done after it is received can be
> done using a query on the SMS inbox. The SMSPopUp application for Android
> does this and more. The sourcecode of this application can be found here
> http://code.google.com/p/android-smspopup/source/browse/tags/SMSPopup+v0.9.93/src/net/everythingandroid/smspopup/SMSPopupUtils.java
>
> For example, look at the getSmsDetails method in the SMSPopUp application.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Not Getting the Exact value of x and y cordinates

2012-05-01 Thread shihab shiha
Hi All,


I tried to get the x and y coordinates of one view. why..getx and gety
co-ordinates are not matching the view which is touched

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

2012-05-01 Thread asheesh arya
I don't know how you can block an sms message before it is received.

However, reading a SMS via Android can be done after it is received can be
done using a query on the SMS inbox. The SMSPopUp application for Android
does this and more. The sourcecode of this application can be found here
http://code.google.com/p/android-smspopup/source/browse/tags/SMSPopup+v0.9.93/src/net/everythingandroid/smspopup/SMSPopupUtils.java

For example, look at the getSmsDetails method in the SMSPopUp application.

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

2012-05-01 Thread uttam agarwal
Same question . Expert please suggest.

Regards
Uttam Agarwal

On Wed, May 2, 2012 at 11:36 AM, surabhi jain wrote:

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

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

[android-developers] Reinstall of the app fails after disable the launcher activity

2012-05-01 Thread png
Hi ,
I have a requirement where i want to hid the app from list of other
apps .

It should be given as an option to the user so that user can choose to
hide / unhide.

So i am able to do this by making the launcher activity component
disabled.

Then i defined a broadcast receiver that will launch the app if a
particular sequence is dialled.

Till then everything is fine.

Problem arise when i try to reinstall the app . I modified my app and
now i wnat to reinstall.
This time it fails saying "activity mylauncheractivity does not exist"

Please tell me

1. If i am implementing right solution for my requirement

2. If so, how can i solve this issue

Please help me. Thanks a lot for your time and effort

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

2012-05-01 Thread surabhi jain
from which intent or notification,
we can block outgoing SMS in android.

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

[android-developers] Reinstall of the app fails after disable the launcher activity

2012-05-01 Thread png
Hi ,
I have a requirement where i want to hid the app from list of other
apps .

It should be given as an option to the user so that user can choose to
hide / unhide.

So i am able to do this by making the launcher activity component
disabled.

Then i defined a broadcast receiver that will launch the app if a
particular sequence is dialled.

Till then everything is fine.

Problem arise when i try to reinstall the app . I modified my app and
now i wnat to reinstall.
This time it fails saying "activity mylauncheractivity does not exist"

Please tell me

1. If i am implementing right solution for my requirement

2. If so, how can i solve this issue

Please help me. Thanks a lot for your time and effort

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


[android-developers] how to get the wifi connection speed?

2012-05-01 Thread Hiko
hi,

I have one question concerning the way to get the wifi connection speed.
I could find out the way to get the connection speed over the air(3G) by 
using inherited TrafficState class.
However, i do not know how to get the connection speed in case of 
connecting Wifi.

Please let me know if you know this solution for this issue.

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] algorithm data synchronization (SQLite to Online Database)

2012-05-01 Thread mateen sysfore
Try using pentahoo tool

On Mon, Apr 30, 2012 at 7:33 PM, Diogo Ribeiro
wrote:

> I think that WebService would be the best way
>
>
> 2012/4/28 Thiago Ventura 
>
>> I am making a app that need synchronize data with a online server. What
>> do the best way to make?
>>
>> I thought at create a database local (SQLite) that will synchronize with
>> a online database server with structure equals. Would be best online XML or
>> online database?
>>
>> Other question is if exists any algorithm known of data synchronization.
>> Exists?
>>
>> --
>> Thiago C. S. Ventura
>>
>> *P*  Antes de imprimir esse e-mail, pense em seu compromisso com o* Meio
>> Ambiente*. Verifique se o equipamento possui recursos como impressão
>> frente e verso e dê preferência a impressão em modo monocromático.
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Diogo Ribeiro
> @diogoribeiro 
> Bacharelando em Engenharia de Software - UFG
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 contact details

2012-05-01 Thread asheesh arya
http://eagle.phys.utk.edu/guidry/android/readContacts.html
juzz go through this link might be it helpful for 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] Blocking Outgoing SMS

2012-05-01 Thread asheesh arya
yes

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

Re: [android-developers] code for read n write

2012-05-01 Thread asheesh arya
import java.io.*;
import android.app.Activity;
import android.os.Bundle;
import android.view.*;
import android.view.View.OnClickListener;
import android.widget.*;

public class FileDemo2 extends Activity {
// GUI controls
EditText txtData;
Button btnWriteSDFile;
Button btnReadSDFile;
Button btnClearScreen;
Button btnClose;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// bind GUI elements with local controls
txtData = (EditText) findViewById(R.id.txtData);
txtData.setHint("Enter some lines of data here...");

btnWriteSDFile = (Button) findViewById(R.id.btnWriteSDFile);
btnWriteSDFile.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// write on SD card file data in the text box
try {
File myFile = new File("/sdcard/mysdfile.txt");
myFile.createNewFile();
FileOutputStream fOut = new FileOutputStream(myFile);
OutputStreamWriter myOutWriter =
new 
OutputStreamWriter(fOut);
myOutWriter.append(txtData.getText());
myOutWriter.close();
fOut.close();
Toast.makeText(getBaseContext(),
"Done writing SD 'mysdfile.txt'",
Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Toast.makeText(getBaseContext(), e.getMessage(),
Toast.LENGTH_SHORT).show();
}
}// onClick
}); // btnWriteSDFile

btnReadSDFile = (Button) findViewById(R.id.btnReadSDFile);
btnReadSDFile.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// write on SD card file data in the text box
try {
File myFile = new File("/sdcard/mysdfile.txt");
FileInputStream fIn = new FileInputStream(myFile);
BufferedReader myReader = new BufferedReader(
new InputStreamReader(fIn));
String aDataRow = "";
String aBuffer = "";
while ((aDataRow = myReader.readLine()) != null) {
aBuffer += aDataRow + "\n";
}
txtData.setText(aBuffer);
myReader.close();
Toast.makeText(getBaseContext(),
"Done reading SD 'mysdfile.txt'",
Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Toast.makeText(getBaseContext(), e.getMessage(),
Toast.LENGTH_SHORT).show();
}
}// onClick
}); // btnReadSDFile

btnClearScreen = (Button) findViewById(R.id.btnClearScreen);
btnClearScreen.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// clear text box
txtData.setText("");
}
}); // btnClearScreen

btnClose = (Button) findViewById(R.id.btnClose);
btnClose.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// clear text box
finish();
}
}); // btnClose

}// onCreate

}// AndSDcard
---
XML FILE


http://schemas.android.com/apk/res/android";
>












android manifest file
permission-
android.permission.WRITE_EXTERNAL_STORAGE

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

2012-05-01 Thread fan zhang
Thanks a lot for the information.

Fan

On Tue, May 1, 2012 at 8:07 PM, Irfan Sheriff  wrote:

> Wifi Direct can be enabled on the wingray by adding the following line to
>  device/moto/wingray/device_base.mk:
>
> frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml
>
> But officially, Wifi Direct is not supported on BCM4329 because of
> firmware limitations. It will likely not work very well.
>
> Thanks
>
> On Tue, May 1, 2012 at 5:10 PM, fan zhang  wrote:
>
>> Robert:
>>
>> Do you know whom I should contact in Broadcom  to discuss this issue?
>>
>> Thanks
>>
>> Fan
>> On Tue, May 1, 2012 at 4:59 PM, Robert Greenwalt 
>> wrote:
>>
>>> You are welcome to discuss it with broadcom.  I agree that the hardware
>>> is capable.
>>>
>>>
>>> On Tue, May 1, 2012 at 4:52 PM, fan zhang  wrote:
>>>
 Robert:

 http://www.youtube.com/watch?v=H-BxARQZbbE

 Broadcom shows off WiFi Direct on a Motorola Xoom. So I believe that
 wifi hardware in xoom already supported wifi direct, right?

 Thanks

 Fan

 On Tue, May 1, 2012 at 4:23 PM, Robert Greenwalt >>> > wrote:

> I don't think so.  It's a driver limitation and that source is not
> available.
>
>
> On Tue, May 1, 2012 at 4:18 PM, fan zhang  wrote:
>
>> Could we do any patch to make it work?
>>
>> Thanks
>>
>> Fan
>>
>> On Tue, May 1, 2012 at 4:11 PM, Robert Greenwalt <
>> rgreenw...@google.com> wrote:
>>
>>> Sorry - wifi direct is not supported on xoom.
>>>
>>> On Tue, May 1, 2012 at 3:59 PM, fan zhang wrote:
>>>
 Hi:

 I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I
 could not turn on wifi direct on XOOM.

 Did any one successfully turn on wifi direct on XOOM?

 Thanks

 Fan

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

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

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

Re: [android-developers] Turn on wifi direct on XOOM

2012-05-01 Thread Irfan Sheriff
Wifi Direct can be enabled on the wingray by adding the following line to
 device/moto/wingray/device_base.mk:

frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml

But officially, Wifi Direct is not supported on BCM4329 because of firmware
limitations. It will likely not work very well.

Thanks

On Tue, May 1, 2012 at 5:10 PM, fan zhang  wrote:

> Robert:
>
> Do you know whom I should contact in Broadcom  to discuss this issue?
>
> Thanks
>
> Fan
> On Tue, May 1, 2012 at 4:59 PM, Robert Greenwalt wrote:
>
>> You are welcome to discuss it with broadcom.  I agree that the hardware
>> is capable.
>>
>>
>> On Tue, May 1, 2012 at 4:52 PM, fan zhang  wrote:
>>
>>> Robert:
>>>
>>> http://www.youtube.com/watch?v=H-BxARQZbbE
>>>
>>> Broadcom shows off WiFi Direct on a Motorola Xoom. So I believe that
>>> wifi hardware in xoom already supported wifi direct, right?
>>>
>>> Thanks
>>>
>>> Fan
>>>
>>> On Tue, May 1, 2012 at 4:23 PM, Robert Greenwalt 
>>> wrote:
>>>
 I don't think so.  It's a driver limitation and that source is not
 available.


 On Tue, May 1, 2012 at 4:18 PM, fan zhang  wrote:

> Could we do any patch to make it work?
>
> Thanks
>
> Fan
>
> On Tue, May 1, 2012 at 4:11 PM, Robert Greenwalt <
> rgreenw...@google.com> wrote:
>
>> Sorry - wifi direct is not supported on xoom.
>>
>> On Tue, May 1, 2012 at 3:59 PM, fan zhang wrote:
>>
>>> Hi:
>>>
>>> I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I
>>> could not turn on wifi direct on XOOM.
>>>
>>> Did any one successfully turn on wifi direct on XOOM?
>>>
>>> Thanks
>>>
>>> Fan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to
>>> android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to
>> android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

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

Re: [android-developers] Applications and databases

2012-05-01 Thread James Black
If you mean to write to any database then no.

But, if you mean whether someone writes to your database, then just provide a 
content provider and you can be informed.

On 1 May 2012, at 21:33, Meryeme Ayache wrote:

> how can we know if an application has entered to the database. I mean is 
> there any possiblity to know if an application get or write information in 
> Android Database.

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

2012-05-01 Thread Meryeme Ayache
how can we know if an application has entered to the database. I mean is
there any possiblity to know if an application get or write information in
Android Database.

-- 
Meryeme Ayache.*
**Third year Computer Science Student Engineer at
**Ecole Nationale Supérieure d'Informatique et d'Analyse des Systèmes
(Rabat)*
*Information Security System Major.
*
*
*
*
*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread abe oppenheim
if this is the case, any idea why:

1. it isn't fixed by adding Thread.sleep(100) to the background thread?
2. it only occurs on the one device?

On Tue, May 1, 2012 at 8:17 PM, Streets Of Boston
wrote:

> Yep, both threads are in Canvas.native_drawBitmap and clobbering each
> other (or least the background thread is clobbering the UI one).
> This is a tough one to fix or to work-around.
>
>
> On Tuesday, May 1, 2012 7:27:00 PM UTC-4, Ab wrote:
>>
>> I hadn't, but I just did on your suggestion.
>>
>> The call chain I see in eclipse looks the same as one in the traces.txt
>> file:
>>
>> http://pastebin.com/hummn87H
>>
>> It appears that the thread gets wedged while drawing one of the
>> ImageButtons.
>>
>> On Tuesday, 1 May 2012 19:09:19 UTC-4, Kostya Vasilyev wrote:
>>>
>>> Abe,
>>>
>>> Have you tried pausing the UI thread in the debugger once it's locked
>>> up, in order to inspect its call chain?
>>>  02.05.2012 2:55 пользователь "Mark Murphy" 
>>> написал:
>>>
 On Tue, May 1, 2012 at 6:47 PM, abe oppenheim 
 wrote:
 > Thanks.  Out of curiosity, did you try to reproduce on a Samsung Note?

 I don't own a Note, sorry.

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

 Android App Developer Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-developers@**
 googlegroups.com 
 To unsubscribe from this group, 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] Application linux permission problem -- context.getFilesDir() is null

2012-05-01 Thread maciej
No, we do not use sharedUserId.


W dniu wtorek, 1 maja 2012 16:52:07 UTC-7 użytkownik Mark Murphy (a Commons 
Guy) napisał:
>
> Do you use android:sharedUserId? 
>
> If so, did you ever change its value? 
>
> On Tue, May 1, 2012 at 7:40 PM, maciej  wrote: 
> > We've got many reports about our application crashing - the top crash in 
> > android developer console for us. 
> > The problem is that method context.getFilesDir() returns null. 
> > It is hard to reproduce (never have been able to do it locally). 
> > After investigation I have noticed that /data/data/ directory has 
> wrong 
> > Linux permissions. 
> > The ApplicationInfo.uid and dir permissions do not match. 
> > I got uid = 10071 and dir with owner set to app_78. 
> > Usually there is no application installed corresponding to  app_78, but 
> > I have found cases when my /data/data/ directory has permission 
> > corresponding to other installed application. 
> > Due to that my application is not able to write into its private 
> directory, 
> > files and shared_prefs directories can not be created. 
> > 
> > It looks like that uninstalling and installing application again fixes 
> > problem - but it was not confirmed by users. 
> > 
> > I have found this: 
> http://code.google.com/p/android/issues/detail?id=8886 
> > 
> > Does anybody encounter the same issue ? 
> > Is there any application level workaround ? 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to android-developers@googlegroups.com 
> > To unsubscribe from this group, 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 4.0 Programming Books: http://commonsware.com/books 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Streets Of Boston
Yep, both threads are in Canvas.native_drawBitmap and clobbering each other 
(or least the background thread is clobbering the UI one).
This is a tough one to fix or to work-around.


On Tuesday, May 1, 2012 7:27:00 PM UTC-4, Ab wrote:
>
> I hadn't, but I just did on your suggestion.  
>
> The call chain I see in eclipse looks the same as one in the traces.txt 
> file:
>
> http://pastebin.com/hummn87H 
>
> It appears that the thread gets wedged while drawing one of the 
> ImageButtons.
>
> On Tuesday, 1 May 2012 19:09:19 UTC-4, Kostya Vasilyev wrote:
>>
>> Abe,
>>
>> Have you tried pausing the UI thread in the debugger once it's locked up, 
>> in order to inspect its call chain?
>>  02.05.2012 2:55 пользователь "Mark Murphy"  
>> написал:
>>
>>> On Tue, May 1, 2012 at 6:47 PM, abe oppenheim  
>>> wrote:
>>> > Thanks.  Out of curiosity, did you try to reproduce on a Samsung Note?
>>>
>>> I don't own a Note, sorry.
>>>
>>> --
>>> Mark Murphy (a Commons Guy)
>>> http://commonsware.com | http://github.com/commonsguy
>>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>>
>>> Android App Developer Books: http://commonsware.com/books
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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] Turn on wifi direct on XOOM

2012-05-01 Thread fan zhang
Robert:

Do you know whom I should contact in Broadcom  to discuss this issue?

Thanks

Fan
On Tue, May 1, 2012 at 4:59 PM, Robert Greenwalt wrote:

> You are welcome to discuss it with broadcom.  I agree that the hardware is
> capable.
>
>
> On Tue, May 1, 2012 at 4:52 PM, fan zhang  wrote:
>
>> Robert:
>>
>> http://www.youtube.com/watch?v=H-BxARQZbbE
>>
>> Broadcom shows off WiFi Direct on a Motorola Xoom. So I believe that wifi
>> hardware in xoom already supported wifi direct, right?
>>
>> Thanks
>>
>> Fan
>>
>> On Tue, May 1, 2012 at 4:23 PM, Robert Greenwalt 
>> wrote:
>>
>>> I don't think so.  It's a driver limitation and that source is not
>>> available.
>>>
>>>
>>> On Tue, May 1, 2012 at 4:18 PM, fan zhang  wrote:
>>>
 Could we do any patch to make it work?

 Thanks

 Fan

 On Tue, May 1, 2012 at 4:11 PM, Robert Greenwalt >>> > wrote:

> Sorry - wifi direct is not supported on xoom.
>
> On Tue, May 1, 2012 at 3:59 PM, fan zhang  wrote:
>
>> Hi:
>>
>> I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I
>> could not turn on wifi direct on XOOM.
>>
>> Did any one successfully turn on wifi direct on XOOM?
>>
>> Thanks
>>
>> Fan
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to
>> android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


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

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

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

[android-developers] open source kernel aoosciated with ICS 4.0.3 for Galaxy Nexus (maguro)

2012-05-01 Thread fan zhang
Hi:

I compiled ICS 4.0.3 and flashed it to Galaxy Nexus (Maguro). However we
could not get relevant kernel source to match with ICS 4.0.3 for Maguro.

Did any one successfully compile open source kernel to match ICS 4.0.3 on
Galaxy Nexus (Maguro)?

Thanks

Fan

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

2012-05-01 Thread Robert Greenwalt
You are welcome to discuss it with broadcom.  I agree that the hardware is
capable.

On Tue, May 1, 2012 at 4:52 PM, fan zhang  wrote:

> Robert:
>
> http://www.youtube.com/watch?v=H-BxARQZbbE
>
> Broadcom shows off WiFi Direct on a Motorola Xoom. So I believe that wifi
> hardware in xoom already supported wifi direct, right?
>
> Thanks
>
> Fan
>
> On Tue, May 1, 2012 at 4:23 PM, Robert Greenwalt wrote:
>
>> I don't think so.  It's a driver limitation and that source is not
>> available.
>>
>>
>> On Tue, May 1, 2012 at 4:18 PM, fan zhang  wrote:
>>
>>> Could we do any patch to make it work?
>>>
>>> Thanks
>>>
>>> Fan
>>>
>>> On Tue, May 1, 2012 at 4:11 PM, Robert Greenwalt 
>>> wrote:
>>>
 Sorry - wifi direct is not supported on xoom.

 On Tue, May 1, 2012 at 3:59 PM, fan zhang  wrote:

> Hi:
>
> I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I
> could not turn on wifi direct on XOOM.
>
> Did any one successfully turn on wifi direct on XOOM?
>
> Thanks
>
> Fan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


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

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

[android-developers]

2012-05-01 Thread Zy Z


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 linux permission problem -- context.getFilesDir() is null

2012-05-01 Thread Mark Murphy
Do you use android:sharedUserId?

If so, did you ever change its value?

On Tue, May 1, 2012 at 7:40 PM, maciej  wrote:
> We've got many reports about our application crashing - the top crash in
> android developer console for us.
> The problem is that method context.getFilesDir() returns null.
> It is hard to reproduce (never have been able to do it locally).
> After investigation I have noticed that /data/data/ directory has wrong
> Linux permissions.
> The ApplicationInfo.uid and dir permissions do not match.
> I got uid = 10071 and dir with owner set to app_78.
> Usually there is no application installed corresponding to  app_78, but
> I have found cases when my /data/data/ directory has permission
> corresponding to other installed application.
> Due to that my application is not able to write into its private directory,
> files and shared_prefs directories can not be created.
>
> It looks like that uninstalling and installing application again fixes
> problem - but it was not confirmed by users.
>
> I have found this: http://code.google.com/p/android/issues/detail?id=8886
>
> Does anybody encounter the same issue ?
> Is there any application level workaround ?
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 4.0 Programming Books: http://commonsware.com/books

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

2012-05-01 Thread fan zhang
Robert:

http://www.youtube.com/watch?v=H-BxARQZbbE

Broadcom shows off WiFi Direct on a Motorola Xoom. So I believe that wifi
hardware in xoom already supported wifi direct, right?

Thanks

Fan

On Tue, May 1, 2012 at 4:23 PM, Robert Greenwalt wrote:

> I don't think so.  It's a driver limitation and that source is not
> available.
>
>
> On Tue, May 1, 2012 at 4:18 PM, fan zhang  wrote:
>
>> Could we do any patch to make it work?
>>
>> Thanks
>>
>> Fan
>>
>> On Tue, May 1, 2012 at 4:11 PM, Robert Greenwalt 
>> wrote:
>>
>>> Sorry - wifi direct is not supported on xoom.
>>>
>>> On Tue, May 1, 2012 at 3:59 PM, fan zhang  wrote:
>>>
 Hi:

 I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I
 could not turn on wifi direct on XOOM.

 Did any one successfully turn on wifi direct on XOOM?

 Thanks

 Fan

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

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

[android-developers] Application linux permission problem -- context.getFilesDir() is null

2012-05-01 Thread maciej
We've got many reports about our application crashing - the top crash in 
android developer console for us.
The problem is that method context.getFilesDir() returns null.
It is hard to reproduce (never have been able to do it locally).
After investigation I have noticed that /data/data/ directory has 
wrong Linux permissions.
The ApplicationInfo.uid and dir permissions do not match.
I got uid = 10071 and dir with owner set to app_78.
Usually there is no application installed corresponding to  app_78, but
I have found cases when my /data/data/ directory has permission 
corresponding to other installed application.
Due to that my application is not able to write into its private directory,
files and shared_prefs directories can not be created.

It looks like that uninstalling and installing application again fixes 
problem - but it was not confirmed by users.

I have found this: http://code.google.com/p/android/issues/detail?id=8886

Does anybody encounter the same issue ?
Is there any application level workaround ? 


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 insert in android a web service client created using eclipse wizard and WSDL.

2012-05-01 Thread Jxn
On 2 Maj, 01:11, Carlos A Aponte Roa  wrote:
> Sorry. My mistake. I created a web service client using eclipse wizard and a 
> wsdl and I need to add it to my android app.

Ok.  As Mark and I wrote, there are no support for WS for Android in
Eclipse (only WS and standard Java EE), so you need some external
libraries, like "kSOAP 2 for Android".
But there are also some other libraries mentioned in the link to an
answer at StackOverflow.com.  Please read that and/or look at the
video about kSOAP I posted the link to.

Yours
Anders

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


Re: [android-developers] Re: How insert in android a web service client created using eclipse wizard and WSDL.

2012-05-01 Thread Carlos A Aponte Roa
Thanks Anders for the support. I have been trying all and did not work with 
eclipse WS generated code.


Carlos A Aponte Roa
http://ece.uprm.edu/~carlos.aponte

https://market.android.com/details?id=com.caar.app.trackitsimple&feature=search_result&hl=en

 Original message 
Subject: [android-developers] Re: How insert in android a web service client 
created using eclipse wizard and WSDL. 
From: Jxn  
To: Android Developers  
CC:  

Hello

On 30 Apr, 21:24, ingaponteca  wrote:
> I am trying to create a web server client in my android application.

Are you doing WS client (Web Service client) or some application that
uses a web server, that are a web server?

Web Server != Web Service

> I created the web server client using eclipse wizard and I tested as
> java application and worked just fine. But When I do same process in
> my android project, and after add same jar files and J2SE1.5 just
> below the Android 4.0.3 and Android dependencies, the application
> compiles but during execution application crash.

I guess you are trying to access a WS from your Android device.  And
no, there are no
support from Eclipse to write WS clients for Android.  So you have to
do it without
that support.

You are welcome to write it though, but that would mean that you had
to add support for
Android for one of the WS frame works that Eclipse support.

The other way, which seems to be supported according to Stack
Overflow, which is a
greate site so please use that,
http://stackoverflow.com/questions/297586/how-to-call-soap-web-service-with-android
is that you could use a simpler library for Android. And it looks like
kSoap2 for Android
is the common way to go.  There are even a video how to use it.
http://www.youtube.com/watch?v=v9EowBVgwSo

> Can somebody give me a light of what is possibly happening?

There are no support for Android and WS in Eclipse. Not any I know of
anyway.  You have to manage
the WS part yourself.  Use kSOAP2 for Android (not kSOAP 2, as it
isn't for Android).

Yours
Anders

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Ab
I hadn't, but I just did on your suggestion.  

The call chain I see in eclipse looks the same as one in the traces.txt 
file:

http://pastebin.com/hummn87H 

It appears that the thread gets wedged while drawing one of the 
ImageButtons.

On Tuesday, 1 May 2012 19:09:19 UTC-4, Kostya Vasilyev wrote:
>
> Abe,
>
> Have you tried pausing the UI thread in the debugger once it's locked up, 
> in order to inspect its call chain?
>  02.05.2012 2:55 пользователь "Mark Murphy"  
> написал:
>
>> On Tue, May 1, 2012 at 6:47 PM, abe oppenheim  
>> wrote:
>> > Thanks.  Out of curiosity, did you try to reproduce on a Samsung Note?
>>
>> I don't own a Note, sorry.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android App Developer Books: http://commonsware.com/books
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Turn on wifi direct on XOOM

2012-05-01 Thread Robert Greenwalt
I don't think so.  It's a driver limitation and that source is not
available.

On Tue, May 1, 2012 at 4:18 PM, fan zhang  wrote:

> Could we do any patch to make it work?
>
> Thanks
>
> Fan
>
> On Tue, May 1, 2012 at 4:11 PM, Robert Greenwalt wrote:
>
>> Sorry - wifi direct is not supported on xoom.
>>
>> On Tue, May 1, 2012 at 3:59 PM, fan zhang  wrote:
>>
>>> Hi:
>>>
>>> I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I could
>>> not turn on wifi direct on XOOM.
>>>
>>> Did any one successfully turn on wifi direct on XOOM?
>>>
>>> Thanks
>>>
>>> Fan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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] Turn on wifi direct on XOOM

2012-05-01 Thread fan zhang
Could we do any patch to make it work?

Thanks

Fan

On Tue, May 1, 2012 at 4:11 PM, Robert Greenwalt wrote:

> Sorry - wifi direct is not supported on xoom.
>
> On Tue, May 1, 2012 at 3:59 PM, fan zhang  wrote:
>
>> Hi:
>>
>> I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I could
>> not turn on wifi direct on XOOM.
>>
>> Did any one successfully turn on wifi direct on XOOM?
>>
>> Thanks
>>
>> Fan
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: How insert in android a web service client created using eclipse wizard and WSDL.

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 7:11 PM, Carlos A Aponte Roa
 wrote:
> Sorry. My mistake. I created a web service client using eclipse wizard and a
> wsdl and I need to add it to my android app.

Android does not natively support Web service clients of that sort.
You will need to figure out how to use a third-party JAR for that
(e.g., kSOAP2).

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

Android App Developer Books: http://commonsware.com/books

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

2012-05-01 Thread Robert Greenwalt
Sorry - wifi direct is not supported on xoom.

On Tue, May 1, 2012 at 3:59 PM, fan zhang  wrote:

> Hi:
>
> I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I could
> not turn on wifi direct on XOOM.
>
> Did any one successfully turn on wifi direct on XOOM?
>
> Thanks
>
> Fan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: How insert in android a web service client created using eclipse wizard and WSDL.

2012-05-01 Thread Carlos A Aponte Roa
Sorry. My mistake. I created a web service client using eclipse wizard and a 
wsdl and I need to add it to my android app.


Carlos A Aponte Roa
http://ece.uprm.edu/~carlos.aponte

https://market.android.com/details?id=com.caar.app.trackitsimple&feature=search_result&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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Kostya Vasilyev
Abe,

Have you tried pausing the UI thread in the debugger once it's locked up,
in order to inspect its call chain?
 02.05.2012 2:55 пользователь "Mark Murphy" 
написал:

> On Tue, May 1, 2012 at 6:47 PM, abe oppenheim 
> wrote:
> > Thanks.  Out of curiosity, did you try to reproduce on a Samsung Note?
>
> I don't own a Note, sorry.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Turn on wifi direct on XOOM

2012-05-01 Thread fan zhang
Hi:

I installed ICS 4.0.3 to Moto XOOM wifi-only (wingray). However, I could
not turn on wifi direct on XOOM.

Did any one successfully turn on wifi direct on XOOM?

Thanks

Fan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 6:47 PM, abe oppenheim  wrote:
> Thanks.  Out of curiosity, did you try to reproduce on a Samsung Note?

I don't own a Note, sorry.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 insert in android a web service client created using eclipse wizard and WSDL.

2012-05-01 Thread Jxn
Hello

On 30 Apr, 21:24, ingaponteca  wrote:
> I am trying to create a web server client in my android application.

Are you doing WS client (Web Service client) or some application that
uses a web server, that are a web server?

Web Server != Web Service

> I created the web server client using eclipse wizard and I tested as
> java application and worked just fine. But When I do same process in
> my android project, and after add same jar files and J2SE1.5 just
> below the Android 4.0.3 and Android dependencies, the application
> compiles but during execution application crash.

I guess you are trying to access a WS from your Android device.  And
no, there are no
support from Eclipse to write WS clients for Android.  So you have to
do it without
that support.

You are welcome to write it though, but that would mean that you had
to add support for
Android for one of the WS frame works that Eclipse support.

The other way, which seems to be supported according to Stack
Overflow, which is a
greate site so please use that,
http://stackoverflow.com/questions/297586/how-to-call-soap-web-service-with-android
is that you could use a simpler library for Android. And it looks like
kSoap2 for Android
is the common way to go.  There are even a video how to use it.
http://www.youtube.com/watch?v=v9EowBVgwSo

> Can somebody give me a light of what is possibly happening?

There are no support for Android and WS in Eclipse. Not any I know of
anyway.  You have to manage
the WS part yourself.  Use kSOAP2 for Android (not kSOAP 2, as it
isn't for Android).

Yours
Anders

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
Yeah that's really weird, good luck with your issue.  You may want to start
looking into work-arounds, but what a pain.
Ugh, this just adds to the fuel of the fragmentation flames.

Looking at this page:
http://developer.android.com/guide/topics/graphics/2d-graphics.html you'll
see what you're doing is actually encouraged.


On Tue, May 1, 2012 at 3:40 PM, Mark Murphy  wrote:

> On Tue, May 1, 2012 at 6:29 PM, Ab  wrote:
> > https://www.dropbox.com/s/5wg9src2n3ptv93/ANRTest.zip
> >
> > This includes the Thread.sleep(100); when included, it takes me about 30
> > seconds of button mashing to cause the ANR.  Usually occurs within 10
> > seconds or so if I exclude this.
>
> Yeah, I can't reproduce it here. I see that you already posted
> something to the one Samsung developer board -- at this junction, that
> is your best bet.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread abe oppenheim
Thanks.  Out of curiosity, did you try to reproduce on a Samsung Note?

On Tue, May 1, 2012 at 6:40 PM, Mark Murphy  wrote:

> On Tue, May 1, 2012 at 6:29 PM, Ab  wrote:
> > https://www.dropbox.com/s/5wg9src2n3ptv93/ANRTest.zip
> >
> > This includes the Thread.sleep(100); when included, it takes me about 30
> > seconds of button mashing to cause the ANR.  Usually occurs within 10
> > seconds or so if I exclude this.
>
> Yeah, I can't reproduce it here. I see that you already posted
> something to the one Samsung developer board -- at this junction, that
> is your best bet.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Mark Murphy
BTW, I think there are a few model #s of Note, so you might want to
update your Samsung board post with the exact model number, firmware
build number, etc.

On Tue, May 1, 2012 at 6:40 PM, Mark Murphy  wrote:
> On Tue, May 1, 2012 at 6:29 PM, Ab  wrote:
>> https://www.dropbox.com/s/5wg9src2n3ptv93/ANRTest.zip
>>
>> This includes the Thread.sleep(100); when included, it takes me about 30
>> seconds of button mashing to cause the ANR.  Usually occurs within 10
>> seconds or so if I exclude this.
>
> Yeah, I can't reproduce it here. I see that you already posted
> something to the one Samsung developer board -- at this junction, that
> is your best bet.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 6:29 PM, Ab  wrote:
> https://www.dropbox.com/s/5wg9src2n3ptv93/ANRTest.zip
>
> This includes the Thread.sleep(100); when included, it takes me about 30
> seconds of button mashing to cause the ANR.  Usually occurs within 10
> seconds or so if I exclude this.

Yeah, I can't reproduce it here. I see that you already posted
something to the one Samsung developer board -- at this junction, that
is your best bet.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Ab
https://www.dropbox.com/s/5wg9src2n3ptv93/ANRTest.zip 

This includes the Thread.sleep(100); when included, it takes me about 30 
seconds of button mashing to cause the ANR.  Usually occurs within 10 
seconds or so if I exclude this.

On Tuesday, 1 May 2012 18:05:16 UTC-4, Mark Murphy (a Commons Guy) wrote:
>
> On Tue, May 1, 2012 at 5:41 PM, Ab  wrote: 
> > I added a log statement into the while loop.  Based on this statement, 
> the 
> > while loop continues after the UI has frozen. 
>
> That's odder still. 
>
> Can you package up the entire project and make it available somewhere? 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android App Developer Books: http://commonsware.com/books 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 5:41 PM, Ab  wrote:
> I added a log statement into the while loop.  Based on this statement, the
> while loop continues after the UI has frozen.

That's odder still.

Can you package up the entire project and make it available somewhere?

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

Android App Developer Books: http://commonsware.com/books

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

2012-05-01 Thread Justin Anderson
And that is why Mark suggested contacting the developer first...

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


On Tue, May 1, 2012 at 3:52 PM, Justin Anderson wrote:

> Is it software piracy if the software is free on Google Play?
>>
> Well, since the definition is "unauthorized copying of software" that
> would depend on each individual developer.  I have a free app on Google
> Play and I personally wouldn't care (as long as you weren't trying to
> reverse engineer my app or otherwise compete with me), in which case it
> would not be considered piracy to do that.  Other developers may feel
> differently... and in that case it would be considered piracy.
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 3:42 PM, Mark Lapasa  wrote:
>
>> Is it software piracy if the software is free on Google Play?
>>
>>
>> On Tuesday, May 1, 2012 3:57:49 PM UTC-4, MagouyaWare wrote:
>>>
>>> Software piracy is, simply put, the unauthorized copying of software...
>>> So, if copying it to put it on the emulator is not authorized by the
>>> developer, then that is piracy.
>>>
>>> Thanks,
>>> Justin Anderson
>>> MagouyaWare Developer
>>> http://sites.google.com/site/**magouyaware
>>>
>>>
>>> On Tue, May 1, 2012 at 1:54 PM, Mark Murphy wrote:
>>>
 On Tue, May 1, 2012 at 2:26 PM, Samuel 
 wrote:
 > That's not software piracy.
 > If you have paid for a copy of the software, it doesn't matter which
 > machine you choose to run it on.

 You are welcome to your opinion. The authors of the software in
 question (who are the ones determining the nature of the software
 license), and the legal systems with relevant jurisdiction, may
 disagree with you. This is why I suggested the OP contact the
 developers of the software in question, to try to obtain a copy with
 permission, rather than without.

 Moreover, you are assuming certain behaviors (e.g., only one installed
 copy of the software) that are not intrinsic in any of the "here's how
 to copy the app" suggestions that were made.

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

 Android App Developer Books: http://commonsware.com/books

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

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

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

Re: [android-developers] Re: Regarding emulator

2012-05-01 Thread Justin Anderson
>
> Is it software piracy if the software is free on Google Play?
>
Well, since the definition is "unauthorized copying of software" that would
depend on each individual developer.  I have a free app on Google Play and
I personally wouldn't care (as long as you weren't trying to reverse
engineer my app or otherwise compete with me), in which case it would not
be considered piracy to do that.  Other developers may feel differently...
and in that case it would be considered piracy.

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


On Tue, May 1, 2012 at 3:42 PM, Mark Lapasa  wrote:

> Is it software piracy if the software is free on Google Play?
>
>
> On Tuesday, May 1, 2012 3:57:49 PM UTC-4, MagouyaWare wrote:
>>
>> Software piracy is, simply put, the unauthorized copying of software...
>> So, if copying it to put it on the emulator is not authorized by the
>> developer, then that is piracy.
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/**magouyaware
>>
>>
>> On Tue, May 1, 2012 at 1:54 PM, Mark Murphy wrote:
>>
>>> On Tue, May 1, 2012 at 2:26 PM, Samuel 
>>> wrote:
>>> > That's not software piracy.
>>> > If you have paid for a copy of the software, it doesn't matter which
>>> > machine you choose to run it on.
>>>
>>> You are welcome to your opinion. The authors of the software in
>>> question (who are the ones determining the nature of the software
>>> license), and the legal systems with relevant jurisdiction, may
>>> disagree with you. This is why I suggested the OP contact the
>>> developers of the software in question, to try to obtain a copy with
>>> permission, rather than without.
>>>
>>> Moreover, you are assuming certain behaviors (e.g., only one installed
>>> copy of the software) that are not intrinsic in any of the "here's how
>>> to copy the app" suggestions that were made.
>>>
>>> --
>>> Mark Murphy (a Commons Guy)
>>> http://commonsware.com | http://github.com/commonsguy
>>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>>
>>> Android App Developer Books: http://commonsware.com/books
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Regarding emulator

2012-05-01 Thread Mark Lapasa
Is it software piracy if the software is free on Google Play? 

On Tuesday, May 1, 2012 3:57:49 PM UTC-4, MagouyaWare wrote:
>
> Software piracy is, simply put, the unauthorized copying of software...  
> So, if copying it to put it on the emulator is not authorized by the 
> developer, then that is piracy.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 1:54 PM, Mark Murphy wrote:
>
>> On Tue, May 1, 2012 at 2:26 PM, Samuel  
>> wrote:
>> > That's not software piracy.
>> > If you have paid for a copy of the software, it doesn't matter which
>> > machine you choose to run it on.
>>
>> You are welcome to your opinion. The authors of the software in
>> question (who are the ones determining the nature of the software
>> license), and the legal systems with relevant jurisdiction, may
>> disagree with you. This is why I suggested the OP contact the
>> developers of the software in question, to try to obtain a copy with
>> permission, rather than without.
>>
>> Moreover, you are assuming certain behaviors (e.g., only one installed
>> copy of the software) that are not intrinsic in any of the "here's how
>> to copy the app" suggestions that were made.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android App Developer Books: http://commonsware.com/books
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Ab
I added a log statement into the while loop.  Based on this statement, the 
while loop continues after the UI has frozen.

On Tuesday, 1 May 2012 17:36:25 UTC-4, Mark Murphy (a Commons Guy) wrote:
>
> On Tue, May 1, 2012 at 5:26 PM, abe oppenheim  
> wrote: 
> >> Well, try adding a sleep first and then check your results again. 
> > 
> > Ok, I added Thread.sleep(100) (at the end of every iteration of the 
> while 
> > loop), and I still see the ANR.  Any ideas as to why drawing in a non-ui 
> > thread would cause the UI thread to become stuck? 
>
> In theory, it shouldn't, unless Samsung mucked around with the innards 
> somewhere that they shouldn't have. 
>
> Which, of course, has happened before, with pretty much every OEM out 
> there. 
>
> That being said, nothing from that thread seems to have any visible 
> output -- you're not using the resulting Canvas anywhere that I can 
> see. Is it actually looping on the Note? Or are you hitting some sort 
> of deadlock, where you and the main application thread get stuck? If 
> you don't know, dropping in some Log statements should determine that. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android App Developer Books: http://commonsware.com/books 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 5:26 PM, abe oppenheim  wrote:
>> Well, try adding a sleep first and then check your results again.
>
> Ok, I added Thread.sleep(100) (at the end of every iteration of the while
> loop), and I still see the ANR.  Any ideas as to why drawing in a non-ui
> thread would cause the UI thread to become stuck?

In theory, it shouldn't, unless Samsung mucked around with the innards
somewhere that they shouldn't have.

Which, of course, has happened before, with pretty much every OEM out there.

That being said, nothing from that thread seems to have any visible
output -- you're not using the resulting Canvas anywhere that I can
see. Is it actually looping on the Note? Or are you hitting some sort
of deadlock, where you and the main application thread get stuck? If
you don't know, dropping in some Log statements should determine that.

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

Android App Developer Books: http://commonsware.com/books

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

2012-05-01 Thread ingaponteca
Adding the LogCat and more information with what I am trying to
accomplish.


I am trying to create a web server client in my android application. I
created the web server client using eclipse wizard and I tested as
java application and worked just fine. But When I do same process in
my android project, and after add same jar files and J2SE1.5 just
below the Android 4.0.3 and Android dependencies, the application
compiles but during execution application crash.

Can somebody give me a light of what is possibly happening?

Below the LogCat:

04-30 14:48:33.953: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:33.983: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:34.433: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:34.483: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:34.953: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:34.983: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:35.506: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:35.524: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:36.064: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:36.095: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:36.553: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:36.583: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:37.113: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:37.143: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:37.664: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:37.694: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:38.183: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:38.203: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:38.693: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:38.713: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:39.263: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:39.294: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:39.753: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:39.783: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:40.253: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:40.283: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:40.833: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:40.863: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:41.393: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:41.423: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:41.905: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:41.924: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:42.464: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:42.484: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:43.003: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:43.023: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:43.574: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:43.604: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:48.054: I/Process(975): Sending signal. PID: 975 SIG: 9
04-30 14:49:46.704: I/dalvikvm(1044): threadid=3: reacting to signal 3
04-30 14:49:46.794: I/dalvikvm(1044): Wrote stack traces to '/data/
anr/
traces.txt'
04-30 14:49:47.276: I/dalvikvm(1044): threadid=3: reacting to signal 3
04-30 14:49:47.324: I/dalvikvm(1044): Wrote stack traces to '/data/
anr/
traces.txt'
04-30 14:49:47.733: D/gralloc_goldfish(1044): Emulator without GPU
emulation detected.
04-30 14:49:47.753: I/dalvikvm(1044): threadid=3: reacting to signal 3
04-30 14:49:47.803: I/dalvikvm(1044): Wrote stack traces to '/data/
anr/
traces.txt'
04-30 14:51:37.163: D/dalvikvm(1044): GC_CONCURRENT freed 242K, 4%
free 9262K/9607K, paused 9ms+8ms
04-30 14:51:37.243: D/dalvikvm(1044): GC_FOR_ALLOC freed 148K, 6% free
9300K/9799K, paused 65ms
04-30 14:51:37.243: I/dalvikvm-heap(1044): Grow heap (frag case) to
9.274MB for 131076-byte allocation
04-30 14:51:37.324: D/dalvikvm(1044): GC_FOR_ALLOC freed 4K, 6% free
9423K/9991K, paused 60ms

04-30 14:51:37.843: W/dalvikvm(1044): Unable to resolve superclass of
Lcom/caar/app//interfaces/ws/BanServiceLocator; (154)

04-30 14:51:37.853: W/dalvikvm(1044): Link of class 'Lcom/caar/app/
XX/sessions/interfaces/ws/BanServiceLocator;' failed
04-30 14:51:37.853: E/dalvikvm(1044): Could not find class
'com.caar.app.apisoapconnections.XX.sessions.interfaces.ws.BanServiceLocator',
referenced from method
com.caar.app.apisoapconnections.ConnectToAPI.
04-30 14:51:37.853: W/dalvi

[android-developers] Re: How to use an AIDL across different package names?

2012-05-01 Thread Freddy
No applogies necessary.  Without your insight I might have given up
and coded a less robust solution.  I really appreciate your very
timely and helpful responses.  Keep up the great work!

On May 1, 2:02 pm, Mark Murphy  wrote:
> On Tue, May 1, 2012 at 4:58 PM, Freddy  wrote:
> > Resolved.  This was an issue with Eclipse and how it manages Java
> > packages.
>
> > When adding the AIDL file to Eclipse you must right-click the "src"
> > folder and select New | Package and then add the AIDL file into that
> > package.  I ran into trouble by simply creating the folder structure
> > manually (com\mycompany\myservice) on the file system and then
> > importing into the AIDL via Eclipse.  I simply removed that manual
> > entry, added a new package in Eclipse and Viola!
>
> Yeah, Eclipse sometimes gets cranky when you make changes behind its
> back. I was speaking shorthand when providing the directory structure
> and should have been more clear -- my apologies.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread abe oppenheim
> I find that difficult to believe.

I'm very certain of it.  I tested this Activity on 7 devices.  It
consistently gives the ANR on the Galaxy Note, and runs fine on all the
others.

> Well, try adding a sleep first and then check your results again.

Ok, I added Thread.sleep(100) (at the end of every iteration of the while
loop), and I still see the ANR.  Any ideas as to why drawing in a non-ui
thread would cause the UI thread to become stuck?

On Tue, May 1, 2012 at 5:02 PM, Miguel Morales wrote:

> Well, try adding a sleep first and then check your results again.  You can
> then rule out the CPU consumption there and then.
> Otherwise, it indeed may be a bug.  Perhaps that implementation creates a
> lock or something and lets the UI thread from continuing.
> That is the root of the issue, that the UI thread is not able to delegate
> events and maybe stuck waiting for a lock or executing code.
>
>
> On Tue, May 1, 2012 at 1:52 PM, Mark Murphy wrote:
>
>> Redirecting this private reply back to the list, where it belongs:
>>
>> On Tue, May 1, 2012 at 4:46 PM, Ab  wrote:
>> > My application renders some in a non-ui thread while the user continues
>> to
>> > interact with the UI.
>>
>> That's fine, so long as it does so in such a way as to not hammer the
>> CPU into oblivion. This is why game developers take steps to manage
>> their frame rate.
>>
>> > This simple test Activity mimics this behavior by
>> > creating a thread which continually paints into a Canvas while the user
>> > presses the buttons in the UI.
>> >
>> > This Activity gives an ANR on the Samsung Galaxy Note within 10-30
>> seconds,
>> > but gives no issues on the 6 other devices I tested it on.
>>
>> I find that difficult to believe.
>>
>> > Given that the ANR occurs so quickly, and doesn't occur on other
>> devices, I
>> > don't think the CPU usage is the cause.
>>
>> You are welcome to your opinion.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android App Developer Books: http://commonsware.com/books
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG: http://solrpg.com/,
> http://www.youtube.com/user/revoltingx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] HTML5 Geolocation doesn't work with Android default browser

2012-05-01 Thread James Black
You may want to ask this on stack overflow.com as this forum is for sdk
questions, and your question is html5.
On May 1, 2012 3:39 PM, "Aymeric Raguet"  wrote:

> Hi,
>
> I am having some difficulties with the Geolocation API in Javascript. It works
> very well in the following cases:
> - On a PC with Chrome, Opera and Safari (not tested with IE)
> - On Windows Mobile phone with IE
> - On Android mobile with Opera (not tested on an iPhone)
>
> But it is not working with Firefox on PC and especially with the default
> browser on Android. I have a Samsung Galaxy S LC (equivalent to Galaxy S1)
>
> Here is my code (standard API Geoloc):
>
>> 
>>
>>
>>> We need your location.
>>
>>
>>> 
>>
>> // attempting to retrieve the GPS location
>>
>>
>>> document.write("Trying to retrieve your location");
>>
>>
>>> if(navigator.geolocation){
>>
>> document.write("Geolocation is supported");
>>
>> navigator.geolocation.getCurrentPosition(successCallback, errorCallback,
>>
>>   {
>>
>> enableHighAccuracy : true,
>>
>> timeout : 5000,
>>
>> maximumAge : 0
>>
>>   }
>>
>> );
>>
>>  function successCallback(position){
>>
>> document.write("You have been located. Latitude : " +
>>> position.coords.latitude +", longitude : " + position.coords.longitude);
>>
>> };
>>
>>  function errorCallback(error){
>>
>> document.write("We coulnd't get your location");
>>
>> switch(error.code){
>>
>> case error.PERMISSION_DENIED:
>>
>> document.write("Permission Denied");
>>
>> break;
>>
>> case error.POSITION_UNAVAILABLE:
>>
>> document.write("Position unavailable");
>>
>> break;
>>
>> case error.TIMEOUT:
>>
>> document.write("Timeout");
>>
>> break;
>>
>> case error.UNKNOW_ERROR:
>>
>> document.write("Unknown error");
>>
>> break;
>>
>> }
>>
>> }
>>
>> }
>>
>> else{
>>
>> document.write("La géolocalisation n'est pas supportée par le
>>> navigateur");
>>
>> }
>>
>>
>>>
>>>
>>>
>>> 
>>
>>
>>> 
>>
>>
> What's going on with the Android default browser:
> 1. The following messages appear:
> " Trying to retrieve your location "
> "Geolocation is supported"
> 2. After the time specified by the timeout (10s here) the page becomes all
> white.
> The functions sucessCallback or errorCallback are not called.
>
> I then tried trough a Webview but it does the same.
>
> Thank you very much 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

[android-developers] How to call a WebService from an Android Application

2012-05-01 Thread ingaponteca
Hi... I am trying to do same thing that you but without success. Could
you did the import of a web service client in your android project?

I got same java.lang.NoClassDefFoundError.

I am stuck. Any help is welcome. I really need to use a client because
my company already has services in a web 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


Re: [android-developers] Re: How to use an AIDL across different package names?

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 4:58 PM, Freddy  wrote:
> Resolved.  This was an issue with Eclipse and how it manages Java
> packages.
>
> When adding the AIDL file to Eclipse you must right-click the "src"
> folder and select New | Package and then add the AIDL file into that
> package.  I ran into trouble by simply creating the folder structure
> manually (com\mycompany\myservice) on the file system and then
> importing into the AIDL via Eclipse.  I simply removed that manual
> entry, added a new package in Eclipse and Viola!

Yeah, Eclipse sometimes gets cranky when you make changes behind its
back. I was speaking shorthand when providing the directory structure
and should have been more clear -- my apologies.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
Well, try adding a sleep first and then check your results again.  You can
then rule out the CPU consumption there and then.
Otherwise, it indeed may be a bug.  Perhaps that implementation creates a
lock or something and lets the UI thread from continuing.
That is the root of the issue, that the UI thread is not able to delegate
events and maybe stuck waiting for a lock or executing code.

On Tue, May 1, 2012 at 1:52 PM, Mark Murphy  wrote:

> Redirecting this private reply back to the list, where it belongs:
>
> On Tue, May 1, 2012 at 4:46 PM, Ab  wrote:
> > My application renders some in a non-ui thread while the user continues
> to
> > interact with the UI.
>
> That's fine, so long as it does so in such a way as to not hammer the
> CPU into oblivion. This is why game developers take steps to manage
> their frame rate.
>
> > This simple test Activity mimics this behavior by
> > creating a thread which continually paints into a Canvas while the user
> > presses the buttons in the UI.
> >
> > This Activity gives an ANR on the Samsung Galaxy Note within 10-30
> seconds,
> > but gives no issues on the 6 other devices I tested it on.
>
> I find that difficult to believe.
>
> > Given that the ANR occurs so quickly, and doesn't occur on other
> devices, I
> > don't think the CPU usage is the cause.
>
> You are welcome to your opinion.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 use an AIDL across different package names?

2012-05-01 Thread Freddy
Resolved.  This was an issue with Eclipse and how it manages Java
packages.

When adding the AIDL file to Eclipse you must right-click the "src"
folder and select New | Package and then add the AIDL file into that
package.  I ran into trouble by simply creating the folder structure
manually (com\mycompany\myservice) on the file system and then
importing into the AIDL via Eclipse.  I simply removed that manual
entry, added a new package in Eclipse and Viola!

Java (and Eclipse) are not my primary development areas so this might
be obvious to some people. It was not obvious to me ... I posted here
in hope this will benefit others.

On May 1, 12:31 pm, Mark Murphy  wrote:
> On Tue, May 1, 2012 at 3:21 PM, Freddy  wrote:
> > Thanks Mark.  I appreciate you confirming that this design is
> > possible.  I hoped/assumed it would be similar to other languages and
> > platforms.  Java/Android is not my primary development platform so I
> > appreciate your assistance letting me know I'm heading in the right
> > direction.  The "cannot be resolved to a type" and "does not match the
> > expected package" errors I've been getting must be due to some other
> > issue how my project is setup.  I'll work through those since the
> > design is valid.
>
> https://github.com/commonsguy/cw-advandroid/tree/master/AdvServices
>
> That directory contains some samples of remote services. The
> directories pair up by name (RemoteClient to RemoteService,
> RemoteClientEx to RemoteServiceEx, etc.).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Mark Murphy
Redirecting this private reply back to the list, where it belongs:

On Tue, May 1, 2012 at 4:46 PM, Ab  wrote:
> My application renders some in a non-ui thread while the user continues to
> interact with the UI.

That's fine, so long as it does so in such a way as to not hammer the
CPU into oblivion. This is why game developers take steps to manage
their frame rate.

> This simple test Activity mimics this behavior by
> creating a thread which continually paints into a Canvas while the user
> presses the buttons in the UI.
>
> This Activity gives an ANR on the Samsung Galaxy Note within 10-30 seconds,
> but gives no issues on the 6 other devices I tested it on.

I find that difficult to believe.

> Given that the ANR occurs so quickly, and doesn't occur on other devices, I
> don't think the CPU usage is the cause.

You are welcome to your opinion.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Ab
As suspicious as it may look, I think it is very unlikely that the ANR is 
due too the infinite loop, and far more likely due to some issue with 
drawing into a Canvas on the a non-ui thread on the Galaxy Note.  I believe 
this because the ANR does not occur if I remove the line 
"canvas.scale(.36f, .36f)".

On Tuesday, 1 May 2012 16:44:18 UTC-4, Miguel Morales wrote:
>
> Also, if you have a very tight infinite loop.  The scheduler won't know 
> that there's a break for the processor so that it can do other things.  You 
> may also want to add a Thread.sleep() call.
>
> On Tue, May 1, 2012 at 1:43 PM, Miguel Morales wrote:
>
>> You may want to try lowering the priority of the thread and seeing what 
>> happens.
>>
>>
>>
>> On Tue, May 1, 2012 at 1:33 PM, Justin Anderson wrote:
>>
>>> Because it demonstrates the issue.  

>>> I highly doubt it...  Your app creates a thread that runs forever and 
>>> doesn't do anything?  Sounds like you have a bug...
>>>
>>>
>>> Thanks,
>>> Justin Anderson
>>> MagouyaWare Developer
>>> http://sites.google.com/site/magouyaware
>>>
>>>
>>> On Tue, May 1, 2012 at 2:27 PM, Ab  wrote:
>>>
 Because it demonstrates the issue.  
>>>
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>
>>
>> -- 
>> ~ Jeremiah:9:23-24
>> Android 2D MMORPG: http://solrpg.com/, 
>> http://www.youtube.com/user/revoltingx
>>  
>
>
>
> -- 
> ~ Jeremiah:9:23-24
> Android 2D MMORPG: http://solrpg.com/, 
> http://www.youtube.com/user/revoltingx
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
Also, if you have a very tight infinite loop.  The scheduler won't know
that there's a break for the processor so that it can do other things.  You
may also want to add a Thread.sleep() call.

On Tue, May 1, 2012 at 1:43 PM, Miguel Morales wrote:

> You may want to try lowering the priority of the thread and seeing what
> happens.
>
>
>
> On Tue, May 1, 2012 at 1:33 PM, Justin Anderson wrote:
>
>> Because it demonstrates the issue.
>>>
>> I highly doubt it...  Your app creates a thread that runs forever and
>> doesn't do anything?  Sounds like you have a bug...
>>
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Tue, May 1, 2012 at 2:27 PM, Ab  wrote:
>>
>>> Because it demonstrates the issue.
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG: http://solrpg.com/,
> http://www.youtube.com/user/revoltingx
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Miguel Morales
You may want to try lowering the priority of the thread and seeing what
happens.



On Tue, May 1, 2012 at 1:33 PM, Justin Anderson wrote:

> Because it demonstrates the issue.
>>
> I highly doubt it...  Your app creates a thread that runs forever and
> doesn't do anything?  Sounds like you have a bug...
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 2:27 PM, Ab  wrote:
>
>> Because it demonstrates the issue.
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Ab
As state in my original post, this simplified Activity mimics some behavior 
in my application: a Bitmap is rendered in a non-ui thread, while the user 
interacts with the UI, producing an ANR on the Samsung Note, but not on any 
other device.  The infinite loop helps to demonstrate this behavior.

On Tuesday, 1 May 2012 16:17:46 UTC-4, MagouyaWare wrote:
>
> while (1!= 0)
>>
> And why in the world would you want an infinite loop?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 2:15 PM, Justin Anderson wrote:
>
>> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas 
>>> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor 
>>> the method call effect the UI.
>>>
>>
>> Ah, ok... I see that now.  Um... maybe I'm missing something, but what is 
>> the point of doing this?  What exactly are you trying to accomplish?
>>
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Tue, May 1, 2012 at 1:35 PM, Ab  wrote:
>>
>>> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas 
>>> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor 
>>> the method call effect the UI.
>>>
>>>
>>> On Tuesday, 1 May 2012 15:25:34 UTC-4, MagouyaWare wrote:
>>>
 the thread rendering off the UI thread doesn't touch/modify/update the 
> UI
>

 Then would you mind explaining this?

> It then starts a new thread which renders a Bitmap into a canvas
>


  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Justin Anderson
>
> Because it demonstrates the issue.
>
I highly doubt it...  Your app creates a thread that runs forever and
doesn't do anything?  Sounds like you have a bug...

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


On Tue, May 1, 2012 at 2:27 PM, Ab  wrote:

> Because it demonstrates the issue.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 4:27 PM, Ab  wrote:
> Because it demonstrates the issue.

The issue being that you are chewing up the CPU and starving the main
application thread? That issue?

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

Android App Developer Books: http://commonsware.com/books

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

2012-05-01 Thread Kristopher Micinski
The command line tool 'dx' does this.

Type in 'dx --help' to find out how to use it.

kris

On Tue, May 1, 2012 at 4:37 AM, Prathwish Mestha  wrote:
> Hello everyone,
>                               I decompiled a .dex file to .jar using
> dex2jar and now I want compile it back to a .dex file but I dont know
> how to do so can anyone please help me.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Ab
Because it demonstrates the issue.  

On Tuesday, 1 May 2012 16:17:46 UTC-4, MagouyaWare wrote:
>
> while (1!= 0)
>>
> And why in the world would you want an infinite loop?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 2:15 PM, Justin Anderson wrote:
>
>> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas 
>>> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor 
>>> the method call effect the UI.
>>>
>>
>> Ah, ok... I see that now.  Um... maybe I'm missing something, but what is 
>> the point of doing this?  What exactly are you trying to accomplish?
>>
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Tue, May 1, 2012 at 1:35 PM, Ab  wrote:
>>
>>> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas 
>>> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor 
>>> the method call effect the UI.
>>>
>>>
>>> On Tuesday, 1 May 2012 15:25:34 UTC-4, MagouyaWare wrote:
>>>
 the thread rendering off the UI thread doesn't touch/modify/update the 
> UI
>

 Then would you mind explaining this?

> It then starts a new thread which renders a Bitmap into a canvas
>


  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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: Google I/O device in reboot loop.

2012-05-01 Thread Streets Of Boston
Enjoy your 'new' tablet.

You were kind-of lucky. :)
A factory reset didn't work for me. Only a fresh flash would do the trick 
(which had to be done by Samsung).

On Tuesday, May 1, 2012 4:02:17 PM UTC-4, Nathan wrote:
>
> I managed to do a factory reset with the help of Samsung over the 
> phone so I didn't have to mail it in. It is good as new - literally 
> since my internal storage was wiped too. 
>
> Nathan 
>
>

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

Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Justin Anderson
>
> while (1!= 0)
>
And why in the world would you want an infinite loop?

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


On Tue, May 1, 2012 at 2:15 PM, Justin Anderson wrote:

> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas
>> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor
>> the method call effect the UI.
>>
>
> Ah, ok... I see that now.  Um... maybe I'm missing something, but what is
> the point of doing this?  What exactly are you trying to accomplish?
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 1:35 PM, Ab  wrote:
>
>> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas
>> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor
>> the method call effect the UI.
>>
>>
>> On Tuesday, 1 May 2012 15:25:34 UTC-4, MagouyaWare wrote:
>>
>>> the thread rendering off the UI thread doesn't touch/modify/update the UI

>>>
>>> Then would you mind explaining this?
>>>
 It then starts a new thread which renders a Bitmap into a canvas

>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Justin Anderson
>
> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas
> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor
> the method call effect the UI.
>

Ah, ok... I see that now.  Um... maybe I'm missing something, but what is
the point of doing this?  What exactly are you trying to accomplish?

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


On Tue, May 1, 2012 at 1:35 PM, Ab  wrote:

> I'm sorry if the code isn't clear.  The new thread instantiates a Canvas
> and paints into it with Canvas.drawBitmap().  Neither the instantiation nor
> the method call effect the UI.
>
>
> On Tuesday, 1 May 2012 15:25:34 UTC-4, MagouyaWare wrote:
>
>> the thread rendering off the UI thread doesn't touch/modify/update the UI
>>>
>>
>> Then would you mind explaining this?
>>
>>> It then starts a new thread which renders a Bitmap into a canvas
>>>
>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Fitting image to a screen

2012-05-01 Thread Mohamed ElSanousi
Okay I will try doing that. Thanks

On Tue, May 1, 2012 at 11:59 PM, Justin Anderson wrote:

> Oh okay. The other problem is that I need to take a picture sideways so
>> that when I load it will be in an upright position. When I capture an image
>> in an upright position, then load it sideways..
>>
> Why not just provide the ability for the user to rotate the image?
>
>
> This is becoming very hectic, why is that hard to deal with pictures??
>>
> Because this is programming, not magic.  Programming is all about solving
> difficult problems...
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 1:56 PM, Mohamed ElSanousi wrote:
>
>> Oh okay. The other problem is that I need to take a picture sideways so
>> that when I load it will be in an upright position. When I capture an image
>> in an upright position, then load it sideways..
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] auto-rotate screen

2012-05-01 Thread Justin Anderson
A simple Google search would give you many results as well...
http://lmgtfy.com/?q=android+lock+app+orientation

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


On Tue, May 1, 2012 at 2:01 PM, Mark Murphy  wrote:

> Add android:screenOrientation="portrait" to the  in the manifest:
>
>
> http://developer.android.com/guide/topics/manifest/activity-element.html#screen
>
> On Tue, May 1, 2012 at 4:00 PM, baturanija1
>  wrote:
> > people, is there an option to disable auto-rotation of screen?? i am
> > making app and whant only portal view...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
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Google I/O device in reboot loop.

2012-05-01 Thread Nathan
I managed to do a factory reset with the help of Samsung over the
phone so I didn't have to mail it in. It is good as new - literally
since my internal storage was wiped too.

Nathan

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


Re: [android-developers] auto-rotate screen

2012-05-01 Thread Mark Murphy
Add android:screenOrientation="portrait" to the  in the manifest:

http://developer.android.com/guide/topics/manifest/activity-element.html#screen

On Tue, May 1, 2012 at 4:00 PM, baturanija1
 wrote:
> people, is there an option to disable auto-rotation of screen?? i am
> making app and whant only portal view...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



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

Android App Developer Books: http://commonsware.com/books

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

2012-05-01 Thread baturanija1
people, is there an option to disable auto-rotation of screen?? i am
making app and whant only portal view...thanks

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


Re: [android-developers] Fitting image to a screen

2012-05-01 Thread Justin Anderson
>
> Oh okay. The other problem is that I need to take a picture sideways so
> that when I load it will be in an upright position. When I capture an image
> in an upright position, then load it sideways..
>
Why not just provide the ability for the user to rotate the image?

This is becoming very hectic, why is that hard to deal with pictures??
>
Because this is programming, not magic.  Programming is all about solving
difficult problems...

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


On Tue, May 1, 2012 at 1:56 PM, Mohamed ElSanousi wrote:

> Oh okay. The other problem is that I need to take a picture sideways so
> that when I load it will be in an upright position. When I capture an image
> in an upright position, then load it sideways..

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

2012-05-01 Thread Justin Anderson
Software piracy is, simply put, the unauthorized copying of software...
So, if copying it to put it on the emulator is not authorized by the
developer, then that is piracy.

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


On Tue, May 1, 2012 at 1:54 PM, Mark Murphy  wrote:

> On Tue, May 1, 2012 at 2:26 PM, Samuel 
> wrote:
> > That's not software piracy.
> > If you have paid for a copy of the software, it doesn't matter which
> > machine you choose to run it on.
>
> You are welcome to your opinion. The authors of the software in
> question (who are the ones determining the nature of the software
> license), and the legal systems with relevant jurisdiction, may
> disagree with you. This is why I suggested the OP contact the
> developers of the software in question, to try to obtain a copy with
> permission, rather than without.
>
> Moreover, you are assuming certain behaviors (e.g., only one installed
> copy of the software) that are not intrinsic in any of the "here's how
> to copy the app" suggestions that were made.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Fitting image to a screen

2012-05-01 Thread Mohamed ElSanousi
 Oh okay. The other problem is that I need to take a picture sideways so
that when I load it will be in an upright position. When I capture an image
in an upright position, then load it sideways.. This is becoming very
hectic, why is that hard to deal with pictures??
 Thanks

On Tue, May 1, 2012 at 11:42 PM, Justin Anderson wrote:

> The returned pictured is stretched.
>>
> But it now fits the screen?  If you want the image to take up the whole
> screen and the aspect ratio of the image doesn't exactly match the aspect
> ratio of the image then it is going to get stretched.  There is no way
> around that if you are dead set on making the image fit the device's screen.
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 1, 2012 at 1:35 PM, Mohamed ElSanousi wrote:
>
>>
>>  The returned pictured is stretched.
>>
>>
>>
>>
>> On Tue, May 1, 2012 at 11:04 PM, Justin Anderson 
>> wrote:
>>
>>> What do you mean by distorted?
>>> On May 1, 2012 12:41 PM, "Mohamed ElSanousi" 
>>> wrote:
>>>
 I'm doing a facial parameter software that doctors could use to extract
 angles and ratios of the nose. This is what i have so far, I even tried to
 rotate the picture and still the returned image is distorted.

  Code:

  Bitmap b = BitmapFactory.decodeFile(getIntent().getStringExtra(
 "imagePath"));

 float rotation = (float) this.getIntent().getFloatExtra(
 "resource", 0);





 DisplayMetrics displayMetrics = new DisplayMetrics();

 WindowManager wm = (WindowManager)
 getApplicationContext().getSystemService(Context.WINDOW_SERVICE); //
 the results will be higher than using the activity context object or the
 getWindowManager() shortcut

 wm.getDefaultDisplay().getMetrics(displayMetrics);

 int screenWidth = displayMetrics.widthPixels;

 int screenHeight = displayMetrics.heightPixels;



 Matrix matrix = new Matrix();

// float rotation =
 PhotoTaker.rotationForImage(this.getApplicationContext(), uri);

 if (rotation != 0f) {

  matrix.preRotate(rotation);

 }



 Bitmap scaled = Bitmap.createBitmap(b, 0, 0, b.getWidth(),
 b.getHeight(), matrix, true);



 //b.createScaledBitmap(b, 320, 480, true);



 n.setBackGround(scaled,screenWidth,screenHeight);



 //preview.setImageBitmap(b);

 setContentView(n);

 On Tue, May 1, 2012 at 2:18 AM, Jim Graham wrote:

> One point here:  the assumption I'm making is that this is for a
> wallpaper.
>
> On Mon, Apr 30, 2012 at 03:46:37PM -0600, Justin Anderson wrote:
> > >
> > > And if you're about to question that, I got this directly from
> Dianne
> > > Hackborn in a thread I
> > > started over a year ago (maybe two...I'm not even sure now).
> > >
> > Do you happen to have a link to said thread?
>
> If I did, don't you think I'd be able to say how long ago it was?  ;-}
> But given the source of the information---direct from one of THE
> Android developers (as in, the platform itself), I think it's safe to
> say that you're nuts if you don't listen to what she said.
>
> > I have done image scaling before and have never run into this... My
> > constraints were slightly different though... I simply scaled the
> image
> > so that it was as large as possible while maintaining the aspect
> > ration.
>
> Yeah, and I tried all of that stuff, tooand no matter what, it kept
> getting stretched off-screen when you set it as wallpaper.
>
> > On Mon, Apr 30, 2012 at 3:26 PM, Mohamed ElSanousi <
> mmurtad...@gmail.com>wrote:
> > >
> > >  Your joking, my whole project is depending. I need to resize this
> bitmap
> > > to fit the screen size, because I want to do calculation on the
> picture :(
>
> Wait a second...is this for a wallpaper (or lwp)?  Or are you just
> trying
> to set an ImageView to full screen?  If the former, no, you can't do
> it.
> If the latter, RTFM (http://developer.android.com/guide/index.html).
> That's so simple I never even considered that that's what you were
> asking.  And you don't need to calculate the screen size or anything to
> do that.  Just the right settings (in XML and maybe also in Java) for
> an
> ImageView.
>
> Later,
>   --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)| "> There it was, right in the title bar:
> spooky1...@gmail.com|  > Microsoft Operations POS."
> < Running FreeBSD 7.0 > |
> ICBM / Hurricane:   | "Never before has a TLA been so appropriately
>   30.4440

Re: [android-developers] code for read n write

2012-05-01 Thread Justin Anderson
>
> i am trying to develop an application for creating a new file in sd
> card and then reading the content of the file in my application..
> but am gettin 'permission denied' message in my application
>

Gee, that sucks.  Have you heard of this nifty little thing called Google?
Try it sometime... it can get addicting:
http://lmgtfy.com/?q=android+permission+denied+write+to+sdcard

can anyone post the complete code for reading and writting the files
> in sd card?
>
No, sorry...

And i also want the code for its read and write permission in manifest
> file
>
Again... GOOGLE it yourself!

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


On Mon, Apr 30, 2012 at 7:22 AM, pats  wrote:

> i am trying to develop an application for creating a new file in sd
> card and then reading the content of the file in my application..
> but am gettin 'permission denied' message in my application
>

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

2012-05-01 Thread Mark Murphy
On Tue, May 1, 2012 at 2:26 PM, Samuel  wrote:
> That's not software piracy.
> If you have paid for a copy of the software, it doesn't matter which
> machine you choose to run it on.

You are welcome to your opinion. The authors of the software in
question (who are the ones determining the nature of the software
license), and the legal systems with relevant jurisdiction, may
disagree with you. This is why I suggested the OP contact the
developers of the software in question, to try to obtain a copy with
permission, rather than without.

Moreover, you are assuming certain behaviors (e.g., only one installed
copy of the software) that are not intrinsic in any of the "here's how
to copy the app" suggestions that were made.

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

Android App Developer Books: http://commonsware.com/books

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

2012-05-01 Thread Justin Anderson
>
> I think you're looking for the Application class:
> http://developer.android.com/reference/android/app/Application.html
>
You have to write a class that extends Application, add a name field in the
> manifest.xml file, then you can access an instance of your Application
> sub-class from any activity of your app with Activity.getApplication().
>

Except that Dianne Hackborne, one of the Android Framework engineers, has
consistently argued that you usually are better off just using a Singleton
because it gives you all of the same benefits but has more flexibility.

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


On Mon, Apr 30, 2012 at 8:57 AM, Paul v  wrote:

> I think you're looking for the Application class:
> http://developer.android.com/reference/android/app/Application.html
>
> You have to write a class that extends Application, add a name field in
> the manifest.xml file, then you can access an instance of your Application
> sub-class from any activity of your app with Activity.getApplication().
>
>
> On Monday, April 30, 2012 9:33:30 AM UTC-5, baturanija1 wrote:
>>
>> hey people, i am trying to make "mute" button on my app,that could
>> sound-off\on sounds in app-such as ,sound of click,could of some
>> prezentation.. is there any option that i can declare public variable-
>> such as int,and to be seen in other class in my other activity.When i
>> open new item,i what to information of that variable can be seen in
>> othet itents...Any ides,,,i tried to google but did not
>> manage...Thanks for share :)
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] compile decompiled .jar files back to .dex

2012-05-01 Thread Prathwish Mestha
Hello everyone,
   I decompiled a .dex file to .jar using
dex2jar and now I want compile it back to a .dex file but I dont know
how to do so can anyone please help me.

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


[android-developers] Re: To write array data to serial port in ascii

2012-05-01 Thread Dan
In the first array you are using characters i.e. actual ascii.  In the 
second you are using integer values which are not equivalent to ascii 
values so if you actually want to see "10" show up on your screen and not 
the ascii value for byte 10 then you would have to send it as {49, 48}


On Wednesday, April 4, 2012 7:58:41 AM UTC-4, srinivasan shanmugam wrote:
>
> Dear All,
>
> As am new to this Java/android development, I'm using Android device to 
> transmit array data.  I want  my results to be displayed on a PC terminal 
> program using hyper terminal.   
>
>  If I send ASCII characters such as 'a' 'b' 'c' 'd' ... etc, then my JAVA 
> program displays those characters on screen with out any problem.  So i 
> know that my JAVA program does receive from the serial port and does 
> work... but only for ASCII characters though. 
>
> Below is the code snippet of the JAVA code which actually receives data 
> via serial port and displays it on screen when declared array as character 
> by character.  
>
> public final static byte[] buffer_RFID = 
> {'A','D','4','9','8','6','5','2','3'};
>
>
>  try {
>  mOutputStream.write(buffer_RFID,0,buffer_RFID.length);
>  } catch (IOException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
> But when I declare the array as below am not able to see the values as 10, 
> 20, 30, 40 in the hyperterminal through serial port
>
> public final static byte[] buffer_RFID = {10,20,30,40};
>
>  try {
>  mOutputStream.write(buffer_RFID,0,buffer_RFID.length);
>  } catch (IOException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> Please can someone look at it and kindly suggest why can i not print the 
> ASCII values on screen, could any body please suggest me with any 
> corrections to be done in the above code so that what ever the array 
> contents gets displayed as it is in hyper terminal through serial port
>
>
> Any help would be greatly appreciated
>
>
> Advanced thanks,
> Srinivasan S
>
>

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

2012-05-01 Thread Justin Anderson
>
> The returned pictured is stretched.
>
But it now fits the screen?  If you want the image to take up the whole
screen and the aspect ratio of the image doesn't exactly match the aspect
ratio of the image then it is going to get stretched.  There is no way
around that if you are dead set on making the image fit the device's screen.

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


On Tue, May 1, 2012 at 1:35 PM, Mohamed ElSanousi wrote:

>
>  The returned pictured is stretched.
>
>
>
>
> On Tue, May 1, 2012 at 11:04 PM, Justin Anderson wrote:
>
>> What do you mean by distorted?
>> On May 1, 2012 12:41 PM, "Mohamed ElSanousi" 
>> wrote:
>>
>>> I'm doing a facial parameter software that doctors could use to extract
>>> angles and ratios of the nose. This is what i have so far, I even tried to
>>> rotate the picture and still the returned image is distorted.
>>>
>>>  Code:
>>>
>>>  Bitmap b = BitmapFactory.decodeFile(getIntent().getStringExtra(
>>> "imagePath"));
>>>
>>> float rotation = (float) this.getIntent().getFloatExtra(
>>> "resource", 0);
>>>
>>>
>>>
>>>
>>>
>>> DisplayMetrics displayMetrics = new DisplayMetrics();
>>>
>>> WindowManager wm = (WindowManager)
>>> getApplicationContext().getSystemService(Context.WINDOW_SERVICE); //
>>> the results will be higher than using the activity context object or the
>>> getWindowManager() shortcut
>>>
>>> wm.getDefaultDisplay().getMetrics(displayMetrics);
>>>
>>> int screenWidth = displayMetrics.widthPixels;
>>>
>>> int screenHeight = displayMetrics.heightPixels;
>>>
>>>
>>>
>>> Matrix matrix = new Matrix();
>>>
>>>// float rotation =
>>> PhotoTaker.rotationForImage(this.getApplicationContext(), uri);
>>>
>>> if (rotation != 0f) {
>>>
>>>  matrix.preRotate(rotation);
>>>
>>> }
>>>
>>>
>>>
>>> Bitmap scaled = Bitmap.createBitmap(b, 0, 0, b.getWidth(),
>>> b.getHeight(), matrix, true);
>>>
>>>
>>>
>>> //b.createScaledBitmap(b, 320, 480, true);
>>>
>>>
>>>
>>> n.setBackGround(scaled,screenWidth,screenHeight);
>>>
>>>
>>>
>>> //preview.setImageBitmap(b);
>>>
>>> setContentView(n);
>>>
>>> On Tue, May 1, 2012 at 2:18 AM, Jim Graham  wrote:
>>>
 One point here:  the assumption I'm making is that this is for a
 wallpaper.

 On Mon, Apr 30, 2012 at 03:46:37PM -0600, Justin Anderson wrote:
 > >
 > > And if you're about to question that, I got this directly from
 Dianne
 > > Hackborn in a thread I
 > > started over a year ago (maybe two...I'm not even sure now).
 > >
 > Do you happen to have a link to said thread?

 If I did, don't you think I'd be able to say how long ago it was?  ;-}
 But given the source of the information---direct from one of THE
 Android developers (as in, the platform itself), I think it's safe to
 say that you're nuts if you don't listen to what she said.

 > I have done image scaling before and have never run into this... My
 > constraints were slightly different though... I simply scaled the
 image
 > so that it was as large as possible while maintaining the aspect
 > ration.

 Yeah, and I tried all of that stuff, tooand no matter what, it kept
 getting stretched off-screen when you set it as wallpaper.

 > On Mon, Apr 30, 2012 at 3:26 PM, Mohamed ElSanousi <
 mmurtad...@gmail.com>wrote:
 > >
 > >  Your joking, my whole project is depending. I need to resize this
 bitmap
 > > to fit the screen size, because I want to do calculation on the
 picture :(

 Wait a second...is this for a wallpaper (or lwp)?  Or are you just
 trying
 to set an ImageView to full screen?  If the former, no, you can't do it.
 If the latter, RTFM (http://developer.android.com/guide/index.html).
 That's so simple I never even considered that that's what you were
 asking.  And you don't need to calculate the screen size or anything to
 do that.  Just the right settings (in XML and maybe also in Java) for an
 ImageView.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| "> There it was, right in the title bar:
 spooky1...@gmail.com|  > Microsoft Operations POS."
 < Running FreeBSD 7.0 > |
 ICBM / Hurricane:   | "Never before has a TLA been so appropriately
   30.44406N 86.59909W  |  mis-parsed." (alt.sysadmin.recovery)

 Android Apps Listing at http://www.jstrack.org/barcodes.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://

[android-developers] Extracting XML file from Android mobile phone

2012-05-01 Thread jamow_o...@hotmail.co.uk
Hey there, im trying to create a windows application in C# that allows
me to extract an XML file. Its for my level 3 project at university,
im trying to demonstrate how basic information can be obtained from a
computer forensics point of view. But, im struggling to read anything
on this topic or find example code to work with.

Any help would be much appreciated

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


Re: [android-developers] R.java can not be found on NEW project with NO errors

2012-05-01 Thread Mark Murphy
Check the gen/ directory of your project. There are three possibilities:

1. There is nothing there. In that case, you have an error in a
resource or in your manifest that is causing the problem. Sometimes, I
find it easier to track these down by doing a command-line build with
Ant, but that may just be me.

2. There is an R.java file there, but it is not in the package you
think it should be. The package used for R.java is the one declared in
the  element of your AndroidManifest.xml file. If your code
is in a different package, you will need to manually add the import
statement.

3. There is the R.java file, and it is in the correct package, in
which case something else is wrong, perhaps in your activity.

On Tue, May 1, 2012 at 12:00 PM, CaptAscii  wrote:
> I am using Eclipse Indigo on Linux 11.10 and using SDK 4.0.3.
>
> I created a new android project, and it complains R could not be
> resolved in the onCreate method. The Android.R package is NOT
> included, as some have suggest it would cover it. On Linux, the
> Android SDK folder has full permissions (chmod 777).
>
> I looked through all my files and could not find any errors.
>
> Does anyone have any ideas?
>
> Thanks.
>
> CaptAscii
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Dalvikvm exception instantiating org.apache.http.entity.mime.content.FileBody

2012-05-01 Thread Slawomir Krupa
Hi Dennis, 
Can you please describe what you have done because I have the very same 
problem. I tried to embbed source code but it didnt work. What did you do 
with annotations i.e. @ThredSafe ect. Can you post printscreen from your 
project showing where exacly you put source code? 
Thank you  

W dniu wtorek, 10 kwietnia 2012 13:49:38 UTC+1 użytkownik DennisG napisał:
>
> Hi, 
>
> I used to use org.apache.http.entity.mime.content.FileBody 
> with org.apache.http.entity.mime.MultipartEntity sending files to server 
> before. Suddenly I got a problem when upgrated to Android SDK ver 17th. 
> Program is still compiled and started, but when it tries to 
> instantiate org.apache.http.entity.mime.content.FileBody class it raises 
> the following exception:
>
> 04-10 11:35:43.385: E/dalvikvm(457): Could not find class 
> 'org.apache.http.entity.mime.content.FileBody', referenced from method 
> com.leadertask.todo.android.service.LTSyncHandler$UploadSyncFileAsync.doInBackground
> 04-10 11:35:43.385: W/dalvikvm(457): VFY: unable to resolve new-instance 
> 818 (Lorg/apache/http/entity/mime/content/FileBody;) in 
> Lcom/leadertask/todo/android/service/LTSyncHandler$UploadSyncFileAsync;
>
> I tried different versions of httpmimeXXX.jar but problem persists. Funny 
> thing is that org.apache.http.entity.mime.content.StringBody and other 
> classes from this library work fine. I guess that there is some conflict.
> When compiled on older version of Android SDK (ver 16) - everythihg works 
> smoothly. So now I keeping old version of SDK on my backup laptop to 
> compile this project. 
>
> Could enyone to explain me please how can I solve this annoying problem?
>
> Regards, Dennis.
>

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

[android-developers] Need code to Upload photos to picasa from android

2012-05-01 Thread test
Hi
I would like to develop simple android application it need to upload
photos to picasa.i could not download full code from
google.developer.com.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] code for read n write

2012-05-01 Thread pats
i am trying to develop an application for creating a new file in sd
card and then reading the content of the file in my application..
but am gettin 'permission denied' message in my application
can anyone post the complete code for reading and writting the files
in sd card?
And i also want the code for its read and write permission in manifest
file

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

2012-05-01 Thread Bunty
I  am creating a ListView using customized TextView, as shown below:

list_item.xml file:


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:textSize="16sp"
android:background="#ff"
android:textColor="#00">

Activity file extending ListActivity:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setListAdapter(new ArrayAdapter(this, R.layout.list_item,
COUNTRIES));

Normally we use this code for multiple list item selection:

setListAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_item_multiple_choice,
hometown));

But I have changed the 2nd argument of ArrayAdapter to my customized
TextView, hence i dont understand where to put the option for multiple
choice of list items.

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] Re: recognition and speech recognition

2012-05-01 Thread venkat v
Hello. 'm aslo trying similar thing. 've u succeeded in speech recognition?

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

2012-05-01 Thread uttam agarwal
Hi All,

Is it possible to block outgoing SMS in android?

Regards,
Uttam Agarwal

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 detect and connect Bluetooth headset using Android code

2012-05-01 Thread Uday Wad
I would like to identify Bluetooth headset and connect it via my
android code can you 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] algorithm data synchronization (SQLite to Online Database)

2012-05-01 Thread Diogo Ribeiro
I think that WebService would be the best way

2012/4/28 Thiago Ventura 

> I am making a app that need synchronize data with a online server. What do
> the best way to make?
>
> I thought at create a database local (SQLite) that will synchronize with a
> online database server with structure equals. Would be best online XML or
> online database?
>
> Other question is if exists any algorithm known of data synchronization.
> Exists?
>
> --
> Thiago C. S. Ventura
>
> *P*  Antes de imprimir esse e-mail, pense em seu compromisso com o* Meio
> Ambiente*. Verifique se o equipamento possui recursos como impressão
> frente e verso e dê preferência a impressão em modo monocromático.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Diogo Ribeiro
@diogoribeiro 
Bacharelando em Engenharia de Software - UFG

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

2012-05-01 Thread Samuel

That's not software piracy.
If you have paid for a copy of the software, it doesn't matter which
machine you choose to run it on.

On May 1, 10:40 am, Mark Murphy  wrote:
> On Tue, May 1, 2012 at 10:30 AM, blake  wrote:
> > I seldom argue w/Mark... but in this case I think there is a way to do
> > this.  The application you've downloaded is in the directory /data/app
> > on the device to which you downloaded it.  Use "adb pull" to copy the
> > file to your dev machine.  Now use "adb install" to push it to your
> > emulator.  Bam!  Bob's your uncle...
>
> This is called "software piracy".
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

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

2012-05-01 Thread RyunixRyan
Dear expert,
My android application update does not auto applied to most of our
client applications.

Can anyone shed some light to it ?

Below are some details of my apps.
1. Built specially for 1 customer
2. Does not restrict device

Please understand that I am aware of of the following
1. Change of access grant will need manual update
2. Need to un-tick the update only on wifi at the google play setting

The most recent update which I uploaded was downloaded automatically
to 2units but not to another , despite the fact that al, the 3 devices
are same device,same android version , and same network. This really
cause a lot of problem on to me, any help or device will be greatly
appreciated.

Thanks

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


Re: [android-developers] Re: Strange force close on Froyo phone, works fine on ICS tablet

2012-05-01 Thread Zy Z
30.44406N 86.59909W
在 2012-4-30 上午3:14,"Jim Graham" 写道:

> On Sun, Apr 29, 2012 at 12:04:01PM -0700, Jonathan S wrote:
> > java.lang.NoSuchFieldError: android.graphics.PorterDuff$Mode.ADD
> >
> > it is telling Mode.ADD is not exists in 2.2
>
> Hm, according to the developers guide, it's existed since API
> Level 1  2.2 is API Level 8  Yeah, it exists in 2.2.
>
> Besides, like I said, it's working perfectly happily in another part
> of the code.  The mystery continues  :-(
>
> Later,
>   --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)| DMR: So fsck was originally called
> spooky1...@gmail.com|  something else.
> < Running FreeBSD 7.0 > | Q:   What was it called?
> ICBM / Hurricane:   | DMR: Well, the second letter was different.
>   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.
>
> Android Apps Listing at http://www.jstrack.org/barcodes.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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 ICS Media Store DB whts the file URI to fetch the text document?

2012-05-01 Thread Shyam Murarka
Hi,

I don't think I can post links here. My previous reply was automatically 
deleted. Anyways, search on StackOverflow for 
"mediastore-uri-to-query-all-types-of-files-media-and-non-media". This 
question has been answered there.

Regards,
Shyam

On Monday, January 23, 2012 5:32:58 PM UTC+5:30, rajesh chandrasekaran 
wrote:
>
> How do we fetch this "files" information  from media store DB 
>
> On Jan 23, 2:36 pm, Hareef  wrote: 
> > Hi, 
> > 
> > From Android Ice cream onwards,MediastoreDBis supporting all the 
> > files and documents. 
> > 
> > Thanks 
> > Hareef 
> > 
> > On Jan 23, 2:17 pm, Kumar Bibek  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > As far as I know,MediaStoreContent Provider only stores and gives you 
> > > info aboutmedia, and not files/documents. 
> > 
> > > *Thanks and Regards, 
> > > Kumar Bibek* 
> > > *http://techdroid.kbeanie.comhttp://www.kbeanie.com* 
> > 
> > > On Mon, Jan 23, 2012 at 2:45 PM, crajesh  
> wrote: 
> > > > Hi All, 
> > 
> > > > InmediastoreDB, we canfetchVideo / Audio by using the 
> > > > correspondingURI, 
> > 
> > > > AudioURI= MediaStore.Audio.Media.EXTERNAL_CONTENT_URI 
> > > > VideoURI = MediaStore.Video.Media.EXTERNAL_CONTENT_URI 
> > 
> > > > like that anyURIis available for fetching thetextfiles/documents? 
> > 
> > > > Thanks 
> > > > C.Rajesh 
> > 
> > > > -- 
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Android Developers" group. 
> > > > To post to this group, send email to 
> android-developers@googlegroups.com 
> > > > To unsubscribe from this group, 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: Dalvikvm exception instantiating org.apache.http.entity.mime.content.FileBody

2012-05-01 Thread Slawomir Krupa
Hi Dennis ,
Can you please explain step by step how you have overcome that problem 
because I tried everything and it is not working. Can post printscreen of 
your project and show me how you have organized your photos, please

W dniu wtorek, 10 kwietnia 2012 13:49:38 UTC+1 użytkownik DennisG napisał:
>
> Hi, 
>
> I used to use org.apache.http.entity.mime.content.FileBody 
> with org.apache.http.entity.mime.MultipartEntity sending files to server 
> before. Suddenly I got a problem when upgrated to Android SDK ver 17th. 
> Program is still compiled and started, but when it tries to 
> instantiate org.apache.http.entity.mime.content.FileBody class it raises 
> the following exception:
>
> 04-10 11:35:43.385: E/dalvikvm(457): Could not find class 
> 'org.apache.http.entity.mime.content.FileBody', referenced from method 
> com.leadertask.todo.android.service.LTSyncHandler$UploadSyncFileAsync.doInBackground
> 04-10 11:35:43.385: W/dalvikvm(457): VFY: unable to resolve new-instance 
> 818 (Lorg/apache/http/entity/mime/content/FileBody;) in 
> Lcom/leadertask/todo/android/service/LTSyncHandler$UploadSyncFileAsync;
>
> I tried different versions of httpmimeXXX.jar but problem persists. Funny 
> thing is that org.apache.http.entity.mime.content.StringBody and other 
> classes from this library work fine. I guess that there is some conflict.
> When compiled on older version of Android SDK (ver 16) - everythihg works 
> smoothly. So now I keeping old version of SDK on my backup laptop to 
> compile this project. 
>
> Could enyone to explain me please how can I solve this annoying problem?
>
> Regards, Dennis.
>

W dniu wtorek, 10 kwietnia 2012 13:49:38 UTC+1 użytkownik DennisG napisał:
>
> Hi, 
>
> I used to use org.apache.http.entity.mime.content.FileBody 
> with org.apache.http.entity.mime.MultipartEntity sending files to server 
> before. Suddenly I got a problem when upgrated to Android SDK ver 17th. 
> Program is still compiled and started, but when it tries to 
> instantiate org.apache.http.entity.mime.content.FileBody class it raises 
> the following exception:
>
> 04-10 11:35:43.385: E/dalvikvm(457): Could not find class 
> 'org.apache.http.entity.mime.content.FileBody', referenced from method 
> com.leadertask.todo.android.service.LTSyncHandler$UploadSyncFileAsync.doInBackground
> 04-10 11:35:43.385: W/dalvikvm(457): VFY: unable to resolve new-instance 
> 818 (Lorg/apache/http/entity/mime/content/FileBody;) in 
> Lcom/leadertask/todo/android/service/LTSyncHandler$UploadSyncFileAsync;
>
> I tried different versions of httpmimeXXX.jar but problem persists. Funny 
> thing is that org.apache.http.entity.mime.content.StringBody and other 
> classes from this library work fine. I guess that there is some conflict.
> When compiled on older version of Android SDK (ver 16) - everythihg works 
> smoothly. So now I keeping old version of SDK on my backup laptop to 
> compile this project. 
>
> Could enyone to explain me please how can I solve this annoying problem?
>
> Regards, Dennis.
>

W dniu wtorek, 10 kwietnia 2012 13:49:38 UTC+1 użytkownik DennisG napisał:
>
> Hi, 
>
> I used to use org.apache.http.entity.mime.content.FileBody 
> with org.apache.http.entity.mime.MultipartEntity sending files to server 
> before. Suddenly I got a problem when upgrated to Android SDK ver 17th. 
> Program is still compiled and started, but when it tries to 
> instantiate org.apache.http.entity.mime.content.FileBody class it raises 
> the following exception:
>
> 04-10 11:35:43.385: E/dalvikvm(457): Could not find class 
> 'org.apache.http.entity.mime.content.FileBody', referenced from method 
> com.leadertask.todo.android.service.LTSyncHandler$UploadSyncFileAsync.doInBackground
> 04-10 11:35:43.385: W/dalvikvm(457): VFY: unable to resolve new-instance 
> 818 (Lorg/apache/http/entity/mime/content/FileBody;) in 
> Lcom/leadertask/todo/android/service/LTSyncHandler$UploadSyncFileAsync;
>
> I tried different versions of httpmimeXXX.jar but problem persists. Funny 
> thing is that org.apache.http.entity.mime.content.StringBody and other 
> classes from this library work fine. I guess that there is some conflict.
> When compiled on older version of Android SDK (ver 16) - everythihg works 
> smoothly. So now I keeping old version of SDK on my backup laptop to 
> compile this project. 
>
> Could enyone to explain me please how can I solve this annoying problem?
>
> Regards, Dennis.
>

W dniu wtorek, 10 kwietnia 2012 13:49:38 UTC+1 użytkownik DennisG napisał:
>
> Hi, 
>
> I used to use org.apache.http.entity.mime.content.FileBody 
> with org.apache.http.entity.mime.MultipartEntity sending files to server 
> before. Suddenly I got a problem when upgrated to Android SDK ver 17th. 
> Program is still compiled and started, but when it tries to 
> instantiate org.apache.http.entity.mime.content.FileBody class it raises 
> the following exception:
>
> 04-10 11:35:43.385: E/dalvikvm(457): Could not find class 
> 'org.apache.http.entity.mime.conten

[android-developers] android C2DM send MismatchSenderId

2012-05-01 Thread Nicolas Lattuada
Hello

I am running into an issue related to c2dm messaging, I just arrived in a 
company. They got an application registered with the personnal email 
address of a developper who left the company. 
The devices registration_id are saved into a database, relative to the 
application. The call to the registration intent to get the registration_id 
must have been made using this old email address.

I created another address and when I 
call https://www.google.com/accounts/ClientLogin service ac2dm with the new 
address I get a fresh new token.
But when I try sending a push message to a device using the new auth token 
and the database's registration id, of course I get a MismatchSenderId 
error. Are all the registered tokens become invalid now? How can I do to 
get my new auth token working?
Cheers, Nicolas.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] getHitRect differences in FroYo / Gingerbread / ICS?

2012-05-01 Thread William Sanville
Hello,

My end result is to increase the clickable area of certain views that are 
small. It appears that this can be done with a 
TouchDelegate,
 
but in my case, there will be scenarios where one container has multiple 
views that I would like to increase the hit area for. Comments from this 
Stack Overflow 
questionsuggest
 this method can only be done for a single view inside a ViewGroup.

So, I've attempted to override 
getHitRecton
 a subclass of View, to increase the area. The example program below 
attempts to make the area 100px above and below a button clickable.  The 
results are as follows:
- Emulator running 2.2: The area above and below is clickable, clicking 
that area makes toast.
- Nexus One running 2.3.6: The getHitRect method gets called, but the click 
method is not fired when clicking above/below the button.
- Galaxy Nexus running 4.0.4: The getHitRect method never gets called, and 
hence, no click event when clicking above/below the button.


My question is twofold:
1) Is there a more elegant way to increase the click area of multiple views 
inside one ViewGroup?
2) Just out of curiosity, how is the getHitRect method supposed to work/be 
used? Is it deprecated?

Here's the short example:

public class TestActivity extends Activity
{
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

/* simply create a layout with some whitespace surrounding an 
instance of my custom button */
LinearLayout container = new LinearLayout(this);
container.setGravity(Gravity.CENTER_VERTICAL);
container.setOrientation(LinearLayout.VERTICAL);

TestButton button = new TestButton(this);
button.setText("Make Toast");
button.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View view)
{
Toast.makeText(TestActivity.this, "button was clicked", 
Toast.LENGTH_SHORT).show();
}
});
container.addView(button);
setContentView(container);
}

public static class TestButton extends Button
{
public TestButton(Context context)
{
super(context);
}

@Override
public void getHitRect(Rect outRect)
{
super.getHitRect(outRect);
/* just an example, for test purposes */
outRect.top -= 100;
outRect.bottom += 100;
Log.d("TestActivity", "getHitRect called, value: " + 
outRect.toShortString());
}
}
}

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