Compiling without libc

If you compile your code with -nostdlib, you won’t be able to call any C library functions (of course), but you also don’t get the regular C bootstrap code. In particular, the real entry point of a program on Linux is not main(), but rather a function called _start(). The standard libraries normally provide a … Read more

How do you create a transparent demo screen for an Android app?

Put your demo info in a different activity and give it the following theme. <style name=”Transparent” parent=”@android:style/Theme.NoTitleBar”> <item name=”android:windowContentOverlay”>@null</item> <item name=”android:windowIsTranslucent”>true</item> <item name=”android:windowBackground”>@android:color/transparent</item> <item name=”android:windowNoTitle”>true</item> <item name=”android:backgroundDimEnabled”>false</item> </style> If you’re using ActionBarSherlock change parent to @style/Theme.Sherlock. This will give you a transparent activity, so you will be able to see the activity below it. Now … Read more