[android-developers] Functional retrieval of strings?

2010-03-18 Thread HippoMan
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

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

2010-03-18 Thread Mark Murphy
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

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

2010-03-18 Thread snctln
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

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

2010-03-18 Thread David
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

[android-developers] Re: GPS without gps signal

2010-03-18 Thread Andreas
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

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

2010-03-18 Thread Andreas
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

[android-developers] Re: Application wake up

2010-03-18 Thread Andreas
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

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

2010-03-18 Thread Matt (preinvent)
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

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

2010-03-18 Thread Samsyn
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

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

2010-03-18 Thread TreKing
On Thu, Mar 18, 2010 at 8:49 PM, HippoMan hippo.mail...@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 =

[android-developers] camera service problem

2010-03-18 Thread grace
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=gstq=camera+overlay#809ebdafc456be32 when i run it for the first time it shows an exception saying failed to connect

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

2010-03-18 Thread TreKing
On Thu, Mar 18, 2010 at 9:46 PM, Andreas andreas.bex...@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

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

2010-03-18 Thread takky takazawa
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.

<    1   2   3