I'm wrote java console app with smartcardio.Everything worked perfect.Now I want to use this library in Android. As I know smartcardio does not supported in Android. I searched about in Google.If anyone knows how I can use this library in Android,or what's a alternative ?
Thanks
Try to use this alternative. Code looks pretty the same.
You will need clone project. Compile jar. And put into Android project lib directory.
You cannot use smartcardio library in Android as you have already figured out. If your intention is to communicate to a Smart Card in contactless interface i would suggest you to take a look at the following library https://developer.android.com/reference/android/nfc/package-summary.html
https://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html
If your intention is to communicate to a SE you can take a look at
https://github.com/seek-for-android/pool/wiki/UsingSmartCardAPI
if you want use ccid smartcard reader you have to find ccid library for android. some company like acs has published library for android.
for contactless support you have to use specific package which is defined in android (android.nfc).
Maybe this link can help you.
http://www.codexpedia.com/android/android-nfc-read-and-write-example/
good luck.
Related
I am trying to create a messaging app and want to use any existing messaging library for doing so. I found Jsqmessagesiviewcontroller library for IOS which is open source and is pretty easy to use. However, I am not able to find any similar library for Android. Does anyone knows about any messaging library present for android is open source and can be easily modified and customized for different use cases?
NOTE: I have found, https://github.com/guardianproject/ChatSecureAndroid, which looks promising but would like to know if there more options to consider.
Thanks in Advance.
We're just released JSQMessagesViewController-like library to create UI for chats. Check it out on GitHub:
http://github.com/stfalcon-studio/ChatKit
Ok, found another project:
https://atlas.layer.com/android
It's 100% OpenSource
Look this article :
https://www.quora.com/What-is-the-best-whitelabel-solution-for-a-iOS-Android-chat-app
And this site:
https://sendbird.com/
I need to create an API library for Android and iOS. I have experience working with Android projects, but zero experties in iOS. I was wondering if I could create a Project library in Xamarin that compiles as a JAR for Android and as an... I-don't-know-which-type for iOS.
No, that isn't possible. Depending on what you are trying to accomplish there may be alternatives. If you are trying to make a library that can be used by others you could make it a Xamarin component - there is a component store you could put it on if you want it to be generally available, otherwise you can use any normal means of source or object distribution.
If you need to interact with a native app/library then you could make the C# code the "owner" of it and have it call into the native code. This works for both IOs and Android (and is used to work with e.g the play services from google).
No, it is unfortunately not possible to do that.
It seems to me that what you need is a Portable Class Library also known as PCL. It allows you to create a project which can be referenced by all Xamarin supported platforms (such as iOs and Android). There are obviously limitations to the approach like not being able to reference platform specific libraries but in your case (of writing an API) it should suffice.
You can read more in this link
Good Luck!
I want to use nfc_extras in my android project to use card emulation capability of my phone. I know there are two ways to do that; either by creating a jar file in Android source or using reflection. I'd prefer to go through the second one though. How to do that through reflection? How I can use reflection to take advantage of nfc_extras in my project?
See Nikolay Elenkov's blog at http://nelenkov.blogspot.nl/2012/08/accessing-embedded-secure-element-in.html for an in-depth tutorial on how to do exactly what you want.
Is there a handy-dandy equivalent to org.apache.commons.beanutils.PropertyUtils on Android?
I can't seem to use bean utils in my android app due to some dependencies on PropertyDescriptor,and IndexedPropertyDescriptor. So I'm wondering if there are any alternatives?
Basically all I want to do is use a method name as a string "someMethod" and feed that into setMethod(anObject, "someMethod", value), much like PropertyUtils does; but without having to resort to the nasties of reflection...
Or are my hands tied and I need to use Reflection?
There is bridge library which works on Android: android-java-air-bridge.jar. Just include into project path and use all apache beanutils features in your Android project as you could use in ordinary java application. Moreover, there are lot of other classes which moved to this Android supporting library. Look at the list.
There is a possibilty to use libraries or write own code depending on the PropertyUtils. But it sure isn't dandy. You can get the general idea about what has to be done in this thread.
There are apparently some projects who have successfully solved the issue, so you can study thier solution. Take a look at Drawingpad-base and libgdx. You can find PropertyUtils in the package com.madrobot.beans in the first project and com.badlogic.gdx.beans in the second.
I am a beginner on android platform, and I want to build a tracerouting app. So these are my queries:
Is it possible to make such an application in Android? if possible then guide me the way that I follow.
Does Android support low-level programming to capture ICMP packets? or do I need to add some kind of JAR (in java) or some other libraries to support this application?
In Java, there are JPCAP and docjar etc kind of libraries that we can import in our IDE or Eclipse so that Java support for making such kind of API's?
I need valuable suggestions.
It's quite late - but someone might see it.
i found this one and it worked for me:
https://github.com/olivierg13/TraceroutePing
The simplest way I can think of is to just check for the traceroute Linux application, execute it, and parse its output.
Android has full networking support, however, Java doesn't expose an interface to alter the IP header. Hence, manually crafting ICMP packages is out of the question (JPCAP is no help here, since it relies on libpcap, which I suppose you won't find on any vanilla installation).
Another possible solution is to use the NDK and create a small library that handles the low-level number crunching. However, I'm not sure if the NDK would allow you to use setsockopt.
This is working pretty well for me, you may have to filter out the string results.
To add this library, you have to download or clone the git repository and implement the folder "library" just as he does in the other module "app" for it to work properly.