Thursday, March 18, 2010

Re: [android-beginners] use Facebook in app

hello dear ! I am having the same issues for past few days. I posted
three times on the group but no one replied. its pretty sad for me ...
and what you have posted about fbrocket is a new thing for me. I'll
check it out. by the way i tried with fbconnect api
[http://code.google.com/p/fbconnect-android] but i have tried it on
all android versions and what i only see is a blank screen when i try
to connect to facebook. I just need to add login functionality using
facebook login id and password in my app.

help me if you get any solution to this. Thanks in advance.
regards,
wahib

On 3/17/10, Saurabh <meet2saurabhmail@gmail.com> wrote:
> Hi I want to use facebook api in android app.I have seen
> http://www.xeomax.net/fbrocket
> api but It open as we bpage.But I want a way where I can customize
> Login Screen,Status Post Screen.but not like a web page.
> As it found in iPhone.
> If there is any way Please suggest me
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscribegooglegroups.com or reply to this email with
> the words "REMOVE ME" as the subject.
>


--
Wahib-ul-haq

3rd year Communications Engineering Student,
NUST, Pakistan.
Microsoft Student Partner
follow me on twitter @wahibhaq

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-discuss] Learn how to develop android apps

If you have what to learn how develop android apps but
keep getting frustrated by advanced tutorials that leave
beginners out. Check out my list of tutorial web sites for
beginners.

Tutorial sites are very important for beginners,
check out my lists of good tutorial sites found

.... http://bit.ly/aDxGrG

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

[android-beginners] Android tutorial sites

Tutorial sites are very important for beginners, check out the list of
really good tutorial sites that I found.... http://bit.ly/aDxGrG

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Re: Hi All TabWidget Show is Small

Hi Kantesh & Kumar Bibek

Thanks a lot for both recommend. I will try fix it by both and
tell result again.

On Mar 19, 1:07 am, Kumar Bibek <coomar....@gmail.com> wrote:
> I would recommend to go for a Gallery view for such a requirement.
> Have a look at some examples and think about it.
>
> Thanks and Regards,
> Kumar Bibek
>
> On Mar 18, 4:47 pm, Kantesh <kantesh....@gmail.com> wrote:
>
>
>
> > Hi takky
> >                  wenever u create tab by using
> > TabHost.addTab(TabSpec); rite??  store all tabspecs in array list of
> > type tab spec
> > lik this       ArrayList<TabHost.TabSpec> list = new
> > ArrayList<TabHost.TabSpec>(); and  initialy show up to 3 in a for
> > loop .......
> > as u told add a button at left... set a onclick listner... wenever u
> > click that button show next 3 tabs... i think may work...
>
> > On Mar 17, 4:14 pm, takky takazawa <chil...@gmail.com> wrote:
>
> > > Hi All
>
> > >           I'm developing application in android v.2.1. My tab host
> > > contain 6 tab. But All tab show smaller, How to increase tab widh ?.
> > > or How to show Three first tab and show button at the left sight,
> > > after click this button it show another tab ?.
>
> > > Thanks in advances.

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: [android-developers] Re: How to show a ScrollView with button anchored to bottom of screen?

On Thu, Mar 18, 2010 at 9:46 PM, Andreas <andreas.bexell@gmail.com> wrote:
Curiously, no. Shorter code below:

   mScrollView = new ScrollView(this);
   mListView = new LinearLayout(this);
   mScrollView.addView(mListView);
   mListView.setOrientation(LinearLayout.VERTICAL);

   Button button = new Button(this);
   button.setText("OK");

   LinearLayout layout = new LinearLayout(this);
   layout.setOrientation(LinearLayout.VERTICAL);
   layout.addView(mScrollView);
   layout.addView(button);

As the list view grows, the button will disappear outside the screen
and become unreachable. I was very surprised. ;)

Where are you setting the layout parameters and weights for the the views, if at all?

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

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

[android-developers] camera service problem

hi,

i have tried the following code and it shows me strange behavior..

http://groups.google.com/group/android-developers/browse_thread/thread/d8587b4b2139a85/809ebdafc456be32?lnk=gst&q=camera+overlay#809ebdafc456be32

when i run it for the first time it shows an exception saying "failed
to connect to the camera service"
but works fine for the second run..
what could be the possible reason for this??
pls help..


thanks in advance,

Grace.

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-beginners] Can u give some idea


hello guys,
              Can u give some idea to complete this program....

The program will...
1.1 Read from ContractContacts, select the first three contacts with phone numbers and call each one simultaneously
1.2 The program will determine if the contact; (a) does not answer after a predefined time, (b) the call goes to voice mail or (c) is answered, (d) answers and hangs up.
1.3 Program will override the dial intent and provide its own interface for display status of multiple active calls.
1.4 If the call is answered the program will listen for a numeric tone (the contact presses numeric response)
1.5 The program will scrape the tone and call a server side via https with the contact number, name and the tone pressed

Steps 1.1 through 1.3 must be it's own object, named DroidStatus


Thank you.

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
 
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
 
To unsubscribe from this group, send email to
android-beginners+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
 
To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Re: phone-as-client Socket connections time out in 3GS mode, but work fine in wifi

OK, some success, as it were.

Let the wookiie win

--

I changed my server to listen on port 80 instead and now it works fine
in both WIFI and MOBILE modes.

* server ping is now 800ms instead of 100ms
* I can not, of course, run a web server on the same machine now,
which is a small pain.

But hey, if it works for port 80, maybe it will work for some other
ports, and maybe I just was using the One Illegal Verizon Port In the
Entire World.

ooo. 950 ms ping... I can see why people say "plays better over wifi"

Well, at least I wasn't crazy, they really WERE blocking me.

- Dan


On Mar 17, 5:13 pm, Samsyn <d...@synthetic-reality.com> wrote:
> Sadly, no joy.  I get the same behaviour trying to connect to three
> different non-port-80 servers.
>
> Recapping
>
> * using Socket, TCP connection, originated by phone
> * Have the "INTERNET" privilege
>
> code section:
>
> [code]
>
>                 try {
>                         mServerSocket = new Socket( );
>                         SocketAddress adr = new InetSocketAddress( (String)
> mServerAddr, mServerPort );
>                         mServerSocket.connect(adr, 30*1000);
>                 } catch (UnknownHostException e) {
>                         Log.v(TAG, "Unknown host" + mServerAddr );
>                         mLastError = "host: " + e.getMessage();
>                         failed = true;
>                 } catch (IOException e) {
>                         Log.v(TAG, "Couldn't get I/O for the connection to: " +
> mServerAddr );
>                         mLastError = "IO: " + e.getMessage();
>                         failed = true;
>                 }
> [/code]
>
> * Emulator connects just fine,whether wifi is on or off (though
> obviously the emulator uses host internet in both cases)
> * Real-Phone connects fine, in WIFI mode
> * Real-Phone fails, in MOBILE (3gs) mode, on verizon.
>
> Failure is the IOException "Socket is not connected" (and appears
> after the expected timeout)
>
> --- However, THIS works on both WIFI and MOBILE connections (initiated
> by real-phone on verizon)
>
> [code]
>     URL myURL = new URL( "http://..." + mUrlArgs );
>     // Open a connection to that URL.
>    URLConnection ucon = myURL.openConnection();
> [/code]
>
> even to the same machine as the server that I can't connect to, but
> this is a port 80 http request.
>
> ----
>
> I'm not sure how to get deeper logging from the phone (and it only
> fails on the phone) on the off chance that some logging would actually
> tell me what it was complaining about.
>
> On Mar 15, 9:26 pm, Samsyn <d...@synthetic-reality.com> wrote:
>
>
>
> > Thanks for the suggestion Michael, I'll give that a try.
>
> > I went through some abortive experiments with
> > requestHostForConnection() (man that turned out to be a major pain)
> > and that bore no fruit (so I was happy to tear it out).
>
> > There is also a connect through proxy option which might bear fruit.
> > But maybe I should also look at the firewall logs on that server to
> > see what it says (I am of the opinion that it will accept connections
> > from anyone, but opinion is often not fact)
>
> > - Dan
>
> > On Mar 15, 10:37 am, Michael MacDonald <googlec...@antlersoft.com>
> > wrote:
>
> > > On 03/14/10 21:03, Samsyn wrote:
>
> > > > I wonder if this could be a Verizon thing.  What strikes me as odd is
> > > > that the UrlConnection works fine, and that must also be using tcp, so
> > > > is fundamentally the same as my subsequent Socket connection, which
> > > > fails.
>
> > > > The differences are:
>
> > > > * different server.. .MAYBE my server doesn't like the 3gs 'ip'
> > > > address of the client...
> > > > * server port 80.. MAYBE android or verizon is making a special
> > > > exemption for what looks like a web request, while applying extra
> > > > 'security' for the more generic tcp connection
> > > > * maybe I need to do something to enable the socket-over-3gs (bind to
> > > > a nic?)  That UrlCconnection is smartly doing, but I am dumbly not.
>
> > > > On Mar 12, 11:42 pm, Samsyn <d...@synthetic-reality.com> wrote:
>
> > > >> I'm sorry for what must be a really dumb question... my app is a
> > > >> client, the server is a linux box in a colo.  I use android Sockets to
> > > >> connect to the server.  It works great.
>
> > > >> that is, it works great when the phone is on wifi.
>
> > > >> But when the phone is on 3G, the socket connection times out.
>
> > > >> ---
>
> > > >> The ONLY permission my app is asking for is 'INTERNET' (which is
> > > >> apparently enough for it to work on wifi).
>
> > > >> What am I missing?
>
> > > >> My app also uses a URLConnection to discover the server address (by
> > > >> asking a second server, whose address is well known).  That works both
> > > >> in wifi and 3G, but is a port 80 http request, so probably is
> > > >> considered pretty inoffensive.  Still, it makes me feel like this is
> > > >> not some subtle radio startup issue.
>
> > > >> ---
>
> > > >> It smells like a permission issue, but reading through the
> > > >> permissions, I don't see any that scream out 'enable sockets on 3G'
>
> > > >> Note, the phone is always a client.  this is not about incoming
> > > >> connections.  This is an outbound TCP connection from the phone to a
> > > >> remote server (which is not a phone).
>
> > > >> It also works in the emulator, even when you tell the emulator to
> > > >> disable wifi, but I'm not sure that proves anything.
>
> > > >> Is there another permission I am missing?
>
> > > >> - Dan
>
> > > I would suspect that there is no route from the phone to your remote
> > > server.  This could be Verizon shenanigans, but I don't think so because
> > > other non-port-80 apps seem to connect happily to various hosts.  This
> > > suggests a problem on your server (specifically Internet-to-server)
> > > side.  Try running the app on an emulator through a different ISP from
> > > one the one hosting your server: does that work?- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

Still no nearer getting this fixed... I rooted my Droid and can see
that the /data/data/<myapp>/lib directory was created some time ago -
that implies to me that the main app directory has not been deleted
since it was installed some time ago, therefore it's unlikely that
android is simply automatically uninstalling/reinstalling the app
(assuming that the entire data dir is removed when this happens).

I manually added a SharedPrefs value in my code and can see that XML
line in the same file as the app prefs in the /shared_prefs
directory. I've also created files in the shared_prefs folder and
databases folder under both the root user and the app owner user.
When the data gets trashed again I can see if anything else in there
is removed.

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Re: Application wake up

Hi,

Please note that there is no longer any class called IntentReceiver.
It is now called BroadcastReceiver. Also, to get this to work, you
need to register the receiver in the AndroidManifest.xml like this:

<receiver android:name=".RespToSMS">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>

Regards,
Andreas

On Mar 18, 2:50 pm, Vaibhav Kulkarni <vaibhavkul...@gmail.com> wrote:
> Hi Sam,
>
> I think you should create a service for that!!! You can use Intent for SMS
> in following way
>
> public class RespToSMS extends IntentReceiver {
>     /* package name for Intent */
>     static final String ACTION =
>          "android.provider.Telephony.SMS_RECEIVED";
>
>     public void onReceiveIntent(Context context, Intent intent) {
>      if (intent.getAction().equals(ACTION)) {
>           StringBuilder buf = new StringBuilder();
>          Bundle bundle = intent.getExtras();
>           if (bundle != null) {
>           SmsMessage[] messages =
> Telephony.Sms.Intents.getMessagesFromIntent(intent);
>           for (int i = 0; i &lt; messages.length; i++) {
>               SmsMessage message = messages[i];
>               buf.append(message.getDisplayMessageBody());
>              /* Check your SMS format and respond here... */
>           }
>           }
>           NotificationManager nm = (NotificationManager)
> context.getSystemService(
>               Context.NOTIFICATION_SERVICE);
>
>           nm.notifyWithText(123, buf.toString(),
>               NotificationManager.LENGTH_LONG, null);
>
>       }
>      }
>
> }
>
> Thanks,
> Vaibhav
>
> On Thu, Mar 18, 2010 at 10:33 AM, SAM <gulati...@gmail.com> wrote:
> > Hi,
> > I have a requirement to wake up my application upon receiving a
> > particular formatted SMS or App directed notification from server.
>
> > My application is in dead state. Whenever the device receives a event
> > may be a SMS in a particular format OR some notification(eg app
> > directed notification from server), android OS will start my
> > application.
>
> > Its possible in Windows Mobile and BREW.
>
> > Please let me know if its possible in Android and how.
>
> > Thanks
> > Sam
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Re: How to show a ScrollView with button anchored to bottom of screen?

Curiously, no. Shorter code below:

mScrollView = new ScrollView(this);
mListView = new LinearLayout(this);
mScrollView.addView(mListView);
mListView.setOrientation(LinearLayout.VERTICAL);

Button button = new Button(this);
button.setText("OK");

LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
layout.addView(mScrollView);
layout.addView(button);

As the list view grows, the button will disappear outside the screen
and become unreachable. I was very surprised. ;)


On Mar 19, 3:40 am, TreKing <treking...@gmail.com> wrote:
> On Thu, Mar 18, 2010 at 9:40 AM, I.E. <inib...@gmail.com> wrote:
> > So how do I make the ScrollView show a scrolling list, with the bottom
> > button in view, and without specifying an exact size of the
> > ScrollView?
>
> I didn't look at the code, too much to read through, sorry. But if you
> specify the weight on the ScrollView to 1 and add the button(s) in a linear
> layout OUTSIDE and AFTER the ScrollView, the Scroll View will expand to fit
> all of the space leftover after the buttons are positioned within the view.
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: [android-developers] Functional retrieval of strings?

On Thu, Mar 18, 2010 at 8:49 PM, HippoMan <hippo.mailbox@gmail.com> wrote:
The reason I'd like this is so I can avoid compile errors if the
string doesn't exist. This would allow me to do something like the
following:

String foobar = null;
try {
 foobar = this.somehowGetStringAnotherWay("foobar");
}
catch (SomeSortOfException e) {
 Log.e("MyActivity", "foobar string not found");
}

Let me get this straight - you would rather have a runtime exception that you just catch and ignore than a compile time error that will quickly identify your problem and allow you to fix it on the spot?

Why exactly would you prefer this?

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

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

[android-developers] Re: GPS without gps signal

Thank you.

That was about what I expected, but it's nice to get a confirmation
from someone who actually tried it. ;)

On Mar 19, 10:14 am, mike <enervat...@gmail.com> wrote:
> On 03/18/2010 06:01 PM, Andreas wrote:
>
> > Hi Mike,
>
> > Just out of curiosity, what would you say is a common time to first
> > fix when your outside network coverage?
>
> I'm not sure if I have a common time, but it can take minutes. I'm
> not entirely sure how it works in the guts of the GPS, but I think
> it remembers which satellites it had sync with before and tries
> to go from there. If it's thoroughly confused (eg, the GPS has been
> off for a long time, and transported somewhere else), it can take
> quite a while. AGPS helps all of this out because it very quickly
> talks to the cell towers to get a rough idea where it is so that
> the GPS software can have a better idea of where the satellites
> for that area ought to be.
>
> At least that's my high level understanding, which isn't anything
> approaching expert :)
>
> Mike
>
> > Andreas
>
> > On Mar 19, 4:46 am, mike<enervat...@gmail.com>  wrote:
>
> >> On 03/18/2010 12:30 PM, Matias Alberto de la Vega wrote:
>
> >>> As Mike said, you will be able to use GPS even if you have no mobile
> >>> signal or wifi connectivity, since GPS has it's own satellites, you
> >>> can get coordenates as long as you have GPS friendly environment, some
> >>> tips: you MUST be able to see the sky, no tall buildings around is
> >>> better, and the bigger piece of sky you can see, the better GPS will
> >>> work, but I think you may not have problems with that if you are going
> >>> to be in the mountains. Take care.
>
> >> My experience with my Phresheez app is that it works really
> >> well up in the mountains. There are certainly GPS-unfriendly
> >> parts I'm sure, but for the most part it's pretty flawless (well,
> >> as flawless as GPS can be).
>
> >> Mike
>
> >>> On 18 mar, 13:23, mike<enervat...@gmail.com>    wrote:
>
> >>>> On 03/18/2010 09:12 AM, David Toledo wrote:
>
> >>>>> I refered , is in the montains without signal telephony
>
> >>>> Then yes, definitely, from much first hand experience :)
>
> >>>> Mike
>
> >>>>> Thanks
>
> >>>>> 2010/3/18 mike<enervat...@gmail.com<mailto:enervat...@gmail.com>>
>
> >>>>>       On 03/18/2010 08:29 AM, David Toledo wrote:
>
> >>>>>           Hi All
> >>>>>           Is possible that can using the signal GPS without signal the
> >>>>>           telephony active. I need save the gps location in the sqllite
> >>>>>           when the telephony is disabled
>
> >>>>>       GPS works fine without the cellular network. If there's no network
> >>>>>       AGPS won't
> >>>>>       be of any help, but that's just a optimization for finding where
> >>>>>       you are quicker.
>
> >>>>>       But I'm not sure what you mean by "telephony disabled" are you
> >>>>>       talking about
> >>>>>       Airplane mode? If so, Android still allows use of GPS in airplane
> >>>>>       mode, unlike
> >>>>>       iPhone.
>
> >>>>>       Mike
>
> >>>>>           Thanks
> >>>>>           David
>
> >>>>>           --
> >>>>>           You received this message because you are subscribed to the Google
> >>>>>           Groups "Android Developers" group.
> >>>>>           To post to this group, send email to
> >>>>>           android-developers@googlegroups.com
> >>>>>           <mailto:android-developers@googlegroups.com>
> >>>>>           To unsubscribe from this group, send email to
> >>>>>           android-developers+unsubscribe@googlegroups.com
> >>>>>           <mailto:android-developers%2Bunsubscribe@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
> >>>>>       <mailto:android-developers@googlegroups.com>
> >>>>>       To unsubscribe from this group, send email to
> >>>>>       android-developers+unsubscribe@googlegroups.com
> >>>>>       <mailto:android-developers%2Bunsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

答复: 答复: 答复: [android-developers] Where is the source project location of YouTube in Eclair?

App1 calls the Youtube search and can get the right result list as the following solution, but when press "back" key, the result list disappears, the Youtube's main window appears automatically, we have to press "back" again to come back to the App1, we just want the UI go directly to the app1 window when press the back key on the search result window.

Anyone knows how to skip the Main window of Youtube?

Thanks,

Best Regards,
David

-----邮件原件-----
发件人: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] 代表 Kumar Bibek
发送时间: 2010年3月11日 20:12
收件人: Android Developers
主题: Re: 答复: 答复: [android-developers] Where is the source project location of YouTube in Eclair?


Check this link

http://tech-droid.blogspot.com/2010/03/youtube-intent-for-search-in-android.html

Thanks and Regards,
Kumar Bibek

On Mar 11, 5:01 pm, Kumar Bibek <coomar....@gmail.com> wrote:
> This works
>
> Intent intent = new Intent(Intent.ACTION_SEARCH);
> intent.setPackage("com.google.android.youtube");
> intent.putExtra("query", "Android");
> intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> startActivity(intent);
>
> Thanks and Regards,
> Kumar Bibek.
>
> On Mar 11, 1:21 pm, "David" <android.and...@gmail.com> wrote:
>
> > Actually, I tried like this:
> > Intent intent = new Intent(Intent.ACTION_SEARCH);
> > intent.setClassName("com.google.android.youtube", "com.google.android.youtube.QueryActivity");
> > intent.putExtra("query", "Susan, American");
> > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> > startActivity(intent);
>
> > but occurred android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.youtube/com.google.android.youtube.QueryActivity}; have you declared this activity in your AndroidManifest.xml?
>
> > So I think I got the wrong YouTube package name and QueryActivity name.
>
> > Who know what's the exactly package name and QueryActivity name for YouTube in Éclair?
>
> > Thanks in advance.
>
> > Best Regards,
> > David
>
> > -----邮件原件-----
> > 发件人: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] 代表 a a
> > 发送时间: 2010年3月11日 16:00
> > 收件人: android-developers@googlegroups.com
> > 主题: Re: 答复: [android-developers] Where is the source project location of YouTube in Eclair?
>
> > Dear kumar,
>
> > David what's to invoke the yutube only, and invoke it directly, not
> > like you gave he method that list all of the activity and let user to
> > choose..
>
> > Dear David,
>
> > i'm harvey, you konw me..haha....Do you know how to translate the
> > "放長線調大魚" with english?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Are primitive types garbage collected in Android?

I know this may be a dumb question, but my background is more in c++
and managing my own memory.

I am currently cutting down every single allocation that I can from
one of my games to try and reduce the frequency of garbage collection
and perceived "lag", so for every variable that I create that is an
Object (String for example) I am making sure that I create it before
hand in my constructor and not create temporary variables in simple 10
line functions... (I hope that makes sense)

Anyways I was working though it some more tonight and I realized that
I a may be completely wrong about my assumption on garbage collection
and primitive types (int, boolean, float) are these primitive type
variables that I create in a 10 line function that gets called 20
times a second adding to my problem of garbage collection?

Thank you for any responses.

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: [android-developers] Functional retrieval of strings?

HippoMan wrote:
> I know that I can retrieve a string within an Activity as follows:
>
> this.getString(R.string.foobar)
>
> (assuming that I have previously defined a string named "foobar").
>
> However. I'm wondering if there also might be an alternate way to
> retrieve this same string in a functional manner, without an explicit
> attribute reference. I'm talking about something like this:
>
> this.somehowGetStringAnotherWay("foobar")
>
> The reason I'd like this is so I can avoid compile errors if the
> string doesn't exist. This would allow me to do something like the
> following:
>
> String foobar = null;
> try {
> foobar = this.somehowGetStringAnotherWay("foobar");
> }
> catch (SomeSortOfException e) {
> Log.e("MyActivity", "foobar string not found");
> }
>
> Is there any way I can do this?

Resources has getIdentifier() for this. However, this is significantly
less efficient than just using the R static data member. Use it if you
have to (and cache the lookups), but "avoid compile errors" doesn't
strike me as a great reason to do so.

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

Android 2.0 Programming Books: http://commonsware.com/books

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Functional retrieval of strings?

I know that I can retrieve a string within an Activity as follows:

this.getString(R.string.foobar)

(assuming that I have previously defined a string named "foobar").

However. I'm wondering if there also might be an alternate way to
retrieve this same string in a functional manner, without an explicit
attribute reference. I'm talking about something like this:

this.somehowGetStringAnotherWay("foobar")

The reason I'd like this is so I can avoid compile errors if the
string doesn't exist. This would allow me to do something like the
following:

String foobar = null;
try {
foobar = this.somehowGetStringAnotherWay("foobar");
}
catch (SomeSortOfException e) {
Log.e("MyActivity", "foobar string not found");
}

Is there any way I can do this?

Thanks in advance.

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Re: Strategies for using Touchscreen MotionEvent Coordinates

Hey Robert,

Thanks so much for your reply! I think you might be right that this
IS in fact a scaling issue. I'm sure I can run some tests by actually
drawing a dot at the actual screen coordinates and comparing where I
expect it to land. I got the jist of the issue right away when you
mentioned it but I also appreciate the additional suggestions.

Now I just have to drum up a couple thousand bucks for the rest of the
android phones :-).

Rocco

On Mar 18, 10:48 am, Robert Green <rbgrn....@gmail.com> wrote:
> Rocco, you're experiencing basic 2d scaling dilemma.  There are
> several ways you can go, each with its compromises.
>
> The gist of it is that your game will need to work correctly on
> screens ranging from 320x240 to 854x480 if you want to support every
> android device.  If you take off the qvga screens, you still need
> 480x320 (G1) to 854x480 (Droid).
>
> You should decide if you will always show the same game to every size
> screen.  If so, you'll want to set a target resolution (say 480x320 if
> you're landscape on a G1) and use that as a scaling factor to get the
> correct display on a different sized screen.  At that point, your game
> world will need to operate as if it's always that resolution.  You
> will need to scale the vital game components, such as player pieces,
> enemies, projectiles, anything collideable, really.
>
> If you don't care about consistency across devices, you at least need
> consistency with your input.  When you calculate the touch vector from
> down, move to up, you will want to scale that so that the physics in
> the game are consistent.
>
> I always use a reference width (when portrait) or a reference height
> (when landscape) that looks like this:
> int referenceWidth = 320;
> float drawScale2d = actualWidth / referenceWidth;
> float inputScale2d = referenceWidth / actualWidth;
>
> Use inputScale2d to get a consistent screen input value across devices
> (swiping "10" pixels will always be 10 pixels even when the actual
> device is 15, because you scaled.)
>
> Use drawScale2d to make objects draw to the same dimensions as they
> would have on a lower resolution screen.  If you're in opengl it's
> just a projection you use, but if using a Canvas you can actually set
> the matrix to use that and then draw.  That will make it fairly easy
> to get the desired scale.
>
> The stuff I'm talking about doing is density-independent, that is, it
> won't matter what density the screen is because the goal of a portable
> game is to give a consistent experience across multiple devices.
> That's all you need to do that.
>
> Hope this helps.  Test on many devices.
>
> On Mar 17, 2:16 pm, Rocco <roc...@gmail.com> wrote:
>
> > Hi,
>
> > I'm writing a simple tile based game using a canvas and a 5X5 grid of
> > tiles.  To determine if a tile is clicked I look at the MotionEvent
> > supplied by onTouch.  I get the coordinates when MotionEvent.event is
> > ACTION_UP and translate to tiles.  This works great on the emulator
> > but when I touch on a device the actual coordinates of the touch
> > register higher than I'd expect as a end user.
>
> > I'm wondering what strategies people have used to get a closer to
> > "expected" result.  Do you use a simple Y offset?  Do you average the
> > coordinates over the life of the touch?  Do you use other methods?
>
> > Thanks!
>
> > Rocco

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: [android-developers] Re: GPS without gps signal

On 03/18/2010 06:01 PM, Andreas wrote:
> Hi Mike,
>
> Just out of curiosity, what would you say is a common time to first
> fix when your outside network coverage?
>

I'm not sure if I have a common time, but it can take minutes. I'm
not entirely sure how it works in the guts of the GPS, but I think
it remembers which satellites it had sync with before and tries
to go from there. If it's thoroughly confused (eg, the GPS has been
off for a long time, and transported somewhere else), it can take
quite a while. AGPS helps all of this out because it very quickly
talks to the cell towers to get a rough idea where it is so that
the GPS software can have a better idea of where the satellites
for that area ought to be.

At least that's my high level understanding, which isn't anything
approaching expert :)

Mike

> Andreas
>
> On Mar 19, 4:46 am, mike<enervat...@gmail.com> wrote:
>
>> On 03/18/2010 12:30 PM, Matias Alberto de la Vega wrote:
>>
>>
>>> As Mike said, you will be able to use GPS even if you have no mobile
>>> signal or wifi connectivity, since GPS has it's own satellites, you
>>> can get coordenates as long as you have GPS friendly environment, some
>>> tips: you MUST be able to see the sky, no tall buildings around is
>>> better, and the bigger piece of sky you can see, the better GPS will
>>> work, but I think you may not have problems with that if you are going
>>> to be in the mountains. Take care.
>>>
>> My experience with my Phresheez app is that it works really
>> well up in the mountains. There are certainly GPS-unfriendly
>> parts I'm sure, but for the most part it's pretty flawless (well,
>> as flawless as GPS can be).
>>
>> Mike
>>
>>
>>> On 18 mar, 13:23, mike<enervat...@gmail.com> wrote:
>>>
>>
>>>> On 03/18/2010 09:12 AM, David Toledo wrote:
>>>>
>>
>>>>> I refered , is in the montains without signal telephony
>>>>>
>>
>>>> Then yes, definitely, from much first hand experience :)
>>>>
>>
>>>> Mike
>>>>
>>
>>>>> Thanks
>>>>>
>>
>>>>> 2010/3/18 mike<enervat...@gmail.com<mailto:enervat...@gmail.com>>
>>>>>
>>
>>>>> On 03/18/2010 08:29 AM, David Toledo wrote:
>>>>>
>>
>>>>> Hi All
>>>>> Is possible that can using the signal GPS without signal the
>>>>> telephony active. I need save the gps location in the sqllite
>>>>> when the telephony is disabled
>>>>>
>>
>>>>> GPS works fine without the cellular network. If there's no network
>>>>> AGPS won't
>>>>> be of any help, but that's just a optimization for finding where
>>>>> you are quicker.
>>>>>
>>
>>>>> But I'm not sure what you mean by "telephony disabled" are you
>>>>> talking about
>>>>> Airplane mode? If so, Android still allows use of GPS in airplane
>>>>> mode, unlike
>>>>> iPhone.
>>>>>
>>
>>>>> Mike
>>>>>
>>
>>>>> Thanks
>>>>> David
>>>>>
>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Android Developers" group.
>>>>> To post to this group, send email to
>>>>> android-developers@googlegroups.com
>>>>> <mailto:android-developers@googlegroups.com>
>>>>> To unsubscribe from this group, send email to
>>>>> android-developers+unsubscribe@googlegroups.com
>>>>> <mailto:android-developers%2Bunsubscribe@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
>>>>> <mailto:android-developers@googlegroups.com>
>>>>> To unsubscribe from this group, send email to
>>>>> android-developers+unsubscribe@googlegroups.com
>>>>> <mailto:android-developers%2Bunsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: [android-developers] ADT Eclipse Plugin won't let me put in a Target



On Thu, Mar 18, 2010 at 5:08 PM, Ray Tayek <rtayek@ca.rr.com> wrote:
At 06:23 PM 3/17/2010, you wrote:
I've been trying to make a new Android project in Eclipse. But
whenever I try to do so, it won't let me select a build target. Here's
a screenshot: http://twitpic.com/198od6

if you have not mad a target yet, you need to make one before you create a new android project.

select  Android SDK and AVD Manager from the windows menu and click on virtual devices and make one.

thanks

You can select 'Manual' so it wouldn't look for virtual device but prompt you to choose target later on
if you have any actual android device and adb is running and detected that device.
 
---
co-chair http://ocjug.org/


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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.




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

[android-developers] Re: GPS without gps signal

Hi Mike,

Just out of curiosity, what would you say is a common time to first
fix when your outside network coverage?

Andreas

On Mar 19, 4:46 am, mike <enervat...@gmail.com> wrote:
> On 03/18/2010 12:30 PM, Matias Alberto de la Vega wrote:
>
> > As Mike said, you will be able to use GPS even if you have no mobile
> > signal or wifi connectivity, since GPS has it's own satellites, you
> > can get coordenates as long as you have GPS friendly environment, some
> > tips: you MUST be able to see the sky, no tall buildings around is
> > better, and the bigger piece of sky you can see, the better GPS will
> > work, but I think you may not have problems with that if you are going
> > to be in the mountains. Take care.
>
> My experience with my Phresheez app is that it works really
> well up in the mountains. There are certainly GPS-unfriendly
> parts I'm sure, but for the most part it's pretty flawless (well,
> as flawless as GPS can be).
>
> Mike
>
> > On 18 mar, 13:23, mike<enervat...@gmail.com>  wrote:
>
> >> On 03/18/2010 09:12 AM, David Toledo wrote:
>
> >>> I refered , is in the montains without signal telephony
>
> >> Then yes, definitely, from much first hand experience :)
>
> >> Mike
>
> >>> Thanks
>
> >>> 2010/3/18 mike<enervat...@gmail.com<mailto:enervat...@gmail.com>>
>
> >>>      On 03/18/2010 08:29 AM, David Toledo wrote:
>
> >>>          Hi All
> >>>          Is possible that can using the signal GPS without signal the
> >>>          telephony active. I need save the gps location in the sqllite
> >>>          when the telephony is disabled
>
> >>>      GPS works fine without the cellular network. If there's no network
> >>>      AGPS won't
> >>>      be of any help, but that's just a optimization for finding where
> >>>      you are quicker.
>
> >>>      But I'm not sure what you mean by "telephony disabled" are you
> >>>      talking about
> >>>      Airplane mode? If so, Android still allows use of GPS in airplane
> >>>      mode, unlike
> >>>      iPhone.
>
> >>>      Mike
>
> >>>          Thanks
> >>>          David
>
> >>>          --
> >>>          You received this message because you are subscribed to the Google
> >>>          Groups "Android Developers" group.
> >>>          To post to this group, send email to
> >>>          android-developers@googlegroups.com
> >>>          <mailto:android-developers@googlegroups.com>
> >>>          To unsubscribe from this group, send email to
> >>>          android-developers+unsubscribe@googlegroups.com
> >>>          <mailto:android-developers%2Bunsubscribe@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
> >>>      <mailto:android-developers@googlegroups.com>
> >>>      To unsubscribe from this group, send email to
> >>>      android-developers+unsubscribe@googlegroups.com
> >>>      <mailto:android-developers%2Bunsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-discuss] Re: Users marking down free apps because missing paid app features

do you have this application on the Android Market? If so how do you
use the same binary? I thought that every apk uploaded to the Market
had to have a unique package name ie com.yourcompany.appgenre.appname

On Mar 18, 2:41 pm, Posri <moobanposri...@yahoo.com> wrote:
> FWIW, we release a trial and pro, both the same binary, just different
> licensing.  The app checks it's license at runtime against a license
> server (licmax.com).   Since verification happens at runtime, the only
> way to crack it is to patch opcodes at the byte level in the binary,
> even on rooted phones.
>
> Posri
>
> On Mar 16, 2:55 pm, Brian Conrad <brianjto...@gmail.com> wrote:
>
> > My experience with trial period applications is the pirates will
> > download and break trial system to get the full version.   But if you
> > make the full version only available as a different runtime as a paid
> > app they won't buy it to break it.
>
> > Shane Isbell wrote:
> > > All of this could be simply avoided by providing a trial option on a paid
> > > application page. Creating a new catalog entry for free apps, just invites
> > > the comparison.
>
> > > On Tue, Mar 16, 2010 at 6:50 AM, Paul Alfille <paul.alfi...@gmail.com>wrote:
>
> > >> Once you get over your pique, think of this as a marketing opportunity.
>
> > >> Make it very clear in the description of both what the free and paid
> > >> versions do and don't do.
> > >> "Free version, not time limited, fully functional except for X which
> > >> is available in the pro version"
>
> > >> Most people will dismiss the comment pretty quickly. They are more
> > >> interested it figuring out quickly what your app actually does and if
> > >> it is stable.
>
> > >> On Tue, Mar 16, 2010 at 8:35 AM, westmeadboy <westmead...@yahoo.co.uk>
> > >> wrote:
>
> > >>> However, I've now received a couple of comments down-rating the free
> > >>> app on the basis that it did not also get upgraded with the extra
> > >>> features. One commented that they would give 5 stars (to the free app)
> > >>> if the pro version was free! They have not purchased the paid app,
> > >>> AFAICT.
>
> > >> --
> > >> You received this message because you are subscribed to the Google Groups
> > >> "Android Discuss" group.
> > >> To post to this group, send email to android-discuss@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> android-discuss+unsubscribe@googlegroups.com<android-discuss%2Bunsubscribe@­googlegroups.com>
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-discuss?hl=en.-Hide quoted text -
>
> > - Show quoted text -

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

[android-developers] Re: Unparsed aapt error

Thank you - I just ran into this problem and your solution worked
great. Luckily I only spent 15 minutes trying to solve before I found
your post.
-sfoye

On Mar 16, 6:57 am, Patrick Noffke <patrick.nof...@gmail.com> wrote:
> Hi all,
>
> I found some old posts on this problem, and I was having a similar issue, so
> I thought I'd share what I learned.
>
> I was getting this error after modifying an XML file, and I was unable to
> start a debug session until I fixed the problem.  It seems if there are
> errors that cause aapt to fail, eclipse can get in a state where it doesn't
> know when the problem gets fixed.  Deleting R.java did not work for me.
>  What I ended up doing after I fixed the XML file is right-clicking on the
> error message in the Problems view, and deleting the error.  Then modify
> some files to force a rebuild and you should be okay.
>
> I found it helps to turn the android log level to Verbose (Preferences ->
> Android -> Build).  This led me to know that once I fixed the XML file, aapt
> was happy, but eclipse was not.
>
> Hopefully this will save someone else the 3 hours I burned trying to figure
> it out!
>
> Patrick

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] Android Video Spec.

Hi, all

I am undergoing a project which uses Android(ver. 1.6 and 2.0) to test
video quality. When achieving this, I would use Android's internal
video codec to decode the test sequences(video clips) which are all
encoded using H.264/AVC video codec and capsulated into MP4
container(which is said to be supported by Android). But whichever
encoding profile I tried, I couldn't get my sequences played in
Android. I have searched around this group and Beginner's group, as
well as Android developers' site, but no valuable output has been
found. I would admit that Android's documentation on video/audio codec
is poor, but now I would first fix my problem.

To be specific, I am looking for the following information:

1. In which profile(baseline, main, high) does Android support? I read
someone said it(here the guy referred to G1) only supports to baseline
which would be sad if true.
2. In which resolution does Android support?
3. In which level(2.1, 3.1, 4.1, where the insiders should know what I
am referring) does Android support?
4. Up to how many bitrates(Average bitrate, Max bitrate) is Android be
able to handle?
5. Are there any other constraints(ex. weightp support? framerate
upperbound?) besides the above?

The hardware I used is Logic's Zoom2 MDP which is based on TI's
OMAP3430 Processor, I ported Android 1.6 on it and with TI's hardware
accelerated DSP library(OpenMAX) on it. The software I wrote is simply
using the android.media.MediaPlayer class to handle video loading and
playing.

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

[android-developers] How to add an image to my background drawable?

Hi,

How can I add a background image (stretch if necessary) in my
following drawable?

Right now, I set my widget to have a border when it has focus.
I want to make it so that when it has focus, it has a border and an
image, when it does not has a focus, it has an image. how can I do
that?

<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_focused="true" android:drawable="@drawable/roundborder" />

</selector>

Here is my border drawable:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
>
<stroke android:width="1dp" android:color="#FFF0000" />
</shape>

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: [android-developers] ADT Eclipse Plugin won't let me put in a Target

At 06:23 PM 3/17/2010, you wrote:
>I've been trying to make a new Android project in Eclipse. But
>whenever I try to do so, it won't let me select a build target. Here's
>a screenshot: http://twitpic.com/198od6

if you have not mad a target yet, you need to make one before you
create a new android project.

select Android SDK and AVD Manager from the windows menu and click
on virtual devices and make one.

thanks

---
co-chair http://ocjug.org/

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

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: [android-beginners] Error: An SDK Target must be specified.

At 11:19 PM 3/17/2010, you wrote:
>...
> I entered the project name.
>step 2:
> Then the new project window highlighting the error "An SDK
> Target must be specified". But i can't enable the "Build SDK" Group Box.
>
>How to over come this this problem. I hope u can solve this
>problem.plz point out me to the simple error.
> Thank you...

you need to make a target first under window|Android SDK and AVD
Manager. click on virtual devices and make one.

then you can create a new android project.

thanks

---
co-chair http://ocjug.org/

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.