Tag: android
-
Updating frequently a TextView inside a loop
The problem How to update a TextView inside a loop or, more generally, how to update frequently an UI element of an Activity.
-
The Exception Unable to instantiate activity ComponentInfo
If you have this error “Unable to instantiate activity ComponentInfo” in the LogCat of Android just you launch your app, first you have to check the file AndroidManifest.xml especially the code lines package=”[your package]” it is an attribute of the tag manifest and you insert a unique name for your app in java package style,…
-
How to restore the state of a WebView in a layout “Tabs + Swipe” with ViewPager and FragmentPagerAdapter
In the post Tabs and swipe views Szymon asks how to implement a WebView in order to preserve its state moving from one tab to another in a similar way as explained in How to save the state of a WebView inside a Fragment of an Action Bar.
-
Adding colors with OpenGL ES in Android
In the post Drawing a triangle with OpenGL ES in Android I explained how to draw a triangle without setting the colors, indeed, the triangle is gray. In this post I add a few lines of code that allow you to change the color of the triangle starting from the code in Drawing a triangle…
-
Drawing a triangle with OpenGL ES in Android
The scope of this post is drawing a triangle with OpenGL ES 1.x in Android focusing especially on the relationship between code and position of the triangle. The coordinate system has the origin where the observer is, with the x axis horizontal and rightward, the y-axis vertical and upward and the z axis points so…
-
Unexpected value from nativeGetEnabledTags: 0
From the release Android SDK Tools 21 a warning fills the logcat: Unexpected value from nativeGetEnabledTags: 0 I hope it will be fixed in the next release, waiting a solution I found this workaround.