Id in onItemClick is not your Object Id
public abstract void onItemClick (AdapterView<?> parent, View view, int position, long id) in AdapterView Last parameter calls id, but that will be row id,…
Read morePosts in this section.
public abstract void onItemClick (AdapterView<?> parent, View view, int position, long id) in AdapterView Last parameter calls id, but that will be row id,…
Read moreIn Fragment sub class in Android, you cannot directly use findViewById() to retrieve the control from view , similar with Activity. You need to do a single…
Read moreI spent three days about this problem. The Navigation Drawer will show if I swipe the screen from left to right. But that won't show by clicking the app icon.…
Read moreI added Google Play Ads Service. However, I got this error: "No GMSG handler found for GMSG". No ads is displayed at all. I found the reason, that is because my…
Read moreI used foreach keyword in C#. I used it to travel element one by one in a list. In Java, there is not such keyword calls foreach. But you can use for to do…
Read moreI was using Android Studio 0.6. In general, UI has not much changed. However, I found there are more code refactoring feature, such as generating test, create…
Read moreAndroid Studio 1.0 is released after long period of beta. Although I am very happy about pre-release version, that is so good to have a final version. Finally,…
Read moreI am building a new note pad app. I was trying to connect each fragment into the main activity. But I got an error,"must implement…
Read moreI found a good website for Bootstrap, BootstrapZero.. There are some starter kit to build a bootstrap website, such as a basic image slider website, admin…
Read moreAs you know, I am learning about Bootstrap recently. I read their tutorial, that is great! I learnt a lot. Moreover, I really need to see some examples. I found…
Read moreAfter I updated the android studio and I run my project, I got this error: NoSuchMethodError:…
Read moreI found the best way to input a numeric value is using a spinner. The users can type in the user, and they can use up and down arrow to adjust the value. That…
Read more