Android Wheel Data picker - android

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);

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 IPAddressUtil

I have a problem in my android studio(macosx) :
in InetAddress.java some import have problem
import sun.net.util.IPAddressUtil;
import android.system.GaiException;
import android.system.StructAddrinfo;
import libcore.io.Libcore;
editor says
cannot resolve symbol IPAddressUtil
I think those classes are not in Android SDK (IpAddressUtil, Libcore). Also, it is discouraged to use classes from sun.* package in your programs.

How to import BitmapTextureAtlas in Andengine?

i added this line.but it gives error.how to import it?
import org.andengine.opengl.texture.atlas.TextureAtlas;
TextureAtlas is an abstract class, try importing
import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas;
or
import org.andengine.opengl.texture.atlas.bitmap.BuildableBitmapTextureAtlas;
depending on which one you are using
If you using Eclipse and it is configured properly, you should be able to just delete that line and Eclipse will add the correct import statements - at least it does on my system.

Picasa Api for Android not found

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

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