tlitt...@gmail.com

unread,
May 9, 2014, 11:46:13 AM5/9/14
to mitappinv...@googlegroups.com
How do you create wallpapers on app inventor 2?

Peep Prants

unread,
May 9, 2014, 1:02:57 PM5/9/14
to mitappinv...@googlegroups.com
Use Activity Starter.

You can use those actions:
1. Action: android.intent.action.SET_WALLPAPER
or
2.
Action: android.intent.action.ATTACH_DATA
DataType: image/*
DataUri: file:///storage/emulated/0/dir/filename.jpg

It depend what kind app you make and where you get your data: etc. camera, internet pictures or allready stored pictures to app

Taifun

unread,
May 9, 2014, 1:48:11 PM5/9/14
to mitappinv...@googlegroups.com
interesting solution! great! thank you.
I always thought this is not possible...
Taifun

tlitt...@gmail.com

unread,
May 9, 2014, 2:46:14 PM5/9/14
to mitappinv...@googlegroups.com
cheers!

tlitt...@gmail.com

unread,
May 9, 2014, 2:50:34 PM5/9/14
to mitappinv...@googlegroups.com
Peep Prants; If i use pictures from my Camera to create wallpapers which method should i use from your suggestions? many thanks :)

tlitt...@gmail.com

unread,
May 9, 2014, 3:32:29 PM5/9/14
to mitappinv...@googlegroups.com
Also, does creating wallpaper apps utilize multiple screens and how do the blocks work for wallpapers?

Vipul Chaudhary

unread,
Nov 8, 2014, 9:48:04 AM11/8/14
to mitappinv...@googlegroups.com


What exact to write in data uri. The image is already stored in app.

Please help.


Taifun

unread,
Nov 8, 2014, 2:50:02 PM11/8/14
to mitappinv...@googlegroups.com
What exact to write in data uri. The image is already stored in app.
the complete path to the image, e.g. if the file is stored in the root directory, then just write
file:///mnt/sdcard/Image1.jpg
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Vipul Chaudhary

unread,
Nov 8, 2014, 11:30:16 PM11/8/14
to mitappinv...@googlegroups.com
sorry I could not determine path. What exact to write in this specific app where image is in app.

Peep Prants

unread,
Nov 9, 2014, 3:52:59 AM11/9/14
to mitappinv...@googlegroups.com
If in development (emulator, testing etc.) then use :

file:///mnt/sdcard/AppInventor/assets/file.jpg

If all done and you make .apk then change to: 

file:///android_asset/file.jpg

Taifun

unread,
Nov 9, 2014, 9:13:16 AM11/9/14
to mitappinv...@googlegroups.com
using the activity starter, Peep's advice works only on your development device
you can't access files stored as assets in your app with the activity starter!
your files have to be available on the sd card of the device!
you could use the Canvas.SaveAs block, see here How to save a canvas or download the image from the internet on first run of the app 

How to download a file and save it on your device

Taifun

Vipul Chaudhary

unread,
Nov 14, 2014, 3:09:23 AM11/14/14
to mitappinv...@googlegroups.com
Thanks Taifun

Jamie Cropley

unread,
Jan 21, 2015, 8:02:13 AM1/21/15
to mitappinv...@googlegroups.com
This is very good, many thanks. Can you advise, as I am just a beginner still when you use something like android.intent.action.SET_WALLPAPER in the text field block does this mean I can write something like actual Java in here within activity starter component?

Taifun

unread,
Jan 21, 2015, 9:53:23 AM1/21/15
to mitappinv...@googlegroups.com
does this mean I can write something like actual Java in here within activity starter component?

Jamie Cropley

unread,
Jan 25, 2015, 10:31:48 AM1/25/15
to mitappinv...@googlegroups.com
I have tried the following as per screenshot, what am I doing wrong? I am trying to get it to change the wallpaper with an image stored within the app. Does the actual size of the image make any difference?
Untitled.png

Taifun

unread,
Jan 25, 2015, 12:27:10 PM1/25/15
to mitappinv...@googlegroups.com
use the full path to your image, which is file:///mnt/sdcard/wallpapertest.jpg
Taifun

Jamie Cropley

unread,
Jan 25, 2015, 12:40:28 PM1/25/15
to mitappinv...@googlegroups.com
Thanks, I have tried this as per the attached two screenshots, noting that I have tried image and Image1 in the block before. Additionally have saved the .apk file to my phone as well to see if that is what was causing the issue rather than streaming it over wifi and still it does not work?
1.png
2.png

Jamie Cropley

unread,
Jan 25, 2015, 12:41:15 PM1/25/15
to mitappinv...@googlegroups.com
Sorry just noticed, 2.png is meant to state: Image1 rather than image.

Jamie Cropley

unread,
Jan 27, 2015, 8:20:13 AM1/27/15
to mitappinv...@googlegroups.com
I am still struggling with this, please help!

Taifun

unread,
Jan 27, 2015, 4:00:21 PM1/27/15
to mitappinv...@googlegroups.com
probably this does not work for all Android versions...
which device and Android version are you testing?
Taifun

Jamie Cropley

unread,
Jan 27, 2015, 4:07:36 PM1/27/15
to mitappinv...@googlegroups.com
I am using a Sony Xperia Z1, with the latest possible android version installed as follows:

Android version: Android 4.4 (KitKat)

Latest available software: 14.4.A.0.157

Release started: 2014-11-11

Taifun

unread,
Jan 27, 2015, 4:24:35 PM1/27/15
to mitappinv...@googlegroups.com
try an older Android version...
I tested on Nexus 5 running Android 5.0.1 (Lollipop) and it also does not work...
Taifun

Jamie Cropley

unread,
Jan 27, 2015, 4:29:59 PM1/27/15
to mitappinv...@googlegroups.com
What is the core thing that is stopping it in the newer versions? There has to be some sort of setting or feature where I/we could perhaps come up with some sort of workaround?

I can't really risk downgrading on my current device at the moment.

Ayhan

unread,
Mar 18, 2015, 1:19:14 PM3/18/15
to mitappinv...@googlegroups.com
allready stored pictures to app. Thanks a lot :)

Vipul Chaudhary

unread,
Mar 19, 2015, 3:36:43 AM3/19/15
to mitappinv...@googlegroups.com
To make wallpaper app just visithttp://www.appsgeyser.com

More over their browser is fast and almost full browser.
Reply all
Reply to author
Forward
0 new messages