[android-developers] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Panayotis Katsaloulis
Hello all!

I am trying to use AndroidDebugBridge in my desktop application but I fail.
Namely, although I am able to get a list of devices currently attached to my 
system, I am not able get a list of Clients (the running applications and 
especially my running application). 
Here is a minimal example:

   AndroidDebugBridge.init(false);
   AndroidDebugBridge adb = AndroidDebugBridge.createBridge(PATH_TO_adb, 
true);
   try {
   Thread.sleep(1000);
   } catch (InterruptedException ex) {
   }
   System.out.println(adb.getDevices().length);
   System.out.println(adb.getDevices()[0].getClients().length);
   adb.terminate();

Here is the example output:
1
0
which means that I do get a device, but I don't get any clients. 
Can you help me what I am doing wrong?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Xavier Ducrohet
does DDMS show those clients? ddms/lib will only show clients that are
debuggable (or all of them on the emulator).

Also doing a sleep and getting the device list is not the way to go.
You should register listener on the bridge to be notified as devices
get discovered/disconnected and clients are started/killed.

Xav

On Thu, Mar 3, 2011 at 12:07 AM, Panayotis Katsaloulis
panayo...@panayotis.com wrote:
 Hello all!

 I am trying to use AndroidDebugBridge in my desktop application but I fail.
 Namely, although I am able to get a list of devices currently attached to my 
 system, I am not able get a list of Clients (the running applications and 
 especially my running application).
 Here is a minimal example:

       AndroidDebugBridge.init(false);
       AndroidDebugBridge adb = AndroidDebugBridge.createBridge(PATH_TO_adb, 
 true);
       try {
           Thread.sleep(1000);
       } catch (InterruptedException ex) {
       }
       System.out.println(adb.getDevices().length);
       System.out.println(adb.getDevices()[0].getClients().length);
       adb.terminate();

 Here is the example output:
 1
 0
 which means that I do get a device, but I don't get any clients.
 Can you help me what I am doing wrong?

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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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] Use AndroidDebugBridge and ddmlib in my own desktop application

2011-03-03 Thread Panayotis Katsaloulis

On 03 Μαρ 2011, at 10:33 π.μ., Xavier Ducrohet wrote:

 does DDMS show those clients? ddms/lib will only show clients that are
 debuggable (or all of them on the emulator).

Yes it does. I can see it with a bug icon next to it.

What I did (and forgive me if I am wrong), is to start it with a command 
similar to
adb shell am start -D -n package.name/.Activity


 Also doing a sleep and getting the device list is not the way to go.
 You should register listener on the bridge to be notified as devices
 get discovered/disconnected and clients are started/killed.
 

Yes, I've done this too. Exactly same results.
But for the sake of the example, I shortened my code.


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


[android-developers] Re: Announcing: The Android Developers Union

2011-03-03 Thread JAlexoid (Aleksandr Panzin)
Yes it was really funny. But there is a grain of joke in every joke.

On 2 мар, 23:38, TreKing treking...@gmail.com wrote:
 2011/3/2 JAlexoid (Aleksandr Panzin) jalex...@gmail.com

   H  who do I really hate?
  Ironically, the fact that you have written this, makes it more obvious what
  a nightmare Android Market is at the moment.

 Can you explain that? I'm pretty sure she was joking, and I at least thought
 it was pretty funny. Something I would say =)

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

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


[android-developers] Re: Announcing: The Android Developers Union

2011-03-03 Thread JAlexoid (Aleksandr Panzin)
Is there a list for Market similar to this one?

On 3 мар, 08:12, Dianne Hackborn hack...@android.com wrote:
 Do I not count as a response from Google?

 Oh you mean a response answering question about Market?  As I said there,
 nobody from the Market team is on this list, so you shouldn't be surprised
 by not getting responses to questions that people on this list can't answer.
  The people here work on the platform, not on Market.  We can't talk about
 what Market is doing.

 I believe all of the people who posted here have posted to other lists.
  Some of them are more likely to post to the open source lists, etc.



 On Wed, Mar 2, 2011 at 7:41 PM, TreKing treking...@gmail.com wrote:
  This recent 
  threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
   asking
  a simple question about the state of in-app billing has received no response
  from anyone at Google.

  This thread has received 4, 2 of which I, personally, have never even seen
  post before.

  This make me sad. =(

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

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

 --
 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] facebook cache

2011-03-03 Thread yanamala siddaiah
  I want to cache for facebook friends data storage .  Every time send
request get the friends dat , it takes much time if we are having many
friends. so until log out the use get the friends data and store one
simple cache get the friends data from cache..only...

is it possible , if give me help .

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: Detect Gestures Left-Right/Right-Left

2011-03-03 Thread JAlexoid (Aleksandr Panzin)
People fail to notice that there is a Gesture Demo and Gesture Builder
in the samples with the SDK.

On 3 мар, 06:28, Justin Anderson magouyaw...@gmail.com wrote:
 Have you done anything at all to help yourself get started?  Like maybe a
 google search looking for a tutorial that does just that?

 http://lmgtfy.com/?q=android+detect+gestures+tutorial

 On Sun, Feb 27, 2011 at 12:07 PM, Vargas estudiant...@gmail.com wrote:
  Hi, I'm developing an app(like a calculator) that has a set of
  buttons(keyboard) and an EditText and i want my app to detect simple
  gestures like left-right or right-left, but i don't know how to do it.
  I need help!

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

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


[android-developers] how to understand when I am at the bottom of a page in WebView

2011-03-03 Thread Mincho Kolev
Hi All,
How can i understand if when I am at the bottom of a web page?
When scrolling down i need to find out when i am at the bottom or very
close to it, but that proves to be a challenge.
I use onScrollChanged method /@Override protected void
onScrollChanged(int x, int y, int oldx, int oldy)/ , but the y is
probably not in the same pixels as the getContentHeight() method.
I thought that this is because of the automatic scaling that android
does if the density is not specified, but this did not helped as still
with pages that have very big height or with some that barely exceed
the screen size it act totally different.

Any Ideas on that problem? Anyone ever need to find out if onscroll it
has hit the bottom?
Is there another event, like for example onBottomReached() or
something? :)

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

2011-03-03 Thread Peter Sinnott
Does http://www.google.com/support/forum/p/Android+Market count?

On Mar 3, 9:18 am, JAlexoid (Aleksandr Panzin) jalex...@gmail.com
wrote:
 Is there a list for Market similar to this one?

 On 3 мар, 08:12, Dianne Hackborn hack...@android.com wrote:

  Do I not count as a response from Google?

  Oh you mean a response answering question about Market?  As I said there,
  nobody from the Market team is on this list, so you shouldn't be surprised
  by not getting responses to questions that people on this list can't answer.
   The people here work on the platform, not on Market.  We can't talk about
  what Market is doing.

  I believe all of the people who posted here have posted to other lists.
   Some of them are more likely to post to the open source lists, etc.

  On Wed, Mar 2, 2011 at 7:41 PM, TreKing treking...@gmail.com wrote:
   This recent 
   threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
asking
   a simple question about the state of in-app billing has received no 
   response
   from anyone at Google.

   This thread has received 4, 2 of which I, personally, have never even seen
   post before.

   This make me sad. =(

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

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

  --
  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] Question on layouts

2011-03-03 Thread Patrick
I tried your suggestions but still no result:

The header layout is set to android:layout_weight=0 and the list to 
android:layout_weight=1. In addition I exchanged the 
android:layout_height=fill_parent of the list to 
android:layout_height=wrap_content. The new XML looks like this, but still 
doesn't work...

Do you have any other idea what could be wrong?

FrameLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical android:layout_width=fill_parent
android:layout_height=fill_parent

LinearLayout android:layout_width=fill_parent
android:layout_height=wrap_content android:orientation=vertical 


LinearLayout android:layout_width=fill_parent 
android:layout_weight=0
android:layout_height=wrap_content 
android:orientation=horizontal style=@android:style/ButtonBar

ImageView android:src=@drawable/icon
android:layout_width=wrap_content 
android:layout_height=wrap_content /

TextView android:text=@string/titleheader
android:layout_width=wrap_content 
android:layout_height=wrap_content
android:textStyle=bold 
android:textAppearance=?android:attr/textAppearanceLarge /

/LinearLayout


ListView android:visibility=visible android:id=@android:id/list
android:layout_width=fill_parent 
android:layout_height=wrap_content android:layout_weight=1 /


/LinearLayout


LinearLayout android:id=@+id/footer android:layout_weight=0
android:layout_width=fill_parent 
android:layout_height=wrap_content
android:orientation=horizontal 
android:layout_gravity=bottom|center
android:layout_alignParentBottom=true 
style=@android:style/ButtonBar

ImageButton android:id=@+id/loacreation.previousButton
android:layout_width=wrap_content 
android:layout_height=wrap_content
android:layout_weight=1 
android:src=@drawable/buttonarrowleft /

ImageButton android:id=@+id/loacreation.nextButton
android:layout_width=wrap_content 
android:layout_height=wrap_content
android:layout_weight=1 
android:src=@drawable/buttonarrowright /
/LinearLayout


/FrameLayout


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

2011-03-03 Thread Tom
Hi,

I don't want to override it, just to clear apps list.
The only way to clear it is to turn off the mobile?


On 2 mar, 17:11, Justin Anderson magouyaw...@gmail.com wrote:
 No.  This is internal to the OS and cannot be overridden...







 On Wed, Mar 2, 2011 at 9:09 AM, Tom thomas.coz...@gmail.com wrote:
  Hi,

  When I do a long press on Home Button, recent apps stack appears.
  Is there a way to remove or hide this stack?

  Best regards

  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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it possible to limit/prevent screen projection in Android?

2011-03-03 Thread Samuh
Hi:

We are attempting to play certain live content on Android clients that
are protected using some DRM scheme. Not sure how foolproof DRM is or
will be; is it possible to restrict projection of display by blocking
USB or HDMI ports if available on device? Is this even allowed?

Are there any APIs available for doing that?

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] wbxml parser

2011-03-03 Thread Praneeth
Hi,

There is a wbxml parser in IM application in android code base.

I want to know which version of SYNCML does the parser follow.

Could anyone help me on this?

Thanks
Praneeth

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


[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-03 Thread Doug
Use BitmapFactory and feed it the path of the file you saved, wherever
you saved it.

On Mar 2, 2:15 am, Stephan Wiesner testexpe...@googlemail.com wrote:
 Hi,
 my app displays some pictures I want to replace at certain intervals by
 downloading them from a webpage.
 I can set the image from my drawable folder, assets folder or by downloading
 it from a webpage:

 ImageView im = (ImageView) findViewById(R.id.SplashLogo);
                 // url = file:///android_asset/pic.png;
 InputStream is = (InputStream) new URL(url).getContent();
 Drawable d = Drawable.createFromStream(is, src name);

 What I want, however, is to display an image that I downloaded previously to
 internal storage (or sdcard if i have to).
 So: How do set the filename/folder to point to internal storage?

 Thanks,
 Stephan

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

2011-03-03 Thread Tom

Hi,

I know there is a way to expand/collapse and hide status bar.
But is it possible to lock it?

I would keep status bar visible (with time, battery informations) and
disable the manual expandable/collapsable.

best regards

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


[android-developers] Developers beware - Advanced Mobile Solutions, UK publisher, does not pay royalties to developers

2011-03-03 Thread Mobile
I've had a terrible experience with the UK publisher Advanced Mobile
Solutions - http://advancedmobilesolutions.com/
We' signed an agreement in May 2010, they got my app, sent me one
royalty report for June (no money, only a report) and then
disappeared. They can ignore my emails for months, and when they do
bother to answer, they promise to send me at least royalty reports
soon. But nothing has been done.

I warn everyone not to deal with those people.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: HELP: App wont open on selected mobiles (LG Ally, Dell Streak 7, Xperia X10 mini)

2011-03-03 Thread fully
String thanks again for any advice.

as mentioned Im new to android, there are no stack traces for this
error by the looks of it.

if you mean by the term recycled bitmaps, is using the bitmaps again
in the res folder then yes that does apply, I shall have to get more
graphics made up for the different size res folders.

Sorry for the noobish posts

On Feb 21, 9:55 pm, String sterling.ud...@googlemail.com wrote:
 On Friday, February 18, 2011 4:16:31 PM UTC, fully wrote:

 Well the installs fine as far as im aware, but upon loading the app

  you see it load then immediately closes no warning or error.

 I've also seen messageless errors (which kill the app) resulting from using
 recycled bitmaps in drawables. Don't know if that applies to your app, but
 hey, you're not giving us much to go on here.

 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


Re: [android-developers] Question on layouts

2011-03-03 Thread Kostya Vasilyev

FrameLayout only shows one child at a time.

You probably meant your top-level layout to be a LinearLayout (judging 
by the orientation attribute).


-- Kostya

03.03.2011 12:54, Patrick пишет:

I tried your suggestions but still no result:

The header layout is set to android:layout_weight=0 and the list to 
android:layout_weight=1. In addition I exchanged the 
android:layout_height=fill_parent of the list to 
android:layout_height=wrap_content. The new XML looks like this, but 
still doesn't work...


Do you have any other idea what could be wrong?

FrameLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical android:layout_width=fill_parent
android:layout_height=fill_parent

LinearLayout android:layout_width=fill_parent
android:layout_height=wrap_content android:orientation=vertical 

LinearLayout android:layout_width=fill_parent android:layout_weight=0
android:layout_height=wrap_content android:orientation=horizontal 
style=@android:style/ButtonBar


ImageView android:src=@drawable/icon
android:layout_width=wrap_content 
android:layout_height=wrap_content /


TextView android:text=@string/titleheader
android:layout_width=wrap_content android:layout_height=wrap_content
android:textStyle=bold 
android:textAppearance=?android:attr/textAppearanceLarge /


/LinearLayout


ListView android:visibility=visible android:id=@android:id/list
android:layout_width=fill_parent 
android:layout_height=wrap_content android:layout_weight=1 /



/LinearLayout


LinearLayout android:id=@+id/footer android:layout_weight=0
android:layout_width=fill_parent android:layout_height=wrap_content
android:orientation=horizontal android:layout_gravity=bottom|center
android:layout_alignParentBottom=true style=@android:style/ButtonBar

ImageButton android:id=@+id/loacreation.previousButton
android:layout_width=wrap_content android:layout_height=wrap_content
android:layout_weight=1 android:src=@drawable/buttonarrowleft /

ImageButton android:id=@+id/loacreation.nextButton
android:layout_width=wrap_content android:layout_height=wrap_content
android:layout_weight=1 android:src=@drawable/buttonarrowright /
/LinearLayout


/FrameLayout


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



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

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


Re: [android-developers] Lock status bar

2011-03-03 Thread Marcin Orlowski
On 3 March 2011 11:27, Tom thomas.coz...@gmail.com wrote:


 I know there is a way to expand/collapse and hide status bar.
 But is it possible to lock it?

Phone app locks, so definitely there is, but doubt it's public
-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Hi, all. Hope someone could give me a hand.

2011-03-03 Thread 刘思聪
Hi:

I was wondering, how to send registration_id (of c2dm) to a certain server?

I looked up the Android google documentation, but still confused.

We should send our own information, such as username, together with
registeration_id, right?

If so, we should put those Java codes in handleRegistration() function or
other place.

Thanks a million.

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

Re: [android-developers] Question on layouts

2011-03-03 Thread paulb
G;day mate,

FrameLayouts are usually only used forshowing one item at a time. You
can layout multiple views, but they will all be laid on top of each
other. There is a use for this, but I suspect not for your description
of the problem.

I would use a RelativeLayout - they make my life so much easier. With
a relative layout you can specify that:

- the RelativeLayout is to take up the entire screen
(layout_height=fill_parent, etc)
- the header is to stay at the top (alignParentTop=true)
- the footer / navigation bar is to stay at the bottom (alignParentBottom=true)
- the listview is to take up all the rest of the space
(layout_below=@+id/header , layout_above=@+id/footer,
layout_height=fill_parent)

I noticed you used alignParentBottom in your last layout - maybe you
intended to use a RelativeLayout instead.


Also, if you plan to make more than one screen with this pattern, I
would put the title bar and the navigation into separate layouts and
then include them in the main layout.


For example:

RelativeLayout
android:layout_height=fill_parent
android:layout_height=fill_parent

LinearLayout android:id=@+id/header android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_alignParentTop=true
android:layout_centerHorizontal=true
android:orientation=horizontal style=@android:style/ButtonBar

ImageView android:src=@drawable/person
android:layout_width=wrap_content
android:layout_height=wrap_content /

TextView android:text=@string/personstring
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textStyle=bold
android:textAppearance=?android:attr/textAppearanceLarge /
/LinearLayout

  ListView android:visibility=visible android:id=@android:id/list
android:layout_width=fill_parent android:layout_height=fill_parent
android:layout_below=@+id/header android:layout_above=@+id/footer /

LinearLayout android:id=@+id/footer
android:layout_alignParentBottom=true
android:layout_centerHorizontal=true
android:layout_width=fill_parent android:layout_height=wrap_content
android:orientation=horizontal
style=@android:style/ButtonBar

ImageButton android:id=@+id/loacreation.previousButton
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_weight=1 android:src=@drawable/buttonarrowleft /

ImageButton android:id=@+id/loacreation.nextButton
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_weight=1
android:src=@drawable/buttonarrowright /
/LinearLayout


/RelativeLayout


On Thu, Mar 3, 2011 at 3:37 AM, Patrick patrick.manges...@gmail.com wrote:
 Hallo!

 I want to create a Wizzard like layout which should look like described:
  * at the top should be some kind of title of the current dialog
  * at the bottom should be a navigation bar containg buttons for
 next/previous and various operations. THis bar should always(!) be at the
 very bottom of the screen.
  * at the center should be a list (should use all the space left, except the
 title bar and the navigation bar described above)

 My first attempt is posted below. I used framelayout however I was told this
 is a bad idea. The problem I ran into is that last row of my list is below
 the bar with the buttons at the bottom of the screen. Do you have any
 suggestions on how I could solve my Problem?

 Thanks

 Here's my not working draft:

 FrameLayout xmlns:android=http://schemas.android.com/apk/res/android;
     android:orientation=vertical android:layout_width=fill_parent
     android:layout_height=fill_parent

 LinearLayout android:layout_width=fill_parent
         android:layout_height=wrap_content android:orientation=vertical


     LinearLayout android:layout_width=fill_parent
         android:layout_height=wrap_content
 android:orientation=horizontal style=@android:style/ButtonBar

         ImageView android:src=@drawable/person
             android:layout_width=wrap_content
 android:layout_height=wrap_content /

         TextView android:text=@string/personstring
             android:layout_width=wrap_content
 android:layout_height=wrap_content
             android:textStyle=bold
 android:textAppearance=?android:attr/textAppearanceLarge /

     /LinearLayout


     ListView android:visibility=visible android:id=@android:id/list
         android:layout_width=fill_parent
 android:layout_height=fill_parent /


 /LinearLayout
 LinearLayout android:id=@+id/footer
         android:layout_width=fill_parent
 android:layout_height=wrap_content
         android:orientation=horizontal
 android:layout_gravity=bottom|center
         android:layout_alignParentBottom=true
 style=@android:style/ButtonBar

         ImageButton android:id=@+id/loacreation.previousButton
             android:layout_width=wrap_content
 android:layout_height=wrap_content
            

[android-developers] Re: Wifi sleeps... even with lock

2011-03-03 Thread bruce
Grab a screen lock as a work around.  Nexus One has some issues with
the low-power mode.  Unfortunately, from my wireshark traces it
basically fails to wakeup for multicast events due to aggressive power
saving.  Other devices will perform differently.  It would be better
if they released a patch for this so 2.2 can get an update.  Releasing
for a later version 2.3, doesn't help much.

Cheers

On Mar 2, 10:21 pm, J javier.sed...@gmail.com wrote:
 On 2 mar, 22:55, Irfan Sheriff isher...@gmail.com wrote:



  The full lock thats used by default on a createWifiLock() keeps wifi up at
  all times but it does not control the driver level power optimizations that
  are done on devices. When screen goes off, drivers changes settings to
  reduce power usage on wifi. This can lead to wifi getting disconnected or
  the packet loss and delay increase when the screen is off.

   So maybe my problem is caused by the low-level driver, and it works
 on some devices. Right? :-(

  For application scenarios, where we need the best wifi performance at all
  times (a VoIP call in progress) as an example, we are going to add a new
  lock type that will disable the power optimizations in the driver (if the
  driver supports its). This will be out in the next release and can be used
  at times when  wifi performance is criticial

   Great, that's what I would like. When you say we are going to...
 you mean a future release of android? 2.4/3.1 or so?

 Thanks for the help.

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


[android-developers] ListView update problem.

2011-03-03 Thread Namit Rana
I have a ListView with a custom BaseAdapter.

in getView(...) in CustomBaseAdapter class...

I have specified gray color in the 1st row and white color in all
other rows.

if(position==0){
   holder.text1.setBackGroundColor(Color.gray) // same for next 2
TextView views.
}else{
   //set the textview color to white
}

After I change the content of the specific row (all textViews), I
call
   this.notifyDataSetChanged();

The data gets updated properly, but the last row of the ListView
displays gray color along with the first row.
But I have set the gray color to the 1st row..

Any help???
Regards



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


[android-developers] Re: Contacts.NAME_RAW_CONTACT_ID cant be edited, bug or a future feature?

2011-03-03 Thread Jens
You cannot.

First, look at the code for the provider,

http://www.google.com/codesearch/p?hl=en#cbQwy62oRIQ/src/com/android/providers/contacts/ContactsProvider2.javaq=ContactsProvider2.javal=3887

and you'll notice that it only allows updates for the non-managed
fields on Contacts, i.e. the fields which are not built by the
aggregation function.

However, you might be able to force an update of this particular
managed field by updating all the StructuredName rows of the
RawContacts that make up the Contact row (or just updating the one,
however that could have adverse effects on the aggregation I suspect).

Br,


On 28 Feb, 14:04, Koby koby...@gmail.com wrote:
 No one can help on this issue? it's really important and i'v looked
 everywhere.
 Maybe i am doing something wrong.

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

2011-03-03 Thread monty
What does the getItemText(int pos)   method in your code do?

On Mar 1, 7:26 pm, Justin Anderson magouyaw...@gmail.com wrote:
 The way I implemented mine in AppSwipe! is a little complex...  Here is a
 quick overview of what I did:

 - I subclassed RelativeLayout and created a new class called TitledGallery
 that holds the Gallery and two TextViews (for reusability reasons because I
 have up to 5 of these in the main display)
 - My image adapter has the following method: public String getItemText(int
 pos)
 - My getView method only deals with the ImageView in the Gallery... It does
 not change the text in the view
 - I implemented onItemSelectedListener and put this listener on my Gallery
 - I update the text in OnItemsSelectedListener.onItemSelected() and
 OnItemSelectedListener.onNothingSelected()

 Hope that helps!

 On Tue, Mar 1, 2011 at 4:29 AM, monty neilm30s...@gmail.com wrote:
  Sorry the apps name is AppSwipe

  On Mar 1, 3:53 pm, monty neilm30s...@gmail.com wrote:
   Actually my requirement is that when when the gallery is scrolled
   there will be a TextView at bottom of Gallery that will display the
   name of the image or some information related to that image.Now i want
   that when i scroll and stop the Gallery the image in the middle of
   Gallery should have its data displayed in the TextView.You can check
   the above code i have posted.
    There is an AppAwipe app that does this.Check it out and you will
   understand my requirement.
   Please let me know if any solution.

   On Mar 1, 3:29 pm, Gergely Juhász jg.sv...@gmail.com wrote:

sorry for the syntax:
What if you use TextViews instead of using ImageViews?

On 1 March 2011 11:28, Gergely Juhász jg.sv...@gmail.com wrote:

 What is you use TextView instead of using image views.
 TexView has an attribute android:drawableTop. With that you can
  simple
 draw an image above the text.
 Or you can use a vertical linear layout as the view element (wtih an
 image and a text).

 On 1 March 2011 11:13, monty neilm30s...@gmail.com wrote:
 yes.. i have checked that code.But here he is not displaying any
  text
 when the Gallery is scrolled.So any solution?Am i missing some API
  or
 something in the code i sent you.?

 On Mar 1, 2:59 pm, Gergely Juhász jg.sv...@gmail.com wrote:
 what do you think about this:
 http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html
 it's a nice cover flow using the gallery

 On 1 March 2011 10:41, monty neilm30s...@gmail.com wrote:

  Yes the data displaying is correct.The parsing is fine.The only
  issue
  is its not working like your app where you are highlighting the
  centre
  item of the Gallery and displaying it.Could u then please give a
  brief
  view of yourcode.Are you also using getView() and implementing
  the
  code?

  On Mar 1, 2:35 pm, Justin Anderson magouyaw...@gmail.com
  wrote:
  Well... I didn't notice anything that wrong with your code (but
  I may have
  missed something).  Have you checked your parsing code to make
  sure that the
  data is accurate once you've parsed the xml?

  On Tue, Mar 1, 2011 at 2:23 AM, monty neilm30s...@gmail.com
  wrote:
   Hi
   Here clip_model is an arraylist that will hold the data of xml
  we
   parse.And here i am getting the data for from that arraylist
  using the
   position variable.
   Also i went thru your app ,thats exactly what i want for my
  app.

   On Mar 1, 1:33 pm, Justin Anderson magouyaw...@gmail.com
  wrote:
What is clip_model?

On Tue, Mar 1, 2011 at 12:32 AM, monty 
  neilm30s...@gmail.com wrote:
 Hi,
 Following is part of code from the Activity.Hope the code
  will be
 clear enough for you to understand.Please let me know how
  to resolve
 this issue.It would be really helpful.

  setContentView(R.layout.chapter_clips);

 //will have Gallery,WebView and TextView.The WebView and
   TextView
 data has to be changed when i scroll the Gallery,so i call
  the Webview
 and TextView in the getView() of the adapter.

   Gallery g = (Gallery) findViewById(R.id.gallery);
                g.setAdapter(new
  ImageAdapter(this));//calling the
   Adapter
 class
                g.setAnimationDuration(3000);
                g.setOnItemSelectedListener(this);

    public class ImageAdapter extends BaseAdapter {
                 int mGalleryItemBackground;

                public ImageAdapter(Context c) {
                    mContext = c;

                }

                public int getCount() {

                        return
  mchaptermodel.clip_model.size();
                }

                public Object getItem(int position) {
                    return position;
                }

            

[android-developers] Re: Two activities in one window

2011-03-03 Thread Mika
Thanks for all the suggestions. Might be that I'll try to do this with
putting the values to a notification as TreKing suggested.

David I'll check the app you mentioned. In the Android API APN
settings are Secure Settings, which means that 3rd party apps are not
allowed to write them. But if GiffGaffAPN can do it, maybe there's
some hack that I'm not aware of. :)

-Mika

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Fast way to save images in lossless format?

2011-03-03 Thread RyanMcNally
Take a look at the TGA image format - it can be boiled down to an 18
byte header and then a simple dump of pixel data. I can't see any
other formats being much faster than that.

On Mar 2, 8:14 pm, spaceraiders spaceraid...@gmail.com wrote:
 My app involves saving 480x854 ARGB images (1.6Mb of data) in
 lossless format. I've been using Bitmap.compress to do this in PNG
 format but have observed this method can take several seconds to
 finish.

 When used with typical photographs, this method takes between 2 and 5
 seconds to return on a Droid phone for me, compressing the data to
 about 0.4Mb. Is there a way to save images in a lossless format in
 less time than this?

 I was hoping to tweak the compression parameters for saving the PNG
 file but Bitmap.compress offers no options (it ignores the compression
 parameter). Based on the output file sizes, my suspicion is this
 method uses a high level of compression and, if this could be reduced,
 the images could be saved faster.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Mark Carter
Thanks Rob but what I'm thinking about goes beyond an alternative UI.

At the moment my app supports 1.5+ and has reached a very good level of
stability. The sort of changes I have in mind for a Honeycomb version would
probably be combined with a complete rewrite.

If I do a complete rewrite then it really doesn't make sense to support
anything below 2.1 (since the current percentage of devices in that bracket
is very small, and will only get smaller).

Therefore, in an ideal world (!), I would like the 1.5/1.6 users to use the
existing, well-tested version and the other users will get the newer stuff.

I think we're going to see a need for this more and more as we progress
through SDK levels. For a given app, the dev will gradually increase the min
SDK level because it's just not worth all the extra testing involved.

From the 1.5/1.6 user perspective, he will see less and less apps in the
Android Market. In fact, the only apps he will see are ones that were
abandoned completely by the dev. The good apps (still being maintained) will
not be available at all because of this inability to specify multiple APKs.

This is particularly problematic for paid apps. If you increase the min SDK
level and then a lower SDK user reflashes his device, he will no longer be
able to install your app.  He won't even see it on the Market. That will
then lead to support emails along with the cumbersome directions on how to
install a legacy APK manually.

The biggest problem however, is that the current single-APK approach is
significantly affecting dev up-take of Honeycomb features.  Certainly in my
case, and probably many others.

On 3 March 2011 14:39, Rob rob.otoo...@gmail.com wrote:

 having one apk to rule them all is a tricky thing to manage. i just
 recently launched with normal, large, and xlarge layouts along with
 landscape for large and xlarge. it is not easy, it takes a ton of
 regression testing, but is totally worth it.

 there are some people that are developing seperate apps for tablet. i
 wouldn't recommend it, personally. maybe if you pull out all business
 logic and throw it in a library it may be easier but there would be a
 ton of redundant work. abstract out the work of building out the
 views, and that will allow you to manage each resolution re-using the
 same techniques.


 one tip is to have a very easily accessible flag that allows you to
 differentiate which device you're running on.

 //check to see if we have a tablet, large or phone, and then set the
 global flag
int screenLayout =
 getResources().getConfiguration().screenLayout;
model.isTablet = ((screenLayout 
 Configuration.SCREENLAYOUT_SIZE_MASK) ==
 Configuration.SCREENLAYOUT_SIZE_XLARGE);

//if isTablet is false, check to see if we have a Large
 device, else
 we have a phone
if(model.isTablet == false){
model.isLarge = ((screenLayout 
 Configuration.SCREENLAYOUT_SIZE_MASK) ==
 Configuration.SCREENLAYOUT_SIZE_LARGE);
if(model.isLarge){
model.deviceSize = Large;
}else{
model.deviceSize = Phone;
}
}else{
model.deviceSize = Tablet;
model.isLarge = false;
}

 throw in a isLandscape if that matters as well.

 public boolean isLandscape(Context context) {
int orientation =
 context.getResources().getConfiguration().orientation;
return (orientation == Configuration.ORIENTATION_LANDSCAPE);
}

 by using these flags on simple singleton model, you can easily build
 out the appropriate view for any scenarioexcept for small. just
 add a new flag for that ;)

 -rob

 On Mar 2, 11:51 pm, Mark Carter mjc1...@googlemail.com wrote:
  One of the main reasons I have not started any Honeycomb-specific
  development is because of the extra complexity it would bring to my
 existing
  codebase.
 
  If it were possible to upload multiple APKs (targeting different SDK
 level
  ranges) for the same app, I would be much more likely to take advantage
 of
  features of the latest SDK releases.
 
  I know it's possible to do all this using various approaches like
 reflection
  but I don't want to risk introducing bugs to those running on older
 levels.
  Also why should old users receive all the updates that are just fixing
  Honeycomb-issues?
 
  If I could develop a Honeycomb (and later) APK (and upload that alongside
  the existing APK) then that would solve these problems.
 
  BTW, for me, having a completely separate app for Honeycomb, is not an
  option.
 
  Is this something that has been discussed much before? Is it ever likely
 to
  happen?

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

Re: [android-developers] Re: Fast way to save images in lossless format?

2011-03-03 Thread Marcin Orlowski
On 3 March 2011 13:16, RyanMcNally therealr...@gmail.com wrote:
 Take a look at the TGA image format - it can be boiled down to an 18
 byte header and then a simple dump of pixel data. I can't see any
 other formats being much faster than that.

Any compressionless would do. i.e. BMP.

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Fast way to save images in lossless format?

2011-03-03 Thread Streets Of Boston
(Lossless) compression is not necessarily faster than writing larger files.

The speed you gain by not using compression may be lost because you need to 
write larger files (IO is not that fast).

But you could experiment and see what's faster.

If you don't want to use compression at all, you could use the Bitmap's 
'getPixels' method and write out the byte-array directly (and uncompressed) 
to a file.
Or you can use the Bitmap's 'copyPixelsToBuffer' method, providing an 
ByteBuffer that you then can write to a FileChannel.

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

2011-03-03 Thread Amit
Hi All,

Is there a possibility in Android Market where I can do some PAID
promotions of My Application?

Thanks  Best Regards
Amit

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Streets Of Boston
I don't know how your app declares your activities, if they are public to be 
used by any other component/app installed on the phone.
Let's assume your activities are all private, then there is a way to deliver 
2 apps in one APK. You could do this by creating two separate code-paths for 
the 2 types of apps.


Set you min-sdk-version to the minimum (e,g 4 for 1.6) and 
target-sdk-version for 11 (Honeycomb).

Create a brand new 'Launcher' activity (you can make this one invisible). 
This activity will examine what the OS version is and it will start up the 
old root-activity of your app for 1.6 phones or start up a new activity 
tailored to Honeycomb for 3.0 devives.

You can either write brand-new code for every new activity for 3.0 devices, 
keeping it entirely separate (e.g. a sub-package) from your original 1.6 
code. 
If you decide to re-use code (utilities, data-object, even fragments (see 
posts by Dianna that talks about providing a Fragment library for pre 3.0 
devices)), make absolutely sure that this code won't blow up on 1.6 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: Two activities in one window

2011-03-03 Thread David Caunt
Hi Mika,

In my case the GiffGaffAPN app actually doesn't seem to have added an APN
successfully, though other users report success in reviews.

I'm running a HTC Desire with a Sense ROM (rooted) so perhaps it requires a
stock Google-experience or AOSP.

I'd be interested to know what you find.



On 3 March 2011 11:52, Mika mika.ristim...@gmail.com wrote:

 Thanks for all the suggestions. Might be that I'll try to do this with
 putting the values to a notification as TreKing suggested.

 David I'll check the app you mentioned. In the Android API APN
 settings are Secure Settings, which means that 3rd party apps are not
 allowed to write them. But if GiffGaffAPN can do it, maybe there's
 some hack that I'm not aware of. :)

 -Mika

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread J
I was also thinking about different resources in different devices.

Example: imagine I have a game with different resolution resources:
highly pixeled for low-density screens, average quality for mid-
density screens and ultrarealistic for superhigh-density tablets. The
res- solution allows the game to find the appropiate resource for
each device. However, every resource must be included in the apk: the
tiny 2kB .png for the low-res, but also the huge 200kB for the
superhigh-res. Finally, the app weights 10MB, and in fact can not be
installed on low-end devices.


Or is there an (unknown for me) way to handle this problem?


On 3 mar, 13:33, Mark Carter mjc1...@googlemail.com wrote:
 Thanks Rob but what I'm thinking about goes beyond an alternative UI.


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


[android-developers] How do you exclude sales to a specific country?

2011-03-03 Thread gcstang
If you have an application that you want to be sold in all countries
except for say one how can you do this?

Is this done in the Developer Console, AndroidManifest, or something
else?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Mark Carter
That's an interesting idea: at each entry point, have a layer that delegates
according to the SDK level.

My app has a reasonably complex architecture involving multiple entry-point
activities (although only one launcher icon), a few services, a content
provider and some widgets. Inter-app communication is also supported.

There are indeed many ways around all this - and I think I like yours the
most - but there are limitations to this:

1. Legacy users will keep on getting the updates even though those updates
are only designed to affect later codebases. At best, it will be a pointless
download for them. At worst, it will introduce a bug rendering the app
useless.

2. You would still have to test the app on older SDK levels (because of
point 1)

3. What about resources? I guess the res folder would have to have distinct
copies for each SDK range

4. Permissions? A later version may require an additional permission which
is not needed at all by the legacy code (and vice-versa).

5. IntentFilter  ContentProvider entries in the manifest. Those would have
to expose entries for all sdk-ranges which could get messy.

I like the thought of having an APK which I know works on SDK level 34 etc.
I know that it will work for years to come because it hasn't been changed.
There is a lot of reassurance in that.

As an app becomes more and more complex, the potential for introducing a bug
increases and so it makes sense to keep the APK a simple as possible.

On 3 March 2011 19:55, Streets Of Boston flyingdutc...@gmail.com wrote:

 I don't know how your app declares your activities, if they are public to
 be used by any other component/app installed on the phone.
 Let's assume your activities are all private, then there is a way to
 deliver 2 apps in one APK. You could do this by creating two separate
 code-paths for the 2 types of apps.


 Set you min-sdk-version to the minimum (e,g 4 for 1.6) and
 target-sdk-version for 11 (Honeycomb).

 Create a brand new 'Launcher' activity (you can make this one invisible).
 This activity will examine what the OS version is and it will start up the
 old root-activity of your app for 1.6 phones or start up a new activity
 tailored to Honeycomb for 3.0 devives.

 You can either write brand-new code for every new activity for 3.0 devices,
 keeping it entirely separate (e.g. a sub-package) from your original 1.6
 code.
 If you decide to re-use code (utilities, data-object, even fragments (see
 posts by Dianna that talks about providing a Fragment library for pre 3.0
 devices)), make absolutely sure that this code won't blow up on 1.6 devices.



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


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

[android-developers] Re: Announcing: The Android Developers Union

2011-03-03 Thread JAlexoid (Aleksandr Panzin)
Support specialists are not developers.
There is also a support forum for Android and Google Mobile, but I
meant like it is here. Where developers are communicating on equal
grounds, not Resuest Support/Wait For support/Get or Not Get support.

On 3 мар, 11:40, Peter Sinnott psinn...@gmail.com wrote:
 Doeshttp://www.google.com/support/forum/p/Android+Marketcount?

 On Mar 3, 9:18 am, JAlexoid (Aleksandr Panzin) jalex...@gmail.com
 wrote:

  Is there a list for Market similar to this one?

  On 3 мар, 08:12, Dianne Hackborn hack...@android.com wrote:

   Do I not count as a response from Google?

   Oh you mean a response answering question about Market?  As I said there,
   nobody from the Market team is on this list, so you shouldn't be surprised
   by not getting responses to questions that people on this list can't 
   answer.
    The people here work on the platform, not on Market.  We can't talk about
   what Market is doing.

   I believe all of the people who posted here have posted to other lists.
    Some of them are more likely to post to the open source lists, etc.

   On Wed, Mar 2, 2011 at 7:41 PM, TreKing treking...@gmail.com wrote:
This recent 
threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
 asking
a simple question about the state of in-app billing has received no 
response
from anyone at Google.

This thread has received 4, 2 of which I, personally, have never even 
seen
post before.

This make me sad. =(

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

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

   --
   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: Announcing: The Android Developers Union

2011-03-03 Thread TreKing
On Thu, Mar 3, 2011 at 12:12 AM, Dianne Hackborn hack...@android.com
 wrote:

 Do I not count as a response from Google?


Of course! Probably more so than most. However, you didn't respond to the
thread I linked to, so my statement still stands.


 Oh you mean a response answering question about Market?  As I said there,
 nobody from the Market team is on this list, so you shouldn't be surprised
 by not getting responses to questions that people on this list can't answer.


Oh, I think you mean this thread, concerning being banned from the Market:
http://groups.google.com/group/android-developers/browse_thread/thread/cf94566a81affbfb

Of course you are correct - this forum is not about the Market and, as you
posted, questions should go to the Market Support Forum.
Fair enough. So let's take a look over there, shall we?

Here is the same question about the in-app billing not working:
http://www.google.com/support/forum/p/Android+Market/thread?tid=331d1590e7ae94dbhl=en

And here is the same question about the content policy that you told the OP
to post in the support forum:
http://www.google.com/support/forum/p/Android+Market/thread?fid=6d6cc0380c0b10d500049d3f4f0f3433hl=en

Now let's count the total number of responses from Google. Zero. In fact,
the only response to either question is from yours truly telling the poster
that no one is going to respond to them. Even sadder, my responses are the
best answer. Unfortunately, I continue to be correct.

See, the problem is that people go to the official support forum looking
for help and they get ignored. Then they move over into other
Android-related forums hoping to get answers. Unfortunately, they are either
ignored again or are re-directed back to the appropriate forum where they
were ignored to begin with.

It is *beyond* frustrating.


 The people here work on the platform, not on Market.  We can't talk about
 what Market is doing.
 I believe all of the people who posted here have posted to other lists.
  Some of them are more likely to post to the open source lists, etc.


Understood. I meant no offense to any of you and I'm sure the other two that
I personally have not seen around here before help out elsewhere that I'm
not aware of.

My point is simply this: getting actual support or answers for legitimate
issues relating to the Android Market is nigh impossible - regardless of the
channel one goes through. Meanwhile a thread with the threat of being
spammed gets the attention of 4 Googlers. Pathetically, this thread has
received more Google attention than anything in the Market Support forum,
whether the responders have anything to do with the Market or not.

And *that* is what I find so very sad about this situation.

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

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

Re: [android-developers] Paid promotions of my Application on Market

2011-03-03 Thread TreKing
On Thu, Mar 3, 2011 at 6:36 AM, Amit amitmishr...@gmail.com wrote:

 Is there a possibility in Android Market where I can do some
 PAID promotions of My Application?


By ad-space in other apps?

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

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

Re: [android-developers] Re: Try to implement coverflow animation using Gallery

2011-03-03 Thread Justin Anderson
It returns the text that should be displayed displayed for the item at the
given position
On Mar 3, 2011 4:27 AM, monty neilm30s...@gmail.com wrote:
 What does the getItemText(int pos)  method in your code do?

 On Mar 1, 7:26 pm, Justin Anderson magouyaw...@gmail.com wrote:
 The way I implemented mine in AppSwipe! is a little complex...  Here is a
 quick overview of what I did:

 - I subclassed RelativeLayout and created a new class called
TitledGallery
 that holds the Gallery and two TextViews (for reusability reasons because
I
 have up to 5 of these in the main display)
 - My image adapter has the following method: public String
getItemText(int
 pos)
 - My getView method only deals with the ImageView in the Gallery... It
does
 not change the text in the view
 - I implemented onItemSelectedListener and put this listener on my
Gallery
 - I update the text in OnItemsSelectedListener.onItemSelected() and
 OnItemSelectedListener.onNothingSelected()

 Hope that helps!

 On Tue, Mar 1, 2011 at 4:29 AM, monty neilm30s...@gmail.com wrote:
  Sorry the apps name is AppSwipe

  On Mar 1, 3:53 pm, monty neilm30s...@gmail.com wrote:
   Actually my requirement is that when when the gallery is scrolled
   there will be a TextView at bottom of Gallery that will display the
   name of the image or some information related to that image.Now i
want
   that when i scroll and stop the Gallery the image in the middle of
   Gallery should have its data displayed in the TextView.You can check
   the above code i have posted.
There is an AppAwipe app that does this.Check it out and you will
   understand my requirement.
   Please let me know if any solution.

   On Mar 1, 3:29 pm, Gergely Juhász jg.sv...@gmail.com wrote:

sorry for the syntax:
What if you use TextViews instead of using ImageViews?

On 1 March 2011 11:28, Gergely Juhász jg.sv...@gmail.com wrote:

 What is you use TextView instead of using image views.
 TexView has an attribute android:drawableTop. With that you can
  simple
 draw an image above the text.
 Or you can use a vertical linear layout as the view element (wtih
an
 image and a text).

 On 1 March 2011 11:13, monty neilm30s...@gmail.com wrote:
 yes.. i have checked that code.But here he is not displaying any
  text
 when the Gallery is scrolled.So any solution?Am i missing some
API
  or
 something in the code i sent you.?

 On Mar 1, 2:59 pm, Gergely Juhász jg.sv...@gmail.com wrote:
 what do you think about this:
 http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html
 it's a nice cover flow using the gallery

 On 1 March 2011 10:41, monty neilm30s...@gmail.com wrote:

  Yes the data displaying is correct.The parsing is fine.The
only
  issue
  is its not working like your app where you are highlighting
the
  centre
  item of the Gallery and displaying it.Could u then please
give a
  brief
  view of yourcode.Are you also using getView() and
implementing
  the
  code?

  On Mar 1, 2:35 pm, Justin Anderson magouyaw...@gmail.com
  wrote:
  Well... I didn't notice anything that wrong with your code
(but
  I may have
  missed something).  Have you checked your parsing code to
make
  sure that the
  data is accurate once you've parsed the xml?

  On Tue, Mar 1, 2011 at 2:23 AM, monty neilm30s...@gmail.com

  wrote:
   Hi
   Here clip_model is an arraylist that will hold the data of
xml
  we
   parse.And here i am getting the data for from that
arraylist
  using the
   position variable.
   Also i went thru your app ,thats exactly what i want for
my
  app.

   On Mar 1, 1:33 pm, Justin Anderson magouyaw...@gmail.com
  wrote:
What is clip_model?

On Tue, Mar 1, 2011 at 12:32 AM, monty 
  neilm30s...@gmail.com wrote:
 Hi,
 Following is part of code from the Activity.Hope the
code
  will be
 clear enough for you to understand.Please let me know
how
  to resolve
 this issue.It would be really helpful.

  setContentView(R.layout.chapter_clips);

 //will have Gallery,WebView and TextView.The WebView
and
   TextView
 data has to be changed when i scroll the Gallery,so i
call
  the Webview
 and TextView in the getView() of the adapter.

   Gallery g = (Gallery) findViewById(R.id.gallery);
g.setAdapter(new
  ImageAdapter(this));//calling the
   Adapter
 class
g.setAnimationDuration(3000);
g.setOnItemSelectedListener(this);

public class ImageAdapter extends BaseAdapter {
 int mGalleryItemBackground;

public ImageAdapter(Context c) {
mContext = c;

}

public int getCount() {

return
  mchaptermodel.clip_model.size();
}

   

Re: [android-developers] How do you exclude sales to a specific country?

2011-03-03 Thread TreKing
On Thu, Mar 3, 2011 at 7:22 AM, gcstang gcst...@gmail.com wrote:

 If you have an application that you want to be sold in all countries except
 for say one how can you do this?

 Is this done in the Developer Console, AndroidManifest, or something else?


http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswer=113469


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

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

Re: [android-developers] ListView update problem.

2011-03-03 Thread Justin Anderson
This sounds like it could be a view recycling issue
On Mar 3, 2011 3:42 AM, Namit Rana namit...@gmail.com wrote:
 I have a ListView with a custom BaseAdapter.

 in getView(...) in CustomBaseAdapter class...

 I have specified gray color in the 1st row and white color in all
 other rows.

 if(position==0){
 holder.text1.setBackGroundColor(Color.gray) // same for next 2
 TextView views.
 }else{
 //set the textview color to white
 }

 After I change the content of the specific row (all textViews), I
 call
 this.notifyDataSetChanged();

 The data gets updated properly, but the last row of the ListView
 displays gray color along with the first row.
 But I have set the gray color to the 1st row..

 Any help???
 Regards



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

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

2011-03-03 Thread Chris Stewart
Agree with everything you said TreKing.  While I really appreciate the
effort Dianne shows towards this list, I wish there were more Android
developers putting the same effort out in other areas of the Android
ecosystem.  Having such insight into the Market would be a very welcome
addition.

--
Chris Stewart
http://chriswstewart.com



On Thu, Mar 3, 2011 at 9:52 AM, TreKing treking...@gmail.com wrote:

 On Thu, Mar 3, 2011 at 12:12 AM, Dianne Hackborn hack...@android.com
  wrote:

 Do I not count as a response from Google?


 Of course! Probably more so than most. However, you didn't respond to the
 thread I linked to, so my statement still stands.


 Oh you mean a response answering question about Market?  As I said there,
 nobody from the Market team is on this list, so you shouldn't be surprised
 by not getting responses to questions that people on this list can't answer.


 Oh, I think you mean this thread, concerning being banned from the Market:

 http://groups.google.com/group/android-developers/browse_thread/thread/cf94566a81affbfb

 Of course you are correct - this forum is not about the Market and, as you
 posted, questions should go to the Market Support Forum.
 Fair enough. So let's take a look over there, shall we?

 Here is the same question about the in-app billing not working:

 http://www.google.com/support/forum/p/Android+Market/thread?tid=331d1590e7ae94dbhl=en

 And here is the same question about the content policy that you told the OP
 to post in the support forum:

 http://www.google.com/support/forum/p/Android+Market/thread?fid=6d6cc0380c0b10d500049d3f4f0f3433hl=en

 Now let's count the total number of responses from Google. Zero. In fact,
 the only response to either question is from yours truly telling the poster
 that no one is going to respond to them. Even sadder, my responses are the
 best answer. Unfortunately, I continue to be correct.

 See, the problem is that people go to the official support forum looking
 for help and they get ignored. Then they move over into other
 Android-related forums hoping to get answers. Unfortunately, they are either
 ignored again or are re-directed back to the appropriate forum where they
 were ignored to begin with.

 It is *beyond* frustrating.


 The people here work on the platform, not on Market.  We can't talk about
 what Market is doing.
 I believe all of the people who posted here have posted to other lists.
  Some of them are more likely to post to the open source lists, etc.


 Understood. I meant no offense to any of you and I'm sure the other two
 that I personally have not seen around here before help out elsewhere that
 I'm not aware of.

 My point is simply this: getting actual support or answers for legitimate
 issues relating to the Android Market is nigh impossible - regardless of the
 channel one goes through. Meanwhile a thread with the threat of being
 spammed gets the attention of 4 Googlers. Pathetically, this thread has
 received more Google attention than anything in the Market Support forum,
 whether the responders have anything to do with the Market or not.

 And *that* is what I find so very sad about this situation.


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

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


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

Re: [android-developers] Re: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread TreKing
On Thu, Mar 3, 2011 at 6:33 AM, Mark Carter mjc1...@googlemail.com wrote:

 Therefore, in an ideal world (!), I would like the 1.5/1.6 users to use the
 existing, well-tested version and the other users will get the newer stuff.


This is particularly problematic for paid apps. If you increase the min SDK
 level and then a lower SDK user reflashes his device, he will no longer be
 able to install your app.  He won't even see it on the Market. That will
 then lead to support emails along with the cumbersome directions on how to
 install a legacy APK manually.


http://groups.google.com/group/android-developers/msg/b6b513af1a351c95

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

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

[android-developers] Re: Detecting Package Update

2011-03-03 Thread Jake Colman
 JA == Justin Anderson magouyaw...@gmail.com writes:

   JA Are you talking about the widget here or the app?  If you are
   JA talking about the widget then the next time the provider is
   JA called it will automatically call the new code and, as long as
   JA changes weren't too drastic, everything should update and then
   JA work fine.  However this won't always be the case and sometimes
   JA the user will need to remove the widget and add it back again to
   JA get it to work.

I'm talking about the appwidget.  

Let's say v1.0 was implemented using a broadcast receiver (which is the
appwidget itself) and two services.  I then publish v1.1 which fixes
bugs in all the components.  The user updates my appwidget via the
Market while the appwidget is still running. When/how doe that new code
start executing?

Now I publish v1.2 which restructures the code so that it uses one
service instead of two.  How/will the redundant service be removed?
Will it just wither and die?  Do I need to worry about this?

-- 
Jake Colman -- Android Tinkerer

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

2011-03-03 Thread Chris Stewart
I assume you mean pay Google to feature your app.  If that's the case, no,
there's nothing like that available.  Building the best app you can and
having it spread organically is likely the avenue you'll need to explore,
assuming you don't have deep pockets to advertise on various websites around
the web targeting your app's demographic.

--
Chris Stewart
http://chriswstewart.com



On Thu, Mar 3, 2011 at 9:54 AM, TreKing treking...@gmail.com wrote:

 On Thu, Mar 3, 2011 at 6:36 AM, Amit amitmishr...@gmail.com wrote:

 Is there a possibility in Android Market where I can do some
 PAID promotions of My Application?


 By ad-space in other apps?


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


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


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

Re: [android-developers] How to implement Calendar App in Android

2011-03-03 Thread Prakash Iyer
There isn't any. Every few weeks or so such a question will come up and
while I jumped up and answered, usually Mark Murphy or Dianne Hackabod will
come back with this is not supported and by using any private API just
because some code does it might  will cause your code to break. This group
is meant for API published in the SDK only. In short you are on your own
here...

On Wed, Mar 2, 2011 at 11:38 PM, Santhosh Kumar santhoshgu...@gmail.comwrote:

 Hi Prakash,

  Thanks for replying, then what is the API we have to get on with
 developing calendar application?. I downloaded the source code for calendar
 app from source.android.com, and tried to analyze that, but it is still
 missing some packages (android.provider.calendar), and used android 3.0 api
 also, but still missing some packages.

 thanks  regards,
 G.Santhosh Kumar
 +91 9966973790



 On Thu, Mar 3, 2011 at 2:08 AM, Prakash Iyer thei...@gmail.com wrote:

 There is no Calendar API in the SDK. So you cannot thru any public API
 access the calendar on the device if that is what you are looking at.

 On Tue, Mar 1, 2011 at 9:58 AM, Santhosh Kumar 
 santhoshgu...@gmail.comwrote:

 Hi,

 I am working with Calendar functionality in android 2.2 api, and the
 api at that level (level 8) does not contain any Calendar classes to work
 for. so is there any way that i can implement calendar functionality?.

 thanks  regards,
 G.Santhosh Kumar

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


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




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

Re: [android-developers] How do you exclude sales to a specific country?

2011-03-03 Thread brian purgert
Lol
On Mar 3, 2011 9:56 AM, TreKing treking...@gmail.com wrote:
 On Thu, Mar 3, 2011 at 7:22 AM, gcstang gcst...@gmail.com wrote:

 If you have an application that you want to be sold in all countries
except
 for say one how can you do this?

 Is this done in the Developer Console, AndroidManifest, or something
else?



http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswer=113469



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

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

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

Re: [android-developers] How to implement Calendar App in Android

2011-03-03 Thread Marcin Orlowski
 missing some packages (android.provider.calendar),

It's ther, in /packages/providers/CalendarProvider

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Packaging an App and Widget in one APK

2011-03-03 Thread Jake Colman

I am probably looking for an RTFM pointer but maybe not...

1) I know how to create an APK that contains just an appwidget.  But can
   I create an APK that contains an appwidget AND a standalone app in
   one downloadable package?

2) Users download my widget and then tell me it's not listed in their
   list of downloaded application.  This despite the fact that my app's
   description in the MarketPlace clearly states that this is a widget
   and that you must long-press on the homescreen, etc, etc.  Assuming
   there is way to #1, have people used that technique to create an app
   that simply states install the widget you moron! (or words to that
   effect?).

Thanks

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] redirct the an alert or replay to the device that send sms

2011-03-03 Thread vineeshkc
HAi   ALL  OF  YOU


Is it possible to either redirect incoming messages to another application
or allow the other application to receive the sms as well

or redirct the sms to the save device that  send

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Streets Of Boston
From that link:
Oh and I believe on Market that if you put up a new version of your app 
with a higher minSdkVersion, the most recent older version will still be 
visible to older devices.  That is, the .apks you upload are never deleted; 
a new version just supersedes an older one for the devices it is compatible 
with.

I think this means that you'll never be able to fix a bug anymore for users 
with 1.6 to 2.3.3 devices. 

However, could this work:

- Upload to Market MyApp version-code51 (SDK1.6 and up)
- Now i'll add 3.0 support: Upload to Market Honeycomb version of MyApp, 
version-code60 (SDK3.0 and up)

Now, both version-code51 is available for for Android 1.6 -- 2.3.3 and 
version-code60 for Honeycomb (and up)?

I want to fix a bug on the version-code51 (fix on 1.6 and up):
- Upload to Market the updated MyApp version-code71 (SDK 1.6 and up).
- 5 minutes later upload to Market the same Honeycomb version of MyApp, 
version-code80 (SDK3.0 and up).

Now, both version-code71 is available for for Android 1.6 -- 2.3.3 and 
version version-code80 for Honeycomb (and up)?

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

2011-03-03 Thread TreKing
On Wed, Mar 2, 2011 at 10:51 PM, Justin Anderson magouyaw...@gmail.comwrote:

 * How can a package determine that it has been updated and that it,
  therefore, must stop and restart itself?*

 According to this, you can't:
 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED


Try this one:
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED
-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] wbxml Parser available through IM app

2011-03-03 Thread Praneeth
Hi,

I am trying to use the library available in IM application to parse
the Wbxml data that I have.

I am able to parse the data only half the way because device info
parsing is not supported by the external library.

Even the page switching happens properly but when devinfo comes into
picture, it doesnot detect the binary data as valid tags. It even
doesnt shift the page when devinfo data is ready for parsing.

Am I correct?

Please respond.


Thanks
Praneeth

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

2011-03-03 Thread chcat
i am using  MediaRecorder object class to record media stream on Nexus
One phone ( Froyo 2.2.1).
I see the following errors in LogCat
MediaRecorder m_mediaRecorder;
mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
m_mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
m_mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
m_mediaRecorder.setVideoSize(320, 240);
m_mediaRecorder.setVideoFrameRate(15);

ERROR/VENC_ENC(59): VENC_ERROR update_param_port_def::1643 Frame rate
is for input port (refer to OMX IL spec)
ERROR/VENC_ENC(59): VENC_ERROR get_parameter::952 unsupported index
0x70b
ERROR/VENC_ENC(59): VENC_ERROR set_parameter::2720 unsupported index
0x70b
ERROR/VENC_ENC(59): Bitrate 32
ERROR/VENC_ENC(59): VENC_ERROR get_parameter::952 unsupported index
0x605
ERROR/VENC_ENC(59): VENC_ERROR set_parameter::2720 unsupported index
0x605

...
m_mediaRecorder.prepare()
ERROR/PVOMXEncNode(59): PVMFOMXEncNode-Video_H263::DoPrepare(): Got
Component OMX.qcom.video.encoder.h263 handle

Any idea what the cause of those errors and how to fix them?
Thank you,

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


Re: [android-developers] Packaging an App and Widget in one APK

2011-03-03 Thread Justin Anderson
Yes and yes...

On Thu, Mar 3, 2011 at 8:27 AM, Jake Colman col...@ppllc.com wrote:


 I am probably looking for an RTFM pointer but maybe not...

 1) I know how to create an APK that contains just an appwidget.  But can
   I create an APK that contains an appwidget AND a standalone app in
   one downloadable package?

 2) Users download my widget and then tell me it's not listed in their
   list of downloaded application.  This despite the fact that my app's
   description in the MarketPlace clearly states that this is a widget
   and that you must long-press on the homescreen, etc, etc.  Assuming
   there is way to #1, have people used that technique to create an app
   that simply states install the widget you moron! (or words to that
   effect?).

 Thanks

 --
 Jake Colman -- Android Tinkerer

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Packaging an App and Widget in one APK

2011-03-03 Thread Kostya Vasilyev

03.03.2011 18:27, Jake Colman пишет:

I am probably looking for an RTFM pointer but maybe not...

1) I know how to create an APK that contains just an appwidget.  But can
I create an APK that contains an appwidget AND a standalone app in
one downloadable package?


Yes, a package can contain as many components of various kinds as 
needed: widgets, activities, services, receivers, etc. The only special 
component is an activity marked for the launcher applications list.


There are implications for installToSd, so you may want to research that.


2) Users download my widget and then tell me it's not listed in their
list of downloaded application.  This despite the fact that my app's
description in the MarketPlace clearly states that this is a widget
and that you must long-press on the homescreen, etc, etc.  Assuming
there is way to #1, have people used that technique to create an app
that simply states install the widget you moron! (or words to that
effect?).


Yep, this used to happen to one of my apps. A lot.

Eventually, I implemented a launcher activity for my widget, almost 
exactly like you describe, except used different wording and provided a 
link to a web site that has visual step by step instructions on how to 
add a widget.



Thanks




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

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


Re: [android-developers] Detecting Package Update

2011-03-03 Thread Justin Anderson
 Try this one:
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED

Ahh... didn't notice that one when I was looking at the docs.  Does the
replaced package get the notification though?  The docs don't say anything
about that...

 Let's say v1.0 was implemented using a broadcast receiver (which is the
 appwidget itself) and two services.  I then publish v1.1 which fixes
 bugs in all the components.  The user updates my appwidget via the
 Market while the appwidget is still running. When/how doe that new code
 start executing?

I believe the next time the provider is called, but I may be wrong.

 Now I publish v1.2 which restructures the code so that it uses one
 service instead of two.  How/will the redundant service be removed?
 Will it just wither and die?  Do I need to worry about this?

It will be removed when the application is uninstalled.

On Thu, Mar 3, 2011 at 8:21 AM, TreKing treking...@gmail.com wrote:

 On Wed, Mar 2, 2011 at 10:51 PM, Justin Anderson magouyaw...@gmail.comwrote:

  * How can a package determine that it has been updated and that it,
  therefore, must stop and restart itself?*

 According to this, you can't:
 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED


 Try this one:

 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED
 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED

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

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


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

Re: [android-developers] Re: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Kostya Vasilyev

03.03.2011 18:12, TreKing ?:
On Thu, Mar 3, 2011 at 6:33 AM, Mark Carter mjc1...@googlemail.com 
mailto:mjc1...@googlemail.com wrote:


Therefore, in an ideal world (!), I would like the 1.5/1.6 users
to use the existing, well-tested version and the other users will
get the newer stuff.


This is particularly problematic for paid apps. If you increase
the min SDK level and then a lower SDK user reflashes his device,
he will no longer be able to install your app.  He won't even see
it on the Market. That will then lead to support emails along with
the cumbersome directions on how to install a legacy APK manually. 



http://groups.google.com/group/android-developers/msg/b6b513af1a351c95


Yes, this is at least something. Two problems though:

- It's not quite clear if that can be relied on (the Market team is 
separate from Dianne's frameworks team, and they can change this 
undocumented behavior at any time and without notice).


- It's difficult to update the .apk built for an older Android version.

I think it would be great if it was possible to upload and manage 
multiple APKs for the same package / signature.


Then the developer could easily update the version targeting 1.5 / 1.6 
should the need arise. Or have a separate version for 3.0 and up (using 
the native fragment implementation) and a version for 1.6+ (using the 
upoming fragment compatibility library, or no fragments at all).


-- Kostya



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


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



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

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

[android-developers] can you set dns-server in avd config.ini?

2011-03-03 Thread tedx
Is it possible to set the dns-server option in an avd config.ini file?
I've been looking for a description of the setting that can be made in
a config.ini but haven't come across anything yet.

Ted

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Packaging an App and Widget in one APK

2011-03-03 Thread Marcin Orlowski
 Eventually, I implemented a launcher activity for my widget, almost exactly
 like you describe, except used different wording and provided a link to a
 web site that has visual step by step instructions on how to add a widget.

I add such step-by-step info in the app itself. It's usually just
couple of views and a few drawables so it does not bloat the whole apk
too much while working much better for user than redirecting to the
website.

-- 
Regards,
Marcin

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

2011-03-03 Thread Justin Anderson
Has no one ever tried to get swipe gestures and clicks working together on
the same view?  Pre-Android 2 everything worked fine.  Starting with Android
2 I can only seem to get one or the other but not both...

On Wed, Mar 2, 2011 at 12:22 AM, MagouyaWare magouyaw...@gmail.com wrote:

 I have some code that I wrote to implement a vertical swipe on a
 Gallery widget.  It works great in Android 1.5 and 1.6 but does not
 work in Android 2.2 (I have yet to try it with 2.1).

 public class SwipeUpDetector extends SimpleOnGestureListener
 implements OnTouchListener
 {
private GestureDetector m_detector;

public SwipeUpDetector()
{
m_detector = new GestureDetector(m_context, this);
}

@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
 velocityX, float velocityY)
{
if (Math.abs(e1.getX() - e2.getX())  s_swipeMaxOffPath 
e1.getY() - e2.getY() = s_swipeMinDistance 
Math.abs(velocityY) = s_swipeMinVelocity)
{
int pos = m_gallery.pointToPosition((int)e1.getX(),
 (int)e2.getY());
startAnimation(pos);

return true;
}

return false;
}

@Override
public boolean onTouch(View v, MotionEvent event)
{
return m_detector == null ? false :
 m_detector.onTouchEvent(event);
}
 }

 And to be able to get my gallery to detect the onFling I have the
 following:
 m_gallery.setOnTouchListener(new SwipeUpDetector());

 In Android 1.5 and 1.6 this works great.  In Android 2.2 onFling() is
 never called.  In looking around on Google and StackOverflow I found
 one possible solution was to implement onDown() and return true.

 However, I am also listening to single clicks and have a context menu
 listener set up on this gallery.  When I implement onDown() and return
 true I do indeed get the swipe to work.  But when I do this the
 context menu doesn't display on a long click and the single clicks
 don't work either... Clicking on items in the gallery cause the
 gallery to jump around and I don't get any feedback when I click on an
 item in the gallery.  It just immediately makes that item the selected
 item and moves it to the center.

 I looked at the API differences report between 1.6, 2.1, and 2.2 and
 didn't see anthing of significance that could have caused this to
 break...

 What am I doing wrong?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] redirct the an alert or replay to the device that send sms

2011-03-03 Thread Marcin Orlowski
On 3 March 2011 16:29, vineeshkc kcvine...@gmail.com wrote:

 Is it possible to either redirect incoming messages to another application
 or allow the other application to receive the sms as well

You can register for broadcast message when SMS comes. It was
discussed a few days ago, so search the group archive

 or redirct the sms to the save device that  send

There's no redirect nor I do not really know what save device is,
but once you got the SMS you can send it to the next device (at
regular SMS cost)

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] can you set dns-server in avd config.ini?

2011-03-03 Thread Kostya Vasilyev

Have you tried -dns-server servers ?

http://developer.android.com/guide/developing/tools/emulator.html

03.03.2011 18:57, tedx пишет:

Is it possible to set the dns-server option in an avd config.ini file?
I've been looking for a description of the setting that can be made in
a config.ini but haven't come across anything yet.

Ted




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

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


Re: [android-developers] Detecting Package Update

2011-03-03 Thread TreKing
On Thu, Mar 3, 2011 at 9:55 AM, Justin Anderson magouyaw...@gmail.comwrote:

  Try this one:
 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED

 Ahh... didn't notice that one when I was looking at the docs.  Does the
 replaced package get the notification though?  The docs don't say anything
 about that...


I believe so - I recall someone posting one time that this worked for them.

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

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

Re: [android-developers] Packaging an App and Widget in one APK

2011-03-03 Thread TreKing

 2) Users download my widget and then tell me it's not listed in their list
 of downloaded application.


Use this so it shows up in the Market download list, but not the Launcher.
http://developer.android.com/reference/android/content/Intent.html#CATEGORY_BROWSABLE

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

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

Re: [android-developers] Re: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Mark Carter
Well, I was pretty stunned just now when I read that post from Dianne.
Partly because I didn't know about it before. Partly because I didn't
believe it. But mostly because of a huge can of nasty worms it could open,
should it be true.

So, I just tried it with one of my not-so-important apps on the Market.

* Originally published at min-level 3 and checked I could see it on my Nexus
One running 2.2.2 (level 8) - which I could.
* Next, I rebuilt the APK using min level 9, (and building using SDK 9)
* Then I published the new APK over the old one
* Finally, I cleared the data for the Market app and checked whether the app
was there (by querying my publisher name) and it wasn't. My other apps were.

So, I guess that indicates, that it's not true...

On 3 March 2011 22:55, Kostya Vasilyev kmans...@gmail.com wrote:

  03.03.2011 18:12, TreKing пишет:

 On Thu, Mar 3, 2011 at 6:33 AM, Mark Carter mjc1...@googlemail.comwrote:

 Therefore, in an ideal world (!), I would like the 1.5/1.6 users to use
 the existing, well-tested version and the other users will get the newer
 stuff.


  This is particularly problematic for paid apps. If you increase the min
 SDK level and then a lower SDK user reflashes his device, he will no longer
 be able to install your app.  He won't even see it on the Market. That will
 then lead to support emails along with the cumbersome directions on how to
 install a legacy APK manually.


 http://groups.google.com/group/android-developers/msg/b6b513af1a351c95


 Yes, this is at least something. Two problems though:

 - It's not quite clear if that can be relied on (the Market team is
 separate from Dianne's frameworks team, and they can change this
 undocumented behavior at any time and without notice).

 - It's difficult to update the .apk built for an older Android version.

 I think it would be great if it was possible to upload and manage multiple
 APKs for the same package / signature.

 Then the developer could easily update the version targeting 1.5 / 1.6
 should the need arise. Or have a separate version for 3.0 and up (using the
 native fragment implementation) and a version for 1.6+ (using the upoming
 fragment compatibility library, or no fragments at all).

 -- Kostya




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

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



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

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Kostya Vasilyev

Wow, you can type fast :)

Wonder if it will show up a little later, as the Market infrastructure 
caches up.


-- Kostya

03.03.2011 19:07, Mark Carter пишет:
Well, I was pretty stunned just now when I read that post from Dianne. 
Partly because I didn't know about it before. Partly because I didn't 
believe it. But mostly because of a huge can of nasty worms it could 
open, should it be true.


So, I just tried it with one of my not-so-important apps on the Market.

* Originally published at min-level 3 and checked I could see it on my 
Nexus One running 2.2.2 (level 8) - which I could.

* Next, I rebuilt the APK using min level 9, (and building using SDK 9)
* Then I published the new APK over the old one
* Finally, I cleared the data for the Market app and checked whether 
the app was there (by querying my publisher name) and it wasn't. My 
other apps were.


So, I guess that indicates, that it's not true...

On 3 March 2011 22:55, Kostya Vasilyev kmans...@gmail.com 
mailto:kmans...@gmail.com wrote:


03.03.2011 18:12, TreKing пишет:

On Thu, Mar 3, 2011 at 6:33 AM, Mark Carter
mjc1...@googlemail.com mailto:mjc1...@googlemail.com wrote:

Therefore, in an ideal world (!), I would like the 1.5/1.6
users to use the existing, well-tested version and the other
users will get the newer stuff.


This is particularly problematic for paid apps. If you
increase the min SDK level and then a lower SDK user
reflashes his device, he will no longer be able to install
your app.  He won't even see it on the Market. That will then
lead to support emails along with the cumbersome directions
on how to install a legacy APK manually. 



http://groups.google.com/group/android-developers/msg/b6b513af1a351c95


Yes, this is at least something. Two problems though:

- It's not quite clear if that can be relied on (the Market team
is separate from Dianne's frameworks team, and they can change
this undocumented behavior at any time and without notice).

- It's difficult to update the .apk built for an older Android
version.

I think it would be great if it was possible to upload and manage
multiple APKs for the same package / signature.

Then the developer could easily update the version targeting 1.5 /
1.6 should the need arise. Or have a separate version for 3.0 and
up (using the native fragment implementation) and a version for
1.6+ (using the upoming fragment compatibility library, or no
fragments at all).

-- Kostya





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

-- 
You received this message because you are subscribed to the Google

Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



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


-- 
You received this message because you are subscribed to the Google

Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@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 



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

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

Re: [android-developers] Re: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread TreKing
On Thu, Mar 3, 2011 at 10:07 AM, Mark Carter mjc1...@googlemail.com wrote:

 Well, I was pretty stunned just now when I read that post from Dianne.
 Partly because I didn't know about it before. Partly because I didn't
 believe it. But mostly because of a huge can of nasty worms it could open,
 should it be true.

 So, I just tried it with one of my not-so-important apps on the Market.

 * Originally published at min-level 3 and checked I could see it on my
 Nexus One running 2.2.2 (level 8) - which I could.
 * Next, I rebuilt the APK using min level 9, (and building using SDK 9)
 * Then I published the new APK over the old one
 * Finally, I cleared the data for the Market app and checked whether the
 app was there (by querying my publisher name) and it wasn't. My other apps
 were.

 So, I guess that indicates, that it's not true...


Very good to know. Thanks.

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

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

[android-developers] Re: can you set dns-server in avd config.ini?

2011-03-03 Thread tedx
Sure that works but I want to use the AVD Manager so am looking for a
way to configure the avd.

Ted

On Mar 3, 10:02 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Have you tried -dns-server servers ?

 http://developer.android.com/guide/developing/tools/emulator.html

 03.03.2011 18:57, tedx пишет:

  Is it possible to set the dns-server option in an avd config.ini file?
  I've been looking for a description of the setting that can be made in
  a config.ini but haven't come across anything yet.

  Ted

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

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


[android-developers] getBestProvider returning null?

2011-03-03 Thread Jake Colman

I am using the following code to get a list of all available providers,
so I can see what's out there, and to select the best provider based on
my criteria.  Why would this code return a list of [network gps] for
all providers but still return null for best provider?

  ListString all = locationManager.getAllProviders();
  logger.verbose( TAG, All available location providers:  + all.toString() );

  Criteria criteria = new Criteria();
  criteria.setAccuracy( Criteria.ACCURACY_COARSE);
  criteria.setAltitudeRequired( false );
  criteria.setBearingRequired( false );
  criteria.setCostAllowed( true );
  criteria.setPowerRequirement( Criteria.POWER_LOW);

  String provider = locationManager.getBestProvider( criteria, true);
  logger.verbose( TAG, Best location provider:  + provider );

I am getting this behavior on the emulator but I suspect that this may
be the root cause of an issue seen by one of my users.

-- 
Jake Colman -- Android Tinkerer

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

2011-03-03 Thread Jake Colman

It seems to that whenever my emulator is running , pulseAudio starts
chewing up CPU.  Is there a way for me to control that or shut it down.
I don't need sound in my emulator if that's the issue.

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 setIcon to specify icon in assets w/o XML?

2011-03-03 Thread TreKing
On Mon, Feb 28, 2011 at 9:46 AM, Joseph S joseph.santanie...@gmail.comwrote:

 But I would like to use my own icons from my res drawable images. How would
 I refer to them directly from the Java source?


http://developer.android.com/guide/topics/resources/accessing-resources.html

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

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

Re: [android-developers] Opinions on updating a seasonal app; new app or in-app billing?

2011-03-03 Thread TreKing
On Mon, Feb 28, 2011 at 8:40 AM, Chris Stewart cstewart...@gmail.comwrote:

 For those that have implemented in-app billing, how much of a pain is it?


I don't think anyone's implemented this yet - it doesn't work from the
Market side of things, AFAIK.
How much of a pain? Well it deals with the Android Market, so probably a
huge one.


 How difficult is it to test?


At the moment, it's impossible.

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

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

Re: [android-developers]

2011-03-03 Thread Abhilash baddam
Hi,

*Yappaaa..*Well r u using listview  or autocompletetextview to search
the items. Try to refresh the the listview if u r using ListView.
Send some code snippet so that we can try to resolve ur problem.






On Thu, Mar 3, 2011 at 1:12 PM, vani reddy vani.redd...@gmail.com wrote:


 Hi,
When i do a search and press search button,the searched items are
 displayed,in the same activity when i search some other item and press
 search button it displays the searched items,but when i try to scroll those,
 my application throws an arrayIndexOutOfBoundsException, how do i remove old
 view and replace it with new view..
 --
  Regards,
 Vani

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

2011-03-03 Thread niko20
I believe you can turn sound off in the emulator if you run it from a
command line. See the emulator reference on the Google android dev
website.

-nik

On Mar 3, 10:43 am, Jake Colman col...@ppllc.com wrote:
 It seems to that whenever my emulator is running , pulseAudio starts
 chewing up CPU.  Is there a way for me to control that or shut it down.
 I don't need sound in my emulator if that's the issue.

 --
 Jake Colman -- Android Tinkerer

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

2011-03-03 Thread Michael
I have questions about using the Platform SDK (the code under ROOT/
device/sample. Is this the right group for that?

Thanks,
Michael

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


[android-developers] Re: Authenticate Non-AppEngine Webservice using Google Account

2011-03-03 Thread Jesse
I really need to find an answer to this question. Anyone? Bueller?

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

2011-03-03 Thread Demetris


No problem Dianne I certainly understand and I still appreciate the help 
so far anyway.
I am primarily working with 2.2 and 2.3 versions of the OS but there was 
a requirement
to use these older phones for now so I need to dig in the ancient world 
a bit ;)


I did uninstall and install the app again multiple times but the issue 
remains. I am assuming
that I may need to clear up the data partition to fix this. Any other 
app I install works fine
on these phones so I think the issue is limited to this particular 
application. I am wondering
if an older corrupted version of this app has leftovers in the OS and it 
is messing up any

other effort beyond it.

I will post any solution I find on the list for reference and if anyone 
has any suggestions pleased

feel free to post it. I appreciate the help.

Regards

On 3/3/2011 2:11 AM, Dianne Hackborn wrote:
1.6 is really old, so I am not going to be able to remember enough to 
help much off-hand.  There may have been a bug in it that allowed uids 
to get re-assigned in certain bad situations.


I can't help you with dalvik errors.

I think what I would suggest at this point is to just uninstall the 
app and then re-install.


On Wed, Mar 2, 2011 at 10:33 PM, Demetris demet...@ece.neu.edu 
mailto:demet...@ece.neu.edu wrote:



No I didn't actually try to change the app from shared user to
non-shared, it is a non-shared id app even though
I am seeing 7 shared uids mentioned in the logging below. Not sure
why but I didn't set any shared user uids.
I am compiling and running this on a 1.6 Android phone and I do
see the mismatch uids but also the install failing.
Not sure how the mismatch uids affect the install and looking over
the log that may be the case anyway:

D/AndroidRuntime(  421):  AndroidRuntime START

D/AndroidRuntime(  421): CheckJNI is OFF
D/AndroidRuntime(  421): --- registering native functions ---
I/jdwp(  421): received file descriptor 17 from ADB
D/ddm-heap(  421): Got feature list request
D/PackageParser(   90): Scanning package: /data/app/vmdl60807.tmp
E/PackageManager(   90): Package com.p2pSOAAndroidWebCP2_16 has
mismatched uid: 10042 on disk, 10036 in settings; read messages:
E/PackageManager(   90): Read completed successfully: 70 packages,
7 shared uids
I/PackageManager(   90): /data/app/vmdl60807.tmp changed; unpacking
D/installd(   53): DexInv: --- BEGIN '/data/app/vmdl60807.tmp' ---
W/dalvikvm(  427): partial write in inflate (32728 vs 32768)
W/dalvikvm(  427): DexOptZ: extraction of classes.dex from
/data/app/vmdl60807.tmp failed
W/installd(   53): DexInv: --- END '/data/app/vmdl60807.tmp' ---
status=0xff00, process failed
E/installd(   53): dexopt failed on
'/data/dalvik-cache/data@a...@vmdl60807.tmp@classes.dex' res = 65280
W/PackageManager(   90): Package couldn't be installed in
/data/app/com.p2pSOAAndroidWebCP2_16.apk
D/AndroidRuntime(  421): Shutting down VM

I also do se a partial write in inflate but that's all. Do you
know what the res=65280 stand for in thefailed
dexopt attempt?

Thanks for the feedback Dianne


On 3/3/2011 1:08 AM, Dianne Hackborn wrote:

The uid is stored in data/system/packages.xml and of course the
uid of the directory and files owned by the app.  You can't touch
any of these unless you are running a non-user build.

Did you try to change the app between a shared user id and
non-shared?  If so, this will cause the problem; on older
versions of the platform the install wouldn't fail, it would just
result in mismatched uids.

On Wed, Mar 2, 2011 at 9:32 PM, kypriakos demet...@ece.neu.edu
mailto:demet...@ece.neu.edu wrote:


It seems that the install failure of a particular apk may be
attributed to
mismatch uids. What causes such mismatches and is it possible to
correct them without losing the user data - particularly in
this case
where only a certain app apk does that but the rest are fine.
Where
do these uids get stored?

This is the message:
Package com.CP_16 has mismatched uid: 10048 on disk, 10045 in
settings

If I create a new apk using the source from the apk that
fails I still
get
the same message with a different uid:
Package com.WebCP_16 has mismatched uid: 10042 on disk, 10044 in
settings

I will appreciate any hints on this or where to look for some.

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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

[android-developers] Add a new item on Browser Share menu | Then access current browser window url from my app on clicking of that menu item

2011-03-03 Thread Sravan
Hi,

I wanted add a new Item to the browser's share menu/submenu when the
user does an action on my app (not when user installs my app). From
there on, when the user clicks on my Item on the browser's share menu,
my app should be able to pick the current URL/link of the browser.

Here the link to sample browser's Share menu, 
http://wapreview.com/images/ShareMenu.jpg
(As you can see on this image, my app's item should be one more in
this list)

Can anybody please shed me a light here on the steps and/or approach I
can follow. Any sample code is helpful.

(I have posted this message yesterday but do not see anywhere on this
group's messages, may be my ignorance. Hence, sending again.)

Thanks,
Sravan

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


Re: [android-developers] Question on layouts

2011-03-03 Thread Romain Guy
FrameLayout certainly does *not* show one child at a time. It is used mostly
for two things:
- Displaying one View that fills the screen (although if you have a layout
with one child only, you are usually doing something wrong)
- Display a stack of Views (it's very useful for overlays, etc.)

On Thu, Mar 3, 2011 at 3:12 AM, paulb pbizan...@gmail.com wrote:

 G;day mate,

 FrameLayouts are usually only used forshowing one item at a time. You
 can layout multiple views, but they will all be laid on top of each
 other. There is a use for this, but I suspect not for your description
 of the problem.

 I would use a RelativeLayout - they make my life so much easier. With
 a relative layout you can specify that:

 - the RelativeLayout is to take up the entire screen
 (layout_height=fill_parent, etc)
 - the header is to stay at the top (alignParentTop=true)
 - the footer / navigation bar is to stay at the bottom
 (alignParentBottom=true)
 - the listview is to take up all the rest of the space
 (layout_below=@+id/header , layout_above=@+id/footer,
 layout_height=fill_parent)

 I noticed you used alignParentBottom in your last layout - maybe you
 intended to use a RelativeLayout instead.


 Also, if you plan to make more than one screen with this pattern, I
 would put the title bar and the navigation into separate layouts and
 then include them in the main layout.


 For example:

 RelativeLayout
 android:layout_height=fill_parent
 android:layout_height=fill_parent

 LinearLayout android:id=@+id/header
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_alignParentTop=true
 android:layout_centerHorizontal=true
 android:orientation=horizontal style=@android:style/ButtonBar

 ImageView android:src=@drawable/person
 android:layout_width=wrap_content
 android:layout_height=wrap_content /

 TextView android:text=@string/personstring
 android:layout_width=wrap_content
 android:layout_height=wrap_content
android:textStyle=bold
 android:textAppearance=?android:attr/textAppearanceLarge /
/LinearLayout

  ListView android:visibility=visible android:id=@android:id/list
 android:layout_width=fill_parent
 android:layout_height=fill_parent
android:layout_below=@+id/header
 android:layout_above=@+id/footer /

 LinearLayout android:id=@+id/footer
 android:layout_alignParentBottom=true
 android:layout_centerHorizontal=true
 android:layout_width=fill_parent
 android:layout_height=wrap_content
android:orientation=horizontal
 style=@android:style/ButtonBar

ImageButton android:id=@+id/loacreation.previousButton
android:layout_width=wrap_content
 android:layout_height=wrap_content
android:layout_weight=1
 android:src=@drawable/buttonarrowleft /

ImageButton android:id=@+id/loacreation.nextButton
android:layout_width=wrap_content
 android:layout_height=wrap_content
android:layout_weight=1
 android:src=@drawable/buttonarrowright /
/LinearLayout


 /RelativeLayout


 On Thu, Mar 3, 2011 at 3:37 AM, Patrick patrick.manges...@gmail.com
 wrote:
  Hallo!
 
  I want to create a Wizzard like layout which should look like described:
   * at the top should be some kind of title of the current dialog
   * at the bottom should be a navigation bar containg buttons for
  next/previous and various operations. THis bar should always(!) be at the
  very bottom of the screen.
   * at the center should be a list (should use all the space left, except
 the
  title bar and the navigation bar described above)
 
  My first attempt is posted below. I used framelayout however I was told
 this
  is a bad idea. The problem I ran into is that last row of my list is
 below
  the bar with the buttons at the bottom of the screen. Do you have any
  suggestions on how I could solve my Problem?
 
  Thanks
 
  Here's my not working draft:
 
  FrameLayout xmlns:android=http://schemas.android.com/apk/res/android;
  android:orientation=vertical android:layout_width=fill_parent
  android:layout_height=fill_parent
 
  LinearLayout android:layout_width=fill_parent
  android:layout_height=wrap_content
 android:orientation=vertical
 
 
  LinearLayout android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:orientation=horizontal style=@android:style/ButtonBar
 
  ImageView android:src=@drawable/person
  android:layout_width=wrap_content
  android:layout_height=wrap_content /
 
  TextView android:text=@string/personstring
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:textStyle=bold
  android:textAppearance=?android:attr/textAppearanceLarge /
 
  /LinearLayout
 
 
  ListView android:visibility=visible android:id=@android:id/list
  android:layout_width=fill_parent
  

[android-developers] Re: Detecting Package Update

2011-03-03 Thread Jake Colman
 JA == Justin Anderson magouyaw...@gmail.com writes:

Let's say v1.0 was implemented using a broadcast receiver (which
is the appwidget itself) and two services.  I then publish v1.1
which fixes bugs in all the components.  The user updates my
appwidget via the Market while the appwidget is still
running. When/how doe that new code start executing?

   JA I believe the next time the provider is called, but I may be
   JA wrong.

Ah, but that's the key question!  :-)

Now I publish v1.2 which restructures the code so that it uses one
service instead of two.  How/will the redundant service be
removed?  Will it just wither and die?  Do I need to worry about
this?

   JA It will be removed when the application is uninstalled.

Does replace equal uninstalled?  If so, then maybe I don't need to
worry about any of this.

   JA On Thu, Mar 3, 2011 at 8:21 AM, TreKing treking...@gmail.com wrote:

On Wed, Mar 2, 2011 at 10:51 PM, Justin Anderson
magouyaw...@gmail.comwrote:

* How can a package determine that it has been updated and that it,
 therefore, must stop and restart itself?*

According to this, you can't:

http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED


Try this one:


http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED

http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED

Assuming this works, and I'll run some tests shortly, what can/should
the widget do to make sure that it only executes the new code?

-- 
Jake Colman -- Android Tinkerer

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

2011-03-03 Thread TreKing
On Mon, Feb 28, 2011 at 11:34 AM, Pawel psza...@gmail.com wrote:

 First is to run intentservice inside AsyncTask


Try the opposite.

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

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

Re: [android-developers] Re: Authenticate Non-AppEngine Webservice using Google Account

2011-03-03 Thread TreKing
On Wed, Mar 2, 2011 at 3:02 PM, Jesse gotosl...@gmail.com wrote:

 Does anyone know why this thread no longer appears in the list of topics?
 The only reason I was able to get back to it was because I had it
 bookmarked.


Google Groups is not exactly the most reliable software.

On Thu, Mar 3, 2011 at 11:04 AM, Jesse gotosl...@gmail.com wrote:

 I really need to find an answer to this question. Anyone? Bueller?


You're not going to have much luck here. You question is really not
Android-specific. I'm sure there are more suitable groups or sites that
discuss the topic at hand.

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

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

Re: [android-developers] Uid mismatch

2011-03-03 Thread Dianne Hackborn
Huh, that doesn't make any sense.  Uninstalling will remove all traces of
the app and any uids associated with it, so when you install again it will
be fresh.

Could you please post:

(1) The output of logcat when you are uninstalling.
(2) The output of adb shell dumpsys package after uninstalling.
(3) The output of logcan when you are next installing.
(4) The output of adb shell dumpsys package after installing.

On Thu, Mar 3, 2011 at 9:03 AM, Demetris demet...@ece.neu.edu wrote:


 No problem Dianne I certainly understand and I still appreciate the help so
 far anyway.
 I am primarily working with 2.2 and 2.3 versions of the OS but there was a
 requirement
 to use these older phones for now so I need to dig in the ancient world a
 bit ;)

 I did uninstall and install the app again multiple times but the issue
 remains. I am assuming
 that I may need to clear up the data partition to fix this. Any other app I
 install works fine
 on these phones so I think the issue is limited to this particular
 application. I am wondering
 if an older corrupted version of this app has leftovers in the OS and it is
 messing up any
 other effort beyond it.

 I will post any solution I find on the list for reference and if anyone has
 any suggestions pleased
 feel free to post it. I appreciate the help.

 Regards


 On 3/3/2011 2:11 AM, Dianne Hackborn wrote:

 1.6 is really old, so I am not going to be able to remember enough to help
 much off-hand.  There may have been a bug in it that allowed uids to get
 re-assigned in certain bad situations.

  I can't help you with dalvik errors.

  I think what I would suggest at this point is to just uninstall the app
 and then re-install.

 On Wed, Mar 2, 2011 at 10:33 PM, Demetris demet...@ece.neu.edu wrote:


 No I didn't actually try to change the app from shared user to non-shared,
 it is a non-shared id app even though
 I am seeing 7 shared uids mentioned in the logging below. Not sure why but
 I didn't set any shared user uids.
 I am compiling and running this on a 1.6 Android phone and I do see the
 mismatch uids but also the install failing.
 Not sure how the mismatch uids affect the install and looking over the log
 that may be the case anyway:

 D/AndroidRuntime(  421):  AndroidRuntime START
 
 D/AndroidRuntime(  421): CheckJNI is OFF
 D/AndroidRuntime(  421): --- registering native functions ---
 I/jdwp(  421): received file descriptor 17 from ADB
 D/ddm-heap(  421): Got feature list request
 D/PackageParser(   90): Scanning package: /data/app/vmdl60807.tmp
 E/PackageManager(   90): Package com.p2pSOAAndroidWebCP2_16 has mismatched
 uid: 10042 on disk, 10036 in settings; read messages:
 E/PackageManager(   90): Read completed successfully: 70 packages, 7
 shared uids
 I/PackageManager(   90): /data/app/vmdl60807.tmp changed; unpacking
 D/installd(   53): DexInv: --- BEGIN '/data/app/vmdl60807.tmp' ---
 W/dalvikvm(  427): partial write in inflate (32728 vs 32768)
 W/dalvikvm(  427): DexOptZ: extraction of classes.dex from
 /data/app/vmdl60807.tmp failed
 W/installd(   53): DexInv: --- END '/data/app/vmdl60807.tmp' ---
 status=0xff00, process failed
 E/installd(   53): dexopt failed on '/data/dalvik-cache/data@app
 @vmdl60807@classes.dex' res = 65280
 W/PackageManager(   90): Package couldn't be installed in
 /data/app/com.p2pSOAAndroidWebCP2_16.apk
 D/AndroidRuntime(  421): Shutting down VM

 I also do se a partial write in inflate but that's all. Do you know what
 the res=65280 stand for in thefailed
 dexopt attempt?

 Thanks for the feedback Dianne


 On 3/3/2011 1:08 AM, Dianne Hackborn wrote:

 The uid is stored in data/system/packages.xml and of course the uid of the
 directory and files owned by the app.  You can't touch any of these unless
 you are running a non-user build.

  Did you try to change the app between a shared user id and non-shared?
  If so, this will cause the problem; on older versions of the platform the
 install wouldn't fail, it would just result in mismatched uids.

 On Wed, Mar 2, 2011 at 9:32 PM, kypriakos demet...@ece.neu.edu wrote:


 It seems that the install failure of a particular apk may be
 attributed to
 mismatch uids. What causes such mismatches and is it possible to
 correct them without losing the user data - particularly in this case
 where only a certain app apk does that but the rest are fine. Where
 do these uids get stored?

 This is the message:
 Package com.CP_16 has mismatched uid: 10048 on disk, 10045 in settings

 If I create a new apk using the source from the apk that fails I still
 get
 the same message with a different uid:
 Package com.WebCP_16 has mismatched uid: 10042 on disk, 10044 in
 settings

 I will appreciate any hints on this or where to look for some.

 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] Items Randomly Shift in ListView

2011-03-03 Thread Robert
I'm using a custom adapter which populates a ListView with a custom widget; 
the list shows bluetooth devices within range. I use a BroadcastReceiver to 
find the bluetooth devices and dynamically populate the list when I do. I 
call a function, addDevice(), from my custom adapter, which updates its 
internal list of devices and calls the notifyDataSetChanged().

However, my problem is that instead of listing the devices in the order of 
which it was added, it constantly shift the order of the items in the list, 
as new items are added (i.e. A bluetooth device will appear first in the 
list and then after notifyDataSetChanged() is called, it will appear 3rd, 
then maybe 6th, and back up to 4th in the list). Does anyone have any idea 
as to why this may be and how I might be able to fix it? Note the Adapter 
and BroadcastReciever are in different classes.


Custom Adapter (*DeviceAdpater.java*):

   public View getView(int position, View convertView, ViewGroup parent)
   { 
  CheckBoxItemView   itemView;

  // Check to see if the view is null and inflate it if so
  if (convertView == null)
  { 
 itemView = new CheckBoxItemView(app_context);
  
 // Bind the data to the new widget from the data from given list
 itemView.setName(device_list.get(position).getName());
 itemView.setText(device_list.get(position).getText());
 itemView.setIconImage(device_list.get(position).getIconImage());
  
 // Set the listener for the checkbox
 itemView.getCheckBox().setOnCheckedChangeListener(
device_list.get(position));
 Log.i(DEBUG, View is null  + itemView.getName());
  }
  else
  {
 itemView = (CheckBoxItemView) convertView;
  }
  
  return itemView;
   }
   
   public void addDevice(CheckBoxItemView device, String address)
   {
  // Add the new device and its bluetooth address to the lists
  device_list.add(device);
  address_list.add(address);

  // Tell the view to refresh itself
  notifyDataSetChanged();
   }


Main activity class:

   private void addBluetoothDevice(String deviceName, String address,
  boolean pairedWith)
   {
  CheckBoxItemView   itemRow;

  // Create a new checkbox item for the list of bluetooth devices; the
  // name of the widget component and its text will be the same as
  // the bluetooth device's name
  itemRow = new CheckBoxItemView(this);
  itemRow.setName(String.format(%s, deviceName));
  itemRow.setText(String.format(%s, deviceName));

  // Check to see if this device has already been paired with in a
  // previous session
  if (pairedWith == true)
  {
 itemRow.setIconImage(R.drawable.sample_0);
  }
  else
  {
 // Unknown bluetooth device so use the default image
 itemRow.setIconImage(R.drawable.sample_1);
  }

  // Add the new row featuring the bluetooth device to the adapter
  device_adapter.addDevice(itemRow, address);
   }

   private class ActivityReceiver extends BroadcastReceiver
   {
  public void onReceive(Context context, Intent intent)
  {
 Stringaction;
 BluetoothDevice   btDevice;

 // Get the intended action and process it
 action = intent.getAction();
 if (action.equals(BluetoothDevice.ACTION_FOUND))
 {
// Get the bluetooth device that was found
btDevice = 
intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);

// If the device hasn't been paired (which would mean that it's
// already in list), go ahead and add it now
if (btDevice.getBondState() != BluetoothDevice.BOND_BONDED)
{
   addBluetoothDevice(btDevice.getName(), btDevice.getAddress(),
  false);
}
 }
  }
   }


Tracing through the steps, I also find that sometimes when a device is added 
and notifyDataSetChanged() is called, getView will not be called for that 
new device. I'm not sure if this may be related to the random list 
population or if it's a bluetooth hardware thing (the bluetooth in range are 
from other computers in my room and custom created hardware).

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

2011-03-03 Thread Streets Of Boston
After doing a very quick read of your code snippet, move this code:
 // Bind the data to the new widget from the data from given list
 itemView.setName(device_list.get(position).getName());
 itemView.setText(device_list.get(position).getText());
 itemView.setIconImage(device_list.get(position).getIconImage());
  
 // Set the listener for the checkbox
 itemView.getCheckBox().setOnCheckedChangeListener(
device_list.get(position));
 Log.i(DEBUG, View is null  + itemView.getName());

*after *the if statement:

  // Check to see if the view is null and inflate it if so
  if (convertView == null)
  { 
 itemView = new CheckBoxItemView(app_context);
  
  }
  else
  {
 itemView = (CheckBoxItemView) convertView;
  }

  // Bind the data to the new widget from the data from given list
  itemView.setName(device_list.get(position).getName());
  itemView.setText(device_list.get(position).getText());
  itemView.setIconImage(device_list.get(position).getIconImage());
  
  // Set the listener for the checkbox
  itemView.getCheckBox().setOnCheckedChangeListener(
device_list.get(position));
  Log.i(DEBUG, View is null  + itemView.getName());

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

2011-03-03 Thread TreKing
On Mon, Feb 28, 2011 at 3:45 PM, Stephane Denis execom...@googlemail.comwrote:

 I just have 'list of devices attached' and an empty list.


Most devices require a driver installation to work properly for development.
I think the driver is in the SDK somewhere, it's been a while since I had to
set that up.

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

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

Re: [android-developers] facebook cache

2011-03-03 Thread TreKing
On Thu, Mar 3, 2011 at 3:16 AM, yanamala siddaiah siddaiahforj...@gmail.com
 wrote:

 is it possible ,


Yes.


 if give me help .


What have you tried? Where are you stuck?

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

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

[android-developers] Re: Items Randomly Shift in ListView

2011-03-03 Thread Robert
Thanks for the quick reply Streets. It worked perfectly. I still don't 
understand why I need to re-add the data though or why it would make a 
change in the order of the list. Shouldn't it be the same?

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

2011-03-03 Thread Kostya Vasilyev

That Elocity seems to be NVIDIA Tegra based.

So:

http://www.addictivetips.com/mobile/enable-adb-usb-drivers-for-nvidia-tegra-based-android-tablets/

-- Kostya

03.03.2011 20:46, TreKing ?:
On Mon, Feb 28, 2011 at 3:45 PM, Stephane Denis 
execom...@googlemail.com mailto:execom...@googlemail.com wrote:


I just have 'list of devices attached' and an empty list.


Most devices require a driver installation to work properly for 
development. I think the driver is in the SDK somewhere, it's been a 
while since I had to set that up.


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


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



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

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

Re: [android-developers] Re: Detecting Package Update

2011-03-03 Thread Justin Anderson
* Does replace equal uninstalled?  If so, then maybe I don't need to
worry about any of this.*

I certainly hope so... otherwise Android would have all sorts of problems
when updating apps.

On Thu, Mar 3, 2011 at 10:10 AM, Jake Colman col...@ppllc.com wrote:

  JA == Justin Anderson magouyaw...@gmail.com writes:

Let's say v1.0 was implemented using a broadcast receiver (which
is the appwidget itself) and two services.  I then publish v1.1
which fixes bugs in all the components.  The user updates my
appwidget via the Market while the appwidget is still
running. When/how doe that new code start executing?

JA I believe the next time the provider is called, but I may be
   JA wrong.

 Ah, but that's the key question!  :-)

Now I publish v1.2 which restructures the code so that it uses one
service instead of two.  How/will the redundant service be
removed?  Will it just wither and die?  Do I need to worry about
this?

JA It will be removed when the application is uninstalled.

 Does replace equal uninstalled?  If so, then maybe I don't need to
 worry about any of this.

   JA On Thu, Mar 3, 2011 at 8:21 AM, TreKing treking...@gmail.com
 wrote:

On Wed, Mar 2, 2011 at 10:51 PM, Justin Anderson
magouyaw...@gmail.comwrote:
   
* How can a package determine that it has been updated and that it,
 therefore, must stop and restart itself?*
   
According to this, you can't:
   
 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED
   
   
Try this one:
   
   
 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED
 
 http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED
 

 Assuming this works, and I'll run some tests shortly, what can/should
 the widget do to make sure that it only executes the new code?

 --
 Jake Colman -- Android Tinkerer

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

2011-03-03 Thread A. Elk
No, this shouldn't happen. However, to debug this, try the following:
- make sure you define the startUp() method for each test case. In it,
do
myactivity = getActivity();
  to store a handle to the activity under test.
- make sure you define the tearDown() method for each test case. In
it, do
myactivity.finish();
  to shut down the activity.

This ensures that each test method runs with a new instance of the
activity under test.

It therefore ensures that each test case runs with a new instance of
the activity under test.

If you are depending on an activity surviving across tests, then
you're not really doing a unit test. Each test method should be self-
contained, except for dependencies that you inject. The place to set
up dependencies across all the tests in a test case is setUp(). The
place to set up dependencies for a particular test is in the test
method. Each test method should assume that a new instance of the
activity is running, with no other assumptions other than the test
fixture (the sum of dependencies set up in setUp() and in the test
method).

Test cases themselves are just a convenience for organizing tests. You
could, if you wanted, put all your tests into one test case.

On Mar 2, 6:18 pm, Mooncheol Yang saile...@gmail.com wrote:
 Hi All

 I made test codes using ActivityInstrumentationTestCase2

 when I execute test case one by one in Eclipse, it works well.

 but when I execute all test cases, it freezes after one test case is
 executed,

 i guess that in ActivityInstrumentationTestCase2, after each test Case
 is executed, Android Test Framework is designed to  to kill activity
 and launch again, but after one test case is ended, it seems that
 Android test framework can't kill activity.
 so test is hanging...

 anyone like me?
 any reply will be helpful

 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: Items Randomly Shift in ListView

2011-03-03 Thread Streets Of Boston
The 'convertView' is one of the CheckBoxItemViews you created when 
'convertView == null':
When returning a new CheckBoxItemView, it will be used for the given 
'position' and it will be re-used if the CheckBoxItemView scrolls out of 
sight later.

When it scrolls out of sight, it can be re-used. When another list-item on a 
larger 'position' needs to be shown, convertView will not be null. It will 
be one of the CheckBoxItemViews you used earlier which you now can use again 
for this larger 'position'.

E.g. If your list, given its height, can show (entirely or just partially) 7 
CheckBoxItemViews, convertView is null only 7 times and you'll be creating 
no more than 7 new CheckBoxItemViews.

When convertView is not null, you are re-using an existing one and you just 
need to replace its data (name, text, icon) with new data based on its new 
'position'. 

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

2011-03-03 Thread tonytony
I implemented the example on the page for testing purposes but I still
have problems with @Get. (http://wiki.restlet.org/docs_2.0/13-restlet/
21-restlet/318-restlet/303-restlet.html?showComments=true)

On both Android or Java application I get a 'null' object when I do
resource.retrieve();

If I do ClientResource.get().getText(), then I see part of returned
object. (Therefore I am assuming server side is OK).

Can someone please guide me on how I can test/solve this please?

Thanks guys!

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


[android-developers] How to find/associate audio files to my events

2011-03-03 Thread cellurl
I want users to associate audio files to events in my app, like
speeding, etc.

I have my own voice prompts working, I just want the user to be able
to SELECT other voice files from other applications.

What is the simplest way to do that? I just want it simple for now.

I tried this post. It finds the SD card in my emulator, but it is
empty.
http://goo.gl/7xBvB

Thanks for any leads!
cellurl




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

2011-03-03 Thread Jesse
I feel it is Android specific because the main unknown is what type of 
authtoken does the Android AccountManager API give us for google accounts 
(ClientLogin, OAuth, something else?). But, I'll try asking elsewhere.

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

2011-03-03 Thread A. Elk
Is this the same problem you reported in another message?

Could you describe the evidence that suggests that something is
freezing? Does the test package stop producing output? Have you
tried this both in Eclipse and from the command line?

I'm not sure why you say that the android test framework is not
stable. There may be a bug in it, but the code for it has been around
for a relatively long time. I don't recall anyone else reporting a
similar problem.

Also, it would help if you posted what version of the SDK you're
using. A brief description of your Activity and your tests would also
help.

If this happened to me, the first think I'd do is write two incredibly
simple activity test cases, put them into one test package, and run
them against the Activity in question to see what happens. It could be
that your Activity is crashing somehow. For an example of a very
simple test case, see NotePadActivityTest.java in the NotePad sample
app.

On Mar 2, 6:05 pm, Mooncheol Yang saile...@gmail.com wrote:
 Hi All

 I wrote test codes(Instrumentation Test of Activities ) and executed..

 it works well..  but sometimes  it's freezing

 so, I checked testcodes, i finally made conclusions that android test
 framework is not stable.

 test is executing  setup() - myTestCode() - teardown()

 i found after teardown() is finished and freezing is occurred.

 Anyone like me same situation?

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

2011-03-03 Thread Marcin Orlowski
On 3 March 2011 19:11, cellurl gpscru...@gmail.com wrote:

 I tried this post. It finds the SD card in my emulator, but it is
 empty.

Did you put any files on emulated SD card?

-- 
Regards,
Marcin

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


[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-03 Thread Stephan Wiesner
Thanks for your reply.
Thats exactly what I need, though: The path to the internal storage. I
download the files and can access them using File() of course, but how
do I access them from BitmapFactory?. Probably obvious, if you know
it, but I don't get it :-(

Stephan

On Mar 3, 10:45 am, Doug beafd...@gmail.com wrote:
 Use BitmapFactory and feed it the path of the file you saved, wherever
 you saved it.

 On Mar 2, 2:15 am, Stephan Wiesner testexpe...@googlemail.com wrote:







  Hi,
  my app displays some pictures I want to replace at certain intervals by
  downloading them from a webpage.
  I can set the image from my drawable folder, assets folder or by downloading
  it from a webpage:

  ImageView im = (ImageView) findViewById(R.id.SplashLogo);
                  // url = file:///android_asset/pic.png;
  InputStream is = (InputStream) new URL(url).getContent();
  Drawable d = Drawable.createFromStream(is, src name);

  What I want, however, is to display an image that I downloaded previously to
  internal storage (or sdcard if i have to).
  So: How do set the filename/folder to point to internal storage?

  Thanks,
  Stephan

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