Picasa Api for Android not found - android

I´m trying to follow the step by step guide on this page: https://developers.google.com/picasa-web/docs/2.0/developers_guide_java?hl=nl-NL
So, when trying to import the following:
import java.io.File;
import java.net.URL;
import com.google.gdata.client.*;
import com.google.gdata.client.photos.*;
import com.google.gdata.data.*;
import com.google.gdata.data.media.*;
import com.google.gdata.data.photos.*;
It´s missing the API I assume, if I try to download it here it gives an error: http://code.google.com//code.google.com/p/gdata-java-client/downloads/list
Anybody who has a working link, or am I using a depreciated way of using picasa for my Android App?
Thanks

The link you wrote is wrong?
http://code.google.com/p/gdata-java-client/downloads/list

Related

I am trying to convert a website to an app and getting this error

This is my first app, I am trying to convert a website to app in android studio. I am following this tutorial - https://youtu.be/oy-0ss-n33g . But I am getting:
Cannot resolve symbol WebView
How can I solve this error?
You forgot to import WebView just add import android.webkit.WebView at the import section or alt + enter to auto-import the class
Import this classes
import android.webkit.WebView;
import android.webkit.WebSettings;
And make sure the ID of the webview in your xml layout is the same as the one you are referring in java.

Cannot resolve symbol 'SCOPE_FILE'

I'm new to app development, and I'm working with Android Studio 3.1.4. I'm working with the Google APIs for sign-in, which have worked well when getting the user's ID, email address, and basic profile. However, I'm now trying to get the Google Drive API working, and I've been stuck for almost two days on this one nagging problem, which is the first step in getting this API to work. Here is the code that's being problematic.
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.requestScopes(Drive.SCOPE_FILE)
.build();
For some reason, SCOPE_FILE is showing up red and I get a tool tip that reads, "Cannot resolve symbol 'SCOPE_FILE'" when I hover over it. Based on everything that I've read, this should not be an issue. I've tried restarting Android Studio and my computer several times. I upgraded to the most recent version of Android Studio and the most recent version of Gradle. I'm pretty sure I've imported all the necessary classes, which are listed here:
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import com.google.android.gms.auth.api.signin.GoogleSignIn;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Scope;
import com.google.api.services.drive.Drive;
import com.google.android.gms.tasks.Task;
import java.util.HashSet;
import java.util.Set;
I feel as though this must be a simple issue with a simple solution, but I can't figure it out. What am I missing?
The problem is that you are importing the wrong Drive class, which does not have the SCOPE_FILE field. The solution is to
import com.google.android.gms.drive.Drive;
instead of
import com.google.api.services.drive.Drive;
import this See
import com.google.android.gms.drive.Drive;

WebIntent plugin for Phonegap: Cannot find import org.apache.cordova.api.Plugin

I just downloaded the WebIntent plugin for phonegap, but immediately ran into an error when setting it up. The first few lines of WebIntent.java are
import java.util.HashMap;
import java.util.Map;
import org.apache.cordova.DroidGap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
import android.text.Html;
import org.apache.cordova.api.Plugin;
import org.apache.cordova.api.PluginResult;
...
public class WebIntent extends Plugin {
Eclipse recognizes all of these imports except for
org.apache.cordova.api.Plugin
After some research, I discovered that Phonegap 2.0 wants plugins to extend the Plugin class. Phonegap 2.7 wants plugins to extend "CordovaPlugin" instead.
A quick look at the Phonegap github reveals that no class called "Plugin" even exists in that package anymore. This confuses me because the WebIntent github was updated just a few months ago, and it still uses Plugin.
I tried changing Plugin to CordovaPlugin wherever I could find it in the file. Surprisingly, most of the errors vansihed. However, the onNewIntent method still has an error:
#Override
public void onNewIntent(Intent intent) {
if (this.onNewIntentCallback != null) {
PluginResult result = new PluginResult(PluginResult.Status.OK, intent.getDataString());
result.setKeepCallback(true);
this.success(result, this.onNewIntentCallback);
}
}
"success(...)" is not a function in CordovaPlugin and there is no function similar to it.
Can anyone think of a way to solve this problem? Or is there information that I'm missing? (A more up-to-date version of WebIntent would be fantastic, but I can't seem to find one)
Had the same problem upgrading to Phonegap 3.0 and found solution is not only change plugin to CordovaPlugin but also you will need to remove "api" from the import statement.
Change
import org.apache.cordova.api.Plugin;
import org.apache.cordova.api.PluginResult;
To this:
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.PluginResult;
Answer reference: http://devgirl.org/2013/09/05/phonegap-3-0-stuff-you-should-know/
I ran into exactly the same problem.
The issue here is that org.apache.cordova.api.plugin is completely removed as of phonegap-2.7.0 and should be replaced with org.apache.cordova.api.CordovaPlugin.
For more info on how to do this, look at http://simonmacdonald.blogspot.fr/2013/06/why-dont-my-plugins-work-in-phonegap.html.
I followed these instructions and you can find the relevant part of my replacement code for WebIntent.java at https://github.com/phonegap/phonegap-plugins/issues/1047.

Android Wheel Data picker

I want to use android wheel to choose from some items. I just downloaded some library code from google. I am using it in my app, but it is giving some error.
import kankan.wheel.widget.OnWheelChangedListener;
import kankan.wheel.widget.OnWheelScrollListener;
import kankan.wheel.widget.WheelView;
import kankan.wheel.widget.adapters.AbstractWheelTextAdapter;
import kankan.wheel.widget.adapters.ArrayWheelAdapter;
Giving following error:
The import kankan.wheel.widget cannot be resolved
Can anyone tell me why this error is coming.
Thanks.
I have also used that library in my code and it is working fine.
possibility of error
You can't configure lib properly
In build path add lib
Clean eclipse.
Restart eclipse
import kankan.wheel.widget.OnWheelChangedListener;
import kankan.wheel.widget.OnWheelScrollListener;
import kankan.wheel.widget.WheelView;
import kankan.wheel.widget.adapters.NumericWheelAdapter;
WheelView wheel = getWheel(id);

ADT import of android.media cannot be resolved

i try create my first android application for android 2.1 api level 7 in ADT. I wrote the following line to the default view and eclipse says, that android.media cannot be resolved:
import android.media;
how come, that this doesn't work?
thanks a lot
you cannot import android.media; because it is a package, try using:
import android.media.*;
or
import android.media.MediaPlayer; // if you want to import MediaPlayer
import android.media.Ringtone; // if you want to import Ringtone

Categories

Resources