How to use Skype Java API inside android application? - java

I want to make one application that will monitor chat history of other IM in phone.
I couldn't find any Skype API for Android, although I found Skype4Java API from net. I wish to use this in an Android application. I have imported the .jar file of that API to my Java build path. When I run my code, I am getting errors for libskype.jnilib and libskype.so file.
I also can't delete that file also, because when I attempt to delete that I get an error. Please tell how to do that?
How can I use Skype's Java API inside an Android app?

As of the current writing of this answer, there is no Android implementation of Skype. There are numerous third-party chat APIs, although I personally can't name one since I haven't worked with any.
The reason why the Skype4Java API is throwing errors at you is because it was not designed for use with Android. To delete the .jar file, you must remove all references to it and remove it from your build path for attempting a delete.

Related

changing android Manifest.xml

I have an android project that create other android app using zip and zipSigner. This app works great but i need to change the app name and package name in manifest so user can create different apps.
I have download this library to parse xml from the apk but dont know how to use it using java.
Can anyone give some ways to use it or maybe other library?
i see that apk editor, apk tool can modify it.
Ive already solve it:
this library give me a good work

Android Native Apps Source code

Is there anywhere I can get the source code and all the required library files for a NATIVE android app? I need it for an experiment I am working on and I need to test a few apps for the same.
First you must know all dependence in android is write in Android.mk.
Second you can find some code in android source which is connect to you purpose, then looks up its Android.mk, and can find almost you need.
At last, recommand you try ndk, and is supported by Google.

Using part of an Android app in a non-Android Java project

I'm working on a server backend component for an app, and one goal is to log all the messages transmitted through the app (using MQTT). To do this, I wanted to use the app as a library of sorts so that I could use the objects defined within to parse the messages coming through, since none of the messages will be transmitted as standard types. I'm using IntelliJ for the Java development, and Android Studio for the Android development. Is this possible? I was previously able to import the code as a module, which let me use the types defined within, but when I went to build the project it tried to build the Android code as well and failed because IntelliJ hadn't set up Android dependencies. Should I try and set the Android SDK as a dependency in the app module, and then build? Or am I approaching this the wrong way? (if it's even possible) I understand that there are also Library projects which looks like a possible solution, it would just require re-factoring all the applicable code out to a different project and I was hoping that wouldn't be necessary.
Trying to import the entire Android app as a library into a different codebase probably isn't going to work; you don't want a non-Android app to have all that Android code linked in, and with resources and the whole environment it will be tough to get it to compile at all.
A better approach would be to take all of the code that needs to work cross-platform and distill it into a plain Java library that you can include in multiple contexts. On the Android side you could include it as a plain Java library project, or compile it to a jar and include the jar.

How to detect message threads using JavaMail on Android?

I'm writing an email client for Android using the javamail-android library. I would like to detect Gmail threads to be able to display all messages from one thread together. I'd rather not download all messages in the inbox folder though. What I want is to display only recent messages/threads. How can I do it and do I have to use external libraries for this?
I managed to find java-gmail-imap which seems to be doing what I want. Does anyone have any experience with it and/or can suggest possible alternatives?
For Android, you can use my port here. I have used it for a project successfully, I just replaced the java dependencies with Harmony implementations and turn it in a Android library project to make sure one is not using anything that isn't supported. You can make a jar out of it (which I should :P ).
The latest JavaMail release includes support for all the Gmail IMAP protocol extensions, including the ThreadID, but I have no idea if it works on Android, which isn't real Java.

Problems with accessing data from Google Calendar API

I want to get a users calendar events (entries) via the java google calendar API (V3.0). Unfortunately, I was unable to find any working example (tutorial) or successfully run anything. What I did so far:
I checked the APIs Explorer and successfully run some requests via the google website and my developer api key (conclusion: my API access works in theory).
I tried to follow the "Your first App"-guide. There are two ways to invoke the API: REST or client libraries. I want to use the java client library.
So I tried to set up the client library : downloaded the jars and added them to the build path (in eclipse) - as I usually do this with external jars. I now can import the classes without errors.
Here, the guide finishes abruptly if I want to use the java client library instead of directly accessing it via REST...
From here I have absolutely no idea what to do. I found a lot of examples in the web (usually for the v1.0 or v2.0 API), but was unable to run any of them. (On Google Developers I found several examples, but all for Android or AppEngine. Nothing worked...)
Does anyone of you know a very simple example to get a users events via Java library (Google Code API)?
solved it on my own. For all of you who want to start using the Google APIs in Eclipse. I highly recommend using Maven which immensely helps including the right jars (actually, it does it for you). Then try this example code (link) to start (OAuth2 authentication). You also will need a dev account and API key from google: link. Then you can start coding :) enjoy!

Categories

Resources