Bug 12050 - User is not able to add splash screen for android application.
Summary: User is not able to add splash screen for android application.
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 4.0
Hardware: All Mac OS
: --- normal
Target Milestone: ---
Assignee: Mikayla Hutchinson [MSFT]
URL: http://docs.xamarin.com/guides/andro...
Depends on:
Blocks:
 
Reported: 2013-05-01 06:41 UTC by Akhilesh kumar
Modified: 2013-05-13 02:15 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Attached_Solution (71.97 KB, application/x-zip-compressed)
2013-05-10 04:46 UTC, narayanp
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Akhilesh kumar 2013-05-01 06:41:35 UTC
Steps to reproduce:
1. Open X.S.
2. Create any android application.
3. Add any image to the Resources\Drawable folder.
4. Create a new xml file in Resources\Values called Styles.xml and paste code mention in docs.
5. Add a new activity to your project called SplashActivity, and paste the code mention in docs.
6. Debug or run the application.

Actual result:
User is not able to add splash screen for android application.Application giving build error.

Below is the build output for the same:
https://gist.github.com/atin360/aaa8a4042ade970f3bf4

Expected result:
Splash screen should show up as soon after the user launches application on device.

Environment details:
All mac and windows
XS 4.0 (build 2968) - e606632dfc7d2f59e31abd8d7ae0b222194abb7c
Mono 3.0.11 ((no/edc181c)
MFA 4.7.4-14

Note : We have use following documents for creating a splash screen.
http://docs.xamarin.com/guides/android/user_interface/creating_a_splash_screen
Comment 1 Mikayla Hutchinson [MSFT] 2013-05-01 12:01:07 UTC
Your code is incorrect. The code you copied from the docs assumes you have an activity called "Activity1" in the current namespace. The error indicates this class cannot be found. If you do have an activity called "Activity1", it's possible you need a using directive in the copied code, or change the namespace in the copied code to match the namespace of your project.
Comment 2 narayanp 2013-05-10 04:46:17 UTC
Created attachment 3943 [details]
Attached_Solution
Comment 3 narayanp 2013-05-10 04:46:49 UTC
Today we have checked this issue with following builds:

X.S 4.0.5 (build 4)
Xamarin.Android 4.7.4-14

And we have changed namespace now we are getting another build error "https://gist.github.com/atin360/43bf6466217565a715ec"

We have attached a solution "AndroidAppSts.zip" for which I have tried to see splash screen. Please look into it and let us know are we missing something else in our solution.
Comment 4 PJ 2013-05-10 11:20:52 UTC
Lal, your gist shows an issue generating the trial splash screen. That would be a separate bug.

Try this bug's steps with a normal business license, and refile comment 3.

Thanks!
Comment 5 Nischal 2013-05-13 02:15:18 UTC
We have reported an another issue for this Bug 12198 

Closing this issue.