Migrating Gracenote Mobile API to Android Studio from Eclipse - android

I'm testing one application that listen to song and identify the song .For that i have used gracenote api for mobile client api and help available on Android here and successfully implement it on the Eclipse but when i tried the same on the android studio it throws me the following error:
No implementation found for int com.gracenote.mmid.MobileSDK.FPXJNI.nativeInitialize() (tried Java_com_gracenote_mmid_MobileSDK_FPXJNI_nativeInitialize and Java_com_gracenote_mmid_MobileSDK_FPXJNI_nativeInitialize__)
I have followed each step and without any change it worked on Eclipse but not on Android Studio.
Following is the screen shot on android studio

It was bit hard task. I just complete my app in Eclipse and import it in Android studio but the native libraries causing me problem. So i spent time with them and searching for solution and at last insert jniLibs folder in app folder and it solved my problem.

Related

How to debug NativeScript java code in Android Studio?

I'm quite new to NativeScript. Currently, one of my projects is using NativeScript to develop cross-platform app. It has a 3rd-party lib which is written in java. But the result is not as good as I expected. I was struggling to find the problem since the console didn't log valuable info regarding to native code.
Instead, I import the project to Android Studio which is under the folder of platform/android. But it logs error when I hit the "run" button.
I want to know:
Is it possible to debug native code directly with VS Code. At least print out java native error or cat log.
How can I debug native code in Android Studio? How to solve the problem I ran into?
I'd be very appreciated, if anyone can answer my questions. Thanks!
Let me start off by saying there's no official integration with Android Studio. All I can provide is a workaround that will make it possible.
Note: The steps provided below are tested with NativeScript CLI 3.1.1 and will probably work also with 3.2.0.
The first problem is you don't have "node" set in your global path so first of all, you need to add it to PATH. Node required for NativeScript to run. You can look at how to set it up here
If you want to be able to run the project with Android Studio you can follow these steps:
After you've done that you need to change the <app_name>/platforms/android/build.gradle file as described here
The above change will enable you to open <app_name>/platforms/android in Android Studio
Run <app_name>:clean task from gradle
Run the task default for Android Studio, that will prompt you for emulator or device on which to run:

Android Studio Error while importing eclipse project

I started my android development with Android Studio so I do not know much about eclipse. A client has sent me his source code for an android app that needs editing and while trying to import it I am getting the following error.
Some one please guide me to a solution, I really need it right now.
Using android studio 2.1.2 with JDK 8 installed.
This is the project.properties file
Thanks!
Ok so turns out the app was using a "pullToRefresh" library that was missing as a deliverable to me. I did not have an experience of working with external libraries yet so took me some time to identify that.
I downloaded the library and gave it the correct path in "project.properties" file. Then simply imported the project to Android studio and it is working absolutely fine

How to import correctly an android app?

I have some apps in eclipse and I exported my apps, but when I import all apps again, and when I import it, I have 1 error in Androidmanifest.xml (for the package name) and the code has not appeared. I have not updated my SDK manager. Could that be the problem?
I tried to put the project name in the manifest, and I don't get more errors in it, but when I export, it doesn't save all my information/configuration.
I was having a similar problem. I am a novice to android studio and to creating android apps. I downloaded sample apps from the android site but could not get it to run inside of android studio. What I was doing was allowing the android studio ADT to convert the project. This was a mistake. I ended up importing the project but not allowing the ADT to migrate any part of the unzipped project file. Once I did this the ability to run the apps was there and I just had to link the dependencies via the project structure option under File in the top toolbar and then worked out minor issues that were mentioned in the console of the log. This is probably a different issue than what is discussed here but it does relate to the importing and running of android apps.

Creating a new Android Library in Android Studio

I've been searching the web for half a day now but I just can't figure out how to create a new Android Library with Android Studio.
I've tried doing things like this: How to create a library project in Android Studio and an application project that uses the library project
But when I enter the New Module menu it just says "Nothing to show".
I can't find out why or how to fix it.
Is there a way to manually add a library? If so, how?
I'm trying to add an import method to my app so users can import a preferably rar file or just a folder to be used in the app.
TL;DR: How can I add the option Android Library to my New Module menu inside Android Library?
EDIT: To clarify things; I've made a web app in which u can create your own click/touch-able interface. The projects u make with that app can be exported to a rar file which is basicly a webpage with html, css and javascript that runs the project. I can run that webpage in my android app just fine but I need other users to be able to import the files somehow. So I was thinking about using a file manager so users can import the files into the app. I'm working with this one a.t.m. https://code.google.com/p/afiledialog/ but it needs to be a library.
Updated my Android Studio today and guess what, it's fixed!
So anyone who has this problem just update asap. Tried this on Mac and Windows and it now works on both.
PS: I'm on version 0.2.6 now (version of august 24). Guess I was one day too early with the question :P

How to load com.android.music code into Eclipse and compile?

I did a git on the com.android.music app and then created a project in eclipse from existing code. I chose 2.1 as the sdk target but I am getting errors trying to compile.
Is the music app referencing code that is not part of the 2.1 sdk? Can someone list the steps for how to compile in eclipse?
Description Resource Path Location Type
ArrayListCursor cannot be resolved to a type PlaylistBrowserActivity.java Music/src/com/android/music line 529 Java Problem
MediaFile cannot be resolved AlbumBrowserActivity.java
Is the music app referencing code that
is not part of the 2.1 sdk?
Absolutely. Most of the built-in apps for Android were created before there was an SDK. You will not be able to build them in isolation from the rest of the firmware without substantial work. Work which, BTW, would be welcome contributions back to the Android open source project, if you were so inclined... :-)
Check the applications manifest file. It will contain an attribute stating which version of the SDK the application was built with.

Categories

Resources