Currently, my app is using quite a number of libraries from Google.
import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
import com.google.api.client.googleapis.services.GoogleKeyInitializer;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.
I have my php web serivce that reterives me list of topics from my forum and I used JSON to pare is into listview in my ANdroid app
unfortunatelly when running the app and when I go the the page where i should see that list I get black blank screen and in my logcat I got this error
03-17 15:00:04.189: E/JSON Parser(379): Error parsing data org.json.JSONException: Value <?xml of type java.la
I use this quick start example https://developers.google.com/drive/quickstart-android
Logcat shows
03-21 14:44:36.213: E/AndroidRuntime(26394): FATAL EXCEPTION: Thread-1867
03-21 14:44:36.213: E/AndroidRuntime(26394): java.lang.NullPointerException
03-21 14:44:36.213: E/AndroidRuntime(26394): at java.net.URI.parseURI(URI.java:353)
03-21 14:44:36.213: E/AndroidRuntime(26394): at java.net.U
I'm trying to run Google's Closure Compiler on my server (CentOS 6). I installed it, but only got errors when I tried to run it.
java.lang.NoSuchMethodError: method java.util.regex.Pattern.quote with signature (Ljava.lang.String;)Ljava.lang.String; was not found.
I am working on a project and I am doing a test on implementing the Google Drive SDK but I am having a problem when trying to upload a file on the SD card.
I'm using class that extends AsyncTask but I have error at the line that executes the class
I couldn't figure it out
here is the class that includes my main class and the class that extends AsyncTask
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONOb
I'm using the Google API Java Client http://code.google.com/p/google-api-java-client/ and am able to get the access token successfully for Android.
// Google Accounts
credential = GoogleAccountCredential.usingOAuth2(this, CalendarScopes.CALENDAR);
SharedPreferences settings = getPreferences(Context.MODE_PRIVATE);
credential.setSelectedAccountName(settings.getString(PREF_ACCOUNT_NAME, null));
I've just switched from Oracle JDK 1.6, to Open JDK 1.7.0_03, and I've hit a rather remarkable deadlock on exit:
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Thread.join(Thread.java:1258)
- locked <0x8608dda0> (a sun.awt.X11.XToolkit$1$1)
at java.lang.Thread.join(Thread.java:1332)
at java.lang.ApplicationShutdownHooks.runHooks
I got struck because of IllegalStateException in the following code. Can anybody please help me?