[android-developers] about the market 15 minutes refund window

2010-12-19 Thread nick
 It seems that the new 15 minute refund windows is live, but is it so
in every country with paid apps? And if so, how does it look from
Google Checkout? I would expect that order state will change to
Charged/Shipped within more or less 15 minutes. This is not the case
in Japan though. It still takes about 24 hours for the order state to
change to Charged/Shipped. So the question is: is the new refund
window not active everywhere or is it just orders update only once a
day?

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


Re: [android-developers] Android:: Service::OnDestroy being called late..

2010-12-19 Thread Mark Murphy
On Mon, Dec 20, 2010 at 1:15 AM, JC  wrote:
> Hello all,
>
> I have service with thread, From activity I am calling start
> service(from Activity::onDestroy()) and stop service
> (activity::onCreate()).
>
> StopService() returned instantly but my Service::OnDestroy called
> after so many time, pretty late, Why? How to make Service::OnDestroy
> called immediately when calling StopService().

That is not possible, sorry. stopService() is an asynchronous call.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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

2010-12-19 Thread Bape
I want to develop a application on Samsung Galaxy.
The resolution is 1024 * 600
My mainlayout should look like this:

http://office.techniconsulting.be/~peeters/eclipse_screenshot.jpg

I've a left image (296 *600) and right image (728 * 600) as
background.
mail.xml looks like:


http://schemas.android.com/apk/res/
android"
android:orientation="horizontal" android:layout_height="600px"
android:layout_width="1024px">

  




Whwen I run it in the simulator it looks like:

http://office.techniconsulting.be/~peeters/emulator_screenshot.jpg

Is it not possible to work with pixel height en width in the emulator?

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

2010-12-19 Thread Mark Murphy
On Sun, Dec 19, 2010 at 5:14 PM, String  wrote:
> AppBrain is somebody's vision of what the Market should be, and it's not a
> bad one. The basic app information (name, description, etc) is "pirated"
> from the Market, as Mark says, but a lot of the other data is stuff they've
> gathered their own, as far as I can tell.

Oh, yeah, don't get me wrong. AppBrain's functionality is great. I
just wish that Google would make the feed available for all.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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

2010-12-19 Thread Tauno Talimaa
Just to clarify, Rovio is using in-app payments from Fortumo
(http://fortumo.com/in-app-payments) - and that's available to 3rd
parties already right now :)


On Fri, Dec 17, 2010 at 5:32 PM, JP  wrote:
> Also check out Rovio. They're building their own in-app payment system
> they call "Bad Piggy Bank". I read somewhere they wanted to make this
> available to third parties, but that'll take them some time to take
> the market I'm sure.
>
> On Dec 16, 7:47 am, Xavier  wrote:
>> Thanks JP, never heard of them before, I will take a look. The Android
>> integrations looks pretty good.
>>
>> On 13 dic, 02:29, JP  wrote:
>>
>> > There's probably a few options, including these guys:http://www.boku.com/
>> > I ran into one of their staff a couple of weeks ago and asked what
>> > their position on distributing in-app payment based apps in Android
>> > Market was. That that was walking a thin line was acknowledged but
>> > basically they consider it OK to distributebokuin-app-payment based
>> > apps in Android Market. I am not so sure if that holds, but OTOH
>> > Android Market might be losing out in the long run if they don't
>> > support engagement based monetization models. At least where things
>> > stand today, not many starting out dare not to have an engagement
>> > angle to their monetization model. That's my perception anyways, hope
>> > this helps.
>>
>> > On Dec 11, 11:14 am, Xavier  wrote:
>>
>> > > Hi,
>>
>> > > Imagine an app distributed outside the Google Market, so no
>> > > restrictions for that. What possibilities do I have to integrate some
>> > > method of payments inside it? (Paypal is not an option) I guess what I
>> > > should be looking for is some kinf of API from a credit card merchant?
>>
>> > > Could someone point me on several directions I could begin look at?
>>
>> > > X.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: My App should get information of every Http Get.

2010-12-19 Thread Sarwar Erfan
Why should your app get all these private information about the device 
owner?

Regards
Sarwar Erfan

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

[android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-19 Thread James
of course you can,

On Dec 18, 9:25 am, 苗鹏  wrote:
> It is possible to connect simultaneously to multiple bluetooth 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] Game pretty much like mine

2010-12-19 Thread brian purgert
So yesterday I,m looking around on the app market and I noticed that there
is a game very similer to the game I've been working on for months now, so
now im pretty bummed out I thought I would be the first to bring this type
of game out for android but Im not.
The game that is similar to mine is mxmoto, its a pretty good game but the
physics aren't anywhere as good as mine, for instance you can beat any level
if you hold your phone straight, and its much to sensative for the average
user... well the thing is I can't make my game look professional like. What
do you guys think I should do. My game is called doodle bike btw and its
similar but there is more physics like spinning objects and gravity changes.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] My App should get information of every Http Get.

2010-12-19 Thread Kumar Bibek
Well, I don't think it's possible.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Mon, Dec 20, 2010 at 12:32 PM, chetan  wrote:

> Hi guys,
>Wish you all Merry Christmas and Happy New Year in
> advance.
> I am planning to make an app. There is a requirement to
> get every Http Get information and notification to my App.
>   Like user open google.com from borwser, at the same time my
> app should get notification or broadcast that google.com has been
> opened.
>  Basically, My App should get information of every url which
> would be accessed from browser.
>
> Please give some ideas.
>
> Thanks
> Chetan Chauhan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: problem in nested linear layout

2010-12-19 Thread Atik
hello boss..

i will just suggest u that better way use relative layout for the same
so u can place the components betterway.
i havent read the code. so cant comment on the current xml.


On Dec 20, 11:37 am, "pramod.deore"  wrote:
> when I open this xml file with andriodLayout Editor then it shows
> first 2 buutons and textview in horizontal orientation and last 2 in
> horizontal. But when I run application then on emulator it shows all 4
> textview and 4 buttons in vertical. How to show first 2 textview and
> button in horizonta; and last 2 button and textview in horizontal?
> On Dec 20, 10:54 am, "pramod.deore"  wrote:
>
> > Hi, all I have xml file in that there is one radio group which has 3
> > radio buttons arranged in horizontal. then there are 4 textfield and 4
> > buttons arranged in vertical. But what I want is arrange first 2
> > buttons and 2 textfield horizontal and last 2 buttons and 2 textfield
> > horizontal. I wrote nested linear layout but it is not working. Here
> > it still shows all buttons and textfield vertical.
>
> > Here is my xml file
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >  android:orientation="vertical"
> >  android:layout_width="fill_parent"
> >  android:layout_height="wrap_content">
>
> >                  >                 android:layout_height="wrap_content"
> >                 android:textStyle="bold"
> >                 android:text="Select Scheduler Type" />
>
> >                  >                 android:layout_height="wrap_content"
> >                 android:orientation="horizontal"
> >                 android:id="@+id/QueGroup1">
>
> >                          >                         android:id="@+id/option1" android:text="Once"/>
> >                          >                         android:id="@+id/option2" android:text="Daily"/>
> >                          >                         android:id="@+id/option3" android:text="Weekly"/>
> >                 
>
> >                  >         android:orientation="horizontal"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:gravity="center" >
>
> >                          >                         android:id="@+id/startDate"
> >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text="" />
> >                 android:textStyle="bold"
>
> >                  >                 android:id = "@+id/pickStartDate"
> >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text="Start Date"
> >                 />
>
> >                  >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text=""/>
>
> >                  >             android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text="Start Time"/>
> >         
>
> >          >         android:orientation="horizontal"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content"
> >         android:gravity="center" >
>
> >                  >                         android:id="@+id/stopDate"
> >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text="" />
> >                 android:textStyle="bold"
>
> >                  >                 android:id = "@+id/pickStopDate"
> >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text="Stop Date"
> >                 />
>
> >                  >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text=""/>
>
> >                  >             android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:text="Stop Time"/>
>
> >         
>
> > 

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


[android-developers] My App should get information of every Http Get.

2010-12-19 Thread chetan
Hi guys,
Wish you all Merry Christmas and Happy New Year in
advance.
 I am planning to make an app. There is a requirement to
get every Http Get information and notification to my App.
   Like user open google.com from borwser, at the same time my
app should get notification or broadcast that google.com has been
opened.
  Basically, My App should get information of every url which
would be accessed from browser.

Please give some ideas.

Thanks
Chetan Chauhan

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

2010-12-19 Thread Eong
I prefer 5 secs.

On 12月20日, 上午6时35分, Zsolt Vasvari  wrote:
> The 15 min period has now started, people seeing that on their
> receipts.
>
> I have decided to still honor the previous 24hr period as my app is
> impossible to evalute in 15 mins.
>
> That said, the Market team decided, in their infinite wisdom, that
> orders still don't get finalized for 24 hrs, so what happens is that I
> cannot issue a refund until the 24 hrs is 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


[android-developers] Re: problem in nested linear layout

2010-12-19 Thread pramod.deore

when I open this xml file with andriodLayout Editor then it shows
first 2 buutons and textview in horizontal orientation and last 2 in
horizontal. But when I run application then on emulator it shows all 4
textview and 4 buttons in vertical. How to show first 2 textview and
button in horizonta; and last 2 button and textview in horizontal?
On Dec 20, 10:54 am, "pramod.deore"  wrote:
> Hi, all I have xml file in that there is one radio group which has 3
> radio buttons arranged in horizontal. then there are 4 textfield and 4
> buttons arranged in vertical. But what I want is arrange first 2
> buttons and 2 textfield horizontal and last 2 buttons and 2 textfield
> horizontal. I wrote nested linear layout but it is not working. Here
> it still shows all buttons and textfield vertical.
>
> Here is my xml file
> 
> http://schemas.android.com/apk/res/
> android"
>  android:orientation="vertical"
>  android:layout_width="fill_parent"
>  android:layout_height="wrap_content">
>
>                                  android:layout_height="wrap_content"
>                 android:textStyle="bold"
>                 android:text="Select Scheduler Type" />
>
>                                  android:layout_height="wrap_content"
>                 android:orientation="horizontal"
>                 android:id="@+id/QueGroup1">
>
>                                                  android:id="@+id/option1" android:text="Once"/>
>                                                  android:id="@+id/option2" android:text="Daily"/>
>                                                  android:id="@+id/option3" android:text="Weekly"/>
>                 
>
>                          android:orientation="horizontal"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:gravity="center" >
>
>                                                  android:id="@+id/startDate"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="" />
>                 android:textStyle="bold"
>
>                                  android:id = "@+id/pickStartDate"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="Start Date"
>                 />
>
>                                  android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text=""/>
>
>                              android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="Start Time"/>
>         
>
>                  android:orientation="horizontal"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:gravity="center" >
>
>                                          android:id="@+id/stopDate"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="" />
>                 android:textStyle="bold"
>
>                                  android:id = "@+id/pickStopDate"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="Stop Date"
>                 />
>
>                                  android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text=""/>
>
>                              android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="Stop Time"/>
>
>         
>
> 

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


Re: [android-developers] Re: Anybody seen a slowdown in sales?

2010-12-19 Thread Mark Carter
Indeed I am painfully aware of this and have written in countless forums
about it over the past couple of years!

"Country I am living in" dictates which "Country sim card I use" in order to
have mobile broadband without paying huge roaming costs. Switching sim cards
requires me to pop down to some nearby cafe to make use of their wifi and
then access the Market for paid apps (or free apps unavailable in obscure
countries - eBay, YouTube?).

How I love the sim card rule :(

On 20 December 2010 14:24, Zsolt Vasvari  wrote:

>
>
> On Dec 20, 2:16 pm, Mark Carter  wrote:
> > Right now, I'm
> > unable to check its ranking on the Android Market app thanks to being in
> a
> > non-paid app country :(
>
> You know that it's the SIM card that determines if you can see the
> paid apps, not your physical location.
>
> I have to do this as I live in Singapore and I cannot see some apps,
> such as e-Bay (why, why?) and if I want to update it, I need to swap
> in my (non-working) T-Mobile USA SIM card
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Anybody seen a slowdown in sales?

2010-12-19 Thread Zsolt Vasvari


On Dec 20, 2:16 pm, Mark Carter  wrote:
> Right now, I'm
> unable to check its ranking on the Android Market app thanks to being in a
> non-paid app country :(

You know that it's the SIM card that determines if you can see the
paid apps, not your physical location.

I have to do this as I live in Singapore and I cannot see some apps,
such as e-Bay (why, why?) and if I want to update it, I need to swap
in my (non-working) T-Mobile USA SIM card

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-19 Thread Eong
Text view in merge block are still missing.

On 12月16日, 上午8时47分, Xavier Ducrohet  wrote:
> Hey everyone,
>
> we just released a preview of ADT 9.0.0 that fixes some of the issues
> you all have.
>
> Seehttp://tools.android.com/download.
>
> Make sure you know this is dev version, not a final, fully-tested,
> public release.
>
> Hope this helps.
>
> Xav
>
>
>
> On Mon, Dec 13, 2010 at 3:24 PM, XanXa  wrote:
> > 1. I have moved a TextView with Style into a linearLayout and the
> > TextView loosed the style.
> > 2. When I try to use an empty LinearLayout I can't add any child (I
> > have to put Layout width and heigth).
> > 3. It's so difficult put the view where you want using only the editor
> > and always modify the rest of views.
> > 4. The ctrl+z work bad and strange, sometimes do things I didn't.
>
> > I didn't like the up and down arrows and neither the + and - buttons
> > but they made their job, Why not keep them until the drag is ready?.
> > Finally I think I'll going to use the XML editor for a while.
>
> > Nevertheless, I know the old editor was awfull and slow to use and we
> > needed a new Layout Editor powerfull and easier to use. We must work
> > hard to make this new Android Layout Editor more stable and usable.
>
> > (Sorry about my English)
>
> > On 13 dic, 16:35, Julie Andrews  wrote:
> >> On Sat, Dec 11, 2010 at 8:41 PM, niko20  wrote:
> >> > Ok, the new layout editor is fancier and all but no more properties
> >> > window? I have to right click to set properties now? And many times
> >> > the right click menu does not function correctly either, like it will
> >> > be missing sub menus, etc. I want my properties list back!
>
> >> > -niko
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com >> >  cr...@googlegroups.com>
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Juliehttp://www.sirsainfo.in/http://tradinglogically.blogspot.comhttp://vikitionary.blogspot.comhttp://gandhi-the-man-of-millenium.blo...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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.
>
> 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


[android-developers] Re: error while updating sdk 2.3

2010-12-19 Thread pramod.deore
set the path of adb in environment varaible. You will get adb in
android-sdk-windows\platform-tools folder instead of android-sdk-
windows\tools.

On Dec 20, 11:16 am, Atik  wrote:
> Installed Android SDK Tools, revision 8
> 'adb kill-server' failed -- run manually if necessary.
> Unable to run 'adb': Cannot run program "D:\Atiks Work\Android\android-
> sdk\tools\adb.exe": CreateProcess error=2, The system cannot find the
> file specified.
> 'adb start-server' failed.
>
>  i m getting the same error ..pls solve..
> i m badly stuck here

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

2010-12-19 Thread Mark Carter
My app is #1 in its category (Highest rated paid apps) in AppBrain and #76
in the equivalent category on the Android Market website. Right now, I'm
unable to check its ranking on the Android Market app thanks to being in a
non-paid app country :(

On 20 December 2010 14:07, Zsolt Vasvari  wrote:

> I don't know about other markets, as I don't sell on them, but on
> appBrain, my app is #1, while it's #7 on the Android Market, down from
> #3.
>
> On Dec 20, 1:51 pm, keyeslabs  wrote:
> > Has anyone seen resolution of this?
> >
> > My sales have decreased, most likely due to a dramatic drop in
> > rankings (by about 25 slots).  Sudden and dramatic would be how I
> > would characterize the change.  Seems closely correlated with the new
> > market app.
> >
> > Interestingly, my active installs has been climbing during the same
> > period.
> >
> > I'll be very interested to see how transparent the ranking algorithms
> > are in some of the other markets.  VCast is already rolling, and
> > others are soon-to-be kicked off.  Android Market rankings have been a
> > roller coaster over the last year, and it's been a frustrating ride as
> > dev.  I can say one thing about these other markets for sure, they
> > have forced Google to make changes to the market at a rate that
> > developers and consumers never could.  Whether those changes are
> > improvements or not remains to be seen.  I just LOVE competition!
> >
> > BTW, how many of us that saw drops in rankings are registered on the
> > other markets? :)
> >
> > On Dec 17, 9:34 pm, Zsolt Vasvari  wrote:
> >
> >
> >
> > > My sales have started to decline about 10 days ago and now they are at
> > > about 50% compared to then.
> >
> > > Has anybody seen anything like this with their own apps?  I am at a
> > > loss as I cannot see a reason for this -- my ratings are as high as
> > > ever, no 1-stars to scare people off, no "hot" competitor app.  I did
> > > increase the price by $1 about 14 days ago, but that actually lead to
> > > more sales for a few days after, so I don't know.  The $1 increase is
> > > from $7.99 to $8.99, so percentage-wise it's not that much.
> >
> > > As I am typing, I'm going on a 5 hour without a sale lull, with only a
> > > couple of "Declined authorizations."  I've evem seen an 11-hour lull
> > > also which has never happened since day one.
> >
> > > I mean it's possible that my app has run its course and most people
> > > who wanted it had bought it or a competitor's, but that's pretty hard
> > > to believe.
> >
> > > Anybody with any insights?- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] error while updating sdk 2.3

2010-12-19 Thread Atik
Installed Android SDK Tools, revision 8
'adb kill-server' failed -- run manually if necessary.
Unable to run 'adb': Cannot run program "D:\Atiks Work\Android\android-
sdk\tools\adb.exe": CreateProcess error=2, The system cannot find the
file specified.
'adb start-server' failed.

 i m getting the same error ..pls solve..
i m badly stuck here

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


[android-developers] Android:: Service::OnDestroy being called late..

2010-12-19 Thread JC
Hello all,

I have service with thread, From activity I am calling start
service(from Activity::onDestroy()) and stop service
(activity::onCreate()).

StopService() returned instantly but my Service::OnDestroy called
after so many time, pretty late, Why? How to make Service::OnDestroy
called immediately when calling StopService().

Activity class

MyActivity::OnDestroy()
{
  System.out.println("MyActivity-OnDestroy Start");
  // we are leaving activity so start service
  Intent svcIntent = new Intent(this,MyService.class);
  svcIntent.putExtra("SomeData", m_iData);
  startService(svcIntent);
  System.out.println("MyActivity-OnDestroy, startservice called");
  ..
  ..
  System.out.println("MyActivity-OnDestroy, End");
}
MyActivity::OnCreate()
{
  System.out.println("MyActivity-onCreate Start");
  // if service running stop it.
  if (m_bCalledFromNotification)
  {
   System.out.println("Stopping Service");
   boolean b = stopService(new Intent(this,AudioService.class));
   System.out.println("Stopping Service, Status="+b);
  }
  System.out.println("MyActivity-onCreate End");
}
Service class

@Override
public IBinder onBind(Intent intent)
{
return null;
}

// When service is created
@Override
public void onCreate()
{
// initialize service data
System.out.println("MyService Created");
}

@Override
public void onDestroy()
{
System.out.println("In MyService::onDestroy");
m_UIUpdater.interrupt();
System.out.println("In MyService::onDestroy, updater thread
interrupted");
..
System.out.println("My Service Stopped");
}

// This is the old onStart method that will be called on the pre-2.0
// platform.  On 2.0 or later we override onStartCommand() so this
// method will not be called.
@Override
public void onStart(Intent intent, int startId)
{
StartupHandler(intent,startId);
}

@Override
public int onStartCommand(Intent intent, int flags, int startId)
{
StartupHandler(intent,startId);
// We want this service to continue running until it is explicitly
// stopped, so return sticky.
return START_STICKY;
}

public void StartupHandler(Intent intent, int startid)
{
// send notification
System.out.println("In MyService::StartupHandler, Sending
notification");

// start thread
m_UIUpdater = new Thread(new Runnable()
{
public void run()
{
System.out.println("In MyService::Thread::Run");
while (!Thread.interrupted())
{
// check update
System.out.println("In MyService::Thread::Run::got
update and loop for next update");
}
}
}
}
Now here is output of logcat which show how late MyService::OnDestroy
called.

12-17 09:25:44.462: INFO/System.out(314): MyActivity-OnDestroy Start
..
12-17 09:25:44.493: INFO/System.out(314): MyActivity-OnDestroy,
startservice called
..
12-17 09:25:51.102: INFO/System.out(314): MyActivity-OnDestroy, End
12-17 09:25:51.153: INFO/System.out(314): MyService Created
12-17 09:25:51.172: INFO/System.out(314): In
MyService::StartupHandler, Sending notification
12-17 09:25:51.273: INFO/System.out(314): In MyService::Thread::Run
12-17 09:25:51.302: INFO/System.out(314): In
MyService::Thread::Run::got update and loop for next update
..
..
..
12-17 09:25:59.903: INFO/System.out(314): MyActivity-onCreate Start
..
12-17 09:26:00.461: INFO/System.out(314): Stopping Service
12-17 09:26:00.471: INFO/System.out(314): Stopping Service,
Status=true
12-17 09:26:01.363: INFO/System.out(314): MyActivity-onCreate End
12-17 09:26:01.421: INFO/System.out(314): In MyService::OnDestroy
12-17 09:26:01.421: INFO/System.out(314): In MyService::OnDestroy,
updater interrupted
12-17 09:26:01.591: INFO/System.out(314): My Service Stopped
Have i implemented service code correctly?

How can i wait for service to destroy gracefully so that i can do
remaining process after service has destroyed, like reading data
service has stopped.

Thanks,
JRC

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

2010-12-19 Thread Sarwar Erfan


On Monday, December 20, 2010 11:57:22 AM UTC+6, Derek Winstead wrote:
>
> I've already done this before in my app (layout with textviews and the 
> layout has the onclicks), however I do have a new question. Adding the 
> statelist as the background works for the layout but what about the 
> text changing colors? 
>
>
For the TextView inside layout:
android:focusable="true" android:duplicateParentState="true"

focusable will enable it to have different states (focused, not focussed 
etc, which a TextView does not have by default).
duplicateParentState will make its state to be same as its parent (the 
layout which contains the TextView)

So, when the state of the parent layout changes, the state of the TextView 
changes. So, text color changes also.

If you do not like the default text colors provided by Android for different 
states, you can further use your own Color State list for the TextView to 
specify your own colors.
http://developer.android.com/guide/topics/resources/color-list-resource.html

Regards
Sarwar Erfan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-19 Thread Eong
You shouldn't remove the up/down add/remove buttons from outline, it's
very usefull, much more than the dragging style. Now I have to edit
the xml myself! Dragging really sucks in my workspace, text view
without text will not show up correctly and a lot of views are missing
in merge block. And I need to drag 10 times to make a view in a right
position. And we have no choice if we need the 2.3 SDK, it's a force
update. It really slows my development a lot! I even prefer xml editor
than this dragging editor. You need to fixing it!!!

Best regards,
Eong

On 12月18日, 下午9时01分, Xavier Ducrohet  wrote:
> Hi Tim,
>
> yes we would like to do full refactoring support across XML and Java
> (for android XML files).
>
>
>
> On Fri, Dec 17, 2010 at 12:32 PM, Tim H.  wrote:
> > Hi Xavier,
>
> > r9 is much improved! I am still seeing some glitches, such as if you
> > drag something onto a supposedly invalid area, it still makes changes
> > and/or makes the view disappear!
>
> > What I would love to see make the next version is correcting
> > references to alignments when a view is renamed, i.e. if I rename a
> > view that is in a RelativeLayout, other views that refer to that view
> > are also corrected. This would be a godsend!
>
> > Thanks,
> > Tim
>
> > On Dec 15, 7:47 pm, Xavier Ducrohet  wrote:
> >> Hey everyone,
>
> >> we just released a preview of ADT 9.0.0 that fixes some of the issues
> >> you all have.
>
> >> Seehttp://tools.android.com/download.
>
> >> Make sure you know this is dev version, not a final, fully-tested,
> >> public release.
>
> >> Hope this helps.
>
> >> Xav
>
> >> On Mon, Dec 13, 2010 at 3:24 PM, XanXa  wrote:
> >> > 1. I have moved a TextView with Style into a linearLayout and the
> >> > TextView loosed the style.
> >> > 2. When I try to use an empty LinearLayout I can't add any child (I
> >> > have to put Layout width and heigth).
> >> > 3. It's so difficult put the view where you want using only the editor
> >> > and always modify the rest of views.
> >> > 4. The ctrl+z work bad and strange, sometimes do things I didn't.
>
> >> > I didn't like the up and down arrows and neither the + and - buttons
> >> > but they made their job, Why not keep them until the drag is ready?.
> >> > Finally I think I'll going to use the XML editor for a while.
>
> >> > Nevertheless, I know the old editor was awfull and slow to use and we
> >> > needed a new Layout Editor powerfull and easier to use. We must work
> >> > hard to make this new Android Layout Editor more stable and usable.
>
> >> > (Sorry about my English)
>
> >> > On 13 dic, 16:35, Julie Andrews  wrote:
> >> >> On Sat, Dec 11, 2010 at 8:41 PM, niko20  wrote:
> >> >> > Ok, the new layout editor is fancier and all but no more properties
> >> >> > window? I have to right click to set properties now? And many times
> >> >> > the right click menu does not function correctly either, like it will
> >> >> > be missing sub menus, etc. I want my properties list back!
>
> >> >> > -niko
>
> >> >> > --
> >> >> > You received this message because you are subscribed to the Google
> >> >> > Groups "Android Developers" group.
> >> >> > To post to this group, send email to 
> >> >> > android-developers@googlegroups.com
> >> >> > To unsubscribe from this group, send email to
> >> >> > android-developers+unsubscr...@googlegroups.com >> >> >  cr...@googlegroups.com>
> >> >> > For more options, visit this group at
> >> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> >> --
> >> >> Juliehttp://www.sirsainfo.in/http://tradinglogically.blogspot.comhttp://vikitionary.blogspot.comhttp://gandhi-the-man-of-millenium.blo...
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, 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.
>
> >> 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
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
>
> 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+unsubs

[android-developers] Re: Anybody seen a slowdown in sales?

2010-12-19 Thread Zsolt Vasvari
I don't know about other markets, as I don't sell on them, but on
appBrain, my app is #1, while it's #7 on the Android Market, down from
#3.

On Dec 20, 1:51 pm, keyeslabs  wrote:
> Has anyone seen resolution of this?
>
> My sales have decreased, most likely due to a dramatic drop in
> rankings (by about 25 slots).  Sudden and dramatic would be how I
> would characterize the change.  Seems closely correlated with the new
> market app.
>
> Interestingly, my active installs has been climbing during the same
> period.
>
> I'll be very interested to see how transparent the ranking algorithms
> are in some of the other markets.  VCast is already rolling, and
> others are soon-to-be kicked off.  Android Market rankings have been a
> roller coaster over the last year, and it's been a frustrating ride as
> dev.  I can say one thing about these other markets for sure, they
> have forced Google to make changes to the market at a rate that
> developers and consumers never could.  Whether those changes are
> improvements or not remains to be seen.  I just LOVE competition!
>
> BTW, how many of us that saw drops in rankings are registered on the
> other markets? :)
>
> On Dec 17, 9:34 pm, Zsolt Vasvari  wrote:
>
>
>
> > My sales have started to decline about 10 days ago and now they are at
> > about 50% compared to then.
>
> > Has anybody seen anything like this with their own apps?  I am at a
> > loss as I cannot see a reason for this -- my ratings are as high as
> > ever, no 1-stars to scare people off, no "hot" competitor app.  I did
> > increase the price by $1 about 14 days ago, but that actually lead to
> > more sales for a few days after, so I don't know.  The $1 increase is
> > from $7.99 to $8.99, so percentage-wise it's not that much.
>
> > As I am typing, I'm going on a 5 hour without a sale lull, with only a
> > couple of "Declined authorizations."  I've evem seen an 11-hour lull
> > also which has never happened since day one.
>
> > I mean it's possible that my app has run its course and most people
> > who wanted it had bought it or a competitor's, but that's pretty hard
> > to believe.
>
> > Anybody with any insights?- Hide quoted text -
>
> - Show quoted text -

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

2010-12-19 Thread Derek Winstead
I've already done this before in my app (layout with textviews and the
layout has the onclicks), however I do have a new question. Adding the
statelist as the background works for the layout but what about the
text changing colors?

I've had a hard time figuring out how to do style changes on the fly
with android.

Thanks for all the input everyone!

On Dec 19, 11:39 pm, Sarwar Erfan  wrote:
> Hi,
> You missed one element. There is two text elements and one icon also in
> right side of the number of connections (see attached image):
>
> 
>
> I can confirm its not a button. Create your own layout. Use a statelist as
> background. And, use 9 patch images in the statelist (if you want it to look
> good in both orientations).
>
> Put two TextView and one ImageView in the layout.
>
> --
>
> State list:  
> http://developer.android.com/guide/topics/resources/drawable-resource...
>
> 9 Patch:    
> http://developer.android.com/guide/developing/tools/draw9patch.html
>
> Regards
> Sarwar Erfan
>
>  linkedin_connections_layout.png
> 5KViewDownload

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


[android-developers] problem in nested linear layout

2010-12-19 Thread pramod.deore
Hi, all I have xml file in that there is one radio group which has 3
radio buttons arranged in horizontal. then there are 4 textfield and 4
buttons arranged in vertical. But what I want is arrange first 2
buttons and 2 textfield horizontal and last 2 buttons and 2 textfield
horizontal. I wrote nested linear layout but it is not working. Here
it still shows all buttons and textfield vertical.

Here is my xml file

http://schemas.android.com/apk/res/
android"
 android:orientation="vertical"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content">


















android:textStyle="bold"













android:textStyle="bold"












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

2010-12-19 Thread TreKing
On Sun, Dec 19, 2010 at 11:48 PM, Abhilash baddam <
abhilash.androiddevelo...@gmail.com> wrote:

> Yes, Horizontal scrolling.. i want to display a horizontal scrolling
> text...any suggestions please...


This is the first thing that comes to mind:
http://developer.android.com/reference/android/view/animation/TranslateAnimation.html

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

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

[android-developers] Re: Anybody seen a slowdown in sales?

2010-12-19 Thread keyeslabs
Has anyone seen resolution of this?

My sales have decreased, most likely due to a dramatic drop in
rankings (by about 25 slots).  Sudden and dramatic would be how I
would characterize the change.  Seems closely correlated with the new
market app.

Interestingly, my active installs has been climbing during the same
period.

I'll be very interested to see how transparent the ranking algorithms
are in some of the other markets.  VCast is already rolling, and
others are soon-to-be kicked off.  Android Market rankings have been a
roller coaster over the last year, and it's been a frustrating ride as
dev.  I can say one thing about these other markets for sure, they
have forced Google to make changes to the market at a rate that
developers and consumers never could.  Whether those changes are
improvements or not remains to be seen.  I just LOVE competition!

BTW, how many of us that saw drops in rankings are registered on the
other markets? :)

On Dec 17, 9:34 pm, Zsolt Vasvari  wrote:
> My sales have started to decline about 10 days ago and now they are at
> about 50% compared to then.
>
> Has anybody seen anything like this with their own apps?  I am at a
> loss as I cannot see a reason for this -- my ratings are as high as
> ever, no 1-stars to scare people off, no "hot" competitor app.  I did
> increase the price by $1 about 14 days ago, but that actually lead to
> more sales for a few days after, so I don't know.  The $1 increase is
> from $7.99 to $8.99, so percentage-wise it's not that much.
>
> As I am typing, I'm going on a 5 hour without a sale lull, with only a
> couple of "Declined authorizations."  I've evem seen an 11-hour lull
> also which has never happened since day one.
>
> I mean it's possible that my app has run its course and most people
> who wanted it had bought it or a competitor's, but that's pretty hard
> to believe.
>
> Anybody with any insights?

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

2010-12-19 Thread Abhilash baddam
Yes, Horizontal scrolling.. i want to display a horizontal scrolling
text...any suggestions please...



Regards,
Abhilash

On Sat, Dec 18, 2010 at 12:36 AM, Marcin Orlowski
wrote:

> On 17 December 2010 18:50, TreKing  wrote:
> > On Fri, Dec 17, 2010 at 7:39 AM, Abhilash baddam
> >  wrote:
> >>
> >> I want to show ticker in my code. Can anyone send me the code snippet
> for
> >> ticker.
> >
> > Care to explain what "ticker" means in your mind?
>
> I bet it's horizontal scroller
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: UI Builder in 2.3

2010-12-19 Thread Eong
Yes, a lot of improvments, but also a lot of missing functions...
Where are the arrows in outline? Sometimes dragging doesn't work well
and many xmls in my project doesn't show correctly any more.

On 12月7日, 上午7时55分, vogella  wrote:
> The new UI Builder is an improved version of the old one. For a
> screenshot please see 
> here:http://www.vogella.de/articles/Android/article.html#first_views

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

2010-12-19 Thread Zsolt Vasvari
> Also, regarding the > (right arrow) image within the LinkedIn example,
> that can simple be incorporated into the background 9patch image,
> rather than plonking an extra ImageView in the foreground.

And please don't use the right arrow :-)  It makes your app look like
a freaking iPhone app with its one button user interface.

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

2010-12-19 Thread Sarwar Erfan


On Monday, December 20, 2010 11:26:30 AM UTC+6, metal mikey wrote:
>
> Or you could just use a normal Button view with a whole bunch of 
> spaces seperating the right text from the left text.* 
>
>
> Requires some extra calculation to know how many spaces are required to be 
inserted as devices come in different sizes.
Orientation can be changed at any point (you need to recalculate the text 
length then).

Regards
Sarwar Erfan

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

2010-12-19 Thread Zsolt Vasvari
Yes, we are talking about the same thing.

I used a Button because it already handles all that state change
stuff, so there was zero amount of extra work on my part.



On Dec 20, 1:32 pm, Sarwar Erfan  wrote:
> Hi Vasvari,
> You wrote it yourself:
> ". by placing a Button and a bunch of other controls ."
> You did not use a single Button, you used a button and some "other"
> controls, inside a layout.
>
> What Derek wanted to know that whether it is possible using a button and
> only a button, which is not possible.
>
> The solution provided by you and me are almost same, its a layout with some
> controls to expose same look and feel.
>
> And, I did not say you cannot use a button in the group of controls. But, I
> "confirmed" that, this specific LinkedIn application does not use a button
> to achieve this feature (dont ask how did I  get confirmation). As soon as
> we find at least one way to achieve the look and feel, we all should be
> happy.
>
> Regards
> Sarwar Erfan

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

2010-12-19 Thread Sarwar Erfan
Hi Vasvari,
You wrote it yourself: 
". by placing a Button and a bunch of other controls ."
You did not use a single Button, you used a button and some "other" 
controls, inside a layout.

What Derek wanted to know that whether it is possible using a button and 
only a button, which is not possible.

The solution provided by you and me are almost same, its a layout with some 
controls to expose same look and feel.

And, I did not say you cannot use a button in the group of controls. But, I 
"confirmed" that, this specific LinkedIn application does not use a button 
to achieve this feature (dont ask how did I  get confirmation). As soon as 
we find at least one way to achieve the look and feel, we all should be 
happy.

Regards
Sarwar Erfan

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

2010-12-19 Thread metal mikey
Or you could just use a normal Button view with a whole bunch of
spaces seperating the right text from the left text.*

*pretty crude way about it, but if your font size won't change and the
button size won't change it could be the path of least resistance ;)

Also, regarding the > (right arrow) image within the LinkedIn example,
that can simple be incorporated into the background 9patch image,
rather than plonking an extra ImageView in the foreground.

On Dec 20, 4:18 pm, Zsolt Vasvari  wrote:
> It CAN be a button.  In my app I have made the bottom of the footer a
> "button" by placing a Button and a bunch of other controls inside a
> RelativeLayout overlapping each other.
>
> On Dec 20, 12:39 pm, Sarwar Erfan  wrote:
>
> > Hi,
> > You missed one element. There is two text elements and one icon also in
> > right side of the number of connections (see attached image):
>
> > 
>
> > I can confirm its not a button. Create your own layout. Use a statelist as
> > background. And, use 9 patch images in the statelist (if you want it to look
> > good in both orientations).
>
> > Put two TextView and one ImageView in the layout.
>
> > --
>
> > State list:  
> > http://developer.android.com/guide/topics/resources/drawable-resource...
>
> > 9 Patch:    
> > http://developer.android.com/guide/developing/tools/draw9patch.html
>
> > Regards
> > Sarwar Erfan
>
> >  linkedin_connections_layout.png
> > 5KViewDownload

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


[android-developers] Re: Android - add menu item to Android's built-in apps

2010-12-19 Thread Sarwar Erfan
Hi,

You are willing to add an extra button to the QuickContactBadge available 
for Contacts application in Android, which seems not to be possible using 
any documented API.
The contact list is actually not part of Android core OS, its a separate 
application which uses the contacts stored in the device to display and 
offer you certain specific behaviors. You cannot just edit this, there is no 
api for this in Android SDK (as this is not a part of Anroid platform). It 
is like that, someone have installed your application, now he wants to add 
an extra button in your app (I am not considering reverse engineering here)

The number of buttons on QuickContactBadge depends on the information stored 
about the contact. If it contains a phone number, a call button will be 
there. If email address is found, email button will be there.

It is not clear what button you want to add there. Obviously not a "Call" 
button as you have drawn in your provided image, call button is already 
there. If you want some action which is not covered in the default contacts 
application, you can always develop your own contacts application with 
standard features + your desired additional features. It is possible to 
display popup menu which looks exactly like the QuickContactBadge , in case 
you need.

Also, in your own contacts application, you can have limited ability to 
configure the QuickContactBadge.

http://mobile.tutsplus.com/tutorials/android/android-sdk_contact-badge/
http://developer.android.com/reference/android/widget/QuickContactBadge.html


Regards
Sarwar Erfan

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

2010-12-19 Thread Zsolt Vasvari
It CAN be a button.  In my app I have made the bottom of the footer a
"button" by placing a Button and a bunch of other controls inside a
RelativeLayout overlapping each other.

On Dec 20, 12:39 pm, Sarwar Erfan  wrote:
> Hi,
> You missed one element. There is two text elements and one icon also in
> right side of the number of connections (see attached image):
>
> 
>
> I can confirm its not a button. Create your own layout. Use a statelist as
> background. And, use 9 patch images in the statelist (if you want it to look
> good in both orientations).
>
> Put two TextView and one ImageView in the layout.
>
> --
>
> State list:  
> http://developer.android.com/guide/topics/resources/drawable-resource...
>
> 9 Patch:    
> http://developer.android.com/guide/developing/tools/draw9patch.html
>
> Regards
> Sarwar Erfan
>
>  linkedin_connections_layout.png
> 5KViewDownload

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

2010-12-19 Thread Zsolt Vasvari
This is being discussed here (in the later comments)

http://groups.google.com/group/android-developers/browse_thread/thread/0c365d4e0b862f28#

On Dec 20, 12:47 pm, keyeslabs  wrote:
> I know, I know.  No one can actually believe that their app would drop
> in the rankings.  I've seen these threads before.  I'm not
> complaining, just curious.
>
> My app has held fairly stable in the Tools category over the last
> year, but over the course of the last few days has dropped by 25 slots
> (from roughly 25th to roughly 50th).
>
> Here's what I know.
>
> - My active installs have not gone down, they've actually gone up.
> - I recently dropped my price for a "holiday sale"
> - due to in-app promotion in the "lite" version of my app, I had a
> temporary 20x increase in purchases of "pro", but that trailed off
> after about a week.  That happened about 4 weeks ago.
> - The dramatic drop happened just recently (sometime near Dec 17) and
> seems to coincide with the deployment of the new market app
>
> Theories?  Others seeing the same thing?  I'm curious if the temporary
> kick in sales and subsequent decrease back to "normal" is somehow
> affecting a sliding average used for ranking.
>
> Dave

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

2010-12-19 Thread MrY
I sent a message to Greystripe support team, but I was wondering if
anyone else has faced a similar issue and know the cause / solution.

I followed their android SDK document.
 - added a provider, a view, and permissions to manifest.xml
 - called GSSDK.initialize() and banner.refresh() in my activity
 - registered my phone as a test device in their web site

 banner.refresh() throws a null pointer exception while
GSSDK.initialize does not.

I would appreciate pointers.

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


Re: [android-developers] Android - add menu item to Android's built-in apps

2010-12-19 Thread jeena
Can u please explain a bit more about this...

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

Re: [android-developers] Android - add menu item to Android's built-in apps

2010-12-19 Thread jeena
can u explain, why its not possible.

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

2010-12-19 Thread keyeslabs
I know, I know.  No one can actually believe that their app would drop
in the rankings.  I've seen these threads before.  I'm not
complaining, just curious.

My app has held fairly stable in the Tools category over the last
year, but over the course of the last few days has dropped by 25 slots
(from roughly 25th to roughly 50th).

Here's what I know.

- My active installs have not gone down, they've actually gone up.
- I recently dropped my price for a "holiday sale"
- due to in-app promotion in the "lite" version of my app, I had a
temporary 20x increase in purchases of "pro", but that trailed off
after about a week.  That happened about 4 weeks ago.
- The dramatic drop happened just recently (sometime near Dec 17) and
seems to coincide with the deployment of the new market app

Theories?  Others seeing the same thing?  I'm curious if the temporary
kick in sales and subsequent decrease back to "normal" is somehow
affecting a sliding average used for ranking.

Dave

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

2010-12-19 Thread Sarwar Erfan
Hi,
You missed one element. There is two text elements and one icon also in 
right side of the number of connections (see attached image):




I can confirm its not a button. Create your own layout. Use a statelist as 
background. And, use 9 patch images in the statelist (if you want it to look 
good in both orientations).

Put two TextView and one ImageView in the layout.

--

State list:  
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList

9 Patch:
http://developer.android.com/guide/developing/tools/draw9patch.html


Regards
Sarwar Erfan



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When will GoogleMap "3D" API be released?

2010-12-19 Thread TreKing
On Sun, Dec 19, 2010 at 10:00 PM, Hiro OKUYAMA  wrote:

> Please tell the plan and schedule.
>

This was discussed recently in another thread - the response was there is no
ETA.

-
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] Multiple TextViews Inside a Button

2010-12-19 Thread TreKing
On Sun, Dec 19, 2010 at 9:47 PM, Derek Winstead 
 wrote:

> It is a button with left aligned text and then the count is right aligned
> inside the same button.
>

In that case, your original statement would make sense to me:

On Sun, Dec 19, 2010 at 8:33 PM, Derek Winstead wrote:

> Do I need to create style for a layout that looks like a button and put
> the two textviews inside there and have the layout do the onClick() events?
>

-
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: 3D Figures in Android

2010-12-19 Thread Vinay
Hi,

Another reference:
sample -> API Demos

Vinay.




On Dec 19, 2:18 am, Simon Platten 
wrote:
> Search for min3D excellent java class library with examples for OpenGL ES.
> Check out My MRU (Motion Reference Unit) Created using it.
>
> Regards,Sy
>
> On 18 Dec 2010 20:56, "harishsyndrome"  wrote:
>
> Hello All
>
> Am a android new bie, but am good in java. My immediate requirement is
> to draw 3D figures, like 3D Cube, 3D rectangle.
>
> Some light will be worshiped!
>
> Thanks
> &yndie
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 use overlay to display yuv video frames ?

2010-12-19 Thread 袁堂夫
I develop a video application on nexus one and  use isurface to create
overlay,but there is an error that Permission Denial: can't access
SurfaceFlinger.

Who can give me some idea to use overlay to display yuv frames?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When will GoogleMap "3D" API be released?

2010-12-19 Thread Hiro OKUYAMA
Google Map 5.0 was released.

Included many new features as follows:
 * Vector Rendering
 * Rotation
 * 3D Viewing
 * etc

I think that the next Google Map API becomes a very big changes.

Please tell the plan and schedule.
Is Google Map 3D API release as an upgrade or "new other SDK"?

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

2010-12-19 Thread Derek Winstead
I don't have a screen shot available right now. It is a button with
left aligned text and then the count is right aligned inside the same
button. Doing the .setText() will only place the text inside the
button however the gravity is instead of the left/right aligning.

On Dec 19, 10:21 pm, TreKing  wrote:
> On Sun, Dec 19, 2010 at 8:33 PM, Derek Winstead 
> wrote:
>
> > The buttons that say "Connections" and then on the right has the count
> > of your connections.
>
> Do you have a screen shot? Because from your description, I can't imagine
> it's anything more than something like this:
>
> btn.setText("Connections " + numConnections);
>
> --- 
> --
> 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] Multiple TextViews Inside a Button

2010-12-19 Thread TreKing
On Sun, Dec 19, 2010 at 8:33 PM, Derek Winstead wrote:

> The buttons that say "Connections" and then on the right has the count
> of your connections.
>

Do you have a screen shot? Because from your description, I can't imagine
it's anything more than something like this:

btn.setText("Connections " + numConnections);

-
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: AppWidget's service killed under Gingerbread & GalaxyS(2.1) but not killed under other phones/versions

2010-12-19 Thread metal mikey
My solution was to take away the problem. Reworked things so I could
simply pull data over HTTP. No more headaches! A shame though, as I'd
put a lot of time into getting FTP working on most phones under most
versions of Android...but the different behaviours I was seeing across
makes/versions was disheartening and the cause of those headaches.

On Dec 12, 12:28 pm, Dianne Hackborn  wrote:
> Re the ANR -- you just need to make sure you keep your main thread
> responsive.  You don't know when the system may ask it to do something.  If
> you get an ANR, just look at the stack traces to see what the main thread
> was doing at that point, and fix whatever that is that is causing that.
>
> If you are getting these reports in Android Feedback, you will find the
> complete stack crawls there and should be able to determine fairly easily
> what is happening.
>
> If you are debugging on your own device or emulator, after an ANR happens
> you can pull the stack crawls with "adb shell cat /data/anr/traces.txt"
>
>
>
> On Sat, Dec 11, 2010 at 4:52 PM, metal mikey  wrote:
> > > Also to the original poster -- Service.setForeground() will basically
> > > guarantee that your process doesn't get killed for normal memory
> > management.
> > >  It will only be killed if it has crashed (either in Java, where you will
> > > see the crash in the log, or in native code, which is harder to debug),
> > has
> > > extremely used a lot of memory to the point where nothing else can run,
> > or
> > > has had an ANR.
>
> > > > If this is happening, you should be able to see it in LogCat, and you
> > might
> > > > try moving your code into a background thread, as with an AsyncTask.
>
> > I guess Zehon is failing for one of those reasons now under
> > Gingerbread. I still can't be 100% sure whether my AppWidget was
> > failing to download anything on GalaxyS for the same reason without
> > debugging on an actual device (consistent killing of the Service at
> > the point I see it killed in Gingerbread seems to be the best reason
> > for GalaxyS users seeing data being used but never getting the full
> > data update).
> > Unfortunately LogCat only says something along the lines of:
>
> >    Stuff happening as expected.
> >    More stuff happening as expected.
> >    com.me.project.allmyhardwork has died.
> >    Scheduling restart of service com.me.project.allmyhardwork in
> > 5000ms.
> >    Restarted AppWidget as expected, lalala.
> >    More stuff happening as expected.
>
> > I.e. there is no ANR stacktrace nor any other stacktrace, the service
> > just dies (gets killed). That probably corroborates the idea of Zehon
> > failing silently and causing my Service to get killed too...
>
> > I'm now using URLConnection (which utilises FtpURLConnection) to pull
> > via FTP instead of Zehon for Java. Massive speed improvement, but
> > while Zehon was able to establish FTP connection and pull data under
> > emulator and most devices (at least the ones I can test on),
> > FtpURLConnection always fails to establish a connection under
> > emulator :( I guess that's to do with the proxy that emulator is setup
> > to use...?
>
> > So the new way using FtpURLConnection is working on real devices (the
> > ones I can test on at least), now ANRs have reared their ugly heads
> > and seem to be my next big problem. The data pull process is handled
> > within an AsyncTask spawned by the Service, when it finishes, though,
> > it quite often (especially on my NexusOne(2.2.1/FRG83D)) yeilds an
> > ANR...that has me scratching my head because I don't broadcast to the
> > Service at that stage, rather I have an Alarm that broadcasts to the
> > service every 2 minutes to either Churn the display or Update the data
> > (if update period has expired). Could it be that broadcasts to Churn
> > during the Update process are getting queued (they shouldn't, they
> > usually yield a Toast message indicating an update is underway) and
> > the ANR is only able to make itself known once the Update AsyncTask
> > has completed?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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+unsubs

Re: [android-developers] Re: Why Android Why???

2010-12-19 Thread XC He
is this a wish list for X'mas?

2010/12/20 gjs :
> Hi,
>
> Given you have few billion dollars lying around to spend you *can*
> make an iPhone clone and you *can* afford to have one year cycle times
> between devices and you *can* spend a few hundred million dollars
> promoting your device as an iPhone killer to the world. Just make sure
> you can do it in less than 2 years, that it costs < $500 per device
> and has -
>
> 5"x3"x0.3" glass/aluminum/carbon fibre
> quad core 2ghz cpu
> 1920x1080 display
> dual 24MP 3D back cameras with flash
> dual 8MP 3D front cameras
> keyboard projector
> 3 day battery life
> Android 5.0
>
> Regards
>
> On Dec 19, 8:19 pm, Yahel  wrote:
>> I need(not want, need) a phone with a 4' screen, a physical keyboard,
>> a trackball and a front camera...Where does it fit in your scheme for
>> a single one-size-fit-all device ?
>>
>> Android will never beat any iphone : Android is a framework not a
>> device
>>
>> It's as if you were saying on a Microsoft forum : Hey computer
>> manufacturers how come there's a DVD drive on that computer and not on
>> this one, and why is there a trackpad on this notebook and not on my
>> desktop computer...I want consistency :D
>>
>> Thanks for sharing anyway :D
>>
>> Yahel
>>
>> On Dec 17, 5:43 am, JasunX  wrote:
>>
>>
>>
>>
>>
>>
>>
>> > The reason I'm posting in the Developer's forum is because I couldn't
>> > find a single collective and official discussion forum - and also in
>> > hopes that someone high up on that ladder will actually get to review
>> > my concerns (big hopes yeah) - Moderator - if this is too
>> > inappropriate for this forum - please guide me to a suitable one.
>>
>> > I'm at a loss for words regarding Android manufacturers - I think all
>> > they want to do is make money.
>>
>> > Don't get me wrong - I'm not saying Google (via Android) just wants to
>> > make money - I'm talking about HTC, Samsung, LG, etc etc...
>>
>> > These "manufacturers" want to compete with Apple's iPhone - we all
>> > know this - it's the core element that keeps them manufacturing. But
>> > why screw us around? I'm not trying to be cynical - I'm just trying to
>> > be realistic.
>>
>> > 1. I've used Apple's devices, namely, iPhone (3GS & 4) and the iPad -
>> > and to my dismay - the hardware did not disappoint - the software
>> > however did - I can't express how much I despise the iOS platform it
>> > makes my teeth grind that it even exists. I used the iPhone 3GS for
>> > one night and I couldn't stand the device.
>>
>> > 2. I've used an Android device - Samsung Galaxy S and Samsung Galaxy
>> > Tab - and couldn't get enough. The device integrates so seamlessly
>> > with your google account it makes using either your PC or your Android
>> > device a seamless experience altogether. I've experienced much better
>> > accuracy when typing, especially on the Samsung Galaxy S compared to
>> > that of ANY iOS device. Obviously this has been contested as there are
>> > some reports that say typing on Android's touchscreens is a hassle
>> > compared to the iPhone or iDevices for that matter - and in my
>> > experience that's a load of bull. One reason - haptic feedback.
>>
>> > So Android as a software platform - brilliant - apart from the
>> > seamless integration with your google account - it's just the UI
>> > that's such a pleasure. Just having a home button (like Apple's junk)
>> > might make you feel that's all you need - but after using Android,
>> > you'll come to find that your Settings, Home - and Return button make
>> > any mobile device bloody comfortable to use. It just speeds up your
>> > entire movement and collaboration with the device.
>>
>> > Now that we've got that out the way - I can firmly pull my head out
>> > Android's @$$ - let's get to the problem - the manufacturers.
>>
>> > They all want to rival Apple's iPhone. They're all looking for the
>> > iPhone killer - maybe not Android fans as a whole - but the
>> > manufacturer's would like nothing more than to beat Apple's devices to
>> > a pulp.
>>
>> > But why? Why oh Why oh Why? Can't you design a cellphone to match the
>> > exact specifications of the Apple iPhone? Now I anticipate a lot of
>> > hate speech toward me regarding this - and I accept that some of you
>> > may be angry but hear me out.
>>
>> > Why does Apple create their devices the way they do? What is it about
>> > their design that Apple Fanboys find so fascinating? There's three
>> > answers I can't give, among others that may exist.
>>
>> > 1. Size: Look at Apple's iPhones - you don't see Apple making them
>> > bigger, or thicker, or wider - Apple goes smaller every time - but not
>> > so much that it makes the device feel cheap or insignificant. You want
>> > a solid device and Apple has maintained that with regard to physical
>> > design.
>>
>> > But Android? Yes sure, you get your Xperia X10 Mini's - but that
>> > device feels like a friggin toy! It's too damn small! Yes sure you get
>> > your Samsung Galaxy S - b

Re: [android-developers] ContentObserver and BroadcastReceiver

2010-12-19 Thread Julius Spencer
Ah ok, thanks for the reply.

Regards,
Julius.


On 20/12/2010, at 3:58 PM, Dianne Hackborn wrote:

> No there isn't.  This is deliberate, as having apps suddenly getting launched 
> left and right as syncs happen in the background stuff is likely to lead to 
> an undesirable outcome.  The approach we generally take is that in cases 
> where there is some kind of change that may happen that an app may reasonably 
> be launched for, defining a specific broadcast for that that the content 
> provider sends at that point.  For example there is a broadcast the gmail 
> provider sense when new mail has arrived.
> 
> On Sun, Dec 19, 2010 at 6:23 PM, Julius Spencer  wrote:
> Hi,
> 
> (Note: might be a silly question...)
> 
> I have an application which has data related to a ContentProvider. The 
> ContentProvider's content is updated from time to time and a ContentObserver 
> seems like a good choice to know about these updates.
> 
> Is there a way to have a have a cross between a ContentObserver and a 
> BroadcastReceiver so that the application doesn't need to be running and yet 
> when content is updated a broadcast is created?
> 
> Regards,
> Julius.
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> 
> 
> 
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
> 
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] ContentObserver and BroadcastReceiver

2010-12-19 Thread Dianne Hackborn
No there isn't.  This is deliberate, as having apps suddenly getting
launched left and right as syncs happen in the background stuff is likely to
lead to an undesirable outcome.  The approach we generally take is that in
cases where there is some kind of change that may happen that an app may
reasonably be launched for, defining a specific broadcast for that that the
content provider sends at that point.  For example there is a broadcast the
gmail provider sense when new mail has arrived.

On Sun, Dec 19, 2010 at 6:23 PM, Julius Spencer  wrote:

> Hi,
>
> (Note: might be a silly question...)
>
> I have an application which has data related to a ContentProvider. The
> ContentProvider's content is updated from time to time and a ContentObserver
> seems like a good choice to know about these updates.
>
> Is there a way to have a have a cross between a ContentObserver and a
> BroadcastReceiver so that the application doesn't need to be running and yet
> when content is updated a broadcast is created?
>
> Regards,
> Julius.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] How to use sdcard with android source code compiled?

2010-12-19 Thread kong
I compiled android's source code.But how to use sdcard with it?

/out/target/product/generic/ :
emulator -image system.img -data userdata.img -ramdisk ramdisk.img

use this can run a emulator,but if I want to use a sdcard,how to do?

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

2010-12-19 Thread Derek Winstead
I want to make a button like the ones in the LinkedIn beta app. The
buttons that say "Connections" and then on the right has the count of
your connections.

To me this looks like a button with two textviews inside it. Is that
even possible. I tried creating that and got errors at runtime. Do I
need to create style for a layout that looks like a button and put the
two textviews inside there and have the layout do the onClick()
events? This seems like a hack to me, but I wanted to know if anyone
else has a solution for this.

Thanks,
Derek

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

2010-12-19 Thread Julius Spencer
Hi,

(Note: might be a silly question...)

I have an application which has data related to a ContentProvider. The 
ContentProvider's content is updated from time to time and a ContentObserver 
seems like a good choice to know about these updates.

Is there a way to have a have a cross between a ContentObserver and a 
BroadcastReceiver so that the application doesn't need to be running and yet 
when content is updated a broadcast is created?

Regards,
Julius.

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


[android-developers] Re: NFC Secure Element

2010-12-19 Thread nemik
Dominik,

Yea, that's right. All it does currently is read; at least via the
Java API. If you look at the kernel source though, a bunch of ifdefs
which allow for emulation were all disabled. So full compliance with
the NFC standard will have to wait for a future kernel release.

On Dec 7, 5:42 am, Gruntz Dominik  wrote:
> Hi everyone,
>
> Do I see it right, that the Android 2.3NFCAPI does not provide functionality 
> to access a secure element? A secure element is a smartcard connected to 
> theNFCcontroller, i.e. a secure storage in the device, either embedded in the 
> mobile phone, on the SIM card or on a SD card.
>
> With JavaME access to the secure element was provided with JSR177 which 
> supported the communication with smart card applications usind APDU commands. 
> I have not seen comparable functionality in package android.nfc.
>
> Thanks for any hints
> Dominik

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

2010-12-19 Thread Dianne Hackborn
On Sun, Dec 19, 2010 at 2:13 PM, Neilz  wrote:

> Basically I've spent way too many hours trying to get this to work
> programmatically with a screen sized (320 * 480) image. It clearly
> isn't practical to set wallpaper with an image of those dimensions...
> I'm just going to have to tell my client "No..."!
>

Yes, right, as we've been saying you are supposed to set the wallpaper to
the size that the wallpaper manager tells you it should be, and if you do
anything else then the platform will adjust it to be the dimensions it
wants.

As has been said a number of times now, if you want to do something where
you set the wallpaper to be an image the exact size of the screen and turn
off parallax scrolling, you can't do that by just setting a static image,
you'd need to make a "live" wallpaper.  (Which again as I have already said,
for a static image is relatively simple, but more than a couple  lines of
code.)

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

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

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

[android-developers] Re: Why Android Why???

2010-12-19 Thread gjs
Hi,

Given you have few billion dollars lying around to spend you *can*
make an iPhone clone and you *can* afford to have one year cycle times
between devices and you *can* spend a few hundred million dollars
promoting your device as an iPhone killer to the world. Just make sure
you can do it in less than 2 years, that it costs < $500 per device
and has -

5"x3"x0.3" glass/aluminum/carbon fibre
quad core 2ghz cpu
1920x1080 display
dual 24MP 3D back cameras with flash
dual 8MP 3D front cameras
keyboard projector
3 day battery life
Android 5.0

Regards

On Dec 19, 8:19 pm, Yahel  wrote:
> I need(not want, need) a phone with a 4' screen, a physical keyboard,
> a trackball and a front camera...Where does it fit in your scheme for
> a single one-size-fit-all device ?
>
> Android will never beat any iphone : Android is a framework not a
> device
>
> It's as if you were saying on a Microsoft forum : Hey computer
> manufacturers how come there's a DVD drive on that computer and not on
> this one, and why is there a trackpad on this notebook and not on my
> desktop computer...I want consistency :D
>
> Thanks for sharing anyway :D
>
> Yahel
>
> On Dec 17, 5:43 am, JasunX  wrote:
>
>
>
>
>
>
>
> > The reason I'm posting in the Developer's forum is because I couldn't
> > find a single collective and official discussion forum - and also in
> > hopes that someone high up on that ladder will actually get to review
> > my concerns (big hopes yeah) - Moderator - if this is too
> > inappropriate for this forum - please guide me to a suitable one.
>
> > I'm at a loss for words regarding Android manufacturers - I think all
> > they want to do is make money.
>
> > Don't get me wrong - I'm not saying Google (via Android) just wants to
> > make money - I'm talking about HTC, Samsung, LG, etc etc...
>
> > These "manufacturers" want to compete with Apple's iPhone - we all
> > know this - it's the core element that keeps them manufacturing. But
> > why screw us around? I'm not trying to be cynical - I'm just trying to
> > be realistic.
>
> > 1. I've used Apple's devices, namely, iPhone (3GS & 4) and the iPad -
> > and to my dismay - the hardware did not disappoint - the software
> > however did - I can't express how much I despise the iOS platform it
> > makes my teeth grind that it even exists. I used the iPhone 3GS for
> > one night and I couldn't stand the device.
>
> > 2. I've used an Android device - Samsung Galaxy S and Samsung Galaxy
> > Tab - and couldn't get enough. The device integrates so seamlessly
> > with your google account it makes using either your PC or your Android
> > device a seamless experience altogether. I've experienced much better
> > accuracy when typing, especially on the Samsung Galaxy S compared to
> > that of ANY iOS device. Obviously this has been contested as there are
> > some reports that say typing on Android's touchscreens is a hassle
> > compared to the iPhone or iDevices for that matter - and in my
> > experience that's a load of bull. One reason - haptic feedback.
>
> > So Android as a software platform - brilliant - apart from the
> > seamless integration with your google account - it's just the UI
> > that's such a pleasure. Just having a home button (like Apple's junk)
> > might make you feel that's all you need - but after using Android,
> > you'll come to find that your Settings, Home - and Return button make
> > any mobile device bloody comfortable to use. It just speeds up your
> > entire movement and collaboration with the device.
>
> > Now that we've got that out the way - I can firmly pull my head out
> > Android's @$$ - let's get to the problem - the manufacturers.
>
> > They all want to rival Apple's iPhone. They're all looking for the
> > iPhone killer - maybe not Android fans as a whole - but the
> > manufacturer's would like nothing more than to beat Apple's devices to
> > a pulp.
>
> > But why? Why oh Why oh Why? Can't you design a cellphone to match the
> > exact specifications of the Apple iPhone? Now I anticipate a lot of
> > hate speech toward me regarding this - and I accept that some of you
> > may be angry but hear me out.
>
> > Why does Apple create their devices the way they do? What is it about
> > their design that Apple Fanboys find so fascinating? There's three
> > answers I can't give, among others that may exist.
>
> > 1. Size: Look at Apple's iPhones - you don't see Apple making them
> > bigger, or thicker, or wider - Apple goes smaller every time - but not
> > so much that it makes the device feel cheap or insignificant. You want
> > a solid device and Apple has maintained that with regard to physical
> > design.
>
> > But Android? Yes sure, you get your Xperia X10 Mini's - but that
> > device feels like a friggin toy! It's too damn small! Yes sure you get
> > your Samsung Galaxy S - but still - the few millimeters added onto the
> > length actually does make a difference, and with the thickness at such
> > a minimum - it makes the device feel so delicate and 

[android-developers] Re: Anybody seen a slowdown in sales?

2010-12-19 Thread Zsolt Vasvari
> Yeah, I expect to see a lot of those too, my app is just too
> complicated for some people and it takes > 15 minutes to realize.

So is mine, but in my description I am offering refunds to users
within 24hr still, even if it's not automatic.


>
> Have to admit that it's nice to see a pristine screen of orders with
> no cancellations though. Well, semi-pristine anyway, there's still the
> 'decline X% of orders from non-US sellers' problem.

I am a US seller, and I've had the decline.

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

2010-12-19 Thread TreKing
On Sun, Dec 19, 2010 at 6:32 PM, Zsolt Vasvari  wrote:

> What stops anybody from claiming anything on AppBrian?  I've "claimed" my
> own app, but there was absolutely no verification of any kind that I truly
> am the owner.
>

They send a confirmation email to the developer account email, which
presumably only you, as the developer, would have access to.

-
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: How to actually see log messages in ADT, or anywhere for that matter?

2010-12-19 Thread David Karr
On Dec 19, 4:20 pm, David Karr  wrote:
> On Dec 19, 2:29 pm, Kostya Vasilyev  wrote:
>
> > You could try running "adb logcat" from your computer's command line. That
> > would tell you if it's the device or Eclipse that is the problem. If the
> > device's logcat works, you will see lots of output, not just your
> > application's. All tags should be enabled by default.
>
> Ok, I can see my application's log output with "adb logcat".  I still
> don't see anything in the LogCat view in Eclipse.
>
> > > I've deployed an app to my device that calls "Log.v(String, String)".
> > > I'm using the ADT. I have the "LogCat" view showing.
>
> > > I step over the line of code that calls "Log.v()". Nothing appears in
> > > the LogCat view.
>
> > > I haven't added any filters. I've tried clicking the "V" toggle
> > > button in the LogCat view, but that makes no difference.
>
> > > It appears that I'm supposed to set the log level of the device. There
> > > appears to be no way to do that from the ADT. However, looking at the
> > > various short articles discussing this, I believe that doing this from
> > > the shell is supposed to do it:
>
> > > ./adb -d shell setprop log.tag.SNAPSHOT VERBOSE
>
> > > Where my tag is "SNAPSHOT". I ran this, and it returned to the prompt
> > > without showing the usage info, so I assume it at least recognized my
> > > input.
>
> > > The line of code that is executed is this:
>
> > > Log.v("SNAPSHOT", "Checking currentEffect[" + currentEffect + "]");
>
> > > This line doesn't show up in the LogCat view.
>
> > > What am I missing?
>
>

Oh, and I just noticed I wasn't using the latest version of the SDK or
plugin.  I just reinstalled everything and now LogCat is working fine.

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

2010-12-19 Thread Zsolt Vasvari
What stops anybody from claiming anything on AppBrian?  I've "claimed"
my own app, but there was absolutely no verification of any kind that
I truly am the owner.

On Dec 20, 7:22 am, mathijs  wrote:
> Hi Doug,
>
> I'm glad you like the data we provide after claiming your app.
>
> The recognizable things like the 5-star ratings and market comments of
> course come directly from Google.
> However, the thumbs-up / down reviews are posted by AppBrain users,
> and the phone models, countries,
> hotness graph etc. you can see on the developer dashboard are derived
> from the usage of apps and our site
> by our users. (After we aggregate it and filter it to not reveal any
> privacy details of our users).
>
> Best regards,
>
> Mathijs for the AppBrain team.
>
> On Dec 19, 10:40 pm, Doug Gordon  wrote:
>
>
>
> > OK, I went to their site and "claimed" my product, but I'm confused as
> > to the relationship between AppBrain and the Android Market. Mainly,
> > where are the statistics on AppBrain coming from?
>
> > In addition to the description and screenshots, they have the overall
> > rating and comments directly from the Market, but how do they get those
> > (very useful!) statistics on device type, age, gender, etc.? Are these
> > only for apps when they're downloaded from AppBrain, or do they somehow
> > come from Market data?
>
> > This is stuff that would make our pages on the Android Market a lot more
> > interesting and helpful!
>
> >    Doug Gordon- Hide quoted text -
>
> - Show quoted text -

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

2010-12-19 Thread Peter Webb
AppBrain "knows" what other apps are installed on phones that use
AppBrain, and what sort of phone and O/S it is. The AppBrain client
harvests this info and stores it in a central DB.

They also know the age, sex and country of use of every phone that
uses Appbrain, because when you (as a user) sign up for Appbrain you
provide this information.

The market data comes from the Market.

The program "mashes" these three datasets together.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 actually see log messages in ADT, or anywhere for that matter?

2010-12-19 Thread David Karr
On Dec 19, 2:29 pm, Kostya Vasilyev  wrote:
> You could try running "adb logcat" from your computer's command line. That
> would tell you if it's the device or Eclipse that is the problem. If the
> device's logcat works, you will see lots of output, not just your
> application's. All tags should be enabled by default.

Ok, I can see my application's log output with "adb logcat".  I still
don't see anything in the LogCat view in Eclipse.

> > I've deployed an app to my device that calls "Log.v(String, String)".
> > I'm using the ADT. I have the "LogCat" view showing.
>
> > I step over the line of code that calls "Log.v()". Nothing appears in
> > the LogCat view.
>
> > I haven't added any filters. I've tried clicking the "V" toggle
> > button in the LogCat view, but that makes no difference.
>
> > It appears that I'm supposed to set the log level of the device. There
> > appears to be no way to do that from the ADT. However, looking at the
> > various short articles discussing this, I believe that doing this from
> > the shell is supposed to do it:
>
> > ./adb -d shell setprop log.tag.SNAPSHOT VERBOSE
>
> > Where my tag is "SNAPSHOT". I ran this, and it returned to the prompt
> > without showing the usage info, so I assume it at least recognized my
> > input.
>
> > The line of code that is executed is this:
>
> > Log.v("SNAPSHOT", "Checking currentEffect[" + currentEffect + "]");
>
> > This line doesn't show up in the LogCat view.
>
> > What am I missing?

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


[android-developers] Re: Android SDK installer can't find Java

2010-12-19 Thread DanH
Add Java to your system path?

On Dec 19, 5:14 pm, CasaDelGato  wrote:
> I'm running Win 7 x64.  I just downloaded the latest Android SDK
> installer - installer_r08-windows.exe
> When I run it, it tells me that I don't have the Java SDK installed.
> I do.
> I even re-installed it to make sure.
> It still can't find it.
>
> Suggestions?

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

2010-12-19 Thread Doug
On Dec 19, 2:14 pm, Tabman  wrote:
> I have a question related to this. How many phones are out there with this
> type of behavior ? I want to access Camera Photos/Videos on a phone and for
> that I've used EXTERNAL_CONTENT_URI but it seems that approach would fail on
> a phone like Droid Incredible. How should I design my app such that it is
> able to get camera data from any android phone ?

It will fail on the Droid Incredible because they didn't wire up that
URI to point to the "external" storage mounted at, I think, /emmc.
That's fragmentation for you.  (I think they did it wrong.)  But at
least their camera app doesn't put content on the sdcard.  It's forced
into the built-in space that will get picked up by the Android media
scanner when it indexes EXTERNAL_CONTENT_URI.

However, it works on Galaxy S devices because its built-in "external"
space is wired to that URI --AND-- if you do have a sdcard in the
device, it will mount THAT filesystem underneath the internal storage
space.  So if the internal storage space was at /mnt/sdcard, your
additional sdcard would be at /mnt/sdcard/external_sd.  And when the
Android media scanner runs to index media referenced by
EXTERNAL_CONTENT_URI, it will scan all of /mnt/sdcard, including the
sdcard.  So they're doing it in a more compatible way that lets you
get at the media on the user's sdcard in addition to the built-in
space.

I don't know what the Nexus S or HTC Hero do.  I also don't know what
this Picasa Tool Pro does.  Maybe it doesn't query against the Android
content providers for media and does its own thing instead.

Doug


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

2010-12-19 Thread Bob Kerns
I figured it'd be something like that. Confusion can be
contagious... :=)

Using a byte array stream says you know how much data you have up
front. You can't grow arrays in Java.

The growable equivalent would be a PipedInputStream/PipedOutputStream
pair, and read operates there as you'd expect, blocking the input if
no further output is available. And write() blocks until space is
available to write, too.

On Dec 19, 12:33 pm, Kostya Vasilyev  wrote:
> Bob,
>
> Yes, you're right, that's how it works.
>
> Somehow I got the impression that the OP was using a byte array stream,
> which does report end of input as soon as the end of its byte array is
> reached.
>
> Rereading the post, I realized that he never actually said he was using
> a byte array stream. It must have been the "constantly growing" that
> made me think of a byte array.
>
> Thanks.
>
> -- Kostya
>
> 19.12.2010 22:58, Bob Kerns пишет:
>
>
>
>
>
>
>
>
>
> > You're missing something. Surprisingly, so are Dan and Kostya! :=)
>
> > 1) use of notify/wait does not involve sleep in any way, shape, or
> > form. It is, in fact, exactly what you're asking for -- but at a very
> > low level that you don't even need to worry about here.
>
> > 2) The normal way to read, blocking until input is available, is to
> > call one of the read() methods on the input stream. Under some
> > circumstances, it is possible for a read on certain streams to return
> > with zero bytes of data, but that would be an unusual circumstance
> > (like, for example, a write to a pipe with zero bytes of data). But
> > that will still be in response to some data, not due to the stream
> > being dry. You're right that this is a key part of many I/O systems --
> > including Java. Really, why did you think otherwise?
>
> > Quoting from the documentation for the read() method:
> > "This method blocks until input data is available, end of file is
> > detected, or an exception is thrown." -- JDK
> > "Blocks until one byte has been read, the end of the source stream is
> > detected or an exception is thrown." -- ADK
>
> > BufferedReader.readLine() calls read() on the underlying Reader.
> > InputStreamReader calls read() on the underlying stream. Just get rid
> > of your outer do/while loop and associated Thread.sleep() call.
>
> > Here's a little demo program:
>
> > import java.io.BufferedReader;
> > import java.io.IOException;
> > import java.io.InputStreamReader;
>
> > public class Run {
> >      public static void main(String...args) throws IOException,
> > InterruptedException {
> >          if (args.length == 0) {
> >              System.err.println("Usage: java " + Run.class.getName() +
> > "");
> >              System.exit(-1);
> >          }
> >          Process process = new
> > ProcessBuilder(args).redirectErrorStream(true).start();
> >          BufferedReader in = new BufferedReader(new
> > InputStreamReader(process.getInputStream(), "UTF-8"));
> >          String line;
> >          while ((line = in.readLine()) != null) {
> >              System.out.println(line);
> >          }
> >          System.out.println("All done; trying more reads to demonstrate
> > further.");
> >          boolean readMore = false;
> >          while ((line = in.readLine()) != null) {
> >                  readMore = true;
> >                  System.out.println("MORE: " + line);
> >          }
> >          if (readMore) {
> >              System.out.println("Stream did not immediately fail after
> > returning null");
> >          } else {
> >              System.out.println("Stream did not allow additional reads
> > after returning null.");
> >          }
> >      }
> > }
>
> > You can call this on a script that alternatively outputs and sleeps,
> > such as this one for windows:
>
> > run.bat:
> > @for /L %%i in (0, 1, 10) do @(
> >    echo This is step %%i
> >    sleep 6
> > )
>
> > On Dec 19, 9:37 am, DulcetTone  wrote:
> >> I don't think any of these solutions help, as I did not write the
> >> writer thread and cannot alter its code.
>
> >> Unless I am missing something, use of notify/wait would only move the
> >> sleep() to another thread, achieving nothing.
>
> >> Is there no intrinsic, system-based means of having a read block until
> >> the stream is closed (rather than having just temporarily run dry) or
> >> has more data to offer?  This is a key part of many I/O systems, yes?
>
> >> tone
>
> >> On Dec 19, 9:22 am, Kostya Vasilyev  wrote:
>
> >>> Use Java thread synchronization:
> >>>http://www.javamex.com/tutorials/synchronization_wait_notify.shtml
> >>> Have the reader thread "wait" when there is no data and the writer
> >>> thread "notify" the reader when more data is available (and when it
> >>> should exit its processing loop).
> >>> -- Kostya
> >>> 19.12.2010 16:38, DulcetTone пишет:
>  I have code in a worker thread that needs to efficiently read a
>  constantly-growing input stream from a process.
>  The issue is that the present design uses a sleep() for a short period
> 

[android-developers] Re: Who or What is AppBrain?

2010-12-19 Thread mathijs
Hi Doug,

I'm glad you like the data we provide after claiming your app.

The recognizable things like the 5-star ratings and market comments of
course come directly from Google.
However, the thumbs-up / down reviews are posted by AppBrain users,
and the phone models, countries,
hotness graph etc. you can see on the developer dashboard are derived
from the usage of apps and our site
by our users. (After we aggregate it and filter it to not reveal any
privacy details of our users).

Best regards,

Mathijs for the AppBrain team.

On Dec 19, 10:40 pm, Doug Gordon  wrote:
> OK, I went to their site and "claimed" my product, but I'm confused as
> to the relationship between AppBrain and the Android Market. Mainly,
> where are the statistics on AppBrain coming from?
>
> In addition to the description and screenshots, they have the overall
> rating and comments directly from the Market, but how do they get those
> (very useful!) statistics on device type, age, gender, etc.? Are these
> only for apps when they're downloaded from AppBrain, or do they somehow
> come from Market data?
>
> This is stuff that would make our pages on the Android Market a lot more
> interesting and helpful!
>
>    Doug Gordon

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

2010-12-19 Thread niko20

You can still cancel the order and it will never be charged.

On Dec 19, 4:35 pm, Zsolt Vasvari  wrote:
> The 15 min period has now started, people seeing that on their
> receipts.
>
> I have decided to still honor the previous 24hr period as my app is
> impossible to evalute in 15 mins.
>
> That said, the Market team decided, in their infinite wisdom, that
> orders still don't get finalized for 24 hrs, so what happens is that I
> cannot issue a refund until the 24 hrs is 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


[android-developers] Android SDK installer can't find Java

2010-12-19 Thread CasaDelGato
I'm running Win 7 x64.  I just downloaded the latest Android SDK
installer - installer_r08-windows.exe
When I run it, it tells me that I don't have the Java SDK installed.
I do.
I even re-installed it to make sure.
It still can't find it.

Suggestions?

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

2010-12-19 Thread Pikoh
Thanks, that was exactly what i was looking for :)

On 18 dic, 19:47, Mark Murphy  wrote:
> Try SeekBar.
>
> On Sat, Dec 18, 2010 at 1:41 PM, Pikoh  wrote:
> > I hope i make myself understood. What I want is to use something like
> > a scrollbar to let the user change a value. I mean, i want the user to
> > slide a bar to change a value. Anyone can point me in the right
> > direction? Thank you
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> Available!

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

2010-12-19 Thread Hal
The following links may be useful. Jt implements web/services and
messaging
on Android:


a) Java Pattern Oriented Framework, An application of the Messaging
Design Pattern
IBM Technical Library
http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html

b) Messaging Design Pattern (MDP) and pattern implementation -
Published in the 17th conference on Pattern Languages of Programs
(PLoP 2010).
https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf

c) Messaging Design Pattern and a distributed Component/Service Model
https://jt.dev.java.net/files/documents/5553/149793/MDPdistributedModel.pdf


On Dec 15, 7:28 am, flipside  wrote:
> I'm developing an application in which the user will be firing off
> http gets sporadically. Perhaps a burst of four or five, then a pause
> for maybe a few seconds or or tens of seconds or a few minutes, and
> then another burst. I'm familiar with HTTPClient in non-Android apps,
> and it seems appropriate to use AndroidHTTPClient in this scenario.
> I'm trying to determine the most efficient way to put it into a thread
> and use it.
>
> The transient thread-creation methods such as AsynchTask and
> IntentService don't seem appropriate, because the AndroidHTTPClient
> will be lost when the task completes. Perhaps I should put into a
> Service. I guess that what I'm trying to do is a pretty common
> requirement and I was wondering if anyone had any pointers. I'm
> thinking particularly about how best to cater for life-cycle events
> and configuration changes that might affect ongoing requests. I'm
> expecting most of the requests to be short-lived, but of course there
> is no guarantee.

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

2010-12-19 Thread Indicator Veritatis
But since it only happens on the emulator, and the workaround is so
simple, fixing it has been and still is low priority.

On Dec 16, 3:46 pm, MereMortal  wrote:
> Just Press the MENU button on the right. I am not sure if this is
> documented somewhere or it is a bug but when someone is running an APP
> it should not take them to the locked screen page but the app.
>
> On Dec 16, 2:37 pm, neuromit  wrote:> I'm assuming 
> that you have tried unlocking the phone using your mouse
> > (a click registers as a touch).
>
> > On a phone when you push the power button the screen goes black, this
> > does not happen on the emulator. Try pressing the virtual power button
> > once and this should let you unlock the phone.
>
> > On Dec 15, 10:13 pm, psrikant  wrote:
>
> > > When I run a basic 'Hello World' Android application in eclipse, the
> > > emulator launches and shows the screen locked view and the application
> > > does not run. The console shows the following...
>
> > > [2010-12-15 16:28:56 - Droid1] Android Launch!
> > > [2010-12-15 16:28:56 - Droid1] adb is running normally.
> > > [2010-12-15 16:28:56 - Droid1] Performing
> > > com.androidbook.droid1.DroidActivity activity launch
> > > [2010-12-15 16:28:56 - Droid1] Automatic Target Mode: Preferred AVD
> > > 'VanillaAVD' is not available. Launching new emulator.
> > > [2010-12-15 16:28:56 - Droid1] Launching a new emulator with Virtual
> > > Device 'VanillaAVD'
> > > [2010-12-15 16:28:57 - Droid1] New emulator found: emulator-5554
> > > [2010-12-15 16:28:57 - Droid1] Waiting for HOME
> > > ('android.process.acore') to be launched...
> > > [2010-12-15 16:30:00 - Droid1] HOME is up on device 'emulator-5554'
> > > [2010-12-15 16:30:00 - Droid1] Uploading Droid1.apk onto device
> > > 'emulator-5554'
> > > [2010-12-15 16:30:01 - Droid1] Installing Droid1.apk...
> > > [2010-12-15 16:30:51 - Droid1] Success!
> > > [2010-12-15 16:30:51 - Droid1] Starting activity
> > > com.androidbook.droid1.DroidActivity on device emulator-5554
> > > [2010-12-15 16:31:07 - Droid1] ActivityManager: Starting: Intent
> > > { act=android.intent.action.MAIN
> > > cat=[android.intent.category.LAUNCHER]
> > > cmp=com.androidbook.droid1/.DroidActivity }
>
> > > It says 'Starting activity and nothing happens after that. Can
> > > somebody please help me resolve this issue.? I am new to Android. I am
> > > running on Android 2.1 API 7.
>
> > > Thanks
> > > Prashanth
>
>

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

2010-12-19 Thread Marc Reichelt
Hi!

I want to create a new widget for Android developers which allows to
use the same functionality as seen on the home screen (flipping
between different screens), the calendar (flipping between days) or
TweetDeck (flipping through Twitter columns). The source for the
launcher is there, so I thought this might not take so long:
http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=blob;f=src/com/android/launcher/Workspace.java;h=2e04311f530003dbd76695f46876a785164acb99;hb=HEAD#l572

It seems that the two methods onInterceptTouchEvent() and
onTouchEvent() do all the things that are needed for getting the
events, so I copied them to a new class and removed functionality that
is for the Workspace only. You can see my work-in-progress here:
http://pastebin.com/8p8GCEZK

My problem now is: onInterceptTouchEvent() is always only called once
with the MotionEvent.ACTION_DOWN action so I never get into the
ACTION_MOVE case - where the actual fling would be initiated. I played
around with the return values of onInterceptTouchEvent() (true means
to steal events from children) and the return values of onTouchEvent()
(true means to consume the event), but I didn't get any further.

Is there some kind of magic behind onInterceptTouchEvent() or
onTouchEvent() which I didn't notice? Is my problem even solveable? I
hope so... :-)


Thanks in advance & merry christmas
Marc

PS: I also asked this question on StackOverflow, but didn't get any
answers yet:
http://stackoverflow.com/questions/4455891/android-use-realviewswitcher-to-switch-between-views-like-the-home-screen-does

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

2010-12-19 Thread String
On Sunday, December 19, 2010 10:19:57 PM UTC, darrinps wrote:

Yes, I did try to use the Resources.getSystem() verbatim. What 
> "normal" Resources object are you referring to? In other words, if you 
> cannot do: 
>
> mResources = Resources.getSystem(); 
>
> Then what would be to the right of: 
>
> mResources = ? 
>

Try this:

mResources = context.getResources();

HTH,

String

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

[android-developers] Re: Setting Wallpaper

2010-12-19 Thread String
I've tested this extensively on my G1 and N1 (not to mention innumerable 
emulator instances), and the stock Launcher asks for an image 
2*portrait-height x 1*portrait-height. So on HVGA it's a 640x320, on N1-spec 
WVGA it's 960x480, etc. If you give it any other size, it will be scaled to 
fit those dimensions, as you've found. Beyond my own handsets, this is also 
my experience from a couple of apps deployed to a good few thousand users; 
the only notable deviations from those guidelines that I've seen are 
Samsung's old TouchWiz UI (which used different images for different panes) 
and Garmin's Nuvifone (which wouldn't report dimensions at all).

Again, if you DON'T want the image to stretch across the multiple homescreen 
panes with the parallax effect, you'll need to go the live wallpaper route. 
I think we're all in agreement here that it can't be done with 
Context.setWallpaper().

String

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

[android-developers] Market 15min refund period -- and a problem

2010-12-19 Thread Zsolt Vasvari
The 15 min period has now started, people seeing that on their
receipts.

I have decided to still honor the previous 24hr period as my app is
impossible to evalute in 15 mins.

That said, the Market team decided, in their infinite wisdom, that
orders still don't get finalized for 24 hrs, so what happens is that I
cannot issue a refund until the 24 hrs is 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] How to actually see log messages in ADT, or anywhere for that matter?

2010-12-19 Thread Kostya Vasilyev
You could try running "adb logcat" from your computer's command line. That
would tell you if it's the device or Eclipse that is the problem. If the
device's logcat works, you will see lots of output, not just your
application's. All tags should be enabled by default.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
20.12.2010 1:20 пользователь "David Karr" 
написал:
> I've deployed an app to my device that calls "Log.v(String, String)".
> I'm using the ADT. I have the "LogCat" view showing.
>
> I step over the line of code that calls "Log.v()". Nothing appears in
> the LogCat view.
>
> I haven't added any filters. I've tried clicking the "V" toggle
> button in the LogCat view, but that makes no difference.
>
> It appears that I'm supposed to set the log level of the device. There
> appears to be no way to do that from the ADT. However, looking at the
> various short articles discussing this, I believe that doing this from
> the shell is supposed to do it:
>
> ./adb -d shell setprop log.tag.SNAPSHOT VERBOSE
>
> Where my tag is "SNAPSHOT". I ran this, and it returned to the prompt
> without showing the usage info, so I assume it at least recognized my
> input.
>
> The line of code that is executed is this:
>
> Log.v("SNAPSHOT", "Checking currentEffect[" + currentEffect + "]");
>
> This line doesn't show up in the LogCat view.
>
> What am I missing?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Dynamically reading drawable file names

2010-12-19 Thread darrinps
I had the code in my start up (splash) activity, so yes it was in the
proper (as far as I know of) Context.

Yes, I did try to use the Resources.getSystem() verbatim. What
"normal" Resources object are you referring to? In other words, if you
cannot do:

mResources = Resources.getSystem();

Then what would be to the right of:

mResources = ?

Actually, if it is too much of a pain don't worry about it. I've
already worked around this the old fashioned way by using a Map to
relate my image name to the R.drawable.image(s) that I have and
although cumbersome, works just fine.

I really do appreciate the effort trying to help though! :)



On Dec 18, 8:09 pm, Dianne Hackborn  wrote:
> I don't know what to say, the code I pointed to is exactly what has been in
> the platform fairly unchanged since 1.0 and has worked fine.
>
> Are you sure you are doing this on a Context that is actually for your
> application?  The error message ("Invalid package identifier") indicates it
> doesn't know *anything* about your application.
>
> Also I wasn't pointing this code as something to directly copy and paste,
> but as a guide.  It comes from really deep down in the framework, so it is
> not written as normal application code.
>
> In fact if you copy and pasted the Resources.getSystem() part, that would be
> your problem, because that is an API one doesn't normally use to get the
> system-only resources.  You should use the normal Resources object in your
> app.  (That's why the link I provided went directly to just the line pulling
> out the resource data.)
>
>
>
> On Sat, Dec 18, 2010 at 4:47 PM, darrinps  wrote:
> > This was just an example that fit the example you provided. I trimmed
> > down the array to only one .png file which I verified time  and again
> > was under the drawable directory and reworked the layout of the file
> > to match the example. The entire arrays.xml file which is found under
> > the values directory looks like this:
>
> > 
> > 
>
> >     
> >                @drawable/aggies
> >        
> > 
>
> > The same thing happens at the same line.
>
> > I get a warning first:
> > ResourceType    Invalid package identifier when getting bag for
> > resource number 0x7f05
>
> > Then an exception:
> > Failure preloading resources
> >   android.content.res.Resources$NotFoundException: Array resource ID
> > #0x7f05
> >   at android.content.res.Resources.obtainTypedArray(Resources.java:
> > 424)
>
> > The code is IDENTICAL. I copied and pasted it except for the preload
> > that I had to comment out.
>
> > On Dec 18, 1:02 pm, Dianne Hackborn  wrote:
> > > startPreloading() is not relevant to this; that is for the code there
> > that
> > > is preloading the drawables it gets from the array.
>
> > > Is there actually a sym_def_app_icon drawable in your app?  If not...
> >  well
> > > yeah, that won't work, it doesn't exist.
>
> > > You should just use the syntax I showed to make an array of references to
> > > your *own* drawables, which you can retrieve with the same code as shown
> > > using obtainedTypeArray().
>
> > > The last XML syntax you have shown is just not right, so it's not
> > surprising
> > > it doesn't work.
>
> > > On Fri, Dec 17, 2010 at 8:42 PM, darrinps  wrote:
> > > > Thanks.  I tried doing that but it seems to be an old API so I tried
> > > > to convert it to what is there today. There must be some mistake I
> > > > have made that keeps this from working.
>
> > > > Note that it didn't like mResources.startPreloading();   The method
> > > > simply was not there, although finishPreloading() is.  I commented the
> > > > startPreloading() line out.
>
> > > > Secondly, it didn't like the format of the array when it looked like
> > > > this:
>
> > > > 
> > > >         @drawable/sym_def_app_icon
>
> > > > So, I changed that to this:
>
> > > >     
> > > >                
>
> > > > When I execute this line:
>
> > > >             TypedArray ar =
>
> > mResources.obtainTypedArray(com.standardandroid.swarooms.R.array.preloaded_drawables);
>
> > > > I get a warning:
> > > > ResourceType    Invalid package identifier when getting bag for
> > > > resource number 0x7f05
>
> > > > Then an exception:
> > > > Failure preloading resources
> > > >   android.content.res.Resources$NotFoundException: Array resource ID
> > > > #0x7f05
> > > >   at android.content.res.Resources.obtainTypedArray(Resources.java:
> > > > 424)
>
> > > > Any idea what I am doing wrong?
>
> > > > On Dec 13, 1:41 am, Dianne Hackborn  wrote:
> > > > > I would recommend just having another resource holding an array of
> > the
> > > > > drawables to include.  See for example this declaring one:
>
> >http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>
> > > > > <
> >http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;..
> > > > .>And
> > > > > this reading it:
>
> >http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>
> > > > > Sure, it is one more step required when

[android-developers] How to actually see log messages in ADT, or anywhere for that matter?

2010-12-19 Thread David Karr
I've deployed an app to my device that calls "Log.v(String, String)".
I'm using the ADT.  I have the "LogCat" view showing.

I step over the line of code that calls "Log.v()".  Nothing appears in
the LogCat view.

I haven't added any filters.  I've tried clicking the "V" toggle
button in the LogCat view, but that makes no difference.

It appears that I'm supposed to set the log level of the device. There
appears to be no way to do that from the ADT.  However, looking at the
various short articles discussing this, I believe that doing this from
the shell is supposed to do it:

  ./adb -d shell setprop log.tag.SNAPSHOT VERBOSE

Where my tag is "SNAPSHOT".  I ran this, and it returned to the prompt
without showing the usage info, so I assume it at least recognized my
input.

The line of code that is executed is this:

Log.v("SNAPSHOT", "Checking currentEffect[" + currentEffect + "]");

This line doesn't show up in the LogCat view.

What am I missing?

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

2010-12-19 Thread Tabman
In fact to add to that is there a link between EXTERNAL_CONTENT_URI & 
.getExternalStorageDirectory() as I use attributes from MediaStore 
(DATE_MODIFIED etc.) how could I use those with 
.getExternalStorageDirectory(). 

Is 
getContentUri
(String 
volumeName) of 
any help here ?

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: Who or What is AppBrain?

2010-12-19 Thread String
AppBrain is somebody's vision of what the Market should be, and it's not a 
bad one. The basic app information (name, description, etc) is "pirated" 
from the Market, as Mark says, but a lot of the other data is stuff they've 
gathered their own, as far as I can tell. Their client has enough users that 
it can generate reasonable statistics - what you see on their site - as well 
as making the recommendations that users see. But I believe that it does 
scan all the apps that a user has on their phone; it doesn't just work with 
apps installed through AppBrain. And AFAIK, apps aren't really installed 
through AppBrain anyway, they just link to the Market.

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] getExternalStorageDirectory() on NEXUS S

2010-12-19 Thread Tabman
Hi,

I have a question related to this. How many phones are out there with this 
type of behavior ? I want to access Camera Photos/Videos on a phone and for 
that I've used EXTERNAL_CONTENT_URI but it seems that approach would fail on 
a phone like Droid Incredible. How should I design my app such that it is 
able to get camera data from any android phone ?

I saw an app *Picasa Tool Pro* and they give a list of categories to choose 
from as if all phones are implementing different directories for Camera 
photos/videos:

Camera Photo Folder (default)
Camera Photo Folder (For HTC Hero, Eris .)
Camera Photo Folder (For Incredible)

Is there anything special about HTC Hero, Eris ?

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: Setting Wallpaper

2010-12-19 Thread Neilz
Dianne, I'm using three devices to play with this... Nexus, Hero,
Europa.

Basically I've spent way too many hours trying to get this to work
programmatically with a screen sized (320 * 480) image. It clearly
isn't practical to set wallpaper with an image of those dimensions...
I'm just going to have to tell my client "No..."!

On Dec 19, 7:50 pm, Dianne Hackborn  wrote:
> Actually ignore that last part, the wallpaper still needs to be the height
> of the screen in portrait.  Duh. :p  You should see in the gallery wallpaper
> cropping UI that the size it wants is slightly longer than tall, but not as
> much as a WVGA screen.  At least, again, for the standard platform running
> the standard launcher.
>
> On Sun, Dec 19, 2010 at 11:48 AM, Dianne Hackborn wrote:
>
>
>
> > Oh and in the standard launcher app, the requested size will be slightly
> > wider than the screen in landscape, and the same height as the screen in
> > portrait.  This is to ensure the image is large enough to fill a portrait
> > screen, and still be able to provide a bit of parallax on a landscape screen
> > (in which case the image will be cropped vertically).
>
> > Actually on some devices without a keyboard it may just ask for an image
> > the same size as the display in landscape, because the standard launcher
> > doesn't run in landscape mode in that case.
>
> > On Sun, Dec 19, 2010 at 11:45 AM, Dianne Hackborn 
> > wrote:
>
> >> What phone are you doing this on?  It works fine on all of my phones.
>
> >> Also note the desired image size is based on what the current launcher app
> >> expects.  Something else could be installed that sets it to something
> >> different.  The platform just reports whatever was last requested by an 
> >> app.
>
> >> On Sun, Dec 19, 2010 at 1:17 AM, Neilz  wrote:
>
> >>> Ok, I think the problem I have here is not my code after all...
>
> >>> I tried simply setting the wallpaper from the phone options, picking
> >>> an image from the gallery. Exactly the same thing happens as when I do
> >>> it from the code... it picks a central part of the image and stretches
> >>> it.
>
> >>> I think the problem seems to be that it wants a rectangular image
> >>> (wider than it is high) to fit the multiple desktops. But the images
> >>> that I have in my app are all tall. But, if it wants an image that
> >>> size, then why does the WallpaperManager suggest an image size which
> >>> is basically the same results as the DisplayMetrics dimensions? (i.e.
> >>> 240 * 320, 320 * 480 etc). That clearly isn't the size that it wants.
>
> >>> Seriously, try setting a wallpaper from your own image gallery, and
> >>> you'll see what I mean.
>
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to android-developers@googlegroups.com
> >>> To unsubscribe from this group, 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.
>
> > --
> > 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.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: TweetDeck android app like column view

2010-12-19 Thread Sougata
Hi Jean-guy,

Is it possible to add programatically the  code inside the 
specific 
 tag?



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

2010-12-19 Thread Bob Kerns
I'm not about to spend my time on producing an example or even
tracking it down, as I just don't have the time.

But it looks like Gaz Davidson has tracked one down -- though it's
different than the app on my phone, which appears to have been created
by HTC. This is good news for you, actually, since the one he located
is open source!

You can't use the bluetooth antenna; that would be vastly too short.
It uses the headset wire as an antenna, which isn't really great as an
antenna, but is adequate if you have a good signal available in your
area. Just plugin in your headset! Phones that support this will have
the necessary connection from the headset wiring to the radio chip.

What do I think about this? I think it's a cool application of some
cool technology for constructing radios. Not terribly important -- FM
will eventually be supplanted by radio over IP, IMO, and I don't often
listen to it anymore. But cool, nonetheless.

The HTC radio app is pretty slickly done but basic. The Code Aurora
one I haven't seen, but from glancing at the code appears to have the
ability to record. I've often wanted an "instant replay" button on
radios like you can enable for TiVo (but is disabled/hidden by
default, grr...). Not that I have time to watch TV anymore either...

On Dec 19, 3:14 am, wolf  wrote:
> do you can make me an a example code ? and a sketch with a example
> phone how it works ? can i use the bluetooth as an antenna (yes i know
> it's have own API and it's works on 2.4 Ghz and the radio usually 87.5
> to 108.0 MHz) ? do you know how to use the headphones as antenna or wi-
> fi or whatever ? what do you think about this? do you have το suggest
> me a site ? thanks mr bob for your time, you help me a lot sorry
> for my bad english ... p.s. i am search wikipedia and other sites,
> i have make a simple plan. Do you work on FM Radio ? and how it's
> works low level phone access ? hmmm... maybe can help me very
> very ..
>
> On Dec 19, 1:44 am, Bob Kerns  wrote:
>
>
>
>
>
>
>
> > Me, either. But I'll speculate as to how it works.
>
> > Phones are radios. The radio signal is processed and decoded into
> > audio, and fed into the audio streams. The mechanisms for this are
> > open source.
>
> > The FM radio signal is a radio signal that is processed and decoded
> > into audio. I bet it works much the same way.
>
> > So, if you're serious about figuring it out, I'd start by going and
> > learning how the low level phone access works (i.e. how the audio is
> > routed from radio to audio mixer). That part is open source.
>
> > Then I'd start reverse engineering, and find what calls the FM radio
> > app is making that are similar to how the phone works to set up the
> > audio stream for phone callls, and from there, I'd look for what's
> > different, that might be how it tells the radio what stream to route
> > to where.
>
> > I doubt there's an easier way to do it, if that's how it's set up to
> > work. If, on the other hand, it's just exposed as a separate device,
> > I'd look at what device drivers are added to the kernel, and look to
> > see how the FM Radio app turns it on and accesses it. (And the FM
> > Radio functionality does have to be specifically turned on by the app.
> > I'm guessing it's normally disabled due to battery consumption, but I
> > don't really know).
>
> > On Dec 18, 1:19 pm, Mark Murphy  wrote:> On Sat, 
> > Dec 18, 2010 at 4:13 PM, wolf  wrote:
> > > > thanks again mr bob, and how i can to view the code from FM Radio app?
>
> > > I am not aware of any "FM Radio" apps for Android that are open source.

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

2010-12-19 Thread Mark Murphy
On Sun, Dec 19, 2010 at 4:40 PM, Doug Gordon  wrote:
> OK, I went to their site and "claimed" my product, but I'm confused as to
> the relationship between AppBrain and the Android Market. Mainly, where are
> the statistics on AppBrain coming from?

Anything that comes from the Android Market (e.g., comments, ratings)
is pirated, near as I can tell.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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

2010-12-19 Thread Doug Gordon
OK, I went to their site and "claimed" my product, but I'm confused as 
to the relationship between AppBrain and the Android Market. Mainly, 
where are the statistics on AppBrain coming from?


In addition to the description and screenshots, they have the overall 
rating and comments directly from the Market, but how do they get those 
(very useful!) statistics on device type, age, gender, etc.? Are these 
only for apps when they're downloaded from AppBrain, or do they somehow 
come from Market data?


This is stuff that would make our pages on the Android Market a lot more 
interesting and helpful!


  Doug Gordon

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

2010-12-19 Thread Bob Kerns
There are two different problems. Ant scripts don't usually suffer
from the the spaces-in-directories problems, as they don't usually, if
coded correctly, involve constructing command lines as strings. (The
ant tasks, if used correctly, will handle the quoting issues correctly
automatically). I assumed this was inheriting the problem from a .bat
file -- but I don't see any obvious sign of that, and fixing the .bat
file with the known problem doesn't solve it.

But here's a better workaround for you. Instead of using Documents and
Settings, use the short 8.3 name for that directory -- use 'dir /X' to
find it. That will bypass the issue for you - unless your IT folks
disable short names, which I think is unlikely.

I'm kicking myself for not thinking to suggest it earlier. I've had to
resort to it often -- but not in many years, thankfully.

I just verified with a "test proj" directory that I can reproduce the
problem, and that using the short name avoids it.

On Dec 19, 12:21 pm, H  wrote:
> I've downloaded the latest release of Ant and updated ANT_HOME in eclipse to
> use this version (1.8.1) and the build trying to use proguard still fails as
> above. The problems with spaces in the folder hierarchy is still the main
> problem.

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

2010-12-19 Thread Mark Murphy
Use setView() on AlertDialog.Builder and supply a TextView that is
formatted however you wish.

On Sun, Dec 19, 2010 at 4:20 PM, Jatin D Patel  wrote:
> Can we set font size of message inside alertdialog?

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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

2010-12-19 Thread Jatin D Patel
Can we set font size of message inside alertdialog?

-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

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

2010-12-19 Thread Bob Kerns
Oh, I quite agree. I'm not being very unfair -- but I certainly didn't
say or intend to imply that the script is not at fault.

The one bit of unfairness is I inadvertently lay the blame for "the
problem" on your IT department. I intended only the blame for your
inability to bypass the (entirely foreseeable) problem! LONG
experience tells me developers should not work under C:\Documents and
Settings.

It's an unfortunate reality that scripts VERY frequently fail under
this condition, and thus it is prudent for we script users to avoid
triggering the script-writers' bugs.

The point about your OS was not that this was the cause of your
problem! I was pointing out that this problem was so common, Microsoft
even got rid of the space in later OS versions.

The vast majority of the software you run does not involve scripts.
It's very unusual for applications to have this bug. But it's tricky
getting the quoting right when you're building a command-line in a
script. It's somewhat harder with cmd.exe than it is with the various
Unix shells, but it's tricky in either environment, and so often not
tested. I've even fallen into that trap myself.

So have a bit of sympathy for the script writers! But nonetheless, you
are entirely correct that there was a serious testing failure involved
here. This is absolutely something that should be part of the testing
for any publicly-distributed script, on any platform.

Just FYI, and not relevant to this issue at all -- XP has by most
measures, at this point, dropped below the 50% point -- and that
includes ancient home computers never upgraded, computers in the third-
world, pirated copies, etc. Tricky to measure, tricky to even define
what you want to measure.

But given the insecurity, lack of support, lack of support for current
hardware, and even application compatibility issues, it's not so
common now in a corporate setting, though there are some glaring
exceptions. I even know of a large corporation still on Windows 2000
as of a few months ago.

But the reason I brought up IT is because it MAY (or may not) be a
viable strategy for you to make it their problem. I would strongly
recommend that you actually try this, regardless of whether it's
likely to succeed, because if you do succeed, you will avoid future
script problems as well.  Just don't put all your eggs in that basket.
I didn't intend to imply this was hopeless; I only intended to
acknowledge that it might not be viable in your environment.

On Dec 19, 12:28 pm, H  wrote:
> Thanks for your comment, but you are being a bit unfair there. Competent IT
> department or not, there really shouldn't be a problem with spaces in the
> folder name as the vast majority of all the other software I run on my
> windows machine has no problem whatsoever.
>
> I don't want to get into the argument about the number of developers on
> windows and the number on other machines, but surely the windows users are
> still a sizeable proportion of android developers. So this release of ADT
> should have at least been tested on a standard build of windows - the
> windows build being the most used, which is still XP, I believe. If this was
> the case, they would have spotted that (a) the default for eclipse is to put
> a workspace under "Documents and Settings" and (b) the default for a temp
> folder is under the "Documents and settings\Local settings\temp".
>
> Telling me that I'm using the wrong operating system is not helpful as the
> android dev documentation clearly says that this all works on windows and
> also on xp.

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


[android-developers] need the script for back button emulation

2010-12-19 Thread Aco
can someone tell me what script/command I need to run on a rooted
phone to emulate android's hardware back button?

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


Re: [android-developers] Re: How to block a BufferedReader when no input is available?

2010-12-19 Thread Kostya Vasilyev

Bob,

Yes, you're right, that's how it works.

Somehow I got the impression that the OP was using a byte array stream, 
which does report end of input as soon as the end of its byte array is 
reached.


Rereading the post, I realized that he never actually said he was using 
a byte array stream. It must have been the "constantly growing" that 
made me think of a byte array.


Thanks.

-- Kostya

19.12.2010 22:58, Bob Kerns пишет:

You're missing something. Surprisingly, so are Dan and Kostya! :=)

1) use of notify/wait does not involve sleep in any way, shape, or
form. It is, in fact, exactly what you're asking for -- but at a very
low level that you don't even need to worry about here.

2) The normal way to read, blocking until input is available, is to
call one of the read() methods on the input stream. Under some
circumstances, it is possible for a read on certain streams to return
with zero bytes of data, but that would be an unusual circumstance
(like, for example, a write to a pipe with zero bytes of data). But
that will still be in response to some data, not due to the stream
being dry. You're right that this is a key part of many I/O systems --
including Java. Really, why did you think otherwise?

Quoting from the documentation for the read() method:
"This method blocks until input data is available, end of file is
detected, or an exception is thrown." -- JDK
"Blocks until one byte has been read, the end of the source stream is
detected or an exception is thrown." -- ADK

BufferedReader.readLine() calls read() on the underlying Reader.
InputStreamReader calls read() on the underlying stream. Just get rid
of your outer do/while loop and associated Thread.sleep() call.

Here's a little demo program:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Run {
 public static void main(String...args) throws IOException,
InterruptedException {
 if (args.length == 0) {
 System.err.println("Usage: java " + Run.class.getName() +
"");
 System.exit(-1);
 }
 Process process = new
ProcessBuilder(args).redirectErrorStream(true).start();
 BufferedReader in = new BufferedReader(new
InputStreamReader(process.getInputStream(), "UTF-8"));
 String line;
 while ((line = in.readLine()) != null) {
 System.out.println(line);
 }
 System.out.println("All done; trying more reads to demonstrate
further.");
 boolean readMore = false;
 while ((line = in.readLine()) != null) {
 readMore = true;
 System.out.println("MORE: " + line);
 }
 if (readMore) {
 System.out.println("Stream did not immediately fail after
returning null");
 } else {
 System.out.println("Stream did not allow additional reads
after returning null.");
 }
 }
}

You can call this on a script that alternatively outputs and sleeps,
such as this one for windows:

run.bat:
@for /L %%i in (0, 1, 10) do @(
   echo This is step %%i
   sleep 6
)

On Dec 19, 9:37 am, DulcetTone  wrote:

I don't think any of these solutions help, as I did not write the
writer thread and cannot alter its code.

Unless I am missing something, use of notify/wait would only move the
sleep() to another thread, achieving nothing.

Is there no intrinsic, system-based means of having a read block until
the stream is closed (rather than having just temporarily run dry) or
has more data to offer?  This is a key part of many I/O systems, yes?

tone

On Dec 19, 9:22 am, Kostya Vasilyev  wrote:








Use Java thread synchronization:
http://www.javamex.com/tutorials/synchronization_wait_notify.shtml
Have the reader thread "wait" when there is no data and the writer
thread "notify" the reader when more data is available (and when it
should exit its processing loop).
-- Kostya
19.12.2010 16:38, DulcetTone пишет:

I have code in a worker thread that needs to efficiently read a
constantly-growing input stream from a process.
The issue is that the present design uses a sleep() for a short period
if there is no input presently available, and I'd like the attempt to
read the input stream simply *block* so it magically awakes when more
input is available.  I fear this will mean a small hit on phone
responsiveness.
How does one alter code from this form to do such a thing?
BufferedReader bufferedReader =
  new BufferedReader(new
InputStreamReader(process.getInputStream()));
  do {
  String line;
  while ((line = bufferedReader.readLine()) != null) {
// new input would be processed here
  }
  Thread.sleep(500); // TODO: make this go away
  } while (true);

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



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

--
You received this me

Re: [android-developers] Issue with startActivity

2010-12-19 Thread YuviDroid
You need to add the "test" activity into your manifest.

Anyway, use logcat to see the error that is being thrown, as Kostya
suggested.

On Sun, Dec 19, 2010 at 5:59 PM, apachetechnology <
ad...@apachetechnology.net> wrote:

> I am trying to start a activity from ListActivity but its crashing.
>
> package net.apachetechnology.Organizer;
>
> import android.R;
> import android.app.ListActivity;
> import android.content.Intent;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.ArrayAdapter;
> import android.widget.ListView;
>
> public class Organizer extends ListActivity {
>
>private ArrayAdapter m_adapterItems;
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>
>Item[] items = {
>new Item(Task.class, "Add Task"),
>new Item(test.class, "Testing"),
>};
>
>m_adapterItems = new ArrayAdapter(this,
> R.layout.simple_list_item_1, items);
>setListAdapter(m_adapterItems);
>}
>
>@Override
>protected void onListItemClick(ListView l, View v, int position,
> long id) {
>//startActivity(m_adapterItems.getItem(position));
>//m_adapterItems.getClass();
>
>Intent intent = new Intent();
>intent.setClass(Organizer.this, test.class);
>startActivity(intent);
>}
>
>class Item extends Intent {
>String s;
>public Item(Class c, String s) {
>super(Organizer.this, c);
>this.s = s;
>}
>
>@Override
>public String toString() {
>return s;
>}
>}
> }
> +++
> +
> package net.apachetechnology.Organizer;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.util.Log;
>
> public class test extends Activity
> {
>@Override
>protected void onCreate(Bundle savedInstanceState) {
>try {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>}
>catch (Exception e)
>{
>Log.e("ERROR", e.toString());
>e.printStackTrace();
>}
>}
> }
>
> ===
> 
> xmlns:android="http://schemas.android.com/apk/res/android";
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:gravity="center_vertical|center_horizontal"
>>
> android:text="Testing"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>/>
> 
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

[android-developers] Re: ProGuard Integration?

2010-12-19 Thread H
Thanks for your comment, but you are being a bit unfair there. Competent IT 
department or not, there really shouldn't be a problem with spaces in the 
folder name as the vast majority of all the other software I run on my 
windows machine has no problem whatsoever.

I don't want to get into the argument about the number of developers on 
windows and the number on other machines, but surely the windows users are 
still a sizeable proportion of android developers. So this release of ADT 
should have at least been tested on a standard build of windows - the 
windows build being the most used, which is still XP, I believe. If this was 
the case, they would have spotted that (a) the default for eclipse is to put 
a workspace under "Documents and Settings" and (b) the default for a temp 
folder is under the "Documents and settings\Local settings\temp".

Telling me that I'm using the wrong operating system is not helpful as the 
android dev documentation clearly says that this all works on windows and 
also on xp.

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

2010-12-19 Thread H
I've downloaded the latest release of Ant and updated ANT_HOME in eclipse to 
use this version (1.8.1) and the build trying to use proguard still fails as 
above. The problems with spaces in the folder hierarchy is still the main 
problem.

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

2010-12-19 Thread Bob Kerns
Still running Windows XP, I see. With Internet Explorer 6, perhaps?

You might be able to get around this with a directory link
('junction'). The capability is in XP, but not the command. You can
get that from here:
http://technet.microsoft.com/en-us/sysinternals/bb896768

Of course, your local policies may prevent this, or it might cause
whatever failure they are trying to avoid. The real solution is to get
a competent IT department, or at least escalate the issue within the
organization and make solving it THEIR problem, since they created the
problem. Of course, it might be easier and faster to build your .apk
by hand using a hex editor... :-)

But seriously -- this is a problem for enough development tools that
"Documents and Settings" is something developers should not have to
contend with; it will bite you again. I think that's why it's C:\Users
\ wrote:
> Hi Xav - any chance you could supply us with a copy of this new .bat file..?
> Local policies won't allow me to change the location of my workspace so it
> must sit under "Documents and Settings".

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

2010-12-19 Thread Yahel
Sorry I promised it was my last rant on the market but then this
happens and I couldn't stop laughing :

http://www.picvalley.net/v.php?p=u/2809/69253461918203477631292789388CRkaZVDRjg1Pl0HPbAb7.JPG

Way to go market team :D

Yahel

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


  1   2   >