As a newbe to cardboard, I have created a simple pano app in Android Studio by trying to duplicate the google cardboard sample simplepanowidget. The java activity class shows the vrtoolkit as being unresolved, e.g. in import statements such as:
import com.google.vrtoolkit.cardboard.widgets.pano.VrPanoramaEventListener;
I am trying to include the appropriate library but do not know which one it should be: is it libvrtoolkit.so or in a .aar archive?
The answer is pretty obvious (after unzipping and looking in the class tree for panowidget provided with the google cardboard sample): it is in panowidget.aar.
Related
In android studios, I have successfully imported a library called ChatKit(https://github.com/stfalcon-studio/ChatKit). The creators of the library were kind enough to include a fully working sample within the library. Instead of recreating the process I want to import the sample from the library into my project but android studios is not allowing me to do so.
In my main activity, I can add :
import com.stfalcon.chatkit.dialogs.DialogsList;
But when cannot add:
import com.stfalcon.chatkit.sample.ChatSamplesListAdapter;
So I'm curious what other people have done to import a sample from an already imported library.
Thank you.
import com.stfalcon.chatkit.sample.ChatSamplesListAdapter;
It happens because this class is not included in the library.
It is a sample file used as sample.
As you can see it is just a simple RecyclerView.Adapter then you can copy it in your project or you can use a own adapter.
I am trying to get a video stream running from Google Glass. I already tried spydroid, but for some reason it is not giving any video output.
Now I am trying to import GlassStream into eclipse, but all of the package declarations and imports are broken(i did follow the given instructions):
The declared package net.majorkernelpanic.streaming.video does not match the expected package src.net.majorkernelpanic.streaming.video
If I fix all of those manually, then I get that R class is not found.
It is the first time I am dealing with Google Glass, and I don't know what the issue here is, the spydroid v10 project imported flawlessly.
Link: https://github.com/andermaco/GlassStream
Fixed. I had to pull out all of the sub-folders, set the project source folders, and put everything where it belongs.
I have been learning "Sim Toolkit" in android. I had imported the sample project from this link.
But this file needs another import of "com.android.internal.telephony.cat". i couldn't find any jar files or libraries. When i tried to import code of packages from this link
Im not able to done it. Help me to fix this friends.
Thanks in advance.
You can't.
It's a hidden library and not part of Android public SDK.
In future, go to this link and search for Android Java packages, method names, etc. If the result returned is not what you searched for, then it's not part of the Android public SDK available to developers.
Or, you can just download the Android source codes via the Android SDK Manager and manually search for what you want.
I am trying to implement the Google Play API into my Application.
Google says to import BaseGameUtils as library and add this library to my project:
this "main" is the BaseGameUtils, I have no idea why it's called "main".
However, here You can see that it's the BaseGameUtils project:
As You may see, there are the three classes, BaseGameActivity, GameHelper and BaseHelperUtils.
No when I try to import the BaseGameActivity I get following:
But strangely, I can import
com.google.example.games.basegameutils.*;
But when importing this, I still can't use the BaseGameActivity.class
What am I doing wrong?
One thing that you have done wrong is that you are trying to import BaseGameActivity into your application project.
I am assuming that you have already done this:
https://developer.android.com/google/play-services/setup.html
Then follow this:
https://developers.google.com/games/services/android/quickstart
In essence, you import the TypeANumber and BaseGameUtils code from the Android samples into your workspace (not into your application project).
Then you confirm that both Google Play services and BaseGameUtils are defined as library projects (Properties .. Android .. Is Library should be checked).
Then IN YOUR APP PROJECT add them as references (Properties .. Android .. Reference ..Add)
But I have just emphasised key steps that I suspect you may have misunderstood or omitted. You have to follow the whole thing carefully. Good luck !
I'm trying to work on extending BasicDream which exists in package: android.support.v13.dreams. I have tried downloading all most all android version (just trying luck to get it working) but I'm unable to import it. i.e. On
import android.support.v13.dreams.BasicDream; statement I'm getting an error:
The import xxxxxx... cannot be resolved.
I tried copying my sdk/extras/libs/../android-support-v13.jar in my libs folder and added to build path but found this package does not show dreams. While typing import statement I'm able to see v13 i.e. I can write import android.support.v13.app.*; but it does not have dreams/basicdream.
Tried google and do found the source code of this class but no idea why my jar file does not have these classes or how to use it. Please suggest what am I missing here.
Update: Finally I figured out that BasicDream was part of Android Support Library version 13 Link: BasicDream source codeshipped with android 4.1.2 however latest Android Support Library version 13 does not have Basic Dream.support library v13 class list
As I'm working on some native functionality, I downloaded BasicDream source code from the link mentioned above and included in same folder where I have my other source files. Updated the package to my application package
In your case probably the best way to get it is to check code of this class on GrepCode and manually resolve (copy) all dependencies. Good luck!