i been working on multiple Poximityalert with a database that saves the id of each intent.
then i tested it on a device and on the emulator
but the notification does not fire when reaching the specified location ...
im have database contain lat and long, and i use json parser in android. i want to get the value of latitude and longitude from marker that i click.
I have this code where i want to display new fragments for each tab .
public class Second extends FragmentActivity{
private TabHost mTabHost;
private static final String TAG_1 = "tab1";
private static final String TAG_2 = "tab2";
private static final String TAG_3 = "tab3";
private static final String TAG_4 = "tab4";
Fragment srkt_fragment,srk2_fragment,holl_fragment,bink_fragment;
EditText
I am attempting to load JSON content into a listview containing image and text but I'm getting a NullPointerException' in line 154 i.e lv1.setAdapter(efficienadapter); in Actualities.class .
I don't know if its because the postlist is null or an error in my code.
someone can help me please
My Actualites class
public class Actualites extends Activity {
ListView lv1;
ProgressDialog Sh
i've problem access other class in android...
i've class databasex (non static) and class CountingFragment (static)....
in CountingFragment i want to access databasex class..but i get result null....
here is my piece of code...
class Databasex
public class DataBasex {
public static final String KEY_ROWID="_id";
public static final String KEY_NAME="namaLokasi";
public static final
Is it ok, if I mark all fields static in Activity? Does it improve performance? I mean, Activity is created just once and there is no need for many instances. Here is an example:
private static Spinner mNtries;
private static Spinner mTies;
private static Spinner mTions;
private static Button mTButton;
private static Button mDButton;
Or is it not good practice?
I am creating an Android application using GreenDAO ORM, with a genericized crud service layer on top of that.
I get a json exception end of input at character 0 while trying to access the Google Places API (the generated URL is ok, the key is ok). In the manifest I have set permissions ACCESS_FINE_LOCATIONS and INTERNET, however only the GPS one is showed when installing on a real device.
My code is copied word for word from the answer to this question.
he, I am new to android. My question is I am trying to get user name password mentioned in web services. How to get id from response also how to authenticate that EDITTEXT entered username is same as mentioned in web services.