Re: [android-developers] Resource qualifier bugs in Honeycomb/xoom

2011-04-15 Thread Brill Pappin
Ahh, that explains the missing night mode, although if there is no dock mode 
(which is obviously a bug since I have it in a doc) when there can't be a 
car mode.

- Brill Pappin

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

[android-developers] Facebook and twitter integration

2011-04-15 Thread Laxmi Verma
Hi,

I want to integrate facebook and twitter into my android app.  Everwhere I
found the code of showing the dialog box of facebook and twitter login and
then posting the content from there.
What I want to do is, on twitter or facebook button click it should forward
to twitter site for e.g. m.twitter.com and my article id should get
displayed in the tweet box (twitter) or walll post box (facebook) in the
site directly.
Just like it has done in ndtv app.
Please do help in this.

Thanks & Regards,
Laxmi Verma

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

2011-04-15 Thread Hitendrasinh Gohil
hi,

I just want to play one file from sdcard which is in encrypted
format.so i need to first decrypt the file and then play the
file.rightnow i am decrypting the whole file and then play and it
works fine.but what i want is when there is enough data write to
decrypted file just start to play it and write operation to decrypted
file should not be interrupted.

can anyone suggest me the way  to deal which above situation?

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


Re: [android-developers] Resource qualifier bugs in Honeycomb/xoom

2011-04-15 Thread Dianne Hackborn
Night mode only applies when in car mode, as always.  The Xoom doesn't have
a dock mode -- when you put in the dock you will notice it doesn't do
anything special.

On Fri, Apr 15, 2011 at 8:37 PM, Brill Pappin  wrote:

> After having some unexpected things happen when writing for Honeycomb on an
> xoom, I notice that a couple of the resource qualifier options seem to be
> broken.
>
> Specifically:
> Dock Mode: not set even when in the dock.
> Night Mode: notnight at 11:30 PM EST
>
> Is anyone else noticing that happen in honeycomb in general or on the xoom
> specifically?
>
> I've created a little app for testing this as I was testing often enough on
> different devices :)
> http://dl.dropbox.com/u/62099/itapdevinfo.apk
>
> I have no idea if this is a general Honeycomb thing or if its specific to
> the xoom's implementation, but I'm thinking it would be worth finding out
>  so it can be reported.
>
> - Brill Pappin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Display large html content page wise in WebView

2011-04-15 Thread Sourav Howlader

Hi All,

I have a large HTML which contents huge number of lines. But I want to
show content of the HTML file that fits a single screen.

I want to provide a " > " button to show the next contents of the same
HTML file.

I want to only display the HTML contents that fits the screen similar
to eBook reader application. For user, it seems there are several
pages.

Is there any way in which I can achieve this functionality. If yes,
how to do it ?

Thanks in advance.
Sourav

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

2011-04-15 Thread Mahavir Jain
I really having trouble in displaying Ads through AdWhirl.

Following is the code:

AdWhirlTargeting.setTestMode(true);
AdWhirlAdapter.setGoogleAdSenseAppName(APP_NAME);
AdWhirlAdapter.setGoogleAdSenseCompanyName(COMPANY_NAME);
final DisplayMetrics dm =
showComments.getResources().getDisplayMetrics();
AdWhirlLayout adWhirlLayout = new
AdWhirlLayout(showComments, MyWidgetProvider.ADWHIRL_SDK_KEY);
adWhirlLayout.setMaxWidth((int) (dm.density * 320));
adWhirlLayout.setMaxHeight((int) (dm.density * 52));
adWhirlLayout.setGravity(Gravity.CENTER);
//LayoutInflater inflater=showComments.getLayoutInflater();
View header=inflater.inflate(R.layout.header_layout, null);
FrameLayout
ad_frame=(FrameLayout)header.findViewById(R.id.ad_frame);
ad_frame.addView(adWhirlLayout);

showComments.getListView().addHeaderView(ad_frame);

But Ad never get display. I have set up the SDK key for AdWhirl, AdMob and
InMobi. I also have INTERNET permissions. I set up all the the keys one day
before. I am calling this in main UI thread. And I am testing this on
emulator with test mode set to TRUE.

Following is the LogCat:

04-15 19:46:20.667: INFO/AdWhirl SDK(473): Creating adWhirlManager... 04-15
19:46:20.667: DEBUG/AdWhirl SDK(473): Locale is: en_US 04-15 19:46:20.707:
DEBUG/AdWhirl SDK(473): Hashed device ID is:
7d1dd13a2fa91c0ad174cb69a11549a3 04-15 19:46:20.707: INFO/AdWhirl SDK(473):
Finished creating adWhirlManager 04-15 19:46:20.777: DEBUG/AdWhirl SDK(473):
Prefs{3f3895c9b2924d01ad2af284f82b9e5e}: {"config":
"{"extra":{"location_on":0,"background_color_rgb":{"red":59,"green":89,"blue":152,"alpha":1},"text_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"cycle_time":300,"transition":8},"rations":[{"nid":"2eae10658d78483aaf55fcd8d08e7401","type":1,"nname":"admob","weight":50,"priority":1,"key":"a14da6925c1450f"},{"nid":"00fb2956c3a34215abdbcde851c71d15","type":18,"nname":"inmobi","weight":50,"priority":2,"key":"4028cba62f1f1e04012f52d9bf990229"}]}
04-15 19:46:20.777: DEBUG/AdWhirl SDK(473): ", "timestamp": 1302876570581}
04-15 19:46:20.796: INFO/AdWhirl SDK(473): Using stored config data 04-15
19:46:20.796: DEBUG/AdWhirl SDK(473): Received jsonString:
{"extra":{"location_on":0,"background_color_rgb":{"red":59,"green":89,"blue":152,"alpha":1},"text_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"cycle_time":300,"transition":8},"rations":[{"nid":"2eae10658d78483aaf55fcd8d08e7401","type":1,"nname":"admob","weight":50,"priority":1,"key":"a14da6925c1450f"},{"nid":"00fb2956c3a34215abdbcde851c71d15","type":18,"nname":"inmobi","weight":50,"priority":2,"key":"4028cba62f1f1e04012f52d9bf990229"}]}
04-15 19:46:20.837: INFO/AdWhirl SDK(473): Rotating Ad 04-15 19:46:20.857:
DEBUG/AdWhirl SDK(473): Dart is <92.86105004071> of <100.0> 04-15
19:46:20.898: INFO/System.out(473): In AttachmentView1==> 04-15
19:46:21.427: INFO/System.out(473): In NormalView1==> 04-15 19:46:21.767:
DEBUG/dalvikvm(473): GC_CONCURRENT freed 537K, 51% free 3097K/6279K,
external 955K/1463K, paused 12ms+38ms 04-15 19:46:21.818:
DEBUG/dalvikvm(63): GC_CONCURRENT freed 855K, 46% free 4393K/8071K, external
1879K/2377K, paused 13ms+35ms 04-15 19:46:21.947: DEBUG/webviewglue(473):
nativeDestroy view: 0x30ab30 04-15 19:46:21.977: DEBUG/webviewglue(473):
nativeDestroy view: 0x251658 04-15 19:46:22.006: DEBUG/webviewglue(473):
nativeDestroy view: 0x3075a8 04-15 19:46:22.019: DEBUG/webviewglue(473):
nativeDestroy view: 0x276d50 04-15 19:46:22.057: DEBUG/AdWhirl SDK(473):
Showing ad: 04-15 19:46:22.057: DEBUG/AdWhirl SDK(473): nid:
00fb2956c3a34215abdbcde851c71d15 04-15 19:46:22.057: DEBUG/AdWhirl SDK(473):
name: inmobi 04-15 19:46:22.057: DEBUG/AdWhirl SDK(473): type: 18 04-15
19:46:22.057: DEBUG/AdWhirl SDK(473): key: 4028cba62f1f1e04012f52d9bf990229
04-15 19:46:22.057: DEBUG/AdWhirl SDK(473): key2: 04-15 19:46:22.086:
DEBUG/AdWhirl SDK(473): Valid adapter, calling handle() 04-15 19:46:22.317:
VERBOSE/(473): in ad request post body.. 04-15 19:46:22.358:
VERBOSE/inmobiandroidwebsdk(473):
requestactivity=AdRequest&d-deviceModel=sdk&d-deviceMachineHW=Linux%28Android%3A2.6.29-00261-g0097074-dirty%29&d-deviceSystemName=BASE&d-deviceSystemVersion=1.0&d-deviceName=generic&d-deviceBTHW=Fri+Apr+15+19%3A27%3A43+GMT%2B05%3A30+2011&d-deviceStorageSize=InBuilt%3A64+MB%2CExt%3A98+MB&d-device-screen-density=1.0&d-device-screen-size=320X480&x-inmobi-phone-useragent=Mozilla%2F5.0+%28Linux%3B+U%3B+Android+2.3%3B+en-us%3B+sdk+Build%2FGRH55%29+AppleWebKit%2F533.1+%28KHTML%2C+like+Gecko%29+Version%2F4.0+Mobile+Safari%2F533.1&mk-siteid=4028cba62f1f1e04012f52d9bf990229&u-id=&mk-version=pr-SPEC-ATATA-20091223&format=xhtml&mk-ads=1&h-user-agent=InMobi_androidsdk%3D2.0&u-InMobi_androidwebsdkVersion=2.0&u-appBId=com.mobisys.android.app_widget&u-appDNM=FBDroidWidget&u-appVer=1.0&d-localization=en_us&d-netType=&mk-banner-size=9
04-15 19:46:

Re: [android-developers] Re: How launch activity from live wallpaper

2011-04-15 Thread a a
my god, you are vy gd

After i added Adview.jar, it can work now, thank you very
much!1

2011/4/16 Kevin TeslaCoil Software :
>> java.lang.RuntimeException: Unable to start activity
>> ComponentInfo{com.example.android.livecubes/com.example.android.livecubes.c 
>> ube1.XmlSample}:
>> android.view.InflateException: Binary XML file line #11: Error
>> inflating class net.youmi.android.AdView
>
> Your activity is starting, but the activity is crashing because your
> XML references net.youmi.android.AdView and that class isn't found.
> Most likely your forgot to include the youmi AdView jar. Test first
> without ads and then add them when you have it working.
>
> -Kevin
>
>
> On Apr 15, 10:27 pm, a a  wrote:
>> Dear all,
>>
>>     There have a apk which have published on google market named
>> "Launcher Wall", it can launch activity from it's live wallpaper.
>>
>> So, i can launch my activity from my live wallpaper also, right? But
>> following exception caused when tap the live wallpaper to launch.
>>
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): FATAL EXCEPTION: main
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):
>> java.lang.RuntimeException: Unable to start activity
>> ComponentInfo{com.example.android.livecubes/com.example.android.livecubes.c 
>> ube1.XmlSample}:
>> android.view.InflateException: Binary XML file line #11: Error
>> inflating class net.youmi.android.AdView
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1665)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1681)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.ActivityThread.access$1500(ActivityThread.java:118)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:933)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.os.Handler.dispatchMessage(Handler.java:99)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.os.Looper.loop(Looper.java:123)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.ActivityThread.main(ActivityThread.java:3701)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> java.lang.reflect.Method.invokeNative(Native Method)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> java.lang.reflect.Method.invoke(Method.java:507)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
>> 875)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> dalvik.system.NativeStart.main(Native Method)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
>> android.view.InflateException: Binary XML file line #11: Error
>> inflating class net.youmi.android.AdView
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.view.LayoutInflater.inflate(LayoutInflater.java:408)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.view.LayoutInflater.inflate(LayoutInflater.java:320)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.view.LayoutInflater.inflate(LayoutInflater.java:276)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.jav 
>> a:207)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.Activity.setContentView(Activity.java:1657)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> com.example.android.livecubes.cube1.XmlSample.onCreate(XmlSample.java:14)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1613)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     ... 11 more
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
>> java.lang.ClassNotFoundException: net.youmi.android.AdView in loader
>> dalvik.system.PathClassLoader[/data/app/com.example.android.livecubes-2.apk ]
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:551)
>> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
>> java.lang.ClassLoader.loadClass(ClassLoa

[android-developers] Re: How launch activity from live wallpaper

2011-04-15 Thread Kevin TeslaCoil Software
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.example.android.livecubes/com.example.android.livecubes.c 
> ube1.XmlSample}:
> android.view.InflateException: Binary XML file line #11: Error
> inflating class net.youmi.android.AdView

Your activity is starting, but the activity is crashing because your
XML references net.youmi.android.AdView and that class isn't found.
Most likely your forgot to include the youmi AdView jar. Test first
without ads and then add them when you have it working.

-Kevin


On Apr 15, 10:27 pm, a a  wrote:
> Dear all,
>
>     There have a apk which have published on google market named
> "Launcher Wall", it can launch activity from it's live wallpaper.
>
> So, i can launch my activity from my live wallpaper also, right? But
> following exception caused when tap the live wallpaper to launch.
>
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): FATAL EXCEPTION: main
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.example.android.livecubes/com.example.android.livecubes.c 
> ube1.XmlSample}:
> android.view.InflateException: Binary XML file line #11: Error
> inflating class net.youmi.android.AdView
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1665)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1681)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.access$1500(ActivityThread.java:118)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:933)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.os.Looper.loop(Looper.java:123)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.main(ActivityThread.java:3701)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.reflect.Method.invoke(Method.java:507)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
> 875)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> dalvik.system.NativeStart.main(Native Method)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
> android.view.InflateException: Binary XML file line #11: Error
> inflating class net.youmi.android.AdView
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:408)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.jav 
> a:207)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.Activity.setContentView(Activity.java:1657)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.example.android.livecubes.cube1.XmlSample.onCreate(XmlSample.java:14)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1613)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     ... 11 more
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
> java.lang.ClassNotFoundException: net.youmi.android.AdView in loader
> dalvik.system.PathClassLoader[/data/app/com.example.android.livecubes-2.apk ]
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:551)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:511)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.createView(LayoutInflater.java:471)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
> 

Re: [android-developers] Action bar through compatibility lib on 1.x, 2.x API

2011-04-15 Thread Brill Pappin
How the heck is that ActionBarBC project built?
It's min version is 4 so it should not allow the 
supports-screens android:xlargeScreens="true"

Are we to build with 11 even if we are compatible with 4?

- Brill Pappin

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

2011-04-15 Thread Brill Pappin
After having some unexpected things happen when writing for Honeycomb on an 
xoom, I notice that a couple of the resource qualifier options seem to be 
broken.

Specifically:
Dock Mode: not set even when in the dock.
Night Mode: notnight at 11:30 PM EST

Is anyone else noticing that happen in honeycomb in general or on the xoom 
specifically?

I've created a little app for testing this as I was testing often enough on 
different devices :)
http://dl.dropbox.com/u/62099/itapdevinfo.apk

I have no idea if this is a general Honeycomb thing or if its specific to 
the xoom's implementation, but I'm thinking it would be worth finding out 
 so it can be reported.

- Brill Pappin

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

2011-04-15 Thread a a
2011/4/16 a a :
> Dear all,
>
>    There have a apk which have published on google market named
> "Launcher Wall", it can launch activity from it's live wallpaper.
>
> So, i can launch my activity from my live wallpaper also, right? But
> following exception caused when tap the live wallpaper to launch.
>
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): FATAL EXCEPTION: main
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.example.android.livecubes/com.example.android.livecubes.cube1.XmlSample}:
> android.view.InflateException: Binary XML file line #11: Error
> inflating class net.youmi.android.AdView
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1665)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1681)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.access$1500(ActivityThread.java:118)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:933)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.os.Looper.loop(Looper.java:123)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.main(ActivityThread.java:3701)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.reflect.Method.invoke(Method.java:507)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> dalvik.system.NativeStart.main(Native Method)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
> android.view.InflateException: Binary XML file line #11: Error
> inflating class net.youmi.android.AdView
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:408)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.Activity.setContentView(Activity.java:1657)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> com.example.android.livecubes.cube1.XmlSample.onCreate(XmlSample.java:14)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1613)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     ... 11 more
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
> java.lang.ClassNotFoundException: net.youmi.android.AdView in loader
> dalvik.system.PathClassLoader[/data/app/com.example.android.livecubes-2.apk]
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:551)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:511)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.createView(LayoutInflater.java:471)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     at
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
> 03-01 09:45:12.005: ERROR/AndroidRuntime(4800):     ... 20 more
> 03-01 09:45:12.015: WARN/ActivityManager(203):   Force finishing
> activity com.example.android.livecubes/.cube1.XmlSample
> 03-01 09:45:12.025: WARN/ActivityManager(203):   Force finishing
> activity com.android.wallpaper.livepicker/.LiveWallpaperPreview
> 03-01 09:45:12.526: WARN/ActivityManager(203): Activity pause timeout
> for HistoryRecord{408cd598
> com.example.android.livecubes/.cube1.XmlSample}
> 03-01 09:45:22.606: WARN/ActivityManager(203): Activity destroy
> timeout for HistoryReco

[android-developers] How launch activity from live wallpaper

2011-04-15 Thread a a
Dear all,

There have a apk which have published on google market named
"Launcher Wall", it can launch activity from it's live wallpaper.

So, i can launch my activity from my live wallpaper also, right? But
following exception caused when tap the live wallpaper to launch.

03-01 09:45:12.005: ERROR/AndroidRuntime(4800): FATAL EXCEPTION: main
03-01 09:45:12.005: ERROR/AndroidRuntime(4800):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.example.android.livecubes/com.example.android.livecubes.cube1.XmlSample}:
android.view.InflateException: Binary XML file line #11: Error
inflating class net.youmi.android.AdView
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1665)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1681)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.ActivityThread.access$1500(ActivityThread.java:118)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:933)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.os.Looper.loop(Looper.java:123)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.ActivityThread.main(ActivityThread.java:3701)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
java.lang.reflect.Method.invokeNative(Native Method)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
java.lang.reflect.Method.invoke(Method.java:507)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
dalvik.system.NativeStart.main(Native Method)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
android.view.InflateException: Binary XML file line #11: Error
inflating class net.youmi.android.AdView
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.Activity.setContentView(Activity.java:1657)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
com.example.android.livecubes.cube1.XmlSample.onCreate(XmlSample.java:14)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1613)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): ... 11 more
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): Caused by:
java.lang.ClassNotFoundException: net.youmi.android.AdView in loader
dalvik.system.PathClassLoader[/data/app/com.example.android.livecubes-2.apk]
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
java.lang.ClassLoader.loadClass(ClassLoader.java:551)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
java.lang.ClassLoader.loadClass(ClassLoader.java:511)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.view.LayoutInflater.createView(LayoutInflater.java:471)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-01 09:45:12.005: ERROR/AndroidRuntime(4800): ... 20 more
03-01 09:45:12.015: WARN/ActivityManager(203):   Force finishing
activity com.example.android.livecubes/.cube1.XmlSample
03-01 09:45:12.025: WARN/ActivityManager(203):   Force finishing
activity com.android.wallpaper.livepicker/.LiveWallpaperPreview
03-01 09:45:12.526: WARN/ActivityManager(203): Activity pause timeout
for HistoryRecord{408cd598
com.example.android.livecubes/.cube1.XmlSample}
03-01 09:45:22.606: WARN/ActivityManager(203): Activity destroy
timeout for HistoryRecord{408cd598
com.example.android.livecubes/.cube1.XmlSample}
03-01 09:45:32.615: WARN/ActivityManager(203): Timeout executing
service: ServiceRecord{408fdfc8
com.example.android.livec

[android-developers] Re: How to change Application theme

2011-04-15 Thread Nicholas Johnson
Set your theme at run time in the onCreate() method using setTheme(int). Check 
it out 
here
.
 
I do this with my app, and it works very well. My onCreate() method looks 
something like this:
 
public onCreate(Bundle b) {
 
/* Get your preference here */

/* Set the theme before calling setContentView() */
switch (theme) {
case X:
setTheme(R.style.theme1);
break;
case Y:
setTheme(R.style.theme2);
break;
}
 
super.onCreate();
setContentView(R.layout.layout_name);
}

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

2011-04-15 Thread lbendlin
Or you could use GPSgate and then connect to it via Bluetooth

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Apps, move apps into phone's memory, or switch them into external memory.

2011-04-15 Thread Nicholas Johnson
For heaven's sake: the functionality has to be implemented by the app 
programmer.
 
Thread over.

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

2011-04-15 Thread Nicholas Johnson
Create and use a FTP client on your phone, and run a FTP server on your 
computer.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Trying to load a list of overlay positions from file

2011-04-15 Thread lbendlin
Why are you creating a new overlay for each marker? To stay with your story, 
one overlay per bus line would make much more sense.

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

2011-04-15 Thread Euphy Zhang
But it is in an android tutorial! What can i do with it? Thank you in
advance!

2011/4/15 TreKing 

>  On Thu, Apr 14, 2011 at 10:56 PM, yf2zhang  wrote:
>
>> I can't find ticker interface or anything about ticker in the reference
>> at Android Reference.
>>
>
> That would be because it's not an Android class.
>
>
> -
> 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
>



-- 
*Euphemia Zhang *
*EUEUZ STUD!O / 647 996 3318*
*www.student.math.uwaterloo.ca/~yf2zhang*

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

2011-04-15 Thread dashman
i create PendingIntent and notification from a service.

PendingIntent contentIntent = PendingIntent.getActivity( 
context, 0,
notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT );

it creates a notification, user taps on the notification and then
the activity gets called...

works fine.

what i'd like to do is to call the activity immediately from the
background service and then have the notification act as more
of a message to user that the activity was called.

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

2011-04-15 Thread TreKing
On Thu, Apr 14, 2011 at 12:07 PM, fr3sh  wrote:

>  Is it somehow possible to use draw9patch to create a scale-intelligent
> background image?
>

Isn't that the point of 9-Patch?

I haven't actually used the tool, but another idea is have a nested layout
with your "header" or whatever that is not supposed to stretch and then the
"real" LinearLayout with the portion that does stretch, both within a parent
LinearLayout.

-
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] Trying to load a list of overlay positions from file

2011-04-15 Thread TreKing
On Thu, Apr 14, 2011 at 2:49 PM, matt h  wrote:

> Hi, I am trying to develop an app to list the bus stops for my local Public
> Transit buses on a google map map,
>

It's not Chicago is it!? =P


> Any one have any idea why my markers are not being added?
>

Tip: when stuff doesn't show on the map, try zooming all the way out in case
you've plotted it wrong 

Walk with me here ...

This is your format, right?:-79261518<>44006280<>2511<>YRT
And this is your parsing, right?: LineSplit[0]),Integer.parseInt(LineSplit[1])
...
And this is your function, right?: AddOverlayItem(int intLat, int intLong
...
So -79261518 is latitude, 44006280 is the longitude right?
And this becomes -79.261518 and 44.006280, right?

Is this a transit system for
Penguins
?
Or for 
Ducks
?

-
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] Activity#onRetainNonConfigurationInstance vs Fragment#setRetainInstance

2011-04-15 Thread Dianne Hackborn
This doesn't work.  It is still associated with the original
context/activity, so at the very least you are now leaking that object and
worse it may be trying to do stuff with it (such as use the WindowManager
service) that is now on a context that is no longer live.

On Fri, Apr 15, 2011 at 4:54 PM, Shri Borde  wrote:

> It actually worked with Fragment#setRetainInstance. I just had to call
> ((ViewGroup) fragmentLayout.getParent()).removeView(fragmentLayout) before I
> could reuse the views.
>
> I got crashes in native code when I tried doing the same with
> Activity#onRetainNonConfigurationInstance.
>
>
> On Fri, Apr 15, 2011 at 2:53 PM, Dianne Hackborn wrote:
>
>> Sorry, you just can't re-use a WebView across config changes -- a view is
>> instantiated with a Context it runs in, which is the Activity that created
>> it.  You can't change this context later, when you have a new Activity
>> instance.
>>
>> On Fri, Apr 15, 2011 at 8:33 AM, Shri  wrote:
>>
>>> I have a WebView in my Activity which I want to reuse across config
>>> changes so that the webpage does not get reloaded after every
>>> orientation change. I can use
>>> Activity#onRetainNonConfigurationInstance/getLastConfigurationInstance
>>> for this. However, I have heard that Fragment#setRetainInstance is
>>> better for this purpose. This does not seem correct if there are other
>>> Views involved which should be recreated after a config change (eg.
>>> TextView which should be recreated after a locale change so that new
>>> string resources can be picked up). I could keep only the WebView in a
>>> Fragment, and all other Views in the Activity, but then either
>>> approach seems good enough.
>>>
>>> Just checking that Activity#onRetainNonConfigurationInstance/
>>> getLastConfigurationInstance are not considered to be bad practice
>>> going forward.
>>> http://developer.android.com/guide/topics/resources/runtime-changes.html
>>> only mentions these apis anyway, not Fragment#setRetainInstance.
>>>
>>> Thanks
>>> Shri
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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.

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

2011-04-15 Thread Shri Borde
It actually worked with Fragment#setRetainInstance. I just had to call
((ViewGroup) fragmentLayout.getParent()).removeView(fragmentLayout) before I
could reuse the views.

I got crashes in native code when I tried doing the same with
Activity#onRetainNonConfigurationInstance.

On Fri, Apr 15, 2011 at 2:53 PM, Dianne Hackborn wrote:

> Sorry, you just can't re-use a WebView across config changes -- a view is
> instantiated with a Context it runs in, which is the Activity that created
> it.  You can't change this context later, when you have a new Activity
> instance.
>
> On Fri, Apr 15, 2011 at 8:33 AM, Shri  wrote:
>
>> I have a WebView in my Activity which I want to reuse across config
>> changes so that the webpage does not get reloaded after every
>> orientation change. I can use
>> Activity#onRetainNonConfigurationInstance/getLastConfigurationInstance
>> for this. However, I have heard that Fragment#setRetainInstance is
>> better for this purpose. This does not seem correct if there are other
>> Views involved which should be recreated after a config change (eg.
>> TextView which should be recreated after a locale change so that new
>> string resources can be picked up). I could keep only the WebView in a
>> Fragment, and all other Views in the Activity, but then either
>> approach seems good enough.
>>
>> Just checking that Activity#onRetainNonConfigurationInstance/
>> getLastConfigurationInstance are not considered to be bad practice
>> going forward.
>> http://developer.android.com/guide/topics/resources/runtime-changes.html
>> only mentions these apis anyway, not Fragment#setRetainInstance.
>>
>> Thanks
>> Shri
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>

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

[android-developers] Re: Action bar through compatibility lib on 1.x, 2.x API

2011-04-15 Thread RS
Oh well then I think the expected fragment*support work good on pre-
HC.

Just got a bit greedy to see if the action bar can show up on top
replacing the title bar (as in HC).

Thanks for your reply.

On Apr 15, 10:55 pm, Dianne Hackborn  wrote:
> The compatibility library provides fragments and loaders on pre-HC devices.
>  It does not have any other major features; it just has a smattering of
> helpers for small specific methods that don't exist on older platforms.
>
>
>
>
>
>
>
>
>
> On Fri, Apr 15, 2011 at 7:47 AM, RS  wrote:
> > Is the compatibility library expected to help with action bar on pre-
> > honeycombs?
>
> > Have been trying to get it to work in vain for long.
> > Changed the sample that uses MenuCompat to show action irrespective of
> > room. Still no luck.
> > MenuCompat.setShowAsAction(item, MenuItem.SHOW_AS_ACTION_ALWAYS);
>
> > What am I doing wrong? Or is it just to use fragments in options menu
> > that show at the bottom of the screen?
>
> > Thanks in advance.
> > RS
> > ps: The only relevant thread in this group was the one with Dianne
> > Hackborn's reply asking us to properly try the samples out. Yes, I
> > have already included the jar and the rest of the fragments*support
> > stuff work well.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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: Calling a system service in fixed intervals within another service

2011-04-15 Thread Diego Tori
You pretty much hit the nail on the head. I just need to figure out
the best way to add the time buffer in between the startScan calls
without creating too much overhead and accomplishing the task at hand.

On Apr 15, 6:59 pm, Mark Murphy  wrote:
> On Fri, Apr 15, 2011 at 6:43 PM, Diego Tori
>
>  wrote:
> > That's the thing, it has to be short intervals in between scans since
> > this has almost real-time implications, no greater than 15 secs at
> > most, so I dunno how AlarmManager would fit into the equation. Is
> > there any chance you can show me how to modify the above code to
> > utilize AlarmManager to have it sleep before the onReceive gets called
> > again?
>
> My interpretation of what you're trying to accomplish is that you have
> 1+ activities that need to hear about scan results, for a startScan()
> kicked off every so often.
>
> Let's assume a service being bound to by the activities is the right
> answer. I'm more than a tad skeptical on that, actually, but I'm
> trying to keep this simple relative to your apparent current
> implementation.
>
> Step #1: In onCreate() of the service, you register a
> BroadcastReceiver for SCAN_RESULTS_AVAILABLE_ACTION, then call
> startScan(). onCreate() then returns. Or, if this should not be going
> for the entire time the service is in memory, expose a method from
> your Binder that does the aforementioned work and returns.
>
> Step #2: When SCAN_RESULTS_AVAILABLE_ACTION occurs and your
> BroadcastReceiver is called with onReceive(), you:
>
> Step #2a: Arrange for your next scan (e.g., use Timer/TimerTask to
> call startScan() after some delay -- I agree that AlarmManager is not
> ideal for this particular implementation)
>
> Step #2b: Call getScanResults() and asynchronously notify the
> activities (your own broadcast Intent that the activities register
> for, or via a callback method the activities register with the
> service, or via a Messenger, or via a PendingIntent created by
> createPendingResult(), etc.).
>
> Step #3: In onDestroy(), you unregister your BroadcastReceiver and
> arrange to not invoke the next scan (e.g., cancel the Timer).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Capture keyEvent from view displayed by WindowManager.addView()

2011-04-15 Thread Bruce Xia
Don't be scared. What I'm trying to do is for user to be able to
define a set of actions for specific keys, display a window and
capture it when the event triggers my service. They will install the
service as normal and if they don't like it they can remove on the
fly.

If it's available when the view added to activity it should be
available if it's displayed from a service. Something is missing after
the addView process.

Also why the OnKeyDown/OnKeyUp not work even the view was on an
activity?

On Apr 15, 3:37 pm, Mark Murphy  wrote:
> On Fri, Apr 15, 2011 at 6:12 PM, Bruce Xia  wrote:
> > I have a view which basically cover the full screen to capture key
> > input. It works well if I add it to activity, but if I display it from
> > background service using WindowManager.addView, it doesn't work.
>
> Thank heavens! That would be a massive security flaw.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Calling a system service in fixed intervals within another service

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 6:43 PM, Diego Tori
 wrote:
> That's the thing, it has to be short intervals in between scans since
> this has almost real-time implications, no greater than 15 secs at
> most, so I dunno how AlarmManager would fit into the equation. Is
> there any chance you can show me how to modify the above code to
> utilize AlarmManager to have it sleep before the onReceive gets called
> again?

My interpretation of what you're trying to accomplish is that you have
1+ activities that need to hear about scan results, for a startScan()
kicked off every so often.

Let's assume a service being bound to by the activities is the right
answer. I'm more than a tad skeptical on that, actually, but I'm
trying to keep this simple relative to your apparent current
implementation.

Step #1: In onCreate() of the service, you register a
BroadcastReceiver for SCAN_RESULTS_AVAILABLE_ACTION, then call
startScan(). onCreate() then returns. Or, if this should not be going
for the entire time the service is in memory, expose a method from
your Binder that does the aforementioned work and returns.

Step #2: When SCAN_RESULTS_AVAILABLE_ACTION occurs and your
BroadcastReceiver is called with onReceive(), you:

Step #2a: Arrange for your next scan (e.g., use Timer/TimerTask to
call startScan() after some delay -- I agree that AlarmManager is not
ideal for this particular implementation)

Step #2b: Call getScanResults() and asynchronously notify the
activities (your own broadcast Intent that the activities register
for, or via a callback method the activities register with the
service, or via a Messenger, or via a PendingIntent created by
createPendingResult(), etc.).

Step #3: In onDestroy(), you unregister your BroadcastReceiver and
arrange to not invoke the next scan (e.g., cancel the Timer).

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

Android 3.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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Ticker

2011-04-15 Thread TreKing
On Thu, Apr 14, 2011 at 10:56 PM, yf2zhang  wrote:

> I can't find ticker interface or anything about ticker in the reference
> at Android Reference.
>

That would be because it's not an Android class.

-
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: Geo Location and webview

2011-04-15 Thread Moose
I have spent several hours now trying to figure you why this doesn't work. 
The only additional thing I have learned is that the app does seem to get 
control of a location service...

04-15 18:27:01.480: DEBUG/WifiService(114): acquireWifiLockLocked: 
WifiLock{NetworkLocationProvider type=2 
binder=android.os.BinderProxy@415997b0}
04-15 18:27:06.490: DEBUG/WifiService(114): releaseWifiLockLocked: 
WifiLock{NetworkLocationProvider type=2 
binder=android.os.BinderProxy@415997b0}

But does not place the pin appropriately.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Calling a system service in fixed intervals within another service

2011-04-15 Thread Diego Tori
That's the thing, it has to be short intervals in between scans since
this has almost real-time implications, no greater than 15 secs at
most, so I dunno how AlarmManager would fit into the equation. Is
there any chance you can show me how to modify the above code to
utilize AlarmManager to have it sleep before the onReceive gets called
again?

On Apr 15, 6:27 pm, Kostya Vasilyev  wrote:
> Use AlarmManager for this, it's more reliable and easier to use than coding
> a thread with sleep/wait.
> 16.04.2011 2:24 пользователь "Diego Tori" 
> написал:
>
> > As the question implies, I am wondering how I could write a thread
> > that would call a system service and then wait a certain amount of
> > time before calling said system service's function that calls back to
> > onReceive from a registered BroadcastReceiver.
>
> > In other words, I am trying to call the Wifi scanning service
> > (registering a BroadcastReceiver with IntentFilters) within my custom
> > local service so I can get the current SSID's available and send them
> > back to the activities that are bound to this service. I know what I
> > will end up doing with the received data, which is not relevant to
> > this question. However, I will need to wait a certain amount of time
> > before calling startScan again within onReceive, and that is where I
> > am trying to determine the best course of action.
>
> > Here is what I have so far:
>
> > class MyWifiScanner extends BroadcastReceiver implements Runnable{
> > private boolean running;
> > private final int SLEEP_TIME = 1;
> > private Object mSync = new Object();
> > WifiManager wifiMan;
> > Thread t;
> > public MyWifiScanner(){
> > //receiver registered with intent filters
> > wifiMan = (WifiManager)
> > SSIDListenerService.this.getSystemService(Context.WIFI_SERVICE);
> > t = new Thread(this);
> > t.start();
> > }
>
> > @Override
> > public void onReceive(Context context, Intent intent) {
> > //Received WiFi access point names, handle them
> > //Should I call wait on a sync object while syncronized with it for
> > said amount of time and then call notify???
> > syncrhonized(mSync){
> > mSync.wait(SLEEP_TIME);
> > mSync.notify();
> > }
> > }
>
> > @Override
> > public void run() {
> > while(running){
> > syncrhonized(mSync){
> > wifiMan.startScan();
> > }
> > }
>
> > }
> > }
>
> > Or would it make sense to just create a BroadcastReceiver object that
> > just calls Thread.sleep in the end of onReceive?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Capture keyEvent from view displayed by WindowManager.addView()

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 6:12 PM, Bruce Xia  wrote:
> I have a view which basically cover the full screen to capture key
> input. It works well if I add it to activity, but if I display it from
> background service using WindowManager.addView, it doesn't work.

Thank heavens! That would be a massive security flaw.

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

Android 3.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+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 Get List of all Devices Connected to the Same Wi-Fi Network

2011-04-15 Thread Robert
Well the particular devices that I will be connecting to are custom made, so 
I don't know the exact protocols they'll be given yet. Other than that, is 
there no generic way (common java-wifi stuff) that I am able to detect the 
devices over the network?

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

2011-04-15 Thread eagles78
hi,

I wrote a file browser a file browser for my application as first
step.
Second step, when ı select a file and click send button , I want to
send files to computer.
How can I do that?

Thanks.

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


Re: [android-developers] Calling a system service in fixed intervals within another service

2011-04-15 Thread Kostya Vasilyev
Use AlarmManager for this, it's more reliable and easier to use than coding
a thread with sleep/wait.
16.04.2011 2:24 пользователь "Diego Tori" 
написал:
> As the question implies, I am wondering how I could write a thread
> that would call a system service and then wait a certain amount of
> time before calling said system service's function that calls back to
> onReceive from a registered BroadcastReceiver.
>
> In other words, I am trying to call the Wifi scanning service
> (registering a BroadcastReceiver with IntentFilters) within my custom
> local service so I can get the current SSID's available and send them
> back to the activities that are bound to this service. I know what I
> will end up doing with the received data, which is not relevant to
> this question. However, I will need to wait a certain amount of time
> before calling startScan again within onReceive, and that is where I
> am trying to determine the best course of action.
>
> Here is what I have so far:
>
> class MyWifiScanner extends BroadcastReceiver implements Runnable{
> private boolean running;
> private final int SLEEP_TIME = 1;
> private Object mSync = new Object();
> WifiManager wifiMan;
> Thread t;
> public MyWifiScanner(){
> //receiver registered with intent filters
> wifiMan = (WifiManager)
> SSIDListenerService.this.getSystemService(Context.WIFI_SERVICE);
> t = new Thread(this);
> t.start();
> }
>
> @Override
> public void onReceive(Context context, Intent intent) {
> //Received WiFi access point names, handle them
> //Should I call wait on a sync object while syncronized with it for
> said amount of time and then call notify???
> syncrhonized(mSync){
> mSync.wait(SLEEP_TIME);
> mSync.notify();
> }
> }
>
> @Override
> public void run() {
> while(running){
> syncrhonized(mSync){
> wifiMan.startScan();
> }
> }
>
> }
> }
>
> Or would it make sense to just create a BroadcastReceiver object that
> just calls Thread.sleep in the end of onReceive?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Calling a system service in fixed intervals within another service

2011-04-15 Thread Diego Tori
As the question implies, I am wondering how I could write a thread
that would call a system service and then wait a certain amount of
time before calling said system service's function that calls back to
onReceive from a registered BroadcastReceiver.

In other words, I am trying to call the Wifi scanning service
(registering a BroadcastReceiver with IntentFilters) within my custom
local service so I can get the current SSID's available and send them
back to the activities that are bound to this service. I know what I
will end up doing with the received data, which is not relevant to
this question. However, I will need to wait a certain amount of time
before calling startScan again within onReceive, and that is where I
am trying to determine the best course of action.

Here is what I have so far:

class MyWifiScanner extends BroadcastReceiver implements Runnable{
private boolean running;
private final int SLEEP_TIME = 1;
private Object mSync = new Object();
WifiManager wifiMan;
Thread t;
public MyWifiScanner(){
//receiver registered with intent filters
wifiMan = (WifiManager)
SSIDListenerService.this.getSystemService(Context.WIFI_SERVICE);
t = new Thread(this);
t.start();
}

@Override
public void onReceive(Context context, Intent intent) {
//Received WiFi access point names, handle them
//Should I call wait on a sync object while syncronized 
with it for
said amount of time and then call notify???
syncrhonized(mSync){
mSync.wait(SLEEP_TIME);
mSync.notify();
}
}

@Override
public void run() {
while(running){
syncrhonized(mSync){
wifiMan.startScan();
}
}

}
}

Or would it make sense to just create a BroadcastReceiver object that
just calls Thread.sleep in the end of onReceive?

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

2011-04-15 Thread sblantipodi
I'm talking about SDK now, at the moment I'm interested in adding this
attribute
but I want to be sure that I will not have any problems with android
1.6.

In the docs is written that previous version of android simply skip
the attribute,
but I just wanted to have a confirmation of people who tryed building
level 4 apps using level 8 SDK.

On Apr 15, 2:30 pm, Marcin Orlowski  wrote:
> On 15 April 2011 13:13, sblantipodi  wrote:
>
> > > Ok, so you got the real reason :) In this case you have to use higher SDK
> > as
> > > I am not aware of any other trick you could use for Manifest to add new
> > > attribute and still be able to build against older SDK.
>
> > I have the real reason yes but if this reason will "damage" backward
> > compatibility. I will prefer to forget this real reason.
>
> No it won't. At least I do not see the chance assuming you will to do what
> you wrote you plan only.
>
> You are talking about obfuscation now or about compiling with SDK
>
> > Level 8 and maintain compatibility with Level 4?
>
> Obfuscation got nothing to do with SDK level and got nothing to do with
> Android at all. It's matter of obfuscating *Java* bytecode. So if you target
> android you have to add ProGuard (or other obfuscator of choice) in your
> build (or rather publishing, to save time) process. ProGuard is not
> android-only tool, nor Eclipse dependant. You simply needs to hand it
> compiler output to chew and then hand its output further to produce dalvik
> compatible bytecode.
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda * - keep you daily schedule handy...
> *Date In Tray*  - current date at glance...
> WebnetMobile on *Facebook * and
> *Twitter
> *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Capture keyEvent from view displayed by WindowManager.addView()

2011-04-15 Thread Bruce Xia
Hi,
I have a view which basically cover the full screen to capture key
input. It works well if I add it to activity, but if I display it from
background service using WindowManager.addView, it doesn't work.

Another quesiton is why onKeyDown/onKeyUp doesn't work? As you see I
have to use  setOnKeyListener(mkeylistener);


class myView extends TextView {
private Paint mLoadPaint;
private final String TAG="HUDView";

OnKeyListener mkeylistener= new OnKeyListener(){
public boolean onKey (View v, int keyCode, KeyEvent event){
Log.d("mkeylistener", "onKey:"+keyCode
+":Keyaction:"+event.getAction());
return true;
}
};
public myView(Context context) {
super(context);
//Toast.makeText(getContext(),"HUDView",
Toast.LENGTH_LONG).show();

mLoadPaint = new Paint();
mLoadPaint.setAntiAlias(true);
mLoadPaint.setTextSize(10);
mLoadPaint.setARGB(255, 255, 0, 0);
setOnKeyListener(mkeylistener);
setFocusable(true);
setFocusableInTouchMode(true);
this.setText("TEST");
this.setLayoutParams(new
LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
setOnFocusChangeListener(new View.OnFocusChangeListener(){

@Override
public void onFocusChange(View arg0, boolean 
arg1) {
// TODO Auto-generated method stub
Log.d(TAG, arg0.toString()+":"+arg1);
}

});
}
@Override
public boolean onKeyUp (int keyCode, KeyEvent event){
Log.d(TAG, "onKeyUp:keyCode"+keyCode);
return true;
}
@Override
public boolean onKeyDown (int keyCode, KeyEvent event){
Log.d(TAG, "onKeyDown:keyCode"+keyCode);
return true;
}
@Override
protected void onAttachedToWindow (){
Log.d(TAG, "onAttachedToWindow");
requestFocus();
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
//canvas.drawText("Hello World", 5, 15, mLoadPaint);
}

@Override
protected void onLayout(boolean arg0, int arg1, int arg2, int
arg3, int arg4) {
}

@Override
public boolean onTouchEvent(MotionEvent event) {
//return super.onTouchEvent(event);
Toast.makeText(getContext(),"onTouchEvent",
Toast.LENGTH_LONG).show();
Log.d(TAG,String.format("top:%d,bottom:%d,left:%d,right:%d",
this.getTop(),

this.getBottom(),this.getLeft(),this.getRight()));
Log.d(TAG,"ontouch, is focused?"+this.isFocused());
testactivity.this.finish();
return true;
}
 }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Action bar through compatibility lib on 1.x, 2.x API

2011-04-15 Thread Dianne Hackborn
The compatibility library provides fragments and loaders on pre-HC devices.
 It does not have any other major features; it just has a smattering of
helpers for small specific methods that don't exist on older platforms.

On Fri, Apr 15, 2011 at 7:47 AM, RS  wrote:

> Is the compatibility library expected to help with action bar on pre-
> honeycombs?
>
> Have been trying to get it to work in vain for long.
> Changed the sample that uses MenuCompat to show action irrespective of
> room. Still no luck.
> MenuCompat.setShowAsAction(item, MenuItem.SHOW_AS_ACTION_ALWAYS);
>
> What am I doing wrong? Or is it just to use fragments in options menu
> that show at the bottom of the screen?
>
> Thanks in advance.
> RS
> ps: The only relevant thread in this group was the one with Dianne
> Hackborn's reply asking us to properly try the samples out. Yes, I
> have already included the jar and the rest of the fragments*support
> stuff work well.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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: ANDROID IMAGE TRANSMISSION IN A LOOP CONTINUOUSLY

2011-04-15 Thread pedr0
Maybe you need a more basic tutorial, but you need:

1) Basic Layout and View tutorial

2) ImageView scaling and translate.

This is a very good tutorial for gesture handling and cover some of
prev topic

http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-3-understanding-touch-events/1775


On 15 Apr, 07:22, Raghavaraju K 
wrote:
> HI,
>   I am a new  to android programming  and  I want to know how to move
> an image in a loop continuously on android layout
>
> 1)    I have stored the Image in res/drawable folder
> 2)   The Image which I stored is a hand Image and that Image should
> show the button which is at the bottom of the    layout
>
> 3)   The hand Image should move up and down in the middle of the
> layout continuously in a loop
>
> PLEASE HELP ME WITH THE SAMPLE CODE FOR THIS
>
> Help is always appreciated
> Thanks

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


Re: [android-developers] Activity#onRetainNonConfigurationInstance vs Fragment#setRetainInstance

2011-04-15 Thread Dianne Hackborn
Sorry, you just can't re-use a WebView across config changes -- a view is
instantiated with a Context it runs in, which is the Activity that created
it.  You can't change this context later, when you have a new Activity
instance.

On Fri, Apr 15, 2011 at 8:33 AM, Shri  wrote:

> I have a WebView in my Activity which I want to reuse across config
> changes so that the webpage does not get reloaded after every
> orientation change. I can use
> Activity#onRetainNonConfigurationInstance/getLastConfigurationInstance
> for this. However, I have heard that Fragment#setRetainInstance is
> better for this purpose. This does not seem correct if there are other
> Views involved which should be recreated after a config change (eg.
> TextView which should be recreated after a locale change so that new
> string resources can be picked up). I could keep only the WebView in a
> Fragment, and all other Views in the Activity, but then either
> approach seems good enough.
>
> Just checking that Activity#onRetainNonConfigurationInstance/
> getLastConfigurationInstance are not considered to be bad practice
> going forward.
> http://developer.android.com/guide/topics/resources/runtime-changes.html
> only mentions these apis anyway, not Fragment#setRetainInstance.
>
> Thanks
> Shri
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: How to Get List of all Devices Connected to the Same Wi-Fi Network

2011-04-15 Thread Kostya Vasilyev

Robert,

You need to do *something* like that, enumerating the devices on the 
network.


How exactly, well, probably not with address.isReachable(), as that 
seems to be unreliable (search the group for more information).


The right way is going to depend on what exactly you are trying to discover.

For example, there is a UPnP discovery protocol for UPnP devices (Google 
for Java libraries that can do that).


You can also discover NetBIOS nodes, but in a different way from 
discovering UPnP devices.


Etc, etc, etc.

-- Kostya

16.04.2011 1:01, Robert ?:

I've even tried this piece of code:

   byte[] ip = InetAddress.getLocalHost().getAddress();

   for (int i=1; i<=254; i++)
   {
  ip[3] = (byte)i;
  InetAddress address = InetAddress.getByAddress(ip);

  if (address.isReachable(1000))
 Log.d(LOG_TAG, "Name: " + address.getHostAddress());
   }

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



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

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

[android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread String
Have you tried my suggestion from early on in the thread: profile your app when 
the debugger is attached to see where the slowdown is? Bonus points for 
comparing it to a profile without the debugger. 

If you need help with the profiler, start here:
http://android-developers.blogspot.com/2010/10/traceview-war-story.html

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: How to Get List of all Devices Connected to the Same Wi-Fi Network

2011-04-15 Thread Robert
I've even tried this piece of code:

   byte[] ip = InetAddress.getLocalHost().getAddress();

   for (int i=1; i<=254; i++)
   {
  ip[3] = (byte)i;
  InetAddress address = InetAddress.getByAddress(ip);

  if (address.isReachable(1000))
 Log.d(LOG_TAG, "Name: " + address.getHostAddress());
   }

But all I get is the loopback address.

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

2011-04-15 Thread Sahil Verma
For sample code of what I was doing, you could take a look here:

https://github.com/vermasque/song-alarm/blob/master/src/org/vermasque/songalarm/SongAlarmActivity.java

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

2011-04-15 Thread Sahil Verma
I've had this same problem too and actually posted to the mailing list a few 
weeks ago but got not responses:

https://groups.google.com/d/topic/android-developers/6GfbdsJIj9k/discussion

I was testing it on hardware by simply rotating the phone, changing the 
orientation and recreating the activity.  However, the problem occurred 
randomly for me; it was very hard to reproduce as instance state would be 
restored after most orientation changes.  On a handful of occasions, the 
instance state would be wiped out as my UI would display as if started anew. 
 I have no solution so far.  I did a search some time back on the Android 
issues list at Google Code to see if it was a known bug, but I found 
nothing.

One workaround would be to persistently store the state which you wish to be 
restored in onPause.  If the state bundles in onCreate or 
onRestoreInstanceState are not filled, you could restore from persistent 
state.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do I change screen orientation from ADB or equivalent?

2011-04-15 Thread Bill Napier
Then again, I just tried it with the Nexus S and it doesn't work.  It may
work on devices with keyboards like Droid.  Here's how I tested it:

$ adb shell "monkey --port "
$ adb forward tcp: tcp:
$ telnet localhost 
Connected to localhost.
Escape character is '^]'.
flip open
OK
flip close
OK

And nothing happened on my phone.  It may actually work on a device that has
a flip out keyboard (G1 or droid for example), but I don't have one handy.

On Fri, Apr 15, 2011 at 11:24 AM, Bill Napier  wrote:

> It looks like the "flip" command from the protocol that monkeyrunner uses
> may do it for you.  It looks like it never got added to MonkeyDevice to be
> exposed as part of the monkeyrunner API.
>
>
> http://android.git.kernel.org/?p=platform/development.git;a=blob;f=cmds/monkey/README.NETWORK.txt;h=4e78b6c8b05225900b923da0122a85037949abc0;hb=HEAD
>
> On Thu, Apr 14, 2011 at 4:26 AM, lbendlin  wrote:
>
>> Well, the monkey can do it (change orientation, that is)  so you might be
>> able to learn how to do it from the monkey source code.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>



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

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

Re: [android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread Streets Of Boston
I agree with you about the *simulator/emulator*. If you don't have an 
absolute stellar system (and even then...), the emulator can be very slow.
But Eric's problem is with an actual device, not the emulator and Google is 
acknowledging the problem with the emulator. 
And I haven't seen the issues that he's describing when debugging on his 
device. 

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

2011-04-15 Thread jtoolsdev
I'm seeing that too and there are other posts on the forum reporting
it.  It is either a bug or we need something extra in the layout
declarations or manifest. But screens that size aren't really
documented yet.  My splash screen is fine and when I select the button
to take me to the next one the entire screen, not just my app screen,
is upside down (including the title bar, icons, etc).

I'm running a 64-bit AMD three core machine with Ubuntu 10.04 64-bit,
4 GB memory.  The emulator comes up fairly fast (1-2 minutes) and is
responsive.

On Apr 15, 12:55 pm, Manish Garg  wrote:
> Hi All,
>
> My system has 2GB ram but it becomes unresponsive when I run Table 3.0
> emulator. Can someone suggest sd card size, ram and vm setting.
>
> On Apr 4, 3:46 pm, Manish Garg  wrote:
>
> > Hi,
>
> > Mh application runs in portrait mode. when i am trying to run
> > application on honeycomb it is coming as up side down. Can some one
> > help me on that.
>
> > Is there some way to launch emulator directly in the portrait mode.
>
>

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

2011-04-15 Thread Manish Garg
Hi All,

My system has 2GB ram but it becomes unresponsive when I run Table 3.0
emulator. Can someone suggest sd card size, ram and vm setting.

On Apr 4, 3:46 pm, Manish Garg  wrote:
> Hi,
>
> Mh application runs in portrait mode. when i am trying to run
> application on honeycomb it is coming as up side down. Can some one
> help me on that.
>
> Is there some way to launch emulator directly in the portrait mode.

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

2011-04-15 Thread Leigh McRae


Fair enough.  I'm just saying.  I will put up a sample when the lone in 
Lone Dwarf Games Inc becomes many, but for now I just can't.


On 4/15/2011 3:01 PM, Mark Murphy wrote:

On Fri, Apr 15, 2011 at 2:55 PM, Leigh McRae
  wrote:

This problem has been brought up before and I know at least one other person
on this list has mentioned it.  I just did a test and my game takes 35
seconds to load to the main menu when launched from eclipse using a
simulator.  When I debug using a simulator with no break points at all, it
takes over 8 minutes to load.  So the problem is real.  Just because people
don't complain doesn't mean they aren't suffering.

However, if they don't provide reproducible scenarios (e.g., a
complete Android project that, when debugged on their machine,
exhibits this behavior), it will be difficult for anyone to actually
fix anything.

If there is such a project loaded into b.android.com that you know of,
send out a link.



--
Leigh McRae
http://www.lonedwarfgames.com/

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


Re: [android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 2:55 PM, Leigh McRae
 wrote:
> This problem has been brought up before and I know at least one other person
> on this list has mentioned it.  I just did a test and my game takes 35
> seconds to load to the main menu when launched from eclipse using a
> simulator.  When I debug using a simulator with no break points at all, it
> takes over 8 minutes to load.  So the problem is real.  Just because people
> don't complain doesn't mean they aren't suffering.

However, if they don't provide reproducible scenarios (e.g., a
complete Android project that, when debugged on their machine,
exhibits this behavior), it will be difficult for anyone to actually
fix anything.

If there is such a project loaded into b.android.com that you know of,
send out a link.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-04-15 Thread Leigh McRae
This problem has been brought up before and I know at least one other 
person on this list has mentioned it.  I just did a test and my game 
takes 35 seconds to load to the main menu when launched from eclipse 
using a simulator.  When I debug using a simulator with no break points 
at all, it takes over 8 minutes to load.  So the problem is real.  Just 
because people don't complain doesn't mean they aren't suffering.


The good news is that you can run your app and them use DDM to attach to 
the simulator.  So for myself, unless I'm debugging the start up of my 
game, I run then attach later.   This issue was the main reason I added 
j2se/PC support to my engine.   Developing the bulk of my games on the 
PC is a huge win.



On 4/15/2011 1:23 PM, Mark Murphy wrote:

On Fri, Apr 15, 2011 at 12:39 PM, Eric  wrote:

  What does Eclipse vs. IDEA have to do with any of
this?

Debugging, apparently. Personally, I use neither of them much.


  I do not have any
watches or breakpoints activated.

Just because *you* don't have anything like that activated does not
mean that the *IDE* is not doing something that might use debugging
interfaces that might be slowing things down. Clearly, something's
going on. And we need to determine whether that issue resides
principally in Jetbrains' code or Google's.


I am just running the application
through the debug interface.

Right. And when you tried debugging it via Eclipse, instead of IDEA,
what happened?

If Eclipse is similarly slow, then we can proceed to try to figure out
what is unusual about your application or device, since this is not a
widespread problem.

If, however, Eclipse runs normally, then there's something Jetbrains
is doing that is causing particular difficulty with you, your app, and
your device, and you should take this up with Jetbrains.



--
Leigh McRae
http://www.lonedwarfgames.com/

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


Re: [android-developers] Re: SQLiteDatabase

2011-04-15 Thread Android K
Thanks for the replies.  ContentProvider worked for me.

On Fri, Apr 15, 2011 at 11:16 AM, lbendlin  wrote:

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

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

[android-developers] How to Get List of all Devices Connected to the Same Wi-Fi Network

2011-04-15 Thread Robert
I'm relatively new to Network/Socket programming so I haven't dabbled too 
much into it.

As my phone is connected to a particular Wi-Fi network, I want to get a list 
of all other devices (phone, computer, or other misc) that are connected to 
the same network. One of the ways that I tried to accomplish this was this:

   Enumeration   address;
   Enumeration   nets;

   nets = NetworkInterface.getNetworkInterfaces();
   for (NetworkInterface netint : Collections.list(nets))
   {
  address = netint.getInetAddresses();
  for (InetAddress inetAddress : Collections.list(address))
  {
 Log.d(LOG_TAG, "Host name: " + inetAddress.getHostName() +
"   IP: " + inetAddress);
  }
   }

However, all I get is the phone's IP address and a loopback call with 
LocalHost. I get the same result with this code:

   InetAddress host = InetAddress.getLocalHost();
   InetAddress[] address = InetAddress.getAllByName(host.getHostName());

   for (InetAddress result : address)
  {
 Log.d(LOG_TAG, "IP Address:: " + result.getHostName());
  }


When trying to search for this, I've only come across how to detect multiple 
networks but not devices. Does anyone know of a way I can retrieve this 
list?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android Apps, move apps into phone's memory, or switch them into external memory.

2011-04-15 Thread Android K
I agree. But there should be some benefit of doubt rather than arrogant
answers. You don't need to be Android expert to say "Read documentation".

On Fri, Apr 15, 2011 at 11:21 AM, Streets Of Boston  wrote:

> This is a developer forum and most of us do expect that before you ask any
> questions that you have done some searching yourself. If not, the same
> questions are going to be asked over and over again. And if you're not
> willing to read (god forbid to open a booklet to find some answers, ow! my
> eyes!!), then there is always Google or Bing or any of the other
> search-engines.
>
> If you still have some Android development questions left after doing the
> reading and searching, then it's time to start posting questions on this
> forum.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread Android K
I hear you brother!

On Fri, Apr 15, 2011 at 1:41 PM, Eric  wrote:

>
>
> On Apr 15, 1:23 pm, Mark Murphy  wrote:
> > > I do not have any
> > > watches or breakpoints activated.
> >
> > Just because *you* don't have anything like that activated does not
> > mean that the *IDE* is not doing something that might use debugging
> > interfaces that might be slowing things down. Clearly, something's
> > going on. And we need to determine whether that issue resides
> > principally in Jetbrains' code or Google's.
>
> Fair enough.  I don't have enough time right now to be doing QA for
> Google.  But I thank you for your 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
>

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

Re: [android-developers] Eclipse Loan calculator help!

2011-04-15 Thread Android K
What is the error that you get?

On Thu, Apr 14, 2011 at 2:06 AM, Jester  wrote:

> Hello all!
>
> I'm starting out and new to the development of android applications
> and also new to the java programming.  I'm trying to make a app that
> will allow me to calculate a loan but I am running into some trouble
> and need assistance.  Having virtually 0 experience with java I
> researched java code that I could use but it did not seem to convert,
> I have went through and tried to changed most the of the what I
> thought needed to be changed but eclipse does not seem to recognize
> what a "parseDouble" is.  How can I make this code work? below is the
> code that i have in my main java file:
>
> package com.android.loancalc;
>
> import java.text.DecimalFormat;
> import java.text.NumberFormat;
>
> import com.project.calculator.R;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.util.Log;
> import android.view.View;
> import android.widget.Button;
> import android.widget.TextView;
>
>
> public class main extends Activity
> {
> double principal; // original principal
>
>  double intRate; // interest rate
>
>  double numYears; // length of loan in years
>
>  final int payPerYear = 12;
>  NumberFormat nf;
>
>public void onCreate(Bundle savedInstanceState)
>{
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>final DecimalFormat df = new DecimalFormat ("#,###.##");
>
>final TextView txtAnswer =
>(TextView) findViewById(R.id.txt_payments);
>
>Button btCal = (Button) findViewById(R.id.bt_calc);
>
>btCal.setOnClickListener(new View.OnClickListener()
>
>{
>
>public void onClick(View arg0)
>{
>double result = 0.0;
>
>TextView amountStr = (TextView)
> findViewById(R.id.txt_pricipal);
>TextView periodStr = (TextView)
> findViewById(R.id.txt_years);
>TextView rateStr = (TextView)
> findViewById(R.id.txt_interest);
>
>try {
>if (amountStr.length() != 0 &&
> periodStr.length() != 0
>  && rateStr.length() != 0)
> {
>
>principal =
> Double.parseDouble(amountStr);
>numYears =
> Double.parseDouble(periodStr);
>intRate =
> Double.parseDouble(rateStr) / 100;
>
>result = compute();
>
>
>  txtAnswer.setText(nf.format(result));
>}
>
>}
>catch (NumberFormatException exc)
>{
>txtAnswer.setText("Opps");
>
>  Log.v("myApp",exc.toString());
>}
>}
>
>
>double compute()
>{
>double numer;
>double denom;
>double b, e;
>
>numer = intRate * principal / payPerYear;
>
>e = -(payPerYear * numYears);
>b = (intRate / payPerYear) + 1.0;
>
>denom = 1.0 - Math.pow(b, e);
>
>return numer / denom;
>}
>});
>}
> }
>
>
> Thanks for the help!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do I change screen orientation from ADB or equivalent?

2011-04-15 Thread Bill Napier
It looks like the "flip" command from the protocol that monkeyrunner uses
may do it for you.  It looks like it never got added to MonkeyDevice to be
exposed as part of the monkeyrunner API.

http://android.git.kernel.org/?p=platform/development.git;a=blob;f=cmds/monkey/README.NETWORK.txt;h=4e78b6c8b05225900b923da0122a85037949abc0;hb=HEAD

On Thu, Apr 14, 2011 at 4:26 AM, lbendlin  wrote:

> Well, the monkey can do it (change orientation, that is)  so you might be
> able to learn how to do it from the monkey source code.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Android Debugger is DOG Slow

2011-04-15 Thread Eric


On Apr 15, 12:47 pm, Streets Of Boston 
wrote:
> At what point does your app start running slowly:
> - Initially, don't start DDMS or Jetbrain or Eclipse.
> - Run the app on your phone which is unconnected. Does it run OK or slow?
> - Then connect your phone to your Mac through USB: Does the app still run
> OK?
> - Then start DDMS (not Jetbrain or Eclipse). Check if DDMS 'sees' your
> connected phone. Does the app still run OK?
> - In DDMS, get some heap info or examine threads running in your app? Does
> the app still run OK?
> - Close DDMS and start Jetbrain. Does the app still run OK?
> - In Jetbrain, in the DDMS view, connect to your device. Does your app start
> running slowly?

Thank you for your suggestions.  Closing IDEA and running DDMS still
results in a slow running app on the phone device.  In any event,
since absolutely nobody else seems to experience a debugging situation
that is painfully slow, I will have to unfortunately assume that some
aspect of my application (i.e. high level of network traffic, and high
level of UI updates popped off the background thread), is somehow
causing the ADB interface to get fried.  I have no problems with this
functionality without the debugger (IDEA, DDMS, whatever you want to
attach), but they pop up with the debugging session attached.

The other disadvantage that I have is that we have a very nice
simulation environment available to us on iOS, and the lack of which
on Android, coupled with these debugging problems, is making it
difficult for me to justify shipping my app on Android too.

Thank you,
Eric


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


Re: [android-developers] Eclipse Loan calculator help!

2011-04-15 Thread TreKing
On Thu, Apr 14, 2011 at 1:06 AM, Jester  wrote:

> Having virtually 0 experience with java I researched java code that I could
> use but it did not seem to convert, I have went through and tried to changed
> most the of the what I thought needed to be changed but eclipse does not
> seem to recognize what a "parseDouble" is.
>

If you have "virtually 0 experience with java", then you need to stop and go
learn Java. Randomly changing code samples without understanding the changes
you're making isn't going to get you very far.


> How can I make this code work?
>

To be perfectly frank: learn Java. This is a simple Java problem and
moreover has nothing to do with Android specifically.
Once you have a better grasp of the language you will understand why Eclipse
does not recognize "parseDouble".

I'll also suggest you learn to use Eclipse itself, for not only will it tell
you exactly what the problem is, but usually offers suggestions on how to
fix it and often does so automatically for you on the spot.

Good luck.

-
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: regarding monkey runner Tool

2011-04-15 Thread Bill Napier
Hi,

I'm going to start taking the same support stance the other android devs on
this list take.  I can't answer private questions, but I can respond to
questions posted on the list.

In this case, you can just use the same device object each time:

device = MonkeyRunner.waitForConnection()
img1 = device.takeSnapshot()
img1 = device.takeSnapshot()
img1 = device.takeSnapshot()

I will warn you that this is very slow.  In my tests, the fastest I could
get was around 3FPS.

Bill

On Tue, Apr 12, 2011 at 11:07 PM, abhilash pujari
wrote:

> Hi,
>
> i am working on Monkey Runner. I am taking screenshots of device after
> every time.But to minimize time frame of the functionality of MonkeyRunner
> i want to avoid the device connection call everytime.
>
> # Connects to the current device, returning a MonkeyDevice object
>
> device = MonkeyRunner.waitForConnection()
>
> How to handle this ? can it doable in python or can we do it from android ? 
> if yes how to do it?
>
>
> regards
> Abhilash
>
>

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

2011-04-15 Thread Kristopher Micinski
Great, we'll make sure to tell Google about this one. Thanks!

Kris

On Fri, Apr 15, 2011 at 1:52 PM, Eric  wrote:

>
>
> On Apr 15, 1:46 pm, TreKing  wrote:
> > On Fri, Apr 15, 2011 at 12:40 PM, Eric  wrote:
> > > In any event, since absolutely nobody else seems to experience a
> debugging
> > > situation that is painfully slow, I will have to unfortunately assume
> that
> > > some aspect of my application (i.e. high level of network traffic, and
> > > high level of UI updates popped off the background thread), is
> > > somehow causing the ADB interface to get fried.
> >
> > Did you try Eclipse yet? (Take *that*, dead horse ...)
>
> I did something even better, I tried DDMS.  Same result.  Thank you.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2011-04-15 Thread TreKing
On Wed, Apr 13, 2011 at 1:01 PM, D|3-H4rD  wrote:

> First, can I do this?


Probably if you build your own firmware. Have fun.

-
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: Android Debugger is DOG Slow

2011-04-15 Thread Eric


On Apr 15, 1:46 pm, TreKing  wrote:
> On Fri, Apr 15, 2011 at 12:40 PM, Eric  wrote:
> > In any event, since absolutely nobody else seems to experience a debugging
> > situation that is painfully slow, I will have to unfortunately assume that
> > some aspect of my application (i.e. high level of network traffic, and
> > high level of UI updates popped off the background thread), is
> > somehow causing the ADB interface to get fried.
>
> Did you try Eclipse yet? (Take *that*, dead horse ...)

I did something even better, I tried DDMS.  Same result.  Thank you.

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


Re: [android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread TreKing
On Fri, Apr 15, 2011 at 12:40 PM, Eric  wrote:

> In any event, since absolutely nobody else seems to experience a debugging
> situation that is painfully slow, I will have to unfortunately assume that
> some aspect of my application (i.e. high level of network traffic, and
> high level of UI updates popped off the background thread), is
> somehow causing the ADB interface to get fried.
>

Did you try Eclipse yet? (Take *that*, dead horse ...)

-
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: Android Debugger is DOG Slow

2011-04-15 Thread Eric


On Apr 15, 1:23 pm, Mark Murphy  wrote:
> > I do not have any
> > watches or breakpoints activated.
>
> Just because *you* don't have anything like that activated does not
> mean that the *IDE* is not doing something that might use debugging
> interfaces that might be slowing things down. Clearly, something's
> going on. And we need to determine whether that issue resides
> principally in Jetbrains' code or Google's.

Fair enough.  I don't have enough time right now to be doing QA for
Google.  But I thank you for your 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: ANR Camera Button Long Press Event

2011-04-15 Thread lbendlin
I have never tried to do a long press on the camera button - need to test my 
app for that (it also uses the camera activity)

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

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 12:39 PM, Eric  wrote:
> What does Eclipse vs. IDEA have to do with any of
> this?

Debugging, apparently. Personally, I use neither of them much.

> I do not have any
> watches or breakpoints activated.

Just because *you* don't have anything like that activated does not
mean that the *IDE* is not doing something that might use debugging
interfaces that might be slowing things down. Clearly, something's
going on. And we need to determine whether that issue resides
principally in Jetbrains' code or Google's.

> I am just running the application
> through the debug interface.

Right. And when you tried debugging it via Eclipse, instead of IDEA,
what happened?

If Eclipse is similarly slow, then we can proceed to try to figure out
what is unusual about your application or device, since this is not a
widespread problem.

If, however, Eclipse runs normally, then there's something Jetbrains
is doing that is causing particular difficulty with you, your app, and
your device, and you should take this up with Jetbrains.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-04-15 Thread TreKing
On Fri, Apr 15, 2011 at 11:39 AM, Eric  wrote:

> What does Eclipse vs. IDEA have to do with any of this?
>

You mean besides the fact that all of using Eclipse have no problem and you,
the lone person using IDEA, are?

-
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] Count network traffic for each activity

2011-04-15 Thread Rajesh Rathod
Hi,

we can get overall network bandwidth usage for mobile and wifi by varieties
of way but is it possible to find bandwidth usage by each individual
activity?

I am juggling for this since last so many days but could not find anything
useful.

Thanks in advance.

-- 
Regards,
Rajesh Rathod
Sr. Software Engineer,
Ahmedabad, India.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Action bar through compatibility lib on 1.x, 2.x API

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 12:36 PM, RS  wrote:
> Thanks Mark, shall try it out. Is that example (on git) for 3.0 only
> or would it work on pre-honeycombs with the compatibility lib changes?

Any of my sample projects that end in BC -- such as that one -- are
backwards-compatible to older Android versions.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-04-15 Thread Igor Nesralla Ribeiro
Mark,

Thanks again...but i'm searching on a google...and I found a Google Driving
Directions...that API is exactly I'm looking for...

Best regards !
Igor

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy
Sent: sexta-feira, 15 de abril de 2011 12:00
To: android-developers@googlegroups.com
Subject: Re: [android-developers] trace a route in mapview

On Fri, Apr 15, 2011 at 10:55 AM, Igor Nesralla Ribeiro 
wrote:
> Thanks for the answer I'm newbie on android develop...and I see 
> that you a commonsguy on a commonsware...i bought a commons e-book to 
> start develop...help me a lot !!!

Great!

> How to do this find a third party ?!

If you are looking for something free/cheap, I'd start here:

http://wiki.openstreetmap.org/wiki/Routing

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-04-15 Thread Streets Of Boston
At what point does your app start running slowly:
- Initially, don't start DDMS or Jetbrain or Eclipse.
- Run the app on your phone which is unconnected. Does it run OK or slow?
- Then connect your phone to your Mac through USB: Does the app still run 
OK?
- Then start DDMS (not Jetbrain or Eclipse). Check if DDMS 'sees' your 
connected phone. Does the app still run OK?
- In DDMS, get some heap info or examine threads running in your app? Does 
the app still run OK?
- Close DDMS and start Jetbrain. Does the app still run OK?
- In Jetbrain, in the DDMS view, connect to your device. Does your app start 
running slowly?
- Close Jetbrain.

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

2011-04-15 Thread Eric


On Apr 15, 12:11 pm, Mark Murphy  wrote:

> When you contacted your IDE vendor (Jetbrains) regarding your problem
> with their product, what did they tell you?

> When you tested your application in Eclipse -- to prove that the
> problem is in Google's code and not Jetbrains' -- what did you find?

The application is running on the device, not on my machine.  It is
slow on the device.  What does Eclipse vs. IDEA have to do with any of
this?  The debugging interface on the device is causing the
application to not perform well ON the device.  I do not have any
watches or breakpoints activated.  I am just running the application
through the debug interface.

- Eric

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

2011-04-15 Thread Eric


On Apr 15, 11:48 am, Kristopher Micinski 
wrote:
> However, insulting Google makes you look unintelligible (I'm guessing that
> calling it a "simulator" doesn't win many points either.)

I never called the debugger a simulator.  Maybe I should have never
called the painful emulator a simulator, that is giving it too much
credit.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Action bar through compatibility lib on 1.x, 2.x API

2011-04-15 Thread RS
Thanks Mark, shall try it out. Is that example (on git) for 3.0 only
or would it work on pre-honeycombs with the compatibility lib changes?

On Apr 15, 4:00 pm, Mark Murphy  wrote:
> On Fri, Apr 15, 2011 at 10:47 AM, RS  wrote:
> > Is the compatibility library expected to help with action bar on pre-
> > honeycombs?
>
> Not much, but you do not really need it.
>
> > Have been trying to get it to work in vain for long.
> > Changed the sample that uses MenuCompat to show action irrespective of
> > room. Still no luck.
> > MenuCompat.setShowAsAction(item, MenuItem.SHOW_AS_ACTION_ALWAYS);
>
> Use menu XML resources and android:showAsAction.
>
> https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-04-15 Thread Pandi
My Device is having physical camera button. I am using Standard camera
activity from google.

On Apr 15, 9:16 pm, lbendlin  wrote:
> Does your device have a physical camera button?  Are you using the standard
> camera activity or did you create your own?

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

2011-04-15 Thread Eric


On Apr 15, 11:37 am, Streets Of Boston 
wrote:
> In my experience, apps run somewhat slower in the debugger, but not by much.
> It is certainly not 'utterly unusable' slow.
> If you do experience a very very slow performance while debugging, it may
> help us answer or solve your problem to describe what your setup is. Maybe
> some issue in the USB communication on your dev-environment? Maybe something
> else?

Ok, I can supply some info, but I don't think it will help.  The
problem is with the debugger, not my setup.  That is why my post was
terse, prompting Google to get their act together.

I have a NexusOne device running 2.3.3 hooked up to my 8-core Mac Pro
via the standard USB cable.  I am running the debugger shipped with
Jetbrains IDEA, which connects to the standard Android ADB.  My app
fires off a background communication thread after log in, where a
variety of financial market data is shipped to the phone via a very
efficient package in real time, and unmarshalled and popped to the
screen on the UI thread.  The app and its paradigm is fully proven by
a shipping iOS app, which performs extremely well inside, and outside,
the debugger.  The Android app performs well outside the debugger.
When I run it in the debugger, it is painfully slow (seconds of delay,
not ms).  The only changing variable there is the debugger.  Period.
And again, I won't even mention the awful Android simulator, because
my app barely even starts up on that.



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


[android-developers] Re: ANR Camera Button Long Press Event

2011-04-15 Thread lbendlin
Does your device have a physical camera button?  Are you using the standard 
camera activity or did you create your own?

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

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 11:53 AM, Eric  wrote:
> Ok, I can supply some info, but I don't think it will help.  The
> problem is with the debugger, not my setup.  That is why my post was
> terse, prompting Google to get their act together.

And as soon as you demonstrate proof that Google's the source of the
difficulty, I doubt you'll get any quibbles. However, casting blame
without proof is not going to win you friends.

> I am running the debugger shipped with
> Jetbrains IDEA

You will notice that "Jetbrains" is not "Google", except perhaps via
some sort of encryption algorithm.

> The only changing variable there is the debugger.  Period.

When you contacted your IDE vendor (Jetbrains) regarding your problem
with their product, what did they tell you?

When you tested your application in Eclipse -- to prove that the
problem is in Google's code and not Jetbrains' -- what did you find?

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-04-15 Thread TreKing
On Fri, Apr 15, 2011 at 10:53 AM, Eric  wrote:

> Ok, I can supply some info, but I don't think it will help.
>

Better more information than not enough, usually.


> That is why my post was terse, prompting Google to get their act together.
>

I don't think this is going to prompt Google to do anything.


> I am running the debugger shipped with Jetbrains IDEA
>

Well, that's a pretty key piece of information. Most people use Eclipse so I
think most of us assumed you meant the *Eclipse* debugger.


> , And again, I won't even mention the awful Android simulator
>

You just did ...

-
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: Android Debugger is DOG Slow

2011-04-15 Thread Streets Of Boston
The one main difference between my setup and yours is that your use 
Jetbrains. I'm using Eclipse 3.6. Have you tried using Eclipse?
What is your performance if you just fire up 'ddms' (not Jetbrains or any 
other IDE) and dump the heap or take a look at your apps' threads?

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

2011-04-15 Thread Shri
I have a WebView in my Activity which I want to reuse across config
changes so that the webpage does not get reloaded after every
orientation change. I can use
Activity#onRetainNonConfigurationInstance/getLastConfigurationInstance
for this. However, I have heard that Fragment#setRetainInstance is
better for this purpose. This does not seem correct if there are other
Views involved which should be recreated after a config change (eg.
TextView which should be recreated after a locale change so that new
string resources can be picked up). I could keep only the WebView in a
Fragment, and all other Views in the Activity, but then either
approach seems good enough.

Just checking that Activity#onRetainNonConfigurationInstance/
getLastConfigurationInstance are not considered to be bad practice
going forward. 
http://developer.android.com/guide/topics/resources/runtime-changes.html
only mentions these apis anyway, not Fragment#setRetainInstance.

Thanks
Shri

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

2011-04-15 Thread TreKing
On Fri, Apr 15, 2011 at 10:20 AM, Eric  wrote:

> What else do you want to know??
>

To quote myself: "... all the relevant variables (OS, Eclipse version, ADT
version, any logs, etc, etc)".


> When I run it outside the debugger, it performs satisfactorily.  The only
> changing variable is the debugger.
>

The debugger is not a monolithic thing - many things can go wrong.
Your USB connection could be fried.
You could have faulty installation of Eclipse that breaks the debugger.
You could be calling a function that sleeps for 1 second at a time if the
debugger is attached, for all we know.


> We can pretend the debugger is fast, like some of the follow up posts have
> done
>

I don't think any of us stating our environments work fine are "pretending".


> or we can discuss why Google can't provide developers with a decent
> debugging environment (LET ALONE a simulator that is even remotely usable).
>

Or you could stop ranting and follow the steps I outlined in my first post
to post *useful* feedback about the problem you're having via the
appropriate channels. Assuming you actually want help with the issue and are
not just venting.

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

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

Re: [android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread Kristopher Micinski
On Fri, Apr 15, 2011 at 11:20 AM, Eric  wrote:

>
> On Apr 14, 11:22 pm, TreKing  wrote:
> > I have a Nexus One with 2.3.3 installed as well and it runs just fine for
> > me.
> > A very real possibility is that the "complete crap environment" is your
> own.
> > It would be hard to tell, though, from the complete lack of information
> in
> > your post. "It's slow" doesn't tell us much.
>
> What else do you want to know??


 Oh, sorry, I think you didn't get the previous email, where this was
mentioned:
*
*
*Including all the relevant variables (OS, Eclipse version, ADT version, any
logs, etc, etc), with a polite request for help.*

This should answer that question : ).

When I run my app in the debugger, it
> is unusably slow.  When I run it outside the debugger, it performs
> satisfactorily.  The only changing variable is the debugger.  I have a
> lot of network communication going on in a background thread.  When I
> run the app in the debugger, the screens immediately become
> unresponsive, whereas outside the debugger there is no noticeable
> change in performance.
>
>
Perhaps, I've had that happen once or twice, but typically my development
environment runs pretty quick, even on emulator.  I can notice some
difference when using the debugger but not noticable enough to cause
problems (how big is your app?  Probably not very, so you shouldn't see
problems either).



> We can pretend the debugger is fast, like some of the follow up posts
> have done, or we can discuss why Google can't provide developers with
> a decent debugging environment (LET ALONE a simulator that is even
> remotely usable).


And right, some of the Google developers are on this list, and I'm sure
they'd contend what you're saying.


>

- Eric


Ultimately, I'm sure people would be glad to help you: typical use of the
debugger is not noticeable enough  to cause development issues, if you're
having that much trouble something is probably wrong in your setup or app.
 But you'll first have to give a detailed description of what code causes
problems, how you've diagnosed it (i.e., I started up emulator and broke at
line 232 of this file, function presented here, and my build set is, etc...)
However, insulting Google makes you look unintelligible (I'm guessing that
calling it a "simulator" doesn't win many points either.)

So if you'd like more assistance with the matter please try again with more
detailed code and build environment description.

Kris

P.s., you should have expected bad responses if you go on a random user
group and say (essentially) "this is bad, you suck."

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

2011-04-15 Thread Pandi
This is on Gingerbread

On Apr 15, 8:40 pm, Pandi k  wrote:
> Hi,
>
> I have an issue in camera button long press event.
>
> Issue :
> When I press and hold camera button, multiple times onpause is getting
> called in applicaiton.
> Is this expected behavior? and also my camera getting stop preview and start
> preview. After some times, ANR coming.
>
> Some times, onpause is not getting called and at this time, camera works
> fine. no stop preview called from on pause.
>
> Which one is correct in above two behavior ? or both?
>
> How to take this to solve and any ideas
>
> Thanks U...
>
> Regards,
> Pandi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] building hello-jni sample in Android NDK causes error “Default target help does not exist in this project”

2011-04-15 Thread Marcin Orlowski
On 15 April 2011 17:36, longingtoadopt.com  wrote:

> Trying to build hello-jni sample in Android NDK. Followed instructions
>

NDK related group is here: http://groups.google.com/group/android-ndk

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook * and
*Twitter
*

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

2011-04-15 Thread Pandi k
Hi,

I have an issue in camera button long press event.

Issue :
When I press and hold camera button, multiple times onpause is getting
called in applicaiton.
Is this expected behavior? and also my camera getting stop preview and start
preview. After some times, ANR coming.

Some times, onpause is not getting called and at this time, camera works
fine. no stop preview called from on pause.

Which one is correct in above two behavior ? or both?

How to take this to solve and any ideas

Thanks U...

Regards,
Pandi

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

2011-04-15 Thread Streets Of Boston
In my experience, apps run somewhat slower in the debugger, but not by much. 
It is certainly not 'utterly unusable' slow.
If you do experience a very very slow performance while debugging, it may 
help us answer or solve your problem to describe what your setup is. Maybe 
some issue in the USB communication on your dev-environment? Maybe something 
else?

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

[android-developers] building hello-jni sample in Android NDK causes error “Default target help does not exist in this project”

2011-04-15 Thread longingtoadopt.com
Trying to build hello-jni sample in Android NDK. Followed instructions
to create build .xml per 
http://developer.android.com/sdk/ndk/overview.html#samples

android update project -p . -s

Trying to run under Eclipse Helios SR2. I get this error:

Description Resource Path Location Type Default target help does not
exist in this project build.xml /HelloJni line 2 Ant Buildfile Problem

in build.xml,


any suggestions appreciated.

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


[android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread Eric


On Apr 15, 3:05 am, String  wrote:
> Sure, apps run slower when attached to the debugger, but that's hardly
> surprising given the overhead.

The iOS version of my app performs no slower in the debugger than it
does outside the debugger.

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

2011-04-15 Thread Eric

On Apr 14, 11:22 pm, TreKing  wrote:
> I have a Nexus One with 2.3.3 installed as well and it runs just fine for
> me.
> A very real possibility is that the "complete crap environment" is your own.
> It would be hard to tell, though, from the complete lack of information in
> your post. "It's slow" doesn't tell us much.

What else do you want to know?? When I run my app in the debugger, it
is unusably slow.  When I run it outside the debugger, it performs
satisfactorily.  The only changing variable is the debugger.  I have a
lot of network communication going on in a background thread.  When I
run the app in the debugger, the screens immediately become
unresponsive, whereas outside the debugger there is no noticeable
change in performance.

We can pretend the debugger is fast, like some of the follow up posts
have done, or we can discuss why Google can't provide developers with
a decent debugging environment (LET ALONE a simulator that is even
remotely usable).

- Eric

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android Apps, move apps into phone's memory, or switch them into external memory.

2011-04-15 Thread Streets Of Boston
This is a developer forum and most of us do expect that before you ask any 
questions that you have done some searching yourself. If not, the same 
questions are going to be asked over and over again. And if you're not 
willing to read (god forbid to open a booklet to find some answers, ow! my 
eyes!!), then there is always Google or Bing or any of the other 
search-engines. 

If you still have some Android development questions left after doing the 
reading and searching, then it's time to start posting questions on this 
forum. 

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

2011-04-15 Thread lbendlin
You can use an application object to hold the reference to the database.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android Apps, move apps into phone's memory, or switch them into external memory.

2011-04-15 Thread lbendlin
Getting my popcorn.  Ok, ready.

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

2011-04-15 Thread Anton S
On 4/15/11, android-developers+nore...@googlegroups.com
 wrote:
> =
> Today's Topic Summary
> =
>
> Group: android-developers@googlegroups.com
> Url: http://groups.google.com/group/android-developers/topics
>
>   - SQLite Open failed [1 Update]
> http://groups.google.com/group/android-developers/t/e5a8961d41cfbe0d
>   - How to force use only gprs even though wifi is available [1 Update]
> http://groups.google.com/group/android-developers/t/baeef4661dc6c9eb
>   - Android Debugger is DOG Slow [3 Updates]
> http://groups.google.com/group/android-developers/t/7356e22bdf8c9745
>   - Small button that sets something to default - what should it look like?
> [4 Updates]
> http://groups.google.com/group/android-developers/t/728dfaf6155598e0
>   - help for encryption of sd card storage? [1 Update]
> http://groups.google.com/group/android-developers/t/bd53a35e25a846da
>   - Running application on Dell Streak emulator [2 Updates]
> http://groups.google.com/group/android-developers/t/cac17cce3f7d0ad0
>   - String to Float Performance Ideas [7 Updates]
> http://groups.google.com/group/android-developers/t/c0cf802af81c22f4
>   - Android Apps, move apps into phone's memory, or switch them into
> external memory. [1 Update]
> http://groups.google.com/group/android-developers/t/b87eecb6909cacf4
>   - Are dialogs supposed to be modal? [1 Update]
> http://groups.google.com/group/android-developers/t/15a90b08831c3307
>   - How do I get getResources() to work in another class? [1 Update]
> http://groups.google.com/group/android-developers/t/5c2ed4e901217718
>   - in app purchase question for RESTORE_TRANSACTIONS [1 Update]
> http://groups.google.com/group/android-developers/t/408ec3205bbb4256
>
>
> =
> Topic: SQLite Open failed
> Url: http://groups.google.com/group/android-developers/t/e5a8961d41cfbe0d
> =
>
> -- 1 of 1 --
> From: Zsolt Vasvari 
> Date: Apr 14 10:53PM -0700
> Url: http://groups.google.com/group/android-developers/msg/18195d0ede9f692f
>
> Out of thousands of users, one is getting the followiing error
> suddenly:
>
> I/Database( 9312): sqlite returned: error code = 14, msg = cannot open
> file at source line 25467
> E/Database( 9312): sqlite3_open_v2("/data/data/com.mycom.package/
> databases/My Bookback", &handle, 2, NULL) failed
> Caused by: android.database.sqlite.SQLiteException: unable to open
> database file
>   at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
>   at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:
> 1921)
>   at
> android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
> 883)
>
>
> Alll I can see is that error code 14 is simply a CANNOT_OPEN
>
> Anybody has any ideas what could be causing this?  This is lady who
> just migrated to a new phone (Captivate) -- I seriously doubt she
> messed around with the ROM or anything.
>
>
>
> =
> Topic: How to force use only gprs even though wifi is available
> Url: http://groups.google.com/group/android-developers/t/baeef4661dc6c9eb
> =
>
> -- 1 of 1 --
> From: kiran 
> Date: Apr 14 10:18PM -0700
> Url: http://groups.google.com/group/android-developers/msg/ace945502e707ae9
>
> Yes you are right, But thing is my application itself making wifi on.
> Is it not possible to on wifi and gprs at a time?
>
>
>
>
>
> =
> Topic: Android Debugger is DOG Slow
> Url: http://groups.google.com/group/android-developers/t/7356e22bdf8c9745
> =
>
> -- 1 of 3 --
> From: Eric 
> Date: Apr 14 08:01PM -0700
> Url: http://groups.google.com/group/android-developers/msg/98c8eee078ff43c5
>
> When I run my app in the debugger, via a USB cable, it is completely
> and utterly unusably slow.  I have 2.3.3 installed on my NexusOne.
> How does Google expect us to work with a complete crap environment
> like this?
>
> - Eric
>
>
> -- 2 of 3 --
> From: TreKing 
> Date: Apr 14 10:22PM -0500
> Url: http://groups.google.com/group/android-developers/msg/e4516f830a13c724
>
>
>> I have 2.3.3 installed on my NexusOne. How does Google expect us to work
>> with a complete crap environment like this?
>
> I have a Nexus One with 2.3.3 installed as well and it runs just fine for
> me.
> A very real possibility is that the "complete crap environment" is your own.
> It would be hard to tell, though, from the complete lack of information in
> yo

Re: [android-developers] SQLiteDatabase

2011-04-15 Thread TreKing
On Wed, Apr 13, 2011 at 9:35 AM, Android K wrote:

> Is there a way to access the SQLiteDatabase I have created in my Activity
> in a service?
>

Presumably the same way you access it in the Activity.

-
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] removing status bar

2011-04-15 Thread gaurav gupta
ys, u can hide status bar and u can show your application in fullScreen
try this code
write it after SetContentView(Not compulsary , i use it in this manner)

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

WindowManager.LayoutParams.FLAG_FULLSCREEN);


On Fri, Apr 15, 2011 at 8:32 PM, Mark Murphy wrote:

> On Fri, Apr 15, 2011 at 10:59 AM, bob  wrote:
> > Is there an easy way to remove the status bar at the top of the screen
> > in an Android app?
>
> On Android 1.x or 2.x:
>
> http://www.androidsnippets.com/how-to-make-an-activity-fullscreen
>
> On Android 3.x, you cannot remove the system bar, and many apps will
> not want to hide the action bar, as that is where the options menu
> shows up.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: removing status bar

2011-04-15 Thread Streets Of Boston
Make your Activity full-screen.

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

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 10:59 AM, bob  wrote:
> Is there an easy way to remove the status bar at the top of the screen
> in an Android app?

On Android 1.x or 2.x:

http://www.androidsnippets.com/how-to-make-an-activity-fullscreen

On Android 3.x, you cannot remove the system bar, and many apps will
not want to hide the action bar, as that is where the options menu
shows up.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


  1   2   3   >