Ive follwed this tutorial and the previous one have all the code exact i pick the picture and click set but it isnt setting the picture to the screen. any ideas?
Just wanted to say I had a similar problem to others where my app would force close if I tried to change the background. The problem (stupidly) was that in my manifest file I had written "android.permission.SETWALLPAPER" instead of "android.permission.SET_WALLPAPER".
hey, thanx for those tuts they're really helpful for learning , just wanted to ask one question, whenever i set a wallpaper it's sets not in full screen but aligns to the left size of home screen and creates grey space all around itself accept for the left side. i wonder how to make it fullscreen. i've tried several sizes of images its always the same issue, my code is similar to yours i've double checked that, maybe it happens because im duin this with platform 1.5 api level 3?
@androidfunmore Did you set the ContentView in the Tutorial 3 class and set up Tutorial3 and its xml in the manifest? I forget those all the time and get force closed's.
@lopatamd well we could ask the user for permission, but eh, well .. we will just do it this way. We have to include the permission in the manifest so we can use it. When it is included in the manifest they user will see what permissions are required when they download the app originally, not every time they use it.
In the end ... everything works but my Button :( I have no idea what is wrong, when i go to change the background photo and I hit that change background button it stops the program! So i'm just gonna disable the button and change the wording to photo view!
@kasirisx I know you posted this like 2 months ago but I found that when I had large files (960x854) it would force close but when I had a small file I made in paint it worked fine... Just to let you know
i would like to see the code but the video dosnt show it only show partial window. Can i download somewhere this code
?
buttibu 3 weeks ago
lessons 21 through 23 = epic
also I'm not sure which lesson it was but you called me a ninja and i appreciate that.
keep on keepin' on
1smawley 2 months ago in playlist More videos from CornboyzAndroid
No problems Jac.
jacjanssen 2 months ago
Ive follwed this tutorial and the previous one have all the code exact i pick the picture and click set but it isnt setting the picture to the screen. any ideas?
XxXLesaXxX 3 months ago
awesome .......
faysalubit 4 months ago
This has been flagged as spam show
is anyone here?
I have a question .. namely, did you
"setWall button = (Button) findViewById (R.id.bSetWallpaper),"
written, but from which comes
"(R.id.bSetWallpaper)" that you have not shown? sry my english is not so good ... :P
BlackMountStreet88 4 months ago
Comment removed
BlackMountStreet88 4 months ago
Just wanted to say I had a similar problem to others where my app would force close if I tried to change the background. The problem (stupidly) was that in my manifest file I had written "android.permission.SETWALLPAPER" instead of "android.permission.SET_WALLPAPER".
Mupple 8 months ago
@super0chick You just put a different quality file to "res" --- "drawable-xxx" l = low, m = medium, h = high quality.
@CornboyzAndroid Make sure that you add this tag "import java.io.IOException;" to class.java
basic problem is "force close" you need to check Activity in Mainifest.xml must match one in your JAVA class
Umpol69 9 months ago
How do you set the pictures to set to different screen sizes of various phone screens and tablets?
super0chick 9 months ago
Hey i notice if i didn't click on any picture first, and i straight away click set wallpaper, it will force close, how do i solve that?
bigmac1setlarge 11 months ago
appricate your dedication and thx for the stuff. its really help me lot to understand from the scratch. keep doing.
gobinatht 11 months ago
hey, thanx for those tuts they're really helpful for learning , just wanted to ask one question, whenever i set a wallpaper it's sets not in full screen but aligns to the left size of home screen and creates grey space all around itself accept for the left side. i wonder how to make it fullscreen. i've tried several sizes of images its always the same issue, my code is similar to yours i've double checked that, maybe it happens because im duin this with platform 1.5 api level 3?
tnx alot again
alinpha 11 months ago
What if you just want to set the selected image as the background of a new screen/class?
MerBarnes 11 months ago
I need help I thought I followed everything right but get a force close
androidfunmore 1 year ago
@androidfunmore Did you set the ContentView in the Tutorial 3 class and set up Tutorial3 and its xml in the manifest? I forget those all the time and get force closed's.
MerBarnes 11 months ago
@MerBarnes Yea, it turns out I am just an idiot lol. Typed premission instead of permission.
androidfunmore 11 months ago
but it it should ask permission, why doesnt it ask in the app ? or it shouldnt ? :D
lopatamd 1 year ago 2
@lopatamd well we could ask the user for permission, but eh, well .. we will just do it this way. We have to include the permission in the manifest so we can use it. When it is included in the manifest they user will see what permissions are required when they download the app originally, not every time they use it.
CornboyzAndroid 1 year ago
heh tnx, i had to rewatch some parts, cause you skipped the part about the button
'setWall.setOnClickListener(this);' =)))))))))
tnx
lopatamd 1 year ago
@lopatamd Where does setWall.setOnClickListener(this); go in at?'
kasirisx 1 year ago
@kasirisx duh already forgot.. just watch the video lol :D you will see after those images i think..
lopatamd 1 year ago
In the end ... everything works but my Button :( I have no idea what is wrong, when i go to change the background photo and I hit that change background button it stops the program! So i'm just gonna disable the button and change the wording to photo view!
kasirisx 1 year ago
@kasirisx haha. If you want you can send me your project and I'll see what I can find
CornboyzAndroid 1 year ago
@CornboyzAndroid
Im having the same problem when i hit Add wallpaper, it quits the program, any solutions yet?
DangerElite 10 months ago
Comment removed
minihook 1 year ago
@kasirisx I know you posted this like 2 months ago but I found that when I had large files (960x854) it would force close but when I had a small file I made in paint it worked fine... Just to let you know
skyjokiel 10 months ago
so awesome thanks Travis. your videos are the sh T
TheMiTy 1 year ago
always amazing dude!
TheMiTy 1 year ago
GOOD JOB
ZDevelopers 1 year ago