Android Open Source - RadiusDev Display Map Contacts






From Project

Back to project page RadiusDev.

License

The source code is released under:

MIT License

If you think the Android project RadiusDev listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.radiusdev;
//from  w  w  w  .  java  2 s.c o m
import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;

import com.google.android.gms.maps.model.LatLng;

import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;

public class DisplayMapContacts {
  
  private static final String FUNCTION_URL = "http://1meccaproduction.com/radiusServer/getUserList.php";
  private static final String TAG_SUCCESS = "success";
  private static final String TAG_MESSAGE = "message";
  
  //JSON parser class
  JSONparser jsonParser = new JSONparser();
  String id, gps;
  LatLng latLng = new LatLng(0,0);
      
  /* protected String doInBackground(String... args){
    int success;
    List<NameValuePair> params = new ArrayList<NameValuePair>();
    params.add(new BasicNameValuePair("user_id", id));
    params.add(new BasicNameValuePair("gps", gps));
      
    Log.d("request!", "starting");
    //getting product details by making HTTP request
    JSONObject json = jsonParser.makeHttpRequest(FUNCTION_URL, "GET", params);
    System.out.println(json);
    //check log for json response
      Log.d("Grabbing Contacts", json.toString());
    //json success tag
    success = json.getInt(TAG_SUCCESS);
    if(success == 1) {
      //appPrefs.saveSomeString(emailAddress);
      
      //Intent i = new Intent(Login.this, Main.class);
      //finish();
      //startActivity(i);
      return json.getString(TAG_MESSAGE);
    }else{
      Log.d("Login Failed!", json.getString(TAG_MESSAGE));
      return json.getString(TAG_MESSAGE);
    } 
  } */
  
  
}




Java Source Code List

com.example.radiusdev.AppPreferenceActivity.java
com.example.radiusdev.ArrayAdapter.java
com.example.radiusdev.Contact.java
com.example.radiusdev.CustomizedListView.java
com.example.radiusdev.DBHelper.java
com.example.radiusdev.DisplayAbout.java
com.example.radiusdev.DisplayContactList.java
com.example.radiusdev.DisplayMapContacts.java
com.example.radiusdev.DisplayUserInfo.java
com.example.radiusdev.EditContact.java
com.example.radiusdev.EditUser.java
com.example.radiusdev.GPS.java
com.example.radiusdev.JSONparser.java
com.example.radiusdev.Login.java
com.example.radiusdev.MainActivity.java
com.example.radiusdev.Main.java
com.example.radiusdev.MapWrapperLayout.java
com.example.radiusdev.Map.java
com.example.radiusdev.NewContact.java
com.example.radiusdev.OnInfoWindowElemTouchListener.java
com.example.radiusdev.PreferencesHelper.java
com.example.radiusdev.Register.java
com.example.radiusdev.UserSettings.java
com.example.radiusdev.imageUploader.java