Adding a Splash Activity

Discussion in 'Tutorials' started by Vas, Sep 3, 2013.

  1. fatos LWC Major

    Member Since:
    Apr 2, 2013
    Message Count:
    268
    Likes Received:
    73
    Trophy Points:
    200
    make a pic of error please
  2. Joshua Seasoned Vet

    Member Since:
    Jul 12, 2013
    Message Count:
    116
    Likes Received:
    16
    Trophy Points:
    100
    [IMG]


    It doesn't state there is an error any longer, but the red lines are still there... so I tested it out on my android device it shows up in the app drawer but when I try to load it, I simply get this message, "Unfortunately, Breaking Bad Live Wallpaper X has stopped" My package name is, package com.sbg.lwc; and I did implement the eclipse (R.layout.splash); fix which changed it to mycompany.breakingbadlivewallpaperx.R.layout hope this helps
  3. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    Hello Vas

    I was trying to make layout for splash screen but when I tested on Galaxy S2 it works fine, but on S4 everything looks tiny except the background image. Is there any command for images which I can set in percentage so the inner content can be re-sized automatically according to any screen size width and height? fill_parent just simply stretching the image.

    [IMG]
  4. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
  5. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    I have used wrap_content only but I need to give image size in percentage so it can be fit on any mobile.
  6. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    One more thing how can this be possible if someone click on Set Live Wallpaper button so instead of opening Wallpaper list the LWP should directly be set on the screen?
  7. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
  8. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    This is not possible.
  9. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    Ok no problem, something is better than nothing, Thanks :D
  10. Eraste Seasoned Vet

    Member Since:
    Jan 26, 2013
    Message Count:
    159
    Likes Received:
    76
    Trophy Points:
    100
    Working great here.

    With a little tinkering this was easy to get to work. Even added a few of my own touches: Notice the settings menu is opened directly from the splash screen via the second "image" button added to the splash screen below the set livewallpaper button. Once the user chooses their settings and hit the back button they are taken back to the splash screen. Very Good Tutorial VAS.

    Photo Sep 11, 5 29 20 PM.jpg Photo Sep 11, 5 29 14 PM.jpg
    Friendlyspeaking and Joshua like this.
  11. Joshua Seasoned Vet

    Member Since:
    Jul 12, 2013
    Message Count:
    116
    Likes Received:
    16
    Trophy Points:
    100

    :eek: How
    Eraste likes this.
  12. Eraste Seasoned Vet

    Member Since:
    Jan 26, 2013
    Message Count:
    159
    Likes Received:
    76
    Trophy Points:
    100
    Just to show all its possible in this pic I have two different leadbolt ads running. One is a banner at the bottom the other an interistianal ( or however they spell it) that darkens the screen and presents the ad. This all happens within a few seconds of the splash activity opening after the user clicks the app icon in the app drawer. If there is enough demand when leadbolt releases its new SDK I will post a tutorial on all this.

    Photo Sep 11, 6 11 22 PM.jpg
    Friendlyspeaking, Joshua and fatos like this.
  13. fatos LWC Major

    Member Since:
    Apr 2, 2013
    Message Count:
    268
    Likes Received:
    73
    Trophy Points:
    200
    @Eraste It will be nice if you teach us how did you put settings in splash screen, and of course we will appreciate a new tutorial how to add banners or interstitial ads.
  14. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    Looking great, guys! Make some pretty buttons linking to your other wallpapers :D
  15. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    Hello Vas

    What is the simplest way to link to other wallpapers on Google Play from Splash.xml? I tried your previous tutorial and also searched on the net for codes but nothing is working at all, I am not a code programmer Vas :eek: since birth I have developed only 3-4 apps and that is also in App Inventor which I think is the perfect app development platform for people like me :D
  16. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    I had made it work :D
  17. sebastian Seasoned Vet

    Member Since:
    Feb 16, 2013
    Message Count:
    135
    Likes Received:
    36
    Trophy Points:
    100
    Guys I try to put slider ADS and banner on splash screen and work fine
    Friendlyspeaking likes this.
  18. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    Has anyone noticed all the Leadbolt banner size look small on Galaxy S4 but looks fine on S2 and similar phone? is there any solution to this?. Admob banner ads look fine.

    [IMG]
  19. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50

    Did you test your banner on S4 or similar device? If you can send me your .apk I would like to check on my phone if it looks fine
  20. sebastian Seasoned Vet

    Member Since:
    Feb 16, 2013
    Message Count:
    135
    Likes Received:
    36
    Trophy Points:
    100
    Have you try to change hight and Weight to automatic or fillparent?
    How can you the Live Wallpaper settings button?

Share This Page