android eclipse not creating blank activity

The problem is, in Eclipse, the new >> Project >> Android >> Android Application Project >> BlankActivity does not create any Activities in the src directory, and does not include the Activities in the manifest.xml. I know this question has been asked before: Eclipse Juno won’t create Android Activity Eclipse doesn’t create Main Activity and […]

Android handling key up event while menu is visible

Here is my problem. I override volume down key for my application to do some specific task while it’s pressed for a long time, it works fine normally. I can intercept key down and key up events for that. The key listener events are written in particular custom component and not in activity where this […]

How do I refresh my ListView after the database changes?

I am trying to manage a simple list in an Android application. The contents of the list are maintained in a SQLite database. When the user selects and holds on a specific row, a context menu appears with a “Delete” option. When they select “Delete”, the row is deleted from the database, but the view […]

Insert multiple events in Android calendar

I am having trouble in finding a solution to my problem. I am trying to add multiple events into my Android calendar but I do not know how. I gave found this code : Calendar cal = Calendar.getInstance(); Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType(“vnd.android.cursor.item/event”); intent.putExtra(“beginTime”, cal.getTimeInMillis()); intent.putExtra(“allDay”, true); intent.putExtra(“rrule”, “FREQ=YEARLY”); intent.putExtra(“endTime”, cal.getTimeInMillis()+60*60*1000); intent.putExtra(“title”, “A Test […]

Android: handle unexpected internet disconnect while downloading data

I have here a function that downloads data from a remote server to file. I am still not confident with my code. My question is, what if while reading the stream and saving the data to a file and suddenly I was disconnected in the internet, will these catch exceptions below can really catch that […]

Load an activity in the background before displaying it

Is it possible to load a new activity in the background before switching the view to that activity? For example, I would like to have a slash screen activity that gets called and displays a splash screen. While this splash screen is displayed, the next activity is loaded, and when it is done loading (when […]

upside-down texture? | OpenGL-ES 2.0 (android)

I tried to map my texture to a square made in opengl es 2.0, and when i do, the texture appears upside down, is my mapping wrong? or the way im drawing it? here is a picture of what it looks like: here is my code for the onDrawFrame() public void onDrawFrame(GL10 glUnused) { GLES20.glClearColor(0.0f, […]

how to add a contact to a group android

I have following code to add contact to a group into android‘s contact app / people app, it does add the group but not the contact in that group, what am i missing ? I am adding contact successfully also creating group, i do get the ids of both the things , i m using […]

Class extending Application throws ClassNotFoundException

I have a class that extends the application class and sometimes in my developer console I see an error saying ClassNotFoundException java.lang.RuntimeException: Unable to instantiate application ecm2.android.ActiveStore: java.lang.ClassNotFoundException: ecm2.android.ActiveStore at android.app.LoadedApk.makeApplication(LoadedApk.java:501) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4221) at android.app.ActivityThread.access$1400(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4918) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771) at dalvik.system.NativeStart.main(Native Method) […]

How to remove repeatable keys, key preview of the Android custom keyboard

How to remove repeating keys, key preview of Android Custom Keyboard. I used following method to remove key preview of the keys that I want. But that method is not working for repeatable keys. (android:isRepeatable=”true”) If the key is not repeatable, following method is working. delete key xml <Key android:codes=”-5″ android:keyWidth=”13%p” android:keyIcon=”@drawable/ic_key_delete_white” android:keyBackground=”@color/dark_key_background” android:isRepeatable=”true” android:horizontalGap=”3.5%p” […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.