[android-developers] Set Wallpaper pop up

2011-09-23 Thread OneaDayJ
Hello,

I am trying to figure out how to add that set wall paper popup into my
app when people hold down on an image I have on my app.  When on the
internet on my g2 and I hold down on an image I get a pop up that says
save image, view image, set as wallpaper, but on my app I do not get
that and I want that.

Is there a tutorial on this anywhere?

Thanks in advance

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


[android-developers] Re: WebView with Admob Error

2011-08-28 Thread OneaDayJ
Sorry guys, I just am a complete idiot with that one, I was trying to
move to fast with making it and I forgot to add the jar.  stupid
stupid me, haha.  Stupid stupid rookie mistakes

On Aug 27, 10:12 am, OneaDayJ onead...@gmail.com wrote:
 Hey guys,

 Okay, so I am having a heck of a time here doing this app.  I am
 trying to create an app that has thewebviewup top andadmobads at
 the bottom.  I got thewebViewaspect to work then when I tried to ad
 theadmobI began getting errors.  I first added the manifest and it
 worked fine, but then when I tried to ad theadmobxml to the main.xml
 file I get a force close error before it opens.

 I have many apps that theadmobdoes fine, so I am pretty sure it is
 just the combination of the 2

 --- 
 -

 Now below is my error message in the ddms
 --- 
 -

 08-27 09:58:40.682: ERROR/AndroidRuntime(7259): FATAL EXCEPTION: main
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):
 java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.my app.TranslinkActivity}:
 android.view.InflateException: Binary XML file line #9: Error
 inflating class com.google.ads.AdView
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 1647)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 1663)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.ActivityThread.access$1500(ActivityThread.java:117)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.os.Looper.loop(Looper.java:130)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.ActivityThread.main(ActivityThread.java:3683)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 java.lang.reflect.Method.invoke(Method.java:507)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:839)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 dalvik.system.NativeStart.main(Native Method)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259): Caused by:
 android.view.InflateException: Binary XML file line #9: Error
 inflating class com.google.ads.AdView
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.view.LayoutInflater.inflate(LayoutInflater.java:408)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.view.LayoutInflater.inflate(LayoutInflater.java:320)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.view.LayoutInflater.inflate(LayoutInflater.java:276)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.jav a:
 207)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.Activity.setContentView(Activity.java:1657)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 com.bettertranslinkapp.TranslinkActivity.onCreate(TranslinkActivity.java:
 19)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1047)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 1611)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     ... 11 more
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259): Caused by:
 java.lang.ClassNotFoundException: com.google.ads.AdView in loader
 dalvik.system.PathClassLoader[/data/app/com.my app.apk]
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 java.lang.ClassLoader.loadClass(ClassLoader.java:551)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 java.lang.ClassLoader.loadClass(ClassLoader.java:511)
 08-27 09:58:40.682: ERROR/AndroidRuntime(7259):     at
 android.view.LayoutInflater.createView(LayoutInflater.java:471)
 08-27 09:58:40.682: ERROR

[android-developers] WebView with Admob Error

2011-08-27 Thread OneaDayJ
Hey guys,

Okay, so I am having a heck of a time here doing this app.  I am
trying to create an app that has the webview up top and admob ads at
the bottom.  I got the webView aspect to work then when I tried to ad
the admob I began getting errors.  I first added the manifest and it
worked fine, but then when I tried to ad the admob xml to the main.xml
file I get a force close error before it opens.

I have many apps that the admob does fine, so I am pretty sure it is
just the combination of the 2



Now below is my error message in the ddms


08-27 09:58:40.682: ERROR/AndroidRuntime(7259): FATAL EXCEPTION: main
08-27 09:58:40.682: ERROR/AndroidRuntime(7259):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.my app.TranslinkActivity}:
android.view.InflateException: Binary XML file line #9: Error
inflating class com.google.ads.AdView
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1647)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1663)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.os.Looper.loop(Looper.java:130)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.main(ActivityThread.java:3683)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.reflect.Method.invokeNative(Native Method)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.reflect.Method.invoke(Method.java:507)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
dalvik.system.NativeStart.main(Native Method)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): Caused by:
android.view.InflateException: Binary XML file line #9: Error
inflating class com.google.ads.AdView
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.inflate(LayoutInflater.java:408)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
207)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.Activity.setContentView(Activity.java:1657)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.bettertranslinkapp.TranslinkActivity.onCreate(TranslinkActivity.java:
19)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1611)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): ... 11 more
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): Caused by:
java.lang.ClassNotFoundException: com.google.ads.AdView in loader
dalvik.system.PathClassLoader[/data/app/com.my app.apk]
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.ClassLoader.loadClass(ClassLoader.java:551)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.ClassLoader.loadClass(ClassLoader.java:511)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.createView(LayoutInflater.java:471)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): ... 20 more




below is 

[android-developers] getSharedPreferences() method

2011-07-11 Thread OneaDayJ
Hello,

I tried to sign up for the beginners forum but had no luck.  So I am
posting on here, sorry if it is to simple of a question, but I tried
searching on google and on the android developers site, but I do not
understand a thing


My question is that I am reading a book called sams teach yourself
android development and am completely lost with when it says to use
the getSharedPreferences() method.  I have no idea where to put that
method or how to make it in eclipse.  it tells me
“
To add shared preferences to the application, take the following
steps:
1. Use the getSharedPreferences() method to retrieve an instance of a
SharedPreferences object.
2. Create a SharedPreferences.Editor object to modify preferences.
3. Make changes to the preferences by using the editor.
4. Commit the changes by using the commit() method in the editor.
“

now none of that makes sense to me at all, I do not know how to make a
SharedPreference.Editor object to modify preferences.


Thanks so much in advance

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