We have been able to run and test all the example widgets with monodroid except the hellotabwidget. It fails to package and the error is not presented. Can someone please post a working example of the tab widget or explain what is wrong with the tab tutorial on the monodroid website? We are using the latest version of monodroid (just released but have not purchased yet)
http://mono-android.net/Tutorials/Hello_Views/Tab_Layout is the link to the tutorial that is not working..... We wrote monodroid and they gave us a way to see the "error" below but this is crazy.
Thanks for any assistance.
Unfortunately, what's happening is that the Android aapt
tool is reporting an error and mandroid
isn't properly capturing and reporting that error. :-(
This will be fixed in the next release, but in the meantime here is a (horrible!) sequence of steps to follow to determine the actual error:
Open a Visual Studio Command Prompt (2010), hereinafter referred to as the terminal: Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt (2010)
Within the terminal, navigate to your project directory.
Run the following command:
MSBUILD /t:Install YOUR.csproj /p:MandroidExtraArgs=-v=10
In the voluminous output, you want to look for the line that looks like:
Running command: E:\Applications\Android\android-sdk-windows.r10\platform-tools\aapt "package" "-f" "-M" "AndroidManifest.xml" "-J" "src" "--custom-package" "p14test.p14test" "-F" "bin\packaged_resources" "-S" "E:\tmp\VSProjects\P14Test\P14Test\obj\Debug\res" "-I" "E:\Applications\Android\android-sdk-window s.r10\platforms\android-8\android.jar"
Run the following command:
cd obj\Debug\android
Execute the command referenced in (4):
E:\Applications\Android\android-sdk-windows.r10\platform-tools\aapt "package" "-f" "-M" "AndroidManifest.xml" "-J" "src" "--custom-package" "p14test.p14test" "-F" "bin\packaged_resources" "-S" "E:\tmp\VSProjects\P14Test\P14Test\obj\Debug\res" "-I" "E:\Applications\Android\android-sdk-window s.r10\platforms\android-8\android.jar"
You should now be able to see the lost error message.
Thanks for helping on this....