Re: [android-developers] XML RPC login failed

2010-09-01 Thread Tsolmon Narantsogt
Actually i don't know. Url is correct i saw it.
public static final String HOST = "http://10.0.2.2:8069/xmlrpc/common";;



On Thu, Sep 2, 2010 at 1:57 PM, Frank Weiss  wrote:

> OK. So why is the server returning that HTTP status? My first guess is
> the URL is incorrect. What's your guess?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Problem with webview pageUp method

2010-09-01 Thread Brijesh
Hi all,

I have a webview in my activity which displays a html file.

Now when i call webview.pageUp(); method it calls the
onScrollChanged() method many times , i want to find-out when the page
is completely scrolled because i want to do write some functions after
the scrolling finish ...


Thanks and Regards,
Brijesh Masrani

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: "IllegalArgumentException: parameter must be a descendant of this view" related issue

2010-09-01 Thread Frank Weiss
I'd hazard a guess that it has something to do with
android.view.ViewRoot.scrollToRectOrFocus(). Can you narrow it down to
some user action that might invoke that method?

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

2010-09-01 Thread Frank Weiss
OK. So why is the server returning that HTTP status? My first guess is
the URL is incorrect. What's your guess?

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

2010-09-01 Thread Tsolmon Narantsogt
I know  HTTP status 404 means.

On Thu, Sep 2, 2010 at 1:33 PM, Frank Weiss  wrote:

> Are saying that you don't know what HTTP status 404 means? You're
> putting me into a crabby mood!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Issues with Playing 2 videos using HTML5 Video Element in Android

2010-09-01 Thread Darshan
Hi All,

I haven't received any responses for a long time. Does anybody know a
solution for this issue?


Darshan


On Jul 29, 10:25 am, Darshan  wrote:
> Hi All,
>
> Right now I am building a web page that plays videos using HTML5
>  element.
>
> Here is the sample page:
>
> 
> 
>  
>   HTML5 Android Error Video Sample
>   
>   
>        //videoEndedListener
>        function videoEndedListener() {
>                var videoElement =
> document.getElementById('html5Player');
>                videoElement.removeEventListener('ended',
> videoEndedListener,
> false);
>                videoElement.src="VIDEO_URL_2";
>                videoElement.load();
>                videoElement.play();
>                alert("Playing 2nd Video");
>        };
>
>        //addEndedListener -->
>        function addEndedListener(){
>                var videoElement =
> document.getElementById('html5Player');
>                videoElement.addEventListener('ended',
> videoEndedListener, false);
>        };
>   
>  
>
>  
>       height=320 poster="some_logo.gif" onclick="this.play()">
>  
> 
> 
>
> In the above sample, I am trying to play 2 videos one after the other.
>
> Here is what I am experiencing in Android Emulator V2.2:
> ***
> 1. If VIDEO_URL_1 and VIDEO_URL_2 are valid mp4 urls, then both the
> videos gets played out in the order as expected.
>
> 2. If VIDEO_URL_1 is a valid mp4 url but VIDEO_URL_2 is a url pointing
> to a non-existing mp4 video, then the 1st video gets played out and
> the 2nd video ends up in "Sorry this video cannot be played" message
> as expected.
>
> 3. If VIDEO_URL_1 is a url pointing to a non-existing mp4 video but
> VIDEO_URL_2 is a valid mp4 url, then the 1st video ends up in "Sorry
> this video cannot be played" message as expected and the
> videoEndedListener() is also fired. The statements in
> videoEndedListener() gets executed successfully and the alert "Playing
> 2nd Video" is also thrown but the 2nd video never gets played out.
>
> Please let me know if I am doing something wrong. If not, please let
> me know a solution for this issue as I need it urgently.
>
> Thanks in advance.
>
> 
> Darshan

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

2010-09-01 Thread Frank Weiss
Are saying that you don't know what HTTP status 404 means? You're
putting me into a crabby mood!

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

2010-09-01 Thread Ken
Hello,

I am trying to implement an AutoCompleteTextView backed by HTTP
requests. i.e., the content of the suggestion comes from a web service
and is obtained by a HTTP request (for example, the symbol lookup
field on Google finance).

Here's the code I wrote to initialize the autocomplete field:

final AutoCompleteTextView field =
(AutoCompleteTextView)findViewById(R.id.lookup_input_field);
List suggestions = new ArrayList();
final MyAutoCompleteAdapter adapter = new MyAutoCompleteAdapter(this,
R.layout.auto_complete_dropdown, suggestions);
field.setAdapter(adapter);
field.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {}

public void beforeTextChanged(CharSequence s, int start, int count,
int after) {}

public void onTextChanged(CharSequence s, int start, int before, int
count) {
String newValue = field.getEditableText().toString();
adapter.valueChanged(field, newValue);
}
});

And here's the valueChanged method of the adapter. The suggestion
retrieval is done in a thread to ensure responsive UI.

public void valueChanged(final AutoCompleteTextView view, final String
value) {
final Handler handler = new Handler() {
public void handleMessage(Message msg) {
clear();
List suggestions = 
(List)msg.obj;
for (String suggestion : suggestions) {
add(suggestion);
}
notifyDataSetChanged();
}
};
new Thread() {
public void run() {
List suggestions = 
SearchHelper.search(value);
if (suggestions.size() > 0) {
Message msg = new Message();
msg.obj = suggestions;
handler.sendMessage(msg);
}
}
}.start();
}

Here's my problems: a) The suggestion dropdown doesn't always show up
on each keystroke, even though I know the SearchHelper has
successfully requested and returned suggestions based on user input.
b) When I select an item, the onTextChanged seems to be invoked again
and the suggestion dropdown shows up again.

Sorry if someone has discussed this issue but I wasn't able to find
any examples for my scenario.

Thanks!

Ken

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

2010-09-01 Thread Narendra Bagade
create two screen using activity. like activity1 and activity2.
suppose u have button on activity1 then write follwing cod in the onclick
event of button like

Intent obj =new Intent(this,activity.class);
startactivity(obj);


Regards,
Narendra


On Thu, Sep 2, 2010 at 10:04 AM, praveena ankitha wrote:

> startActivity(new
> Intent(.this,.class) );
>
>
> On Thu, Sep 2, 2010 at 9:56 AM, Gold  wrote:
>
>> Hi.All,
>>
>> I am Beginner for the Android (Previously I was in
>> Windows mobile application developer ) and I want to Go
>>
>>from One Screen to Another Screen But i dont know How is
>> possible, please give me a code for that.
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Praveena Ankitha
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Narendra
.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-01 Thread Dianne Hackborn
I don't know about this stuff in Market, so I can't help you there, but I do
know that apps on SD is purely a platform feature, Market has no idea about
it at all, so it would have nothing to do with this.

On Wed, Sep 1, 2010 at 7:57 AM, niko20  wrote:

> Yes we have threads about this already but we still have not gotten an
> answer AND I think it's about time somebody at least explain what does
> this number actually MEAN. I'm getting frustrated with the lack of
> transparency on this.
>
> My apps used to be around 56% active installs
>
> VERY soon after I updated the apps to allow install to SDCARD
> (preferExternal), then the active install count started dropping like
> a rock. Now it's around 39% today for my main app.
>
> My opinion is there is a bug in the SDCARD install feature somewhere
> that is not counting those installs. We know there already is a bug
> with home screen icons if you install to sdcard you will get a blank
> icon until the Home app restarts.
>
> Actually probably time to submit this issue in the bugtracker.
>
>
> -niko20
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: KeyEvent Methods

2010-09-01 Thread Dianne Hackborn
Well that makes no sense.

But...  you can use the times in the events, or if you don't like that use
SystemClock.uptimeMillis() at whatever points you want to measure the time
and compare them.

I'm not sure what more I can say here.

On Wed, Sep 1, 2010 at 9:33 PM, Tez  wrote:

> okay.
>
> I want to measure the time interval between keypresses.
>
> Say A->B time interval 60ms.
> IF B was presses before A was released, a negative value should be
> calculated. How Do i do this?
>
> On Sep 2, 2:01 am, Dianne Hackborn  wrote:
> > Well they would be 0 for a key down.  They should be different for a key
> up.
> >
> >
> >
> > On Wed, Sep 1, 2010 at 1:48 AM, Tez  wrote:
> > > I tried subtracting the 2 values. I always get zero.
> >
> > > On Sep 1, 1:04 pm, Dianne Hackborn  wrote:
> > > > On Tue, Aug 31, 2010 at 10:47 PM, Tez 
> wrote:
> > > > > 1. what is the getKeyDownTime() method? What does its return value
> > > > > mean logically?
> >
> > > > The time when the key down event occurred.
> >
> > > > > 2. what is the getKeyEventTime() method? What does its return value
> > > > > mean logiccaly?
> >
> > > > The time when the current key event occurred.
> >
> > > > > 3. I want to measure the time a key was depressed for.
> > > > > Eg: Key A was pressed for 60 ms.
> >
> > > > Subtract the two.
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > Note: please don't send private questions to me, as I don't have time
> to
> > > > provide private support, and so won't reply to such e-mails.  All
> such
> > > > questions should be posted on public forums, where I and others can
> see
> > > and
> > > > answer them.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Move one screen to another

2010-09-01 Thread praveena ankitha
startActivity(new Intent(.this,.class)
);

On Thu, Sep 2, 2010 at 9:56 AM, Gold  wrote:

> Hi.All,
>
> I am Beginner for the Android (Previously I was in
> Windows mobile application developer ) and I want to Go
>
>from One Screen to Another Screen But i dont know How is
> possible, please give me a code for that.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Praveena Ankitha

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

2010-09-01 Thread Tez
okay.

I want to measure the time interval between keypresses.

Say A->B time interval 60ms.
IF B was presses before A was released, a negative value should be
calculated. How Do i do this?

On Sep 2, 2:01 am, Dianne Hackborn  wrote:
> Well they would be 0 for a key down.  They should be different for a key up.
>
>
>
> On Wed, Sep 1, 2010 at 1:48 AM, Tez  wrote:
> > I tried subtracting the 2 values. I always get zero.
>
> > On Sep 1, 1:04 pm, Dianne Hackborn  wrote:
> > > On Tue, Aug 31, 2010 at 10:47 PM, Tez  wrote:
> > > > 1. what is the getKeyDownTime() method? What does its return value
> > > > mean logically?
>
> > > The time when the key down event occurred.
>
> > > > 2. what is the getKeyEventTime() method? What does its return value
> > > > mean logiccaly?
>
> > > The time when the current key event occurred.
>
> > > > 3. I want to measure the time a key was depressed for.
> > > > Eg: Key A was pressed for 60 ms.
>
> > > Subtract the two.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


Re: [android-developers] Move one screen to another

2010-09-01 Thread Tsolmon Narantsogt
Welcome.

check this link:
http://learnandroid.blogspot.com/2008/01/opening-new-screen-in-android.html

Thank you
Tsolmon


On Thu, Sep 2, 2010 at 12:26 PM, Gold  wrote:

> Hi.All,
>
> I am Beginner for the Android (Previously I was in
> Windows mobile application developer ) and I want to Go
>
>from One Screen to Another Screen But i dont know How is
> possible, please give me a code for that.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2010-09-01 Thread Gold
Hi.All,

 I am Beginner for the Android (Previously I was in
Windows mobile application developer ) and I want to Go

from One Screen to Another Screen But i dont know How is
possible, please give me a code for that.


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


Re: [android-developers] Reducing Permissions

2010-09-01 Thread Brad Gies


Yes, a contact picker would be great, and would work for me ;), 
especially if it had the ability to return multiple selections.


I would actually like that better than accessing them myself, if it was 
a standard part of the framework, because then users would be familiar 
with it, and I wouldn't have to support it.. or them using it ;).


I'm fairly sure it would solve many other developers issues also.

Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 01/09/2010 2:06 PM, Dianne Hackborn wrote:
On Wed, Sep 1, 2010 at 10:18 AM, Brad Gies > wrote:


I still want an "ask the user" optional permission for the read
contacts because even though my app will drop using them for now,
it would be a very handy feature for them. Just so you know, my
app is about connecting with friends, and being able to access
their friends email addresses one time would save the users a lot
of typing and setup later. But, it's just not worth it to have to
declare it in my app as if I will be ALWAYS accessing them, and
THAT does remove a very handy feature, that I would keep if I
could just ask the user the one or two times they would actually
use it. It's actually a HUGE issue for me because not keeping it
means that many users may not find my app all that useful because
they won't get it setup to find their friends easily, while
keeping it means that many users will never install it. Damned if
I do... Damned if I don't... and right now there is no good answer.


What if you could launch a contact picker for the user to select an 
e-mail address that is returned to you?  We need to build out the 
contacts interaction so that it has richer interactions to provide UI 
for other apps without them needing contacts permission themselves. 
 (And to also use FLAG_GRANT_URI_*_PERMISSION to return permission to 
access a contact entry that is selected.)  But even before that, 
someone could write their own app that provides something like this 
facility, without using FLAG_GRANT_URI_*_PERMISSION, to anyone who 
wants to use it.


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

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


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


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

2010-09-01 Thread Tsolmon Narantsogt
Hi everyone

I am trying to build a XmlRpc client for android .
i am using http://code.google.com/p/android-xmlrpc/ this lib.

But i can't login my xml rpc server.

i got below error.

org.xmlrpc.android.XMLRPCException: HTTP status code: 404 != 200

help me.

Thank you


Tsolmon

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

[android-developers] Re: How do i switch to new activity from a custom listview ?

2010-09-01 Thread mani
I got it working...!!

thanks,
- mani

On Sep 2, 10:53 am, mani  wrote:
> Thanks Mark.!!
>
> I tried implementing the activity.this.startActivityForResult()
>
> [ //results.this.startActivityForResult(myIntent, 0); ]
>
> I get error like
> "No enclosing instance of the type results is accessible in scope"
>
> When i read about this error i found it is "When we try to instantiate
> the inner class without instantiating the base class"
>
> But i couldnt map it to my code what is the mistake i am doing. Sorry.
> Could you please help me sort out this.?
>
> ThanksMani
>
> import java.io.BufferedReader;
> import java.io.InputStream;
> import java.io.InputStreamReader;
> import java.net.URI;
> import java.net.URISyntaxException;
> import java.net.URL;
> import java.net.URLEncoder;
>
> import org.apache.http.HttpResponse;
> import org.apache.http.client.HttpClient;
> import org.apache.http.client.methods.HttpGet;
> import org.apache.http.impl.client.DefaultHttpClient;
> import org.json.JSONArray;
> import org.json.JSONObject;
>
> import android.app.ListActivity;
> import android.content.Context;
> import android.content.Intent;
> import android.graphics.Bitmap;
> import android.graphics.BitmapFactory;
> import android.os.Bundle;
> import android.view.LayoutInflater;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.view.ViewGroup;
> import android.widget.BaseAdapter;
> import android.widget.Button;
> import android.widget.ImageView;
> import android.widget.TextView;
>
> public class results extends ListActivity  {
>
>         static String result="";
>         private static String DATA[];
>         private static String ADDR[];
>
>     private static class EfficientAdapter extends BaseAdapter {
>         private LayoutInflater mInflater;
>         private Bitmap mIcon1;
>         private Bitmap mIcon2;
>
>         public EfficientAdapter(Context context) {
>             // Cache the LayoutInflate to avoid asking for a new one
> each time.
>             mInflater = LayoutInflater.from(context);
>
>             // Icons bound to the rows.
>             mIcon1 =
> BitmapFactory.decodeResource(context.getResources(),
> R.drawable.next_arrow);
>             mIcon2 =
> BitmapFactory.decodeResource(context.getResources(),
> R.drawable.next_arrow);
>         }
>
>         public int getCount() {
>             return DATA.length+1;
>         }
>         public Object getItem(int position) {
>             return position;
>         }
>
>         public long getItemId(int position) {
>             return position;
>         }
>
>         public View getView(int position, View convertView, ViewGroup
> parent) {
>             ViewHolder holder;
>             if(position == 0)
>             {
>                    convertView = mInflater.inflate(R.layout.main1, null);
>                    Button button =
> (Button)convertView.findViewById(R.id.button);
>                    button.setOnClickListener(mButtonListener);
>             }
>             else
>             {
>             if (convertView == null) {
>                 convertView = mInflater.inflate(R.layout.main2, null);
>                 holder = new ViewHolder();
>                 holder.title = (TextView)
> convertView.findViewById(R.id.title);
>                 holder.address = (TextView)
> convertView.findViewById(R.id.address);
>                 holder.icon = (ImageView)
> convertView.findViewById(R.id.icon);
>                 convertView.setTag(holder);
>             } else {
>                 holder = (ViewHolder) convertView.getTag();
>             }
>             holder.title.setText(DATA[position-1]);
>             holder.address.setText(ADDR[position-1]);
>             holder.icon.setImageBitmap((position & 1) == 1 ? mIcon1 :
> mIcon2);
>             }
>             return convertView;
>         }
>         static class ViewHolder {
>             TextView title;
>             TextView address;
>             ImageView icon;
>         }
>     } // End of efficientadapter class
>
>     private static OnClickListener mButtonListener = new
> OnClickListener() {
>         public void onClick(View v) {
>           Intent myIntent = new Intent(v.getContext(),
> firstandroid.class);
>           //results.this.startActivityForResult(myIntent, 0);
>   //        finish();
>
>           sendSearchRequest(8);
>
>          }
>
>     };
>    public static String sendSearchRequest(int count)
>    {
>
>           //
>         HttpClient client = new DefaultHttpClient();
>         String query = "http://ajax.googleapis.com/ajax/services/search/local?
> hl=en&v=1.0&q=paris hotel&start=";
>         query+=count;
>         try {
>                 URL url = new URL(query);
>                 URI uri = new URI(url.getProtocol(), url.getHost(), 
> url.getPath(),
> url.getQuery(), null);
>                 HttpGet request = new HttpGet(uri);
>                 HttpResponse response = client.execute(request);
>                 result+=Userrequest(re

[android-developers] Re: Creating and using a “com mon platform” jar in Android - what works?

2010-09-01 Thread DJC
UPDATE!

Hah... typical... when I moved all the resources out of my platform
and into my app I did not properly pass these down from the app layer.
Thus, the code example I gave had no error. Using an intent rather
than linking decouples "arguments passed" from "arguments expected" of
course - and the compiler does not complain. With a corrected app,
this works.

Though I'd think creating a binary distribution platform is not
uncommon, I'm not finding much doc on it so I'll keep adding any
significant findings as I open the doors ... hope it's of use to
someone.

On Sep 1, 12:16 pm, DJC  wrote:
> I am sub-dividing an app I have into "common platform" and "app"
> layers so that I can distribute the platform as a jar for use by
> partners - and retain my IP.  I...

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

2010-09-01 Thread Mystique
Hi, I tried this but it didn't work:

@Override
protected void onResume() {
super.onResume();
LayoutInflater inflater1 = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View layout1 = inflater1.inflate(R.layout.add_pwd,
(ViewGroup) findViewById(R.id.content0));
EditText passString = (EditText)
layout1.findViewById(R.id.pass_string);
passString.setText("passwordString");
}

On Sep 2, 10:19 am, Mystique  wrote:
> thank you! I will try in a show while.
>
> On Sep 1, 10:58 pm, Brion Emde  wrote:
>
>
>
> > You should update the value of you EditText in onResume(), which you
> > don't seem to have right now. That is called when your activity
> > returns to the foreground. At that point you should have your new
> > value and you just do a setText() on the EditText to display the new
> > value.
>
> > On Sep 1, 6:49 am, Mystique  wrote:
>
> > > Thanks, I did 1 week ago and receive no reply :D
> > > I thought I can keep it simple this time to have some direction and I
> > > figure it out myself.
>
> > > Here it is, but the formatting is lost.. so hard to read it 
> > > here.http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > > On Sep 1, 6:44 pm, Shashidhar  wrote:
>
> > > > Can you please post the code here..
>
> > > > On Wed, Sep 1, 2010 at 3:42 PM, Mystique  wrote:
> > > > > Hi,
>
> > > > > I have an EditText field and a button.
> > > > > My aim is to let user enter text info to the EditText or click the
> > > > > button to launch a dialog to select some checkbox and radio button
> > > > > which it will perform some computation and return a value to display
> > > > > at the EditText field.
>
> > > > > I can't seems to get the value to display at the EditText field after
> > > > > the dialog dismiss. I did try a toast to display the value and it is
> > > > > ok.
> > > > > I *think* the view was not refresh to display the text in the EditText
> > > > > field.
>
> > > > > Can anyone tell me roughly how to do this?
>
> > > > > Cheers.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to 
> > > > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com > > > >  cr...@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: Same SMS is received multiple times- HTC Tattoo

2010-09-01 Thread Donald
hi Amit,

It's a bug in HTC tattoo.
In HTC tattoo it always send two messages.
the solution for this is you send the message as multiple sms


SmsManager sms = SmsManager.getDefault();
ArrayList smstext = sms.divideMessage(body);

/**
 * will send a sms. sendMultipartTextMessage is used because in 
HTC
 * tattoo will send 2 messages if you use sendTextMessage
 */

sms.sendMultipartTextMessage(phoneNumber, null, smstext,
listOfIntents,
listOfDeliverIntents);

cheers,
Mike

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-01 Thread niko20
Well yes my app has started to drop in rank, although only by one
position so far. But it's happening.

-niko

On Sep 1, 10:38 am, TreKing  wrote:
> On Wed, Sep 1, 2010 at 9:57 AM, niko20  wrote:
> > Yes we have threads about this already but we still have not gotten
> > an answer
>
> And don't expect one. It's not how Google rolls.
>
> > AND I think it's about time somebody at least explain what does this number
> > actually MEAN.
>
> Yeah, don't hold your breath on that one.
>
> > I'm getting frustrated with the lack of transparency on this.
>
> It sucks, but this is the way it is. No sense in getting all riled up about
> it, particularly when we're all in the same boat.
>
> > My opinion is there is a bug in the SDCARD install feature somewhere that
> > is not counting those installs.
>
> I do not use the SDCARD install option and my stats have plunged off a steep
> cliff as well.
>
> On Wed, Sep 1, 2010 at 10:20 AM, Maps.Huge.Info (Maps API Guru) <
>
> cor...@gmail.com> wrote:
> > As stated in the other thread, the problem may just be that the algorithm
> > that computes active install percentage may just be more accurate now.
>
> I doubt this in particular for paid apps. There is a
> vast discrepancy between what I see in the Dev Console and Google Checkout.
>
> > It could also be that your user base started uninstalling your app when you
> > posted the update. Many people will uninstall an app they haven't used for a
> > while when an update comes around because they are reminded they have it.
>
> Also not likely for paid apps.
>
> > I too have seen a drop from 64% to 61% in one of my apps and from 58% to
> > 47% in another. Is this a problem or a correction? I guess we may
> > never know.
>
> My paid app has dropped about 25% TOTAL, meanwhile sales, according to
> Google Checkout, have never been better. I think it's a problem.
>
> > Regardless, since it's happening to everyone, it won't affect your position
> > in the market or anything else tangible, so you might as well just live with
> > it.
>
> Yup. Just another day (week, month, year?) dealing with Da Market. Good
> times!
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: Is MapController's zoomToSpan() execution deferred?

2010-09-01 Thread Chad McQuillen
That sounded like an excellent suggestion so I gave it a try.  The new
code looks like this:

mapController.zoomToSpan(latitudeDelta, longitudeDelta);
/*
 * If the MapView has not been drawn yet, we won't be able to retrieve
an
 * accurate zoom level.  We have to queue up the work to make the
adjustment,
 * if necessary.
 */
mapView.post(new Runnable() {
public void run() {
if (mapView.getZoomLevel() > 20) {
mapView.getController().setZoom(20);
}
}
});

And, that still didn't work although I fully expected it to.  But,
after debugging it awhile I noticed some strange behavior that I did
not expect.  First, I wanted to check that my runnable got queued up
OK, and it ran when I expected it to run.  It did not.  Before I
explain what I observed let me first explain my activity / view
structure.

Tabbed Activity w/ 3 tabs
   - Tab 1 - ListActivity
   - Tab 2 - MapActivity
   - Tab 3 - Plain 'Ol Activity

So the sequence I did was:

1.  Enter Tabbed Activity, ListActivity in Tab 1 is shown by default.
2.  Click on Tab2, the MapActivity.

I would have expected the Runnable to be executed at this point.

3.  Click 'back' to exit Tabbed Activity.
4.  Re-enter Tabbed Activity, again ListActivity in Tab 1 is shown by
default.

And, this is the point at which the Runnable was executed.  I am at a
loss as to why.

P.S.  I must have misunderstood getMaxZoomLevel() because that didn't
return what I thought it would which is the zoom level at which you
still get the satellite imagery and not the blank white screen w/ grey
X's.  So, I went back and hard-coded to zoom level 20.


On Sep 1, 4:29 pm, Steve Howard  wrote:
> The zoom may be deferred if the MapView hasn't been drawn yet.  Have you
> tried putting your logic in a Runnable and post()ing it to the MapView?
>
> Steve
>
> On Sun, Aug 29, 2010 at 7:18 PM, Chad McQuillen 
> wrote:
>
>
>
> > My application has a MapView which shows a collection of items in a
> > satellite view.  I use the MapController's zoomToSpan() method to
> > initialize the zoom level of MapView.  I later discovered that the
> > MapView was showing a blank white screen with grey X's (zoom'd too
> > far, zoom out once and everything looks as expected) for the use case
> > when the collection of item's locations were very close to each
> > other.  So, I modified the code from this:
>
> > mapController.zoomToSpan(latitudeDelta, longitudeDelta);
>
> > to this:
>
> > mapController.zoomToSpan(latitudeDelta, longitudeDelta);
>
> > if (mapView.getZoomLevel() > mapView.getMaxZoomLevel()) {
> >        mapController.setZoom(mapView.getMaxZoomLevel());
> > }
>
> > but, I still got the same result.  I added some debug before and after
> > the zoomToSpan() to retrieve the zoom level from MapView and noticed
> > that the zoom level did not change.  I'm guessing somehow that the
> > work is queued up??
>
> > I don't know if this information is important or not to this problem,
> > but I'll also mention that the MapView is created from a MapActivity
> > which is hosted in the tab host of a TabActivity that contains three
> > tabs, one of which is the map.  I searched this forum and elsewhere
> > and haven't seen anyone encounter such a problem before.  I'm hoping
> > someone can point me in the right direction.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@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: Goodbye friends and thanks for all the help.

2010-09-01 Thread Lance Nanek
Even the country list provided isn't very useful for developers trying
to figure out if they should make the button going to the market for a
paid app from a free app visible to a particular user, or any other
form of linking to paid apps. The list includes the United States, but
AFAIK Puerto Rico doesn't have paid apps despite being in the US, for
example. They should really list MCC/MNC, or provide an API for this.

On Sep 1, 10:38 pm, brucko  wrote:
> > Essentially, there has been no new countries added to the list for
> > some time. Links like this
>
> >http://market.android.com/support/bin/answer.py?hl=en&answer=143779
>
> oops. wrong link. the other one has been changed now

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


[android-developers] Re: "IllegalArgumentException: parameter must be a descendant of this view" related issue

2010-09-01 Thread Lance Nanek
I have Donut customers who get this crash, so it can still happen
there. T-Mobile G1 and T-Mobile myTouch 3G particularly. Also MB501
users, but that's Cupcake. Very frustrating because the stack traces
don't mention any of my own code, so I can't figure out what is
causing it or how to avoid it.

On Donut the stack traces I get look like this:
java.lang.IllegalArgumentException: parameter must be a descendant of
this view
at
android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:
2513)
at
android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:
2450)
at android.view.ViewRoot.scrollToRectOrFocus(ViewRoot.java:1432)
at android.view.ViewRoot.draw(ViewRoot.java:1174)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1097)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1613)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4203)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
at dalvik.system.NativeStart.main(Native Method)

On Cupcake they look like this:
java.lang.IllegalArgumentException: parameter must be a descendant of
this view
at
android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:
2625)
at
android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:
2562)
at android.view.ViewRoot.scrollToRectOrFocus(ViewRoot.java:1342)
at android.view.ViewRoot.draw(ViewRoot.java:1131)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1054)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1523)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3999)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
at dalvik.system.NativeStart.main(Native Method)

In case that helps anyone. I'm not calling the method directly myself.

On Jul 20, 1:18 am, mongd  wrote:
> Hi All, while I'm testing my app with Monkey test tool, I ran into the
> following exception:
> "IllegalArgumentException: parameter must be a descendant of this
> view"
>
> I don't really understand why this exception happens, so I did some
> research about this and found the following 
> post:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> According to the above post, the issue once was resolved in Donut
> release, but some ppl say it still happens.
> Is there anyone who knows anything about this issue?
> As far as I understood, this issue shouldn't occur unless you
> intendedly call the method ViewGroup.offsetDescendantRectToMyCoords to
> get an exception.
>
> BTW, my app is using Tab, which means it has a lot of views in it.
> (including view changes too.)
> I don't really call setContentView repeatedly in my app though.
> Someone in the above post said that calling setContentView several
> times can cause this issue, so I just wanted to make sure that my app
> is not the case. =D
>
> If there's anyone who knows how to resolve this issue, please let me
> know.
> Great thanks in advance!!

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


[android-developers] Re: How do i switch to new activity from a custom listview ?

2010-09-01 Thread mani
Thanks Mark.!!

I tried implementing the activity.this.startActivityForResult()

[ //results.this.startActivityForResult(myIntent, 0); ]

I get error like
"No enclosing instance of the type results is accessible in scope"

When i read about this error i found it is "When we try to instantiate
the inner class without instantiating the base class"

But i couldnt map it to my code what is the mistake i am doing. Sorry.
Could you please help me sort out this.?

Thanks
Mani

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLEncoder;

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONArray;
import org.json.JSONObject;

import android.app.ListActivity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class results extends ListActivity  {

static String result="";
private static String DATA[];
private static String ADDR[];

private static class EfficientAdapter extends BaseAdapter {
private LayoutInflater mInflater;
private Bitmap mIcon1;
private Bitmap mIcon2;

public EfficientAdapter(Context context) {
// Cache the LayoutInflate to avoid asking for a new one
each time.
mInflater = LayoutInflater.from(context);

// Icons bound to the rows.
mIcon1 =
BitmapFactory.decodeResource(context.getResources(),
R.drawable.next_arrow);
mIcon2 =
BitmapFactory.decodeResource(context.getResources(),
R.drawable.next_arrow);
}

public int getCount() {
return DATA.length+1;
}
public Object getItem(int position) {
return position;
}

public long getItemId(int position) {
return position;
}

public View getView(int position, View convertView, ViewGroup
parent) {
ViewHolder holder;
if(position == 0)
{
   convertView = mInflater.inflate(R.layout.main1, null);
   Button button =
(Button)convertView.findViewById(R.id.button);
   button.setOnClickListener(mButtonListener);
}
else
{
if (convertView == null) {
convertView = mInflater.inflate(R.layout.main2, null);
holder = new ViewHolder();
holder.title = (TextView)
convertView.findViewById(R.id.title);
holder.address = (TextView)
convertView.findViewById(R.id.address);
holder.icon = (ImageView)
convertView.findViewById(R.id.icon);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
holder.title.setText(DATA[position-1]);
holder.address.setText(ADDR[position-1]);
holder.icon.setImageBitmap((position & 1) == 1 ? mIcon1 :
mIcon2);
}
return convertView;
}
static class ViewHolder {
TextView title;
TextView address;
ImageView icon;
}
} // End of efficientadapter class

private static OnClickListener mButtonListener = new
OnClickListener() {
public void onClick(View v) {
  Intent myIntent = new Intent(v.getContext(),
firstandroid.class);
  //results.this.startActivityForResult(myIntent, 0);
  //finish();

  sendSearchRequest(8);

 }

};
   public static String sendSearchRequest(int count)
   {

  //
HttpClient client = new DefaultHttpClient();
String query = "http://ajax.googleapis.com/ajax/services/search/local?
hl=en&v=1.0&q=paris hotel&start=";
query+=count;
try {
URL url = new URL(query);
URI uri = new URI(url.getProtocol(), url.getHost(), 
url.getPath(),
url.getQuery(), null);
HttpGet request = new HttpGet(uri);
HttpResponse response = client.execute(request);
result+=Userrequest(response);
}catch (URISyntaxException e){

}
catch(Exception ex){
  //txtResult.setText("Failed!");
  }
return result;
   }
public static String Userrequest(HttpResponse response){
try{
InputStream in = response.getEntity().getContent();
BufferedReader reader =

[android-developers] Re: Goodbye friends and thanks for all the help.

2010-09-01 Thread brucko
> Essentially, there has been no new countries added to the list for
> some time. Links like this
>
> http://market.android.com/support/bin/answer.py?hl=en&answer=143779
>


oops. wrong link. the other one has been changed now

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


Re: [android-developers] Memory problem with UI elements

2010-09-01 Thread Shashidhar
On Wed, Sep 1, 2010 at 7:25 PM, Mark Murphy  wrote:

> On Wed, Sep 1, 2010 at 9:48 AM, Shashidhar 
> wrote:
> >   In my application I change layouts very frequently with most of the
> user
> > interactions.
>
> Do you mean you call setContentView() repeatedly? Or how do you
> "change layouts"?
>

Yes, I cal setContentView() repeatedly.


>
> > Now my
> > question is why doesn't the GC collect the stale layout objects.
>
> Because something is holding onto them. If you cannot identify what is
> holding onto them, you can use DDMS to dump an HPROF file of the
> objects in your process' heap. There are several tools to help you
> examine that HPROF file:
>
> http://stackoverflow.com/questions/185893/how-do-i-analyze-a-hprof-file
>
> --
> 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: EditText field not update, how to do this?

2010-09-01 Thread Mystique
thank you! I will try in a show while.

On Sep 1, 10:58 pm, Brion Emde  wrote:
> You should update the value of you EditText in onResume(), which you
> don't seem to have right now. That is called when your activity
> returns to the foreground. At that point you should have your new
> value and you just do a setText() on the EditText to display the new
> value.
>
> On Sep 1, 6:49 am, Mystique  wrote:
>
>
>
> > Thanks, I did 1 week ago and receive no reply :D
> > I thought I can keep it simple this time to have some direction and I
> > figure it out myself.
>
> > Here it is, but the formatting is lost.. so hard to read it 
> > here.http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > On Sep 1, 6:44 pm, Shashidhar  wrote:
>
> > > Can you please post the code here..
>
> > > On Wed, Sep 1, 2010 at 3:42 PM, Mystique  wrote:
> > > > Hi,
>
> > > > I have an EditText field and a button.
> > > > My aim is to let user enter text info to the EditText or click the
> > > > button to launch a dialog to select some checkbox and radio button
> > > > which it will perform some computation and return a value to display
> > > > at the EditText field.
>
> > > > I can't seems to get the value to display at the EditText field after
> > > > the dialog dismiss. I did try a toast to display the value and it is
> > > > ok.
> > > > I *think* the view was not refresh to display the text in the EditText
> > > > field.
>
> > > > Can anyone tell me roughly how to do this?
>
> > > > Cheers.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com > > >  cr...@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: Goodbye friends and thanks for all the help.

2010-09-01 Thread brucko
>Yes, its extremely frustrating ..
...

> I hate it when business models restrict innovation.


I've moved from frustration to resignation now. Personally, I feel
that Google has been, and still is, one of the most significant
driving forces behind innovation in IT today. Things to some extent go
where Google takes us, and it was generally the open inclusive nature
of Google and Android that brought us to the table - hoping for a few
scraps;).

But reality at some point has to take over.

Developers in Australia (  others in places such as Canada, Ireland
and many countries too numerous to name but worthy to mention) are
simply not part of Googles business plan ATM.

Essentially, there has been no new countries added to the list for
some time. Links like this

http://market.android.com/support/bin/answer.py?hl=en&answer=143779

only add to the confusion.


I suppose I've been made to feel a bit like Marie in the film "When
Harry Met Sally"

Marie, Sallys' friend is having an affair for years with a married man
who is always promising to leave his wife.

Marie: I don't think he's ever going to leave her.
Sally: I know he's never going to leave her.
Marie: You're right, you're right. I know you're right.


Lets be honest with ourselves.

Developers in countries not already enabled for paid  apps are not a
priority for Google - despite the promises.

With PayPal coming, it might be happening (although let's not hold our
breath).

But I doubt GoogleCheckout is happening - or it would have already.
It's GoogleCheckout that demonstrates Googles commitment. At the risk
of sounding very full of myself



I'm right, I'm right.

You know I'm right. ;)

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

2010-09-01 Thread mrmanuke
oops. The error in Eclipse should read "Unable to create HPROF file
for application 'com.bunnies.Shhh'. Check logcat for more
information."

On Sep 2, 9:04 am, mrmanuke  wrote:
> I'm trying to get a heap dump from ddms in Eclipse, but it gives me
> the following error:
>
> "Unable to create HPROF file for application 'space.shhh'. Check
> logcat for more information."
>
> And here is the logcat output:
>
> D/ddm-heap(19153): Heap dump: file='/sdcard/com.bunnies.Shhh.hprof'
> E/dalvikvm(19153): hprof: can't open /sdcard/com.bunnies.Shhh.hprof-
> hptemp: Perm
> ission denied.
>
> I've tried this on an actual device (HTC Desire w/ 2.1 Eclair) and an
> emulator (Donut). Both gave exactly the same result as above. Also, I
> do have the WRITE_EXTERNAL_STORAGE permission in the manifest. I've
> searched and couldn't find anything about anyone ever having this
> problem. Any ideas?

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


Re: [android-developers] Re: Launch Local Drawable Resource in the Gallery app Using Intents

2010-09-01 Thread Dianne Hackborn
What are you actually trying to achieve here?  Gallery generally expects the
things it operates on to be in the media provider.  If they aren't... well,
maybe you can get it to work, but there is a good chance you are going to
have inconsistent behavior between different platform versions and devices.

On Wed, Sep 1, 2010 at 6:29 PM, Christopher
wrote:

> I've hacked around with the code from
> http://mobile.photoshop.com/android/developers.html
> to get about half way there.  This code brings up the Gallery and when
> an image is selected, it opens PhotoShop Express to edit the image.
> I've hacked the intent that to point to the Gallery viewer (the
> fullscreen view of an image, not the thumbnails) by replacing
> ACTION_EDIT with ACTION_VIEW.
>
> Now, this still grabs the images from the SD card; I'd like to grab
> them from my drawable resources embedded in the app.  Thoughts?
>
> package com.adobe.psmobile.editor.launcherappone;
>
> import android.app.Activity;
> import android.content.ActivityNotFoundException;
> import android.content.Intent;
> import android.net.Uri;
> import android.os.Bundle;
> import android.widget.Toast;
>
> // LauncherOneMain: Main activity for sample application that uses
> Photoshop Express Editor
> public class LauncherOneMain extends Activity
> {
>private static final int SELECT_IMAGE = 0; // selector for image
> gallery call
>private static final int LAUNCH_EDITOR = 1; // selector for editor
> launch call
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState)
>{
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>// launch the image picker
>launchImagePicker();
>
>}
>
>// Launches the image picker.
>public void launchImagePicker()
>{
>try
>{
>// This opens the Android Gallery or a similar activity
>// that displays the images on the Android devices's SD
> card.
>// The selected image is returned with a call to
> onActivityResult
>// with the request code SELECT_IMAGE
>startActivityForResult(new Intent(Intent.ACTION_PICK,
>
> android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI),
>  SELECT_IMAGE);
>}
>catch (ActivityNotFoundException e)
>{
>// No activity found that handles Intent.ACTION_PICK
>}
>}
>
>/**
>* onActivityResult: Called when an activity you launched exits,
>* giving you the requestCode you started it with along with
>* the resultCode it returned, and any additional returned data.
>* The resultCode will be RESULT_CANCELED if the activity
> explicitly
>* returned that, didn't return any result, or
>* abnormally terminated during its operation.
>*/
>@Override
>public void onActivityResult(int requestCode, int resultCode,
> Intent data)
>{
>super.onActivityResult(requestCode, resultCode, data);
>if (requestCode == SELECT_IMAGE)
>{
>if (resultCode == Activity.RESULT_OK)
>{
>// get the Uri for the selected image
>Uri selectedImage = data.getData();
>
>// create an Intent to launch activity that
>// supports ACTION_EDIT for
>// the selected image. Photoshop Express Editor
>// handles such intent
>Intent launchEditor = new Intent();
>launchEditor.setAction(Intent.ACTION_EDIT);
>launchEditor.setDataAndType(selectedImage,
> data.getType());
>
>try
>{
>// start the activity. Result will be returned
> in // onActivityResult call with
>// requestCode LAUNCH_EDITOR
>startActivityForResult(launchEditor,
> LAUNCH_EDITOR);
>}
>catch (ActivityNotFoundException e)
>{
>// No activity found. Correct version of Photoshop
> Express
>// Editor not installed.
>Toast myToast = Toast.makeText(this,
>new String("Failed to Launch Editor. Please make
> sure
>  Photoshop Express 1.1 or above is installed."),
>Toast.LENGTH_SHORT);
>myToast.show();
>}
>}
>}
>else if (requestCode == LAUNCH_EDITOR)
>{
>// returned from editor
>
>String resultStr = null;
>
>if (resultCode == Activity.RESULT_OK)
>{
>// Editor operation returned after saving the image.
>// Get the Uri for the newly edited image that was
> saved.
> Uri savedImage = data.getData();
>resultStr = new String("Editor saved image to Uri: ")
> +
> 

[android-developers] Re: Launch Local Drawable Resource in the Gallery app Using Intents

2010-09-01 Thread Christopher
I've hacked around with the code from 
http://mobile.photoshop.com/android/developers.html
to get about half way there.  This code brings up the Gallery and when
an image is selected, it opens PhotoShop Express to edit the image.
I've hacked the intent that to point to the Gallery viewer (the
fullscreen view of an image, not the thumbnails) by replacing
ACTION_EDIT with ACTION_VIEW.

Now, this still grabs the images from the SD card; I'd like to grab
them from my drawable resources embedded in the app.  Thoughts?

package com.adobe.psmobile.editor.launcherappone;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Toast;

// LauncherOneMain: Main activity for sample application that uses
Photoshop Express Editor
public class LauncherOneMain extends Activity
{
private static final int SELECT_IMAGE = 0; // selector for image
gallery call
private static final int LAUNCH_EDITOR = 1; // selector for editor
launch call

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

// launch the image picker
launchImagePicker();

}

// Launches the image picker.
public void launchImagePicker()
{
try
{
// This opens the Android Gallery or a similar activity
// that displays the images on the Android devices's SD
card.
// The selected image is returned with a call to
onActivityResult
// with the request code SELECT_IMAGE
startActivityForResult(new Intent(Intent.ACTION_PICK,
 
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI),
  SELECT_IMAGE);
}
catch (ActivityNotFoundException e)
{
// No activity found that handles Intent.ACTION_PICK
}
}

/**
* onActivityResult: Called when an activity you launched exits,
* giving you the requestCode you started it with along with
* the resultCode it returned, and any additional returned data.
* The resultCode will be RESULT_CANCELED if the activity
explicitly
* returned that, didn't return any result, or
* abnormally terminated during its operation.
*/
@Override
public void onActivityResult(int requestCode, int resultCode,
Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == SELECT_IMAGE)
{
if (resultCode == Activity.RESULT_OK)
{
// get the Uri for the selected image
Uri selectedImage = data.getData();

// create an Intent to launch activity that
// supports ACTION_EDIT for
// the selected image. Photoshop Express Editor
// handles such intent
Intent launchEditor = new Intent();
launchEditor.setAction(Intent.ACTION_EDIT);
launchEditor.setDataAndType(selectedImage,
data.getType());

try
{
// start the activity. Result will be returned
in // onActivityResult call with
// requestCode LAUNCH_EDITOR
startActivityForResult(launchEditor,
LAUNCH_EDITOR);
}
catch (ActivityNotFoundException e)
{
// No activity found. Correct version of Photoshop
Express
// Editor not installed.
Toast myToast = Toast.makeText(this,
new String("Failed to Launch Editor. Please make
sure
  Photoshop Express 1.1 or above is installed."),
Toast.LENGTH_SHORT);
myToast.show();
}
}
}
else if (requestCode == LAUNCH_EDITOR)
{
// returned from editor

String resultStr = null;

if (resultCode == Activity.RESULT_OK)
{
// Editor operation returned after saving the image.
// Get the Uri for the newly edited image that was
saved.
 Uri savedImage = data.getData();
resultStr = new String("Editor saved image to Uri: ")
+
  savedImage.toString();
}
else
{
// Editor operation canceled by user
resultStr = new String("Edit operation canceled.");
}

// display Toast with message
Toast myToast = Toast.makeText(this, resultStr,
Toast.LENGTH_SHORT);
myToast.show();

// now that the editing operation has completed,
// launch the image picker again
launchImagePicker();
}
}

}

On

[android-developers] Re: Goodbye friends and thanks for all the help.

2010-09-01 Thread William Ferguson
Yes, its extremely frustrating ..
I've now shelved several apps because they require a paid license
revenue model that isn't profity worthy without access to the market.
I'm focussing on Adware instead.

I hate it when business models restrict innovation.

On Sep 2, 10:29 am, brucko  wrote:
> After yesterdays little farce,
>
> http://ausdroid.net/2010/09/01/google-now-supporting-paid-application...
>
> and the total lack of care factor re: Google and developers in
> countries unable to set up merchant accounts...
>
> I've decided to shelve all my consumer Android projects and go back to
> other platforms. Unfortunately, not all apps are suitable for all
> revenue models. :(
>
> and beer still needs real money.
>
> When things change I will be back, as I still believe Android has a
> fantastic potential that is only just beginning to be realised.
>
> Just wanted to say thanks to everyone here for the help and the
> general good feeling that exists in this forum.
>
> Best Regards,
>
> Geoff

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


Re: [android-developers] Android file system security

2010-09-01 Thread Dianne Hackborn
Security is ultimately based on Linux/Unix filesystem permissions.  See
here: http://developer.android.com/guide/topics/security/security.html

On Wed, Sep 1, 2010 at 4:17 PM, shalin  wrote:

> Hello Friends,
>
> I am wondering that how android is providing security against
> corruption of data in file. I also want to know about security model
> for Shared Preferences, Sqlite datbase etc. storage methods.
>
> 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
>



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

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

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

[android-developers] Re: Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-09-01 Thread GJTorikian
Perhaps you're right.

I added the LVL library to my free app's build path, and exported that
APK. The Developer Console lets me upload the new APK, at least. I
assume that clicking "Publish" won't introduce some other check.

Note that all I have done is add the library, and the appropriate
permission:


I haven't implemented any of the server checks, but if the Dev Console
lets me get this far with my app, that's a positive sign.

On Sep 1, 3:14 pm, Chris Stratton  wrote:
> I doubt they can readily detect the licensing bytecode in all its
> possible variations.  Rather they probably won't let you make
> licensing records for a formerly free app.
>
> On Sep 1, 3:38 pm,GJTorikian wrote:
>
>
>
> > Before I continue the experiment, I took one more look through the
> > docs and found this gem:
>
> > "If your application is already published as free, you won't be able
> > to upload a new version that uses licensing."
>
> > I am guessing that if I try to include the LVL Library project into my
> > free app, I won't be able to upload a new APK to the Developer
> > Console. I'm not at my workspace now but when I get a chance to
> > verify, I will.
>
> > On Aug 31, 11:43 pm, String  wrote:
>
> > > On Tue, Aug 31, 2010 at 8:52 PM,GJTorikian
> > > wrote:
>
> > > > > Launch Free App->Launch Unlocker App->Run LVL->Return Result->Parse 
> > > > > Result
> > > > > in Free App
>
> > > > That was the gist of it, yes.
>
> > > I agree, having done an "unlocker" app in the past (and, separately,
> > > using LVL now) that's the approach that makes most sense to me.
> > > Especially if you already have an unlocker - convert it to LVL, and
> > > change the call in the free app as outlined above, but leave the rest
> > > of your architecture alone.
>
> > > On Tue, Aug 31, 2010 at 9:42 PM, Chris Stratton 
> > > wrote:
>
> > > > > I'm not seeing any obvious reason why the free version can't just 
> > > > > query the
> > > > > license server about the unlocker by itself, but maybe I'm overlooking
> > > > > something.
>
> > > I think that this is a real possibility, but I've not heard of anyone
> > > doing it. The key would be for the free app to query LVL about the
> > > unlocker's package name, NOT to try to use LVL for the free version's
> > > package. You'd also probably need to keep your version numbers aligned
> > > between the free & unlocker apps, because it has been established that
> > > this will cause an LVL failure.
>
> > > IF this works, it would be much cleaner; it would mean that your users
> > > would never have to actually have the unlocker installed, just
> > > purchased. I can't see that this sort of thing is mentioned anywhere
> > > in the LVL docs (though of course I could be missing it). It's
> > > possible that you can't do this, that LVL checks the calling package
> > > name or signature someplace. You'd just need to try it.
>
> > > Please keep us posted!
>
> > > String

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

2010-09-01 Thread brucko
After yesterdays little farce,

http://ausdroid.net/2010/09/01/google-now-supporting-paid-applications-for-aussie-developers/

and the total lack of care factor re: Google and developers in
countries unable to set up merchant accounts...

I've decided to shelve all my consumer Android projects and go back to
other platforms. Unfortunately, not all apps are suitable for all
revenue models. :(

and beer still needs real money.

When things change I will be back, as I still believe Android has a
fantastic potential that is only just beginning to be realised.

Just wanted to say thanks to everyone here for the help and the
general good feeling that exists in this forum.

Best Regards,

Geoff

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

2010-09-01 Thread Lance Nanek
The Javadoc for the OpenGL ES API does a good job explaining why you
can't use wrapped arrays for everything:
> http://download.oracle.com/javame/config/cldc/opt-pkgs/api/jb/jsr239/index.html
> Because these functions do not consume the data located at the given pointer 
> immediately, but only at some unspecified later time, it is not possible to 
> use an array since the Java virtual machine may relocate the array within 
> system memory.

But if you really want hardware details, here's a nice document for
the type of graphics in the Droid:
http://www.imgtec.com/factsheets/SDK/POWERVR%20SGX.OpenGL%20ES%202.0%20Application%20Development%20Recommendations.1.1f.External.pdf

There's lots of stuff for older chips like the MSM7200 in the G1 out
there as well, although you may have to look in a BREW oriented
document or two to find it.

On Sep 1, 7:31 pm, Samsyn  wrote:
> So, I've been a good boy (I think) and used ByteBuffers (and
> ShortBuffers and IntBuffers etc) for all the vertex lists and textures
> I feed to GLES.
>
> But can someone point me to the basic architecture of the 'typical'
> mobile GPU (or, I guess, the OpenVR Droid GPU at least).  For example,
> does a mobile GPU have its own texture/buffer memory, or does it
> always share 'system memory' ?
>
> If it's going to copy the data I give it into 'gpu ram' anyway, then
> have I just added another buffer in the bucket brigade of memory when
> I use a ByteBuffer?
>
> GLES seems perfectly happy using a direct java array for the data, but
> I imagine that does nasty things like locking memory when the GPU
> touches it, when maybe  memory outside the garbage collection heap
> doesn't have that problem (and just gets leaked when I mis-manage
> it :-)
>
> I can't say that I see any performance difference between using
> ByteBuffers or just direct java arrays.  But most of my meshes (and
> all of my textures) are created just once.  But some meshes (for
> example, particles) get regenerated every frame.  And for that, I do
> the math in a java array and then allocateDirect a suitable
> Buffer before passing it to GLES.  That smells really awful
> to me and I guess I am just wondering how big a sin it would be to not
> use Buffers for these dynamic meshes?
>
> I guess I just feel like I am flying blind without some GPU
> documentation to look at.

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

2010-09-01 Thread mrmanuke
I'm trying to get a heap dump from ddms in Eclipse, but it gives me
the following error:

"Unable to create HPROF file for application 'space.shhh'. Check
logcat for more information."

And here is the logcat output:

D/ddm-heap(19153): Heap dump: file='/sdcard/com.bunnies.Shhh.hprof'
E/dalvikvm(19153): hprof: can't open /sdcard/com.bunnies.Shhh.hprof-
hptemp: Perm
ission denied.

I've tried this on an actual device (HTC Desire w/ 2.1 Eclair) and an
emulator (Donut). Both gave exactly the same result as above. Also, I
do have the WRITE_EXTERNAL_STORAGE permission in the manifest. I've
searched and couldn't find anything about anyone ever having this
problem. Any ideas?

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


[android-developers] Re: idea for android app

2010-09-01 Thread Indicator Veritatis
How about a spoof of the famous Monopoly game, based on the modern
economy instead? You could have players competing to carve up Fannie
Mac and Fannie Mae;)

On Aug 30, 11:24 pm, sudha berde  wrote:
> Hello everyone,
>
> Can anyone here help me out by giving a great idea on android
> application??
>
> I am desperately looking for a creative idea. Whenever i think of new
> application and i think its not there, i ve been
>
> wrong everywhere.
>
> So please help me out.Thanks in advance!!

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


[android-developers] ByteBuffers and GLES

2010-09-01 Thread Samsyn
So, I've been a good boy (I think) and used ByteBuffers (and
ShortBuffers and IntBuffers etc) for all the vertex lists and textures
I feed to GLES.

But can someone point me to the basic architecture of the 'typical'
mobile GPU (or, I guess, the OpenVR Droid GPU at least).  For example,
does a mobile GPU have its own texture/buffer memory, or does it
always share 'system memory' ?

If it's going to copy the data I give it into 'gpu ram' anyway, then
have I just added another buffer in the bucket brigade of memory when
I use a ByteBuffer?

GLES seems perfectly happy using a direct java array for the data, but
I imagine that does nasty things like locking memory when the GPU
touches it, when maybe  memory outside the garbage collection heap
doesn't have that problem (and just gets leaked when I mis-manage
it :-)

I can't say that I see any performance difference between using
ByteBuffers or just direct java arrays.  But most of my meshes (and
all of my textures) are created just once.  But some meshes (for
example, particles) get regenerated every frame.  And for that, I do
the math in a java array and then allocateDirect a suitable
Buffer before passing it to GLES.  That smells really awful
to me and I guess I am just wondering how big a sin it would be to not
use Buffers for these dynamic meshes?

I guess I just feel like I am flying blind without some GPU
documentation to look at.

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


[android-developers] Android file system security

2010-09-01 Thread shalin
Hello Friends,

I am wondering that how android is providing security against
corruption of data in file. I also want to know about security model
for Shared Preferences, Sqlite datbase etc. storage methods.

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] client Server

2010-09-01 Thread Jeremy Wadsack
>
> > is it possible that if I maintain a server at one laptop and
> connect 2 or 3 laptops through LAN and then   responding to
> their requests sent by the emulators of individual laptop.
>

This should be possible as it's standard networking, but you'll need to do a
couple things. First, make sure that the emulators, if they are hosting
servers, have mapped ports that are visible to the laptop. See about port
forwarding with
adb.
Second, make sure that the firewalls on the server laptops are disabled or,
better, that the ports are opened in the firewalls. (Of course, for
security, if you disable the firewalls, make sure the laptops are off the
Internet.)


> 2)Can this be done using blue tooth.
>

I don't have any experience with bluetooth in emulators, but Android
Bluetoothcertainly
has support for client-server connections.


> Can we build an application for mobiles such that while downloading
> anything through mobile it would ask to the user whether to save it
> on mobile or laptop.Thus downloaded content can be saved on laptops
> through mobiles.
>

Seems plausible. If the application itself initiates the download it can
choose to store in it's data folder, on the sdcard or you could create a
DataProvider that wrote the data off to some server hosted on a laptop
somewhere.


--
Jeremy Wadsack

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

Re: [android-developers] Android streamer Class

2010-09-01 Thread Jeremy Wadsack
MediaPlayer will stream MP3 (shoutcast) streams on FroYo. It will only
support 3GP before that (unless you run through a proxy and remove the ICY
header or download the file first). I don't know about other formats but
suspect you'll need to include your own codec decoders and that probably is
best done in C++ with the Native Toolkit.

--
Jeremy Wadsack


On Wed, Sep 1, 2010 at 1:45 PM, Ahmed Shoeib
wrote:

> Hi all ,
> i want a class implements radio streamer
> the application should streams radio from url
> the streamer should include ( MP3 , WM , AAC ) ..
>
> can anyone 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

[android-developers] onEditorAction and requestFocus()

2010-09-01 Thread CasaDelGato
I have a case where there is an EditText field the user enters
something into, then presses the Enter key.
In the onEditorAction() method, I do some validation, and if it's not
a valid input, I want to put the focus back on the EditText field.
I've found that using .requestFocus() won't work - probably because
the focus change happens after the call to onEditorAction() and
overrides my call to requestFocus().

So, how do I put the focus back on the EditText field, from within the
onEditorAction() callback?

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

2010-09-01 Thread Steve Mathews
So another bit of info, which may be obvious for anyone experienced, but I
did not realize. I get the "Failed to parse the output of 'abd version'"
message if I just launch the ddms from the command line. So it seems that
the connection between ddms and adb might be the true problem.

I have also confirmed that with none of the programs (eclipse, adb and ddms)
running that nothing is binding to port 8700. Once I start eclipse it binds
to the port as I would expect.

Thanks.

On Wed, Sep 1, 2010 at 12:36 PM, Steve Mathews  wrote:

> I do have the tools dir on the PATH (and now CLASSPATH also because your
> comment made me second guess the docs).
>
> I can also verify that killing and restarting the server does not clear up
> the issue. I also verify the adb process is not still running after doing
> the adb kill-server. I also tried restarting eclipse after restarting adb. I
> still see the same errors as before.
>
> Thanks.
>
>
> On Wed, Sep 1, 2010 at 12:10 PM, Arjun  wrote:
>
>> try this
>>
>> adb kill-server
>> adb start-server
>>
>> please clarify whether dd you add tools to the class path
>>
>> Thanks,
>> Arjun.
>>
>> On Sep 1, 11:33 am, Steve Mathews  wrote:
>> > Was starting to worry that this message wasn't going to get through.
>> > Now hopefully someone has some ideas for me.
>> >
>> > On Tue, Aug 31, 2010 at 12:25 AM, Steve M  wrote:
>> > > So I have got Eclipse (Galileo) setup with ADT installed. I also got
>> > > the SDK installed. But when I run Eclipse I get "Failed to parse the
>> > > output of 'abd version'". And if I attempt to debug an app from
>> > > Eclipse I get:
>> > > [2010-08-31 00:21:05 - HelloWorld] --
>> > > [2010-08-31 00:21:05 - HelloWorld] Android Launch!
>> > > [2010-08-31 00:21:05 - HelloWorld] The connection to adb is down, and
>> > > a severe error has occured.
>> > > [2010-08-31 00:21:05 - HelloWorld] You must restart adb and Eclipse.
>> > > [2010-08-31 00:21:05 - HelloWorld] Please ensure that adb is correctly
>> > > located at 'C:\android-sdk-windows\tools\adb.exe' and can be executed.
>> >
>> > > I was able to run adb from the command line and install the
>> > > HelloWorld.apk from the bin directory to my phone. So it seems the
>> > > issue is between adb and eclipse. Searching the net got me a few
>> > > interesting pages, but none of the suggested changes worked for me.
>> > > Any ideas would be great.
>> >
>> > > Running Win 7 (64-bit)
>> > > Samsung Galaxy S (Vibrant)
>> >
>> > > Thanks,
>> > > Steve
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups "Android Developers" group.
>> > > To post to this group, send email to
>> android-developers@googlegroups.com
>> > > To unsubscribe from this group, 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] Re: Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-09-01 Thread Chris Stratton
I doubt they can readily detect the licensing bytecode in all its
possible variations.  Rather they probably won't let you make
licensing records for a formerly free app.

On Sep 1, 3:38 pm, GJTorikian  wrote:
> Before I continue the experiment, I took one more look through the
> docs and found this gem:
>
> "If your application is already published as free, you won't be able
> to upload a new version that uses licensing."
>
> I am guessing that if I try to include the LVL Library project into my
> free app, I won't be able to upload a new APK to the Developer
> Console. I'm not at my workspace now but when I get a chance to
> verify, I will.
>
> On Aug 31, 11:43 pm, String  wrote:
>
>
>
> > On Tue, Aug 31, 2010 at 8:52 PM,GJTorikian
> > wrote:
>
> > > > Launch Free App->Launch Unlocker App->Run LVL->Return Result->Parse 
> > > > Result
> > > > in Free App
>
> > > That was the gist of it, yes.
>
> > I agree, having done an "unlocker" app in the past (and, separately,
> > using LVL now) that's the approach that makes most sense to me.
> > Especially if you already have an unlocker - convert it to LVL, and
> > change the call in the free app as outlined above, but leave the rest
> > of your architecture alone.
>
> > On Tue, Aug 31, 2010 at 9:42 PM, Chris Stratton 
> > wrote:
>
> > > > I'm not seeing any obvious reason why the free version can't just query 
> > > > the
> > > > license server about the unlocker by itself, but maybe I'm overlooking
> > > > something.
>
> > I think that this is a real possibility, but I've not heard of anyone
> > doing it. The key would be for the free app to query LVL about the
> > unlocker's package name, NOT to try to use LVL for the free version's
> > package. You'd also probably need to keep your version numbers aligned
> > between the free & unlocker apps, because it has been established that
> > this will cause an LVL failure.
>
> > IF this works, it would be much cleaner; it would mean that your users
> > would never have to actually have the unlocker installed, just
> > purchased. I can't see that this sort of thing is mentioned anywhere
> > in the LVL docs (though of course I could be missing it). It's
> > possible that you can't do this, that LVL checks the calling package
> > name or signature someplace. You'd just need to try it.
>
> > Please keep us posted!
>
> > String

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

2010-09-01 Thread Bret Foreman
I like to read book reviews on my phone. It would be nice if I could
select the title of the book and have it added to my Amazon wish-list.
Amazon has good web service interfaces that should make this pretty
simple.

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

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 5:59 PM, Victoria Busse
 wrote:
> Yeah I noticed that :( is there any better or other solution to play videos
> instead?

No, all video playback eventually involves a SurfaceView. You just do
not have as much flexibility with one of those (e.g., in a drawer, in
a ScrollView) that you do with regular widgets.

-- 
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: Need Help - Sliding Drawer Exception

2010-09-01 Thread Victoria Busse
Yeah I noticed that :( is there any better or other solution to play videos
instead?

On Wed, Sep 1, 2010 at 10:30 PM, Paul Turchenko wrote:

> That's cuz VideoView is SurfaceView and it doesn't care about you
> layouts and view structure.
>
> On Sep 1, 10:47 pm, Victoria Busse 
> wrote:
> > Ha, lol speaking of the devil, it was exactly that I wrapped the
> scrollView
> > around everything else except the slidingDrawer and placed all in a
> Relative
> > Layout
> > and now it (almost) works...  the only thing acting weird now is the
> > VideoView cause it doesn't scroll with the rest of the content, but
> creates
> > black bars when I scroll up and the content below moves underneath it...
> >
> > On Wed, Sep 1, 2010 at 8:41 PM, Victoria Busse
> > wrote:
> >
> > > That would explain why it worked before I wrapped the scrollview around
> > > it...
> >
> > > On Wed, Sep 1, 2010 at 8:36 PM, Mark Murphy  >wrote:
> >
> > >> I suspect that you cannot have a SlidingDrawer in a ScrollView.
> >
> > >> On Wed, Sep 1, 2010 at 3:33 PM, kivy 
> wrote:
> > >> > Hi there,
> >
> > >> > I just ran into a problem with my SlidingDrawer. I got a
> > >> > RuntimeException telling me that my SlidingDrawer cannot have
> > >> > UNSPECIFIED dimensions (see Catlog output).
> > >> > If I understand it correctly this means layout_width and
> layout_height
> > >> > are empty, but as you can see from my xml code (see further below),
> I
> > >> > have specified them.
> > >> > I really don't know what I should, if anyone can help me out here,
> > >> > that would be great.
> > >> > Thanks in advance.
> >
> > >> > 09-01 20:02:12.209: ERROR/AndroidRuntime(2444): Uncaught handler:
> > >> > thread main exiting due to uncaught exception
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):
> > >> > java.lang.RuntimeException: SlidingDrawer cannot have UNSPECIFIED
> > >> > dimensions
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.widget.SlidingDrawer.onMeasure(SlidingDrawer.java:261)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.View.measure(View.java:7966)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.widget.RelativeLayout.measureChild(RelativeLayout.java:554)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.widget.RelativeLayout.onMeasure(RelativeLayout.java:377)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.View.measure(View.java:7966)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> >
> android.widget.ScrollView.measureChildWithMargins(ScrollView.java:893)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.widget.ScrollView.onMeasure(ScrollView.java:276)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.View.measure(View.java:7966)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.View.measure(View.java:7966)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.View.measure(View.java:7966)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.ViewRoot.performTraversals(ViewRoot.java:783)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.view.ViewRoot.handleMessage(ViewRoot.java:1666)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.os.Handler.dispatchMessage(Handler.java:99)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.os.Looper.loop(Looper.java:123)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > android.app.ActivityThread.main(ActivityThread.java:4603)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > java.lang.reflect.Method.invokeNative(Native Method)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > java.lang.reflect.Method.invoke(Method.java:521)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > com.android.internal.os.ZygoteInit
> > >> > $MethodAndArgsCaller.run(ZygoteInit.java:860)
> > >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
> > >> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
>

Re: [android-developers] idea for android app

2010-09-01 Thread TreKing
On Tue, Aug 31, 2010 at 1:24 AM, sudha berde wrote:

> Can anyone here help me out by giving a great idea on android application??
>

If I had a great idea, I'd probably make the app myself instead of giving it
away ...


> I am desperately looking for a creative idea.
>

Isn't everyone?


> Whenever i think of new application and i think its not there, i ve
> been wrong everywhere.
>

You don't have to do "new", you can do "better" (that's what I'm shooting
for).

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Need Help - Sliding Drawer Exception

2010-09-01 Thread Paul Turchenko
That's cuz VideoView is SurfaceView and it doesn't care about you
layouts and view structure.

On Sep 1, 10:47 pm, Victoria Busse 
wrote:
> Ha, lol speaking of the devil, it was exactly that I wrapped the scrollView
> around everything else except the slidingDrawer and placed all in a Relative
> Layout
> and now it (almost) works...  the only thing acting weird now is the
> VideoView cause it doesn't scroll with the rest of the content, but creates
> black bars when I scroll up and the content below moves underneath it...
>
> On Wed, Sep 1, 2010 at 8:41 PM, Victoria Busse
> wrote:
>
> > That would explain why it worked before I wrapped the scrollview around
> > it...
>
> > On Wed, Sep 1, 2010 at 8:36 PM, Mark Murphy wrote:
>
> >> I suspect that you cannot have a SlidingDrawer in a ScrollView.
>
> >> On Wed, Sep 1, 2010 at 3:33 PM, kivy  wrote:
> >> > Hi there,
>
> >> > I just ran into a problem with my SlidingDrawer. I got a
> >> > RuntimeException telling me that my SlidingDrawer cannot have
> >> > UNSPECIFIED dimensions (see Catlog output).
> >> > If I understand it correctly this means layout_width and layout_height
> >> > are empty, but as you can see from my xml code (see further below), I
> >> > have specified them.
> >> > I really don't know what I should, if anyone can help me out here,
> >> > that would be great.
> >> > Thanks in advance.
>
> >> > 09-01 20:02:12.209: ERROR/AndroidRuntime(2444): Uncaught handler:
> >> > thread main exiting due to uncaught exception
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):
> >> > java.lang.RuntimeException: SlidingDrawer cannot have UNSPECIFIED
> >> > dimensions
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.SlidingDrawer.onMeasure(SlidingDrawer.java:261)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.View.measure(View.java:7966)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.RelativeLayout.measureChild(RelativeLayout.java:554)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.RelativeLayout.onMeasure(RelativeLayout.java:377)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.View.measure(View.java:7966)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.ScrollView.measureChildWithMargins(ScrollView.java:893)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.ScrollView.onMeasure(ScrollView.java:276)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.View.measure(View.java:7966)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.View.measure(View.java:7966)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.View.measure(View.java:7966)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.ViewRoot.performTraversals(ViewRoot.java:783)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.view.ViewRoot.handleMessage(ViewRoot.java:1666)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.os.Handler.dispatchMessage(Handler.java:99)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.os.Looper.loop(Looper.java:123)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > android.app.ActivityThread.main(ActivityThread.java:4603)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > java.lang.reflect.Method.invokeNative(Native Method)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > java.lang.reflect.Method.invoke(Method.java:521)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > com.android.internal.os.ZygoteInit
> >> > $MethodAndArgsCaller.run(ZygoteInit.java:860)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> >> > 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> >> > dalvik.system.NativeStart.main(Native Method)
>
> >> > 
>
> >> > http://schemas.android.com/apk/res/android";
> >> >                        android:layout_width="fill_parent"
> >> >                        android:layout_height="fill_parent"
>
> >> >         >> >     

Re: [android-developers] Re: "IllegalArgumentException: parameter must be a descendant of this view" related issue

2010-09-01 Thread Frank Weiss
I suppose the exception is being thrown by some API method (or
posisbly an internal SDK method) that takes a parameter of type View.
Have you identified the API method? Another thing to do is get the SDK
source and search for that error message.

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


Re: [android-developers] Reducing Permissions

2010-09-01 Thread Dianne Hackborn
On Wed, Sep 1, 2010 at 10:18 AM, Brad Gies  wrote:

> I still want an "ask the user" optional permission for the read contacts
> because even though my app will drop using them for now, it would be a very
> handy feature for them. Just so you know, my app is about connecting with
> friends, and being able to access their friends email addresses one time
> would save the users a lot of typing and setup later. But, it's just not
> worth it to have to declare it in my app as if I will be ALWAYS accessing
> them, and THAT does remove a very handy feature, that I would keep if I
> could just ask the user the one or two times they would actually use it.
> It's actually a HUGE issue for me because not keeping it means that many
> users may not find my app all that useful because they won't get it setup to
> find their friends easily, while keeping it means that many users will never
> install it. Damned if I do... Damned if I don't... and right now there is no
> good answer.


What if you could launch a contact picker for the user to select an e-mail
address that is returned to you?  We need to build out the contacts
interaction so that it has richer interactions to provide UI for other apps
without them needing contacts permission themselves.  (And to also use
FLAG_GRANT_URI_*_PERMISSION to return permission to access a contact entry
that is selected.)  But even before that, someone could write their own app
that provides something like this facility, without using
FLAG_GRANT_URI_*_PERMISSION, to anyone who wants to use it.

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

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

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

Re: [android-developers] Re: KeyEvent Methods

2010-09-01 Thread Dianne Hackborn
Well they would be 0 for a key down.  They should be different for a key up.

On Wed, Sep 1, 2010 at 1:48 AM, Tez  wrote:

> I tried subtracting the 2 values. I always get zero.
>
> On Sep 1, 1:04 pm, Dianne Hackborn  wrote:
> > On Tue, Aug 31, 2010 at 10:47 PM, Tez  wrote:
> > > 1. what is the getKeyDownTime() method? What does its return value
> > > mean logically?
> >
> > The time when the key down event occurred.
> >
> > > 2. what is the getKeyEventTime() method? What does its return value
> > > mean logiccaly?
> >
> > The time when the current key event occurred.
> >
> > > 3. I want to measure the time a key was depressed for.
> > > Eg: Key A was pressed for 60 ms.
> >
> > Subtract the two.
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: when call is rejected , i want to close the activity

2010-09-01 Thread Indicator Veritatis
The most important suggestion I can give to you is to re-write your
post in coherent English. Then follow the guidelines of
http://www.catb.org/esr/faqs/smart-questions.html.

For once we see the errors in verb tense in your very sentence, we
know that we cannot trust you to avoid making mistakes confusing
'this' and 'that' when you say 'that activity'. Especially since as
written, what you say happens makes no sense. You can ALWAYS call
'finish()' on your own activity. You should not be calling it on
another activity.

You can also call Activity.finishActivity() to finish a 'child'
activity, i.e. one that the current Activity opened as described at
http://developer.android.com/reference/android/app/Activity.html#finishActivity%28int%29

On Sep 1, 3:57 am, vj  wrote:
> when a call is coming , i overrided the incoming call screen , it
> works fine , but when call is rejected(red button is pressed in
> emulator) , i cant able to quit that activity.
>
> if i give finish() , itz not working ,
> if i give onDestroy, itz crashing out my phone , and itz forcing to
> quit
>
> same happens when i close with , closeContextMenu and
> activity.getApplication.onTerminate()
>
> can someone help me or atleast any suggestions ?? (i want to close
> that activity when call is rejected) so that my screen behaves exactly
> like how incoming call screen behaves ...

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

2010-09-01 Thread Dianne Hackborn
MidWindow is old, broken, and will disappear in the next release.  There is
really not much point in talking about it.

On Wed, Sep 1, 2010 at 3:41 AM, Revathi K J Ramanan <
revathiramana...@gmail.com> wrote:

> Hi Dianne,
>
> I was trying to find the reply for the below question in short..
>
> What is the
> difference between these two and on what basis the policy will be
> choosen ?
>
> Please help me...
>
> Regards,
> Revathi K J Ramanan
>
> On Wed, Sep 1, 2010 at 4:09 PM, Revathi K J Ramanan <
> revathiramana...@gmail.com> wrote:
>
>> Hi Dianne,
>>
>> Thanks for the immediate response.
>>
>> I need the basic difference between the PhoneWindow and MidWindow.Like why
>> android is choosing PhoneWindow for its implementation not MidWindow.
>>
>> And In the x86 code of Cupcake 1.6 version, I found that MidWindow was
>> being used.
>> But in x86 of Eclair 2.1 Version, PhoneWindow is being used.
>>
>> What is the advantage of PhoneWindow over MidWindow?
>>
>> Please help me,
>>
>> Regards,
>> Revathi K J Ramanan
>>
>>   On Wed, Sep 1, 2010 at 1:33 PM, Dianne Hackborn wrote:
>>
>>> These are not part of the SDK, they are implementation details, that
>>> change over time.  In fact MidWindow will be gone in the next release.
>>>
>>>
>>> On Tue, Aug 31, 2010 at 11:31 PM, Revathi K J Ramanan <
>>> revathiramana...@gmail.com> wrote:
>>>
 Hi,

 What is the basic difference between the PhoneWindow and MidWindow
 policies?

 I found that the emulator version takes the implementations of the
 PhoneWindow.When the MidWindow implementations will be used?

 Also, I found that PhoneWindow handles the call settings
 implementation and the same is not there in MidWindow?

 Please someone help me pointing out the differences between both the
 policies and under which circumstances which one will be used..

 Please help me

 Regards,
 Revathi K J Ramanan

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

>>>
>>>
>>>
>>> --
>>> Dianne Hackborn
>>> Android framework engineer
>>> hack...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time to
>>> provide private support, and so won't reply to such e-mails.  All such
>>> questions should be posted on public forums, where I and others can see and
>>> answer them.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Android streamer Class

2010-09-01 Thread Ahmed Shoeib
Hi all ,
i want a class implements radio streamer
the application should streams radio from url
the streamer should include ( MP3 , WM , AAC ) ..

can anyone 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: "IllegalArgumentException: parameter must be a descendant of this view" related issue

2010-09-01 Thread swinefeaster
Found any workaround yet? I'm struggling to find a way to trap or
swallow this exception with no luck. Still occurs on 2.2 :(

On Jul 19, 10:18 pm, mongd  wrote:
> Hi All, while I'm testing my app with Monkey test tool, I ran into the
> following exception:
> "IllegalArgumentException: parameter must be a descendant of this
> view"
>
> I don't really understand why this exception happens, so I did some
> research about this and found the following 
> post:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> According to the above post, the issue once was resolved in Donut
> release, but some ppl say it still happens.
> Is there anyone who knows anything about this issue?
> As far as I understood, this issue shouldn't occur unless you
> intendedly call the method ViewGroup.offsetDescendantRectToMyCoords to
> get an exception.
>
> BTW, my app is using Tab, which means it has a lot of views in it.
> (including view changes too.)
> I don't really call setContentView repeatedly in my app though.
> Someone in the above post said that calling setContentView several
> times can cause this issue, so I just wanted to make sure that my app
> is not the case. =D
>
> If there's anyone who knows how to resolve this issue, please let me
> know.
> Great thanks in advance!!

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


Re: [android-developers] Is it possible to show my maps in MapView?

2010-09-01 Thread Steve Howard
http://groups.google.com/group/android-developers/browse_thread/thread/a3a66e8d16ff78ba/cad8d016a0714a92


Steve

On Tue, Aug 31, 2010 at 3:05 AM, cnwy  wrote:

> Hi,
>  The google map is too older for me, so I create my map in google map
> and add some lines and marks.
>  Is there a way to show my maps in MapView ?
>
>  Thanks.
>
> cnwy.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Developing Android REST Client Applications

2010-09-01 Thread authorwjf
In its most basic format, calling a rest service is simply doing an
HTTP call.  For example:


public void callSomeApi() throws Exception
{
DefaultHttpClient httpclient = new DefaultHttpClient();

httpclient.getCredentialsProvider().setCredentials(
new AuthScope("api.service.domain.com", 443),
new UsernamePasswordCredentials("username",
"password"));

HttpGet httpget = new HttpGet("https://api.service.domain.com/
rest/entry_point");

ResponseHandler responseHandler = new
BasicResponseHandler();
String responseBody = httpclient.execute(httpget,
responseHandler);

//REST APIs typically return JSON or XML
JSONArray response = new JSONArray(responseBody);

int items = response.length();

ListView list = new ListView(this);

for (int i = 0; i < items; i++) {
ListItem item = new ListItem();
item.label =
response.getJSONObject(0).getString("item_you_were_looking_for");


}

httpclient.getConnectionManager().shutdown();

}

 This is a pretty bare-bones HTTP example, and if suffers from two
problems.  The first is it's not very robust.
 This you can get around if you are semi-competent by adding error
handling and whatever else.  The second,
 is that on the android platform these sorts of long running I/O
operations need to happen on their own thread.
 That's fine and dandy so long as nothing interrupts the thread, like
an orientation change or an incoming call,
 but we all know that is exactly what happens on a phone.

 For me a workable solution was to create a service in the start up
activity of my application.  So when someone
 starts my app, the onCreate method first starts the backgroundIO
service, and then starts the first
 UI activity.

   /**
 * This is the standard Android on create method that gets called
when the activity initialized.
 */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//Start up background I/O service
Intent svc = new Intent(this, BackGroundIO.class);
startService(svc);
//Start up first UI
Intent i = new Intent(this, MyFirstUI.class);
i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivityForResult(i, 1);
}

 So now the question is what is BackGroundIO, and how does it interact
with the UI?  In my case the background i/o
 class was simply a serialized request queue with static members for
adding / getting requests.  In other words the class
 had a couple members for adding requests, retrieving them, and
clearing any pending I/O.

 public class BackGroundIO extends Service{

private static Thread mWorker = null;

public static long addToQue(ApiRequest request) {
//mechanism for adding requests
//ApiRequest is some custom class that defines all the
elements you need to make your api calls
//Probably username, password, entrypoint, and a UI runnable
or handler for signaling on completion
//return a unique request identifier to the UI
}

public static ApiRequestResult getResult(long identifier) throws
RequestNotFoundException, RequestStillPendingException {
//mechanism for returning a result from memory or file
//return the ApiRequestResult for some unique identifier if
found
//if it came from disk don't forget to delete it from the file
}

public static void clearQue() {
//mechanism for clearing any and pending requests
//usually called on shutdown
}

@Override
public IBinder onBind(Intent arg0) {
// Not using IPC so just return empty
return null;
}

@Override
public void onCreate() {
super.onCreate();
mWorker = new Thread() {
public void run() {
while (true) { //this is my main looper
//Is there a pending request?
//Yes
// 1 CallSomeApi function shown above.
// 2 Remove the request from the queue of
pending requests
// Is the UI Activity who made this request
still around?
// YES
//   1 Signal the UI the result is ready
// NO
//   1 Save the result to disk and let a UI
retrieve it later when he wants / can.
//No
//Sleep for a short bit
}
};
mWorker.start();
}
}
}

As you can see this is again overly simplified and I'm typing it in a
text editor so there may be a syntax issue
here and there as well.  But hopefully you get the idea and this helps
you

Re: [android-developers] Is MapController's zoomToSpan() execution deferred?

2010-09-01 Thread Steve Howard
The zoom may be deferred if the MapView hasn't been drawn yet.  Have you
tried putting your logic in a Runnable and post()ing it to the MapView?

Steve

On Sun, Aug 29, 2010 at 7:18 PM, Chad McQuillen wrote:

> My application has a MapView which shows a collection of items in a
> satellite view.  I use the MapController's zoomToSpan() method to
> initialize the zoom level of MapView.  I later discovered that the
> MapView was showing a blank white screen with grey X's (zoom'd too
> far, zoom out once and everything looks as expected) for the use case
> when the collection of item's locations were very close to each
> other.  So, I modified the code from this:
>
> mapController.zoomToSpan(latitudeDelta, longitudeDelta);
>
> to this:
>
> mapController.zoomToSpan(latitudeDelta, longitudeDelta);
>
> if (mapView.getZoomLevel() > mapView.getMaxZoomLevel()) {
>mapController.setZoom(mapView.getMaxZoomLevel());
> }
>
> but, I still got the same result.  I added some debug before and after
> the zoomToSpan() to retrieve the zoom level from MapView and noticed
> that the zoom level did not change.  I'm guessing somehow that the
> work is queued up??
>
> I don't know if this information is important or not to this problem,
> but I'll also mention that the MapView is created from a MapActivity
> which is hosted in the tab host of a TabActivity that contains three
> tabs, one of which is the map.  I searched this forum and elsewhere
> and haven't seen anyone encounter such a problem before.  I'm hoping
> someone can point me in the right direction.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: idea for android app

2010-09-01 Thread Yahel
> I am desperately looking for a creative idea. Whenever i think of new
> application and i think its not there, i ve been

Recipe to find an idea : Scratch your own itch :D

Whatever you thought you could do with your phone but didn't find the
app that suited that specific need.

Beside, it's not because someone implemented one app doing something
that you can't find a better/smoother/faster/funnier way to do it. Try
four different twitter app to see what I mean.

Good luck with that.

Yahel

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

2010-09-01 Thread sasq
Don't know why I bother asking here but, you never know, right?

Anyway - after stopping and restarting playback of an audiotrack
stream, on some devices I consistently get;

W/AudioTrack( 2453): obtainBuffer timed out (is the CPU pegged?)
0x64acc0 user=0001, server=

after freezing for a couple of seconds. This happens whether I just
pause() and flush() my audiotrack or release() and recreate it.

Anyway to avoid this?

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


[android-developers] Re: AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-01 Thread Steve Hugg
The device in question is running 1.5, FWIW - therefore it would get
AudioFormat.CHANNEL_CONFIGURATION_MONO.

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

2010-09-01 Thread Arjun
In short the classes which extends contentprovider are mainly used for
database specific operations
Service API is used to run services..the services can be something
like email poller or news feedser

If u want to connect to external servers use apaches http classes

Thanks,
Arjun.

On Sep 1, 7:07 am, Tony  wrote:
> I'm a new guy to Android development.
> I've read through the note of the topic "Developing Android REST
> Client Applications" from Google IO 2010, but I still have no idea on
> how to start.
> Can anyone show me a code example?
>
> Either the code for "Option A: Use a Service API" or "Option B: Use
> the ContentProvider API" will be appreciated!

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


[android-developers] Re: Droid 2 ADB Issue

2010-09-01 Thread authorwjf
http://groups.google.com/group/android-developers/browse_thread/thread/3571170253b99d0/92c8a626e08e2574


On Aug 30, 1:11 pm, Jon Cook  wrote:
> Has anyone had any problems with you're Droid 2 to ADB? Things were
> great on the Droid 1. I updated all of the Motorola drivers and so
> forth but no luck with ADB. Any thoughts?

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


[android-developers] AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-01 Thread Steve Hugg
Our app has a problem with AudioRecord where the recorded audio is
very slw (sound like it's 2x slower). We use
AudioRecord.getMinBufferSize to try 16000 Hz first and then back down
to 8000 Hz if that function returns an error. So my guess is that the
audio is reported as 8000 Hz even though it's really sampling @ 16000
Hz.

It seems that the problem could also be that the output stream is
stereo, not mono. We're passing AudioFormat.CHANNEL_IN_MONO on API
levels 5 and above and AudioFormat.CHANNEL_CONFIGURATION_MONO
(deprecated) on the earlier devices. This seems to be how it works for
AudioTrack. But is this how it works for AudioRecord?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-09-01 Thread GJTorikian
Before I continue the experiment, I took one more look through the
docs and found this gem:

"If your application is already published as free, you won't be able
to upload a new version that uses licensing."

I am guessing that if I try to include the LVL Library project into my
free app, I won't be able to upload a new APK to the Developer
Console. I'm not at my workspace now but when I get a chance to
verify, I will.

On Aug 31, 11:43 pm, String  wrote:
> On Tue, Aug 31, 2010 at 8:52 PM,GJTorikian
> wrote:
>
> > > Launch Free App->Launch Unlocker App->Run LVL->Return Result->Parse Result
> > > in Free App
>
> > That was the gist of it, yes.
>
> I agree, having done an "unlocker" app in the past (and, separately,
> using LVL now) that's the approach that makes most sense to me.
> Especially if you already have an unlocker - convert it to LVL, and
> change the call in the free app as outlined above, but leave the rest
> of your architecture alone.
>
> On Tue, Aug 31, 2010 at 9:42 PM, Chris Stratton 
> wrote:
>
> > > I'm not seeing any obvious reason why the free version can't just query 
> > > the
> > > license server about the unlocker by itself, but maybe I'm overlooking
> > > something.
>
> I think that this is a real possibility, but I've not heard of anyone
> doing it. The key would be for the free app to query LVL about the
> unlocker's package name, NOT to try to use LVL for the free version's
> package. You'd also probably need to keep your version numbers aligned
> between the free & unlocker apps, because it has been established that
> this will cause an LVL failure.
>
> IF this works, it would be much cleaner; it would mean that your users
> would never have to actually have the unlocker installed, just
> purchased. I can't see that this sort of thing is mentioned anywhere
> in the LVL docs (though of course I could be missing it). It's
> possible that you can't do this, that LVL checks the calling package
> name or signature someplace. You'd just need to try it.
>
> Please keep us posted!
>
> String

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

2010-09-01 Thread the2bears
Mark,

Yeah, too bad, but it makes sense.  Thanks again for taking the time
to respond.

Bill

On Sep 1, 12:20 pm, Mark Murphy  wrote:
> On Wed, Sep 1, 2010 at 3:15 PM, the2bears  wrote:
> > Thanks for the reply.  It's unfortunate that these things are not
> > documented, but that's a side effect of the *more* unfortunate fact
> > they're not supported.
>
> Well, they're applications, not part of the OS. They can be replaced,
> removed, modified, etc.
>
> > I want to launch
> > an application when a chat session is started by a message from a
> > specific account arrives.  I fear I may be out of luck.
>
> Short of writing your own chat client, I don't see how this will be possible.
>
> --
> 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] Need Help - Sliding Drawer Exception

2010-09-01 Thread Mark Murphy
I suspect that you cannot have a SlidingDrawer in a ScrollView.

On Wed, Sep 1, 2010 at 3:33 PM, kivy  wrote:
> Hi there,
>
> I just ran into a problem with my SlidingDrawer. I got a
> RuntimeException telling me that my SlidingDrawer cannot have
> UNSPECIFIED dimensions (see Catlog output).
> If I understand it correctly this means layout_width and layout_height
> are empty, but as you can see from my xml code (see further below), I
> have specified them.
> I really don't know what I should, if anyone can help me out here,
> that would be great.
> Thanks in advance.
>
>
> 09-01 20:02:12.209: ERROR/AndroidRuntime(2444): Uncaught handler:
> thread main exiting due to uncaught exception
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):
> java.lang.RuntimeException: SlidingDrawer cannot have UNSPECIFIED
> dimensions
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.SlidingDrawer.onMeasure(SlidingDrawer.java:261)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.View.measure(View.java:7966)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.RelativeLayout.measureChild(RelativeLayout.java:554)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.RelativeLayout.onMeasure(RelativeLayout.java:377)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.View.measure(View.java:7966)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.ScrollView.measureChildWithMargins(ScrollView.java:893)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.ScrollView.onMeasure(ScrollView.java:276)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.View.measure(View.java:7966)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.View.measure(View.java:7966)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.View.measure(View.java:7966)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.ViewRoot.performTraversals(ViewRoot.java:783)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.view.ViewRoot.handleMessage(ViewRoot.java:1666)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.os.Looper.loop(Looper.java:123)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> android.app.ActivityThread.main(ActivityThread.java:4603)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:860)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> 09-01 20:02:12.229: ERROR/AndroidRuntime(2444):     at
> dalvik.system.NativeStart.main(Native Method)
>
>
> 
>
> http://schemas.android.com/apk/res/android";
>                        android:layout_width="fill_parent"
>                        android:layout_height="fill_parent"
>                        >
>                                android:layout_width="fill_parent"
>                        android:layout_height="fill_parent"
>                        
> android:background="@drawable/shape_background_gradient">
>                            android:layout_width="205px"
>                android:layout_height="155px"
>                android:background="#FFCC"
>                android:id="@+id/VideoViewHolder"
>                android:padding="2.5px"
>                android:layout_centerHorizontal="true"
>                android:layout_marginTop="5px"
>                android:layout_marginBottom="5px"
>                >
>                                                        android:layout_width="200px"
>                                android:layout_height="150px"
>                                android:id ="@+id/VideoViewEdit"
>                                android:layout_centerHorizontal="true"
>                                >
>                        
>                
>
>                                        android:layout_width="fill_parent"
>            

Re: [android-developers] Re: Eclipse can't connect to adb

2010-09-01 Thread Steve Mathews
I do have the tools dir on the PATH (and now CLASSPATH also because your
comment made me second guess the docs).

I can also verify that killing and restarting the server does not clear up
the issue. I also verify the adb process is not still running after doing
the adb kill-server. I also tried restarting eclipse after restarting adb. I
still see the same errors as before.

Thanks.

On Wed, Sep 1, 2010 at 12:10 PM, Arjun  wrote:

> try this
>
> adb kill-server
> adb start-server
>
> please clarify whether dd you add tools to the class path
>
> Thanks,
> Arjun.
>
> On Sep 1, 11:33 am, Steve Mathews  wrote:
> > Was starting to worry that this message wasn't going to get through.
> > Now hopefully someone has some ideas for me.
> >
> > On Tue, Aug 31, 2010 at 12:25 AM, Steve M  wrote:
> > > So I have got Eclipse (Galileo) setup with ADT installed. I also got
> > > the SDK installed. But when I run Eclipse I get "Failed to parse the
> > > output of 'abd version'". And if I attempt to debug an app from
> > > Eclipse I get:
> > > [2010-08-31 00:21:05 - HelloWorld] --
> > > [2010-08-31 00:21:05 - HelloWorld] Android Launch!
> > > [2010-08-31 00:21:05 - HelloWorld] The connection to adb is down, and
> > > a severe error has occured.
> > > [2010-08-31 00:21:05 - HelloWorld] You must restart adb and Eclipse.
> > > [2010-08-31 00:21:05 - HelloWorld] Please ensure that adb is correctly
> > > located at 'C:\android-sdk-windows\tools\adb.exe' and can be executed.
> >
> > > I was able to run adb from the command line and install the
> > > HelloWorld.apk from the bin directory to my phone. So it seems the
> > > issue is between adb and eclipse. Searching the net got me a few
> > > interesting pages, but none of the suggested changes worked for me.
> > > Any ideas would be great.
> >
> > > Running Win 7 (64-bit)
> > > Samsung Galaxy S (Vibrant)
> >
> > > Thanks,
> > > Steve
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, 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: J2ME to Android

2010-09-01 Thread Kostya Vasilyev
 The code seems to be really simple, establishing an HTTP connection, 
and getting raw streams for reading and writing.


Replace javax.microedition classes with those included with Android.

-- Kostya

01.09.2010 23:26, kypriakos пишет:

Hi all - trying this one again .. any ideas? If the Connector class
was not
created in the original Android Java, what else can be used in its
place?
3rd Party software or any other part of the API? Thanks.

On Aug 26, 4:47 pm, kypriakos  wrote:

I am pretty much trying to solve these issues:

 import javax.microedition.io.Connector;
 socketCon = (SocketConnection) Connector.open(strURL,
Connector.READ_WRITE);

and

 import javax.microedition.io.StreamConnection;

 streamCon = (SocketConnection) Connector.open(strURL,
Connector.READ);
 streamCon = (HttpConnection) Connector.open(strURL,
Connector.READ);

Any ideas would be greatly appreciated.

Thanks



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


[android-developers] Need Help - Sliding Drawer Exception

2010-09-01 Thread kivy
Hi there,

I just ran into a problem with my SlidingDrawer. I got a
RuntimeException telling me that my SlidingDrawer cannot have
UNSPECIFIED dimensions (see Catlog output).
If I understand it correctly this means layout_width and layout_height
are empty, but as you can see from my xml code (see further below), I
have specified them.
I really don't know what I should, if anyone can help me out here,
that would be great.
Thanks in advance.


09-01 20:02:12.209: ERROR/AndroidRuntime(2444): Uncaught handler:
thread main exiting due to uncaught exception
09-01 20:02:12.229: ERROR/AndroidRuntime(2444):
java.lang.RuntimeException: SlidingDrawer cannot have UNSPECIFIED
dimensions
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.SlidingDrawer.onMeasure(SlidingDrawer.java:261)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.View.measure(View.java:7966)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.RelativeLayout.measureChild(RelativeLayout.java:554)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.RelativeLayout.onMeasure(RelativeLayout.java:377)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.View.measure(View.java:7966)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.ScrollView.measureChildWithMargins(ScrollView.java:893)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.ScrollView.onMeasure(ScrollView.java:276)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.View.measure(View.java:7966)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.View.measure(View.java:7966)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3077)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.View.measure(View.java:7966)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.ViewRoot.performTraversals(ViewRoot.java:783)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1666)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.os.Handler.dispatchMessage(Handler.java:99)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.os.Looper.loop(Looper.java:123)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
android.app.ActivityThread.main(ActivityThread.java:4603)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
java.lang.reflect.Method.invokeNative(Native Method)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
java.lang.reflect.Method.invoke(Method.java:521)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-01 20:02:12.229: ERROR/AndroidRuntime(2444): at
dalvik.system.NativeStart.main(Native Method)




http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>



































 

 
 










  

[android-developers] Please Help - key down behaves badly

2010-09-01 Thread avigadl
I have a linear layout with several custom view and button.

Whenever I press a  key down I would like that only one view will
respond to it.

However, now when I press a key I see that te focus goes to the button
in that layout.

How to make an activity to respond to te key down event before moving
te focus to the button?

Thanks in advance!

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


Re: [android-developers] how to run custom app on boot-up???

2010-09-01 Thread YuviDroid
Check out the ACTION_BOOT_COMPLETED (
http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED).
That's probably what you are looking for..

On Tue, Aug 31, 2010 at 8:48 AM, vinix  wrote:

> i have written an application(.apk) which i would wish to be run on
> boot-up . Can any body help me to implement this
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X  (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

2010-09-01 Thread kypriakos

Hi all - trying this one again .. any ideas? If the Connector class
was not
created in the original Android Java, what else can be used in its
place?
3rd Party software or any other part of the API? Thanks.

On Aug 26, 4:47 pm, kypriakos  wrote:
> I am pretty much trying to solve these issues:
>
>             import javax.microedition.io.Connector;
>             socketCon = (SocketConnection) Connector.open(strURL,
> Connector.READ_WRITE);
>
> and
>
>             import javax.microedition.io.StreamConnection;
>
>                 streamCon = (SocketConnection) Connector.open(strURL,
> Connector.READ);
>                 streamCon = (HttpConnection) Connector.open(strURL,
> Connector.READ);
>
> Any ideas would 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


[android-developers] Re: buscamos desarrollador

2010-09-01 Thread JPBerrocal
Buenas en que parte de latinoamerica?

On 31 ago, 09:50, biscuitapps  wrote:
> Buscamos desarrollador para hacer varias aplicaciones. Ubicado en
> latinoamerica, se valorara experiencia.
> Saludos.

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

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 3:15 PM, the2bears  wrote:
> Thanks for the reply.  It's unfortunate that these things are not
> documented, but that's a side effect of the *more* unfortunate fact
> they're not supported.

Well, they're applications, not part of the OS. They can be replaced,
removed, modified, etc.

> I want to launch
> an application when a chat session is started by a message from a
> specific account arrives.  I fear I may be out of luck.

Short of writing your own chat client, I don't see how this will be possible.

-- 
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] stuck right at the beginning

2010-09-01 Thread Frank Weiss
I suppose it's complaining about the @string:hello. Did you forget to
copy the strings.xml file as well?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Creating and using a “common platform” jar in Android - what works?

2010-09-01 Thread DJC
I am sub-dividing an app I have into "common platform" and "app"
layers so that I can distribute the platform as a jar for use by
partners - and retain my IP.  I now have two different Eclipse
projects. I moved all resource references into the app project - the
platform project gen directory is empty. I compiled and jar'd the
platform, imported the jar into the app project, marked the jar for
export, and successfully compiled and installed a test app:

public class NotifyService extends Service {
...
@Override
public void onStart(Intent intent, int startId) {
myNotify(intent.getIntExtra(EXTRA_ICON),...));
}

private void myNotify(int iconResource, String s1, String s2,
String s3) {
Context c = getApplicationContext();
if (H.VERBOSE) Log.d(TAG, "myNotify()"); //$NON-NLS-1$
Notification n = new Notification(iconResource, s1,
currentTime);
Intent nextStep = new Intent(Intent.ACTION_VIEW,Uri));
PendingIntent pending = PendingIntent.getActivity(c, 0,
nextStep, 0);
n.setLatestEventInfo(c, s2, s3, pending);
mgr.notify(1, n);
}...

The test activity launches as expected and I get the LogCat() message
from this service. But no notification is shown and no error is logged
- its just silent.

The only argument I've not passed in is the context. I didn't pass
that as I read that getApplicationContext() returns the single global
context - I can't imagine passing it will make the difference.

Anyway, I want partner apps to make use of my platform - which in turn
connects to services, content providers, the web, the works. Anyone
offer some guidance?

Many thanks!

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


[android-developers] Re: Content Provider URIs Documented?

2010-09-01 Thread the2bears

Mark,

Thanks for the reply.  It's unfortunate that these things are not
documented, but that's a side effect of the *more* unfortunate fact
they're not supported.

Any other ideas on how I might achieve my goal here?  I want to launch
an application when a chat session is started by a message from a
specific account arrives.  I fear I may be out of luck.

Bill





On Sep 1, 11:59 am, Mark Murphy  wrote:
> On Wed, Sep 1, 2010 at 2:54 PM, the2bears  wrote:
> > I found http://groups.google.com/group/android-developers/
> > browse_thread/thread/eac04c2a99eb681c/4a6c25fe0a956d17?
> > lnk=gst&q=broadcastreceiver">this link very helpful regarding how
> > to react to the arrival of an email.
>
> > The content: schema seems very sparsely documented, though.
>
> The content provider described in that thread is undocumented and
> should not be used.
>
> > Is there
> > an equivalent "content://gmail-ls" provider URI for Google Talk/Chat?
>
> None that is documented and supported.
>
> --
> 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] Re: Eclipse can't connect to adb

2010-09-01 Thread Arjun
try this

adb kill-server
adb start-server

please clarify whether dd you add tools to the class path

Thanks,
Arjun.

On Sep 1, 11:33 am, Steve Mathews  wrote:
> Was starting to worry that this message wasn't going to get through.
> Now hopefully someone has some ideas for me.
>
> On Tue, Aug 31, 2010 at 12:25 AM, Steve M  wrote:
> > So I have got Eclipse (Galileo) setup with ADT installed. I also got
> > the SDK installed. But when I run Eclipse I get "Failed to parse the
> > output of 'abd version'". And if I attempt to debug an app from
> > Eclipse I get:
> > [2010-08-31 00:21:05 - HelloWorld] --
> > [2010-08-31 00:21:05 - HelloWorld] Android Launch!
> > [2010-08-31 00:21:05 - HelloWorld] The connection to adb is down, and
> > a severe error has occured.
> > [2010-08-31 00:21:05 - HelloWorld] You must restart adb and Eclipse.
> > [2010-08-31 00:21:05 - HelloWorld] Please ensure that adb is correctly
> > located at 'C:\android-sdk-windows\tools\adb.exe' and can be executed.
>
> > I was able to run adb from the command line and install the
> > HelloWorld.apk from the bin directory to my phone. So it seems the
> > issue is between adb and eclipse. Searching the net got me a few
> > interesting pages, but none of the suggested changes worked for me.
> > Any ideas would be great.
>
> > Running Win 7 (64-bit)
> > Samsung Galaxy S (Vibrant)
>
> > Thanks,
> > Steve
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Using socket in a service communicating with more activities...

2010-09-01 Thread Jeremy Wadsack
Probably the best path to take would be to move your thread into a
Service.
Then use 
Intentsor
binding to connect activities to the service. Similarly you can have
the
service broadcast intents and use a
BroadcastReceiverwith
an
IntenetFilterto
listen for those messages from the service.

Have a look at the Application
Fundamentalsin
the Dev Guide and the sample code that ships with the SDK for examples
of
how to do this.

--
Jeremy Wadsack


On Sun, Aug 29, 2010 at 12:16 PM, kukukk  wrote:

> Hy!
>
> I want to create an application to remote control my PC. For example:
> Volume (get actual volume level, increase/decrease/mute volume),
> TVtime (start/quit tvtime, get actual channel, toggle fulscreen,
> channel up/down, toggle input source, toggle aspect ratio), Amarok
> (start/quit amarok, get current song, prev/next song, play/stop/
> pause), etc.
> The application for the PC is done (in python).
> The communication protocol used is very simple. For example:
> "volume:get_level", "volume:up", "volume:mute", etc.
> Now I'm working on the android application. What I have implemented
> till now is to create an activity, with:
> - an edittext to enter host:port
> - a button to connect/disconnect to/from server
> - the onCreate method creates a new thread for socket communication to
> send/receive messages to/from PC.
> - a textview to display information received from PC (eg. volume
> level)
> - a button to send command to PC
> I'm using handler to communicate between the tcpclient thread and the
> main activity. It is working...
> But I want to use more than 1 activity. I want to use different
> activity for every program controlled. Searching for a solution to
> transfer the thread's handler to a new activity I have found that it
> is not possible, and I have to use a service.
> So, my question is: how to send message from different activities to
> the same service, how to send message from service to the actual
> activity and how can I check in the service which is the actual
> activity?
>
> Because the service is running in the same thread as the activities I
> suppose that I still have to create a new thread for socket
> communication. How can I send the data received by the socket to the
> service?
>
> Thanks in advance,
> kukukk
>
> PS. I hope you understand my question and sorry if it is not the right
> forum for it
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] New Developer

2010-09-01 Thread TreKing
On Wed, Sep 1, 2010 at 1:47 PM, Frank Weiss  wrote:

> Please pore over developer.android.com before trying to ask
> "noob" questions.
>

QFE - It doesn't sound exciting, but having a look through the
documentation, class by class, is a fantastic way to learn about the system,
how it's structured, what kind of utility classes exist, and stuff that will
give you ideas that you otherwise wouldn't have thought of.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] What is the class name of media scanner service?

2010-09-01 Thread Jeremy Wadsack
http://www.netmite.com/android/mydroid/external/opencore/android/mediascanner.cpp

--
Jeremy Wadsack


On Tue, Aug 31, 2010 at 9:19 PM, Agus  wrote:

> What is the class name of media scanner service?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Content Provider URIs Documented?

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 2:54 PM, the2bears  wrote:
> I found http://groups.google.com/group/android-developers/
> browse_thread/thread/eac04c2a99eb681c/4a6c25fe0a956d17?
> lnk=gst&q=broadcastreceiver">this link very helpful regarding how
> to react to the arrival of an email.
>
> The content: schema seems very sparsely documented, though.

The content provider described in that thread is undocumented and
should not be used.

> Is there
> an equivalent "content://gmail-ls" provider URI for Google Talk/Chat?

None that is documented and supported.

-- 
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: Getting started with Android

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 2:49 PM, Frank Weiss  wrote:
> I forgot to add, books, such as Mark Murphy's http://commonsware.com/Android/

Thanks for the vote of confidence, guys!

-- 
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] Content Provider URIs Documented?

2010-09-01 Thread the2bears
Hello,

I found http://groups.google.com/group/android-developers/
browse_thread/thread/eac04c2a99eb681c/4a6c25fe0a956d17?
lnk=gst&q=broadcastreceiver">this link very helpful regarding how
to react to the arrival of an email.

The content: schema seems very sparsely documented, though.  Is there
an equivalent "content://gmail-ls" provider URI for Google Talk/Chat?
Can I have a ContentObserver monitoring chat sessions and then react
based on certain criteria?

Thanks in advance,

Bill

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

2010-09-01 Thread TreKing
On Sun, Aug 29, 2010 at 5:27 PM,  wrote:

> I was wondering if there is any generally accepted material as being one of
> if not the best in getting started with Android?


The online documentation and samples and a solid book, like Mark Murhpy's.

On Wed, Sep 1, 2010 at 1:43 PM, Tim  wrote:

> 
>

This is getting really old ...

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Getting started with Android

2010-09-01 Thread Frank Weiss
I forgot to add, books, such as Mark Murphy's http://commonsware.com/Android/

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


[android-developers] Re: Best resource to get started with Android development.

2010-09-01 Thread Tim
Dear David,

If you want to get started developing Android apps really quickly you
may wish to consider rapid application development tools such as our
MobiForms Developer.  MobiForms replaces the need to download 100s MB
of files and learn Eclipse, the Android SDK, Java and XML.

MobiForms is ideal for creating database orientated business apps.
MobiForms was the world's first rapid application development tool for
Google Android.  Additionally MobiForms apps will run on other
platforms like Windows Mobile without any reconfiguration.

With MobiForms apps that would traditionally take hours or days to
create can be developed in minutes using mainly drag and drop
programming rather than labourious low level Java or C programming.

For more information see our web site at: http://www.mobiforms.com.

Kind regards,

Tim @ MobiForms

David Smith wrote:
> Hi, I'm looking for something to get up and running quickly with Android
> development. Perhaps a great tutorial covering the basics. I see a lot of
> posts on getting started but the ones I have looked over so far aren't
> great. What do people here recommend?
>
> 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] New Developer

2010-09-01 Thread Frank Weiss
It really helps if you already have working knowledge of Java and Java
debugging. Depending on the kinds of apps you want to build, also
helps to have working knowledge of one or more of the following:
networking, graphics, OpenGL, client-server, XML and XML parsing.

Although you don't need to use Eclipse, most developers use it and if
you already use it, it helps.

Please pore over developer.android.com before trying to ask "noob"
questions. Search for, build, and run sample code.

And of course, google, this discussion list and some people like stackoverflow.

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

2010-09-01 Thread Tim
Dear Thomas,

If you want to get started developing Android apps really quickly you
may wish to consider rapid application development tools such as our
MobiForms Developer.  MobiForms replaces the need to download 100s MB
of files and learn Eclipse, the Android SDK, Java and XML.

MobiForms is ideal for creating database orientated business apps.
MobiForms was the world's first rapid application development tool for
Google Android.  Additionally MobiForms apps will run on other
platforms like Windows Mobile without any reconfiguration.

With MobiForms apps that would traditionally take hours or days to
create can be developed in minutes using mainly drag and drop
programming rather than labourious low level Java or C programming.

For more information see our web site at: http://www.mobiforms.com.

Kind regards,

Tim @ MobiForms

Thomas Creech wrote:
> Hey Guys,
>
>   I'm a new developer, and I was wondering if I could get some advise
> from you guys. What do I need to do to get myself established in the Android
> Developer Community and what things do can I research so that I can learn
> how to start developing. Any help is greatly appreciated.
>
>Thanks you guys,
>  Thomas

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

2010-09-01 Thread TreKing
On Mon, Aug 30, 2010 at 11:35 AM, Thomas Creech
wrote:

> What do I need to do to get myself established in the Android Developer
> Community


What do you mean get yourself "established"? There's no hazing process to
join the community ...


> and what things do can I research so that I can learn how to start
> developing.


http://developer.android.com/index.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Getting started with Android

2010-09-01 Thread Tim
If you want to get started developing Android apps really quickly you
may wish to consider rapid application development tools such as our
MobiForms Developer.  MobiForms replaces the need to download 100s MB
of files and learn Eclipse, the Android SDK, Java and XML.

MobiForms is ideal for creating database orientated business apps.
MobiForms was the world's first rapid application development tool for
Google Android.  Additionally MobiForms apps will run on other
platforms like Windows Mobile without any reconfiguration.

With MobiForms apps that would traditionally take hours or days to
create can be developed in minutes using mainly drag and drop
programming rather than labourious low level Java or C programming.

For more information see our web site at: http://www.mobiforms.com.

sdoyl...@yahoo.com wrote:
> Google produces a lot of hits on getting started with Android development but 
> I
> was wondering if there is any generally accepted material as being one of if 
> not
> the best in getting started with Android?
>
> 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] Web browser

2010-09-01 Thread Frank Weiss
Do you mean a web browser or a web server? In either case, it's not
clear why for a class project you would want to implement that on
Android instead of on desktop, unless, of course that would be to
boring for an advanced Java developer.

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


Re: [android-developers] Eclipse can't connect to adb

2010-09-01 Thread Steve Mathews
Was starting to worry that this message wasn't going to get through.
Now hopefully someone has some ideas for me.

On Tue, Aug 31, 2010 at 12:25 AM, Steve M  wrote:

> So I have got Eclipse (Galileo) setup with ADT installed. I also got
> the SDK installed. But when I run Eclipse I get "Failed to parse the
> output of 'abd version'". And if I attempt to debug an app from
> Eclipse I get:
> [2010-08-31 00:21:05 - HelloWorld] --
> [2010-08-31 00:21:05 - HelloWorld] Android Launch!
> [2010-08-31 00:21:05 - HelloWorld] The connection to adb is down, and
> a severe error has occured.
> [2010-08-31 00:21:05 - HelloWorld] You must restart adb and Eclipse.
> [2010-08-31 00:21:05 - HelloWorld] Please ensure that adb is correctly
> located at 'C:\android-sdk-windows\tools\adb.exe' and can be executed.
>
> I was able to run adb from the command line and install the
> HelloWorld.apk from the bin directory to my phone. So it seems the
> issue is between adb and eclipse. Searching the net got me a few
> interesting pages, but none of the suggested changes worked for me.
> Any ideas would be great.
>
> Running Win 7 (64-bit)
> Samsung Galaxy S (Vibrant)
>
> Thanks,
> Steve
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] android.media.MediaPlayer Uri port

2010-09-01 Thread Rico
Trying to use MediaPlayer to play an MP3 file hosted remotely on a
server that is serving the file up on a non-standard port (e.g. 8080).

Code looks like this:

android.net.Uri uri = android.net.Uri.parse("http://www.xyz.com:8080/
sample.mp3");
Log.d("debug", "port: " + uri.getPort()); // just verifying
Uri.parse() was ok.  prints out port: 8080.
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(context, uri);
mp.prepareAsync();

However, I can see on the server that the request is made on port 80
regardless of the port set in the Uri.  If the file gets server up on
port 80, then it plays fine.

Should I be setting the port elsewhere instead of in the Uri?

Thanks.

Rico Y
http://www.soundhound.com/android

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


[android-developers] Re: Android Market Licensing: Now Available!

2010-09-01 Thread Mike Hearn
> In a nutshell, what I'm hoping LVL can grow into is a system that
> packages license verification in a way that is really really hard to
> remove.  It seems like we've got half of that equation nicely under
> way with LVL in its current form.

The sort of anti-piracy system you're after is essentially what games
consoles use - it's very easy for the developer, in fact, they need do
nothing at all and (for games distributed online) they are piracy
proof.

But the costs of this system are enormous, and problematically, fall
squarely on the device manufacturer (Microsoft/Sony). If Android were
to try and adopt this sort of scheme, you can forget about

- Competing hardware vendors
- Frequent new hardware releases
- Cost-competitive devices (ie they'd be more expensive than the
iPhone)
- Open source

Android obviously chose to go down the route of having a competitive
hardware and software space, at the cost of having piracy.

There is a phone platform that matches the above criteria, the iPhone,
but Apple didn't bother to make the investment in security required so
you get all the downsides and none of the upsides.

> That's not what I was picturing.  Isn't there some way that we could
> do both?  Apps downloaded from market could be encrypted and only
> decrypted by the OS when used (in real time, never decrypted and left
> as an open APK on the device).

This is easily defeated by modifying the (open source!) runtime to
dump the decrypted version.

Worse, once done it applies to every app. We're back to the universal
crack.

The reason I keep harping on about strong, app specific code
obfuscation etc is precisely because you DO need to encrypt your app
but you DON'T want to do it the same way as everyone else, which an
Android provided solution would imply.

Nothing says there can't be a PC-style reusable toolkit that you can
easily integrate into your app, but it'd be provided by third parties
rather than the Android project.

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


  1   2   3   >