Trusty TEE implementation [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am currently working on banking app in Android(native development with Java, JNI but not in PhoneGap, ionic etc.). I have search a lot but did not find any tutorial for the same.
trustonic: very very expensive
for Trusty TEE but not understood how to use it and where to use?
Question:
How to communicate with trusted application?
How to install trusted application to trustzone OS with client application?
what will it need to implement(like libtee)?
is there any example available? if yes please provide the same.
How Trusty APIs call and if we need to do modify in code how to do that?

earlier I had worked on TEE development. But, never I used to use any SDK or plugin for the development. It was all AOSP. So, as you pointed out it is hard to find write-up openly available. There are set of sample sources available, which you may want to try along with your stock source. Here is the link.
You can also use build system applications (along with your system builds) using the API's from google. Then, you can just pull the application from system image and publish it (I know it's not a good idea!).If I can publish any blogs, I think it may help.

Related

How to implement parallel processing using CUDA in Java? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have installed CUDA toolkit and download some libraries and exported to my Java project in Netbeans. I never using CUDA before and I am very interesting to learn for my parallel algorithm. My question is:
How I know that my environment is ready to use CUDA? Is there any code to check it in Java?
I need a best practice to implement parallel processing using CUDA in Java? Is there anybody that has simple parallel code that I can use to learn CUDA?
If this is your first time using Cuda, I would highly recommend using the language it was designed for (C/C++). Cuda is only available through java through bindings like JCuda. Using these bindings reduces your example code sample size and support pool, along with adding yet another thing that can go wrong. More complexity, more problems.
If you do insist on using JCuda, here are their official sample projects.
As for testing if your "environment" is ready to use cuda, you can check your cuda version in a command prompt with nvcc -V. If the command is unrecognized, something is wrong.
You can use nvcc to compile the sample projects that should have come with your cuda installation. I believe by default on windows they are located in C:\ProgramData\NVIDIA Corporation\CUDA Samples\.

Please suggest approach for Java-based web app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm a Java developer that hasn't coded in about 5 years and wants to polish up my skills. I am going to create a small app that uses an OAuth 2.0 authentication flow and then makes a few REST calls and displays the results. I've got my credentials setup with the OAuth provider.
I used Eclipse back in the day, is that still a solid IDE for this type of project? If I want to share the app with others to show my work, where could I host the code?
Thanks for these and any other pointers.
first off - yes, Eclipse if still a good choice.
if you can, make you app a web-application, and then you can host it in PaaS such as Google AppEngine. then the app itself will be always accessible from any machine that is connected to the web. this way, you will be able to show it to anyone you want.
if you only want to show the code, then GitHub or Google Code are a good choices.
HTH

Cloudant sync for couchdb; how to port android to J2SE [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Am very interested in using cloudant's new sync library for iOS and Android. However, I'd also like like comparable support for desktop via J2SE. I realize this may be possible simply by bundling a local couchdb instance with your J2SE app & then using a wrapper like ektorp. However, I would prefer something a little lighter - e.g. cloudant sync runs atop of a local SQLite db; rather than on top of local couchdb.
I've loaded the code into eclipse as a J2SE project however have about 40 errors to resolve; most of which are due to dependancies on android.database.sqlite.SQLiteDatabase. Un suprisingly, copying the classes in question from the Android SDK didn't work.
I would appreciate any advice / pointers on a port, or alternative.
Thanks
At this point, as you discovered, while we choose the right data access class to use based on the runtime environment -- i.e., sqlite4java or the Android SQL classes -- the library requires the Android classes to be in the classpath even when running on a desktop.
We are hoping to address this with better dependency injection or build processes in the near future, and I'll try to keep this answer up to date.

Java - cross platform mobile development [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Are there really any tools out there or sdk's that truly support cross-platform java mobile development, and are worth their weight in code?
I would like to rewrite our mobile application with an sdk that would allow usage on IOS (Ipad and Iphone), Android, and Windows Mobile 5 and 6.
If I am asking for the moon, please let me know.
I am traditionally a c# developer, and just moving into learning Java.
I see many different posts about cross-platform development but I wonder where we are as an industry today on this.
You could take a look to the mgwt or the codenameone framework.
For a server-based app built in pure Java but deployed via pure HTML+CSS+JavaScript: Vaadin. But that means your app requires an Internet connection to run.
Tip: Some folks build a bare-bones minimal native app that simply points a web-browser view directly to your site's URL. This allows you to sell/give your "app" in the App Store while actually building a web app that runs cross-platform.
There is no Java present on iOS. So there is no Java-based development kit to build local native apps across iOS, Android, and Windows Mobile.
Google did announce the J2ObjC project to translate Java code to Objective-C for the iOS. But that does not solve all your problems.
Eclipse Tabris is another option but it isn't free (It isn't costly either).

How to do something like Bonjour using open source library? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to make a Java program that allow me this discover my nearby computers who is running the same problem. Which is similar like the iTunes, can discover nearby computer who enable sharing in the iTunes. How can I implement it using open source library? Also, cross platform is very important. Any ideas on that? Thank you.
Well, Bonjour itself is open source, so you might want to start there...
http://developer.apple.com/opensource/
jmdns is a full Bonjour/Zeroconf implementation written in Java compatible with Apple. There is no dependency on native libraries, it is 100% Java.
http://jmdns.sourceforge.net/
I think you definitely should take a look at UPnP. Considering the cross-platformness of such a solution, and its implementation using Java, you can consider
UPNPLib
Cyberlynk for Java
And even the various ways to connect an OSGi application to UPnP.
Finally, considering existing implementation of Bonjour using Java, this reply to a stackoverflow question sums it up.
You can use Avahi - an open-source implementation for zeroconf, which is the protocol used by iTunes. There's a nice list of options for Java at:
http://elliotth.blogspot.com/2009/03/registering-service-with-dns-sd-from.html
I don't know how far it ever got, but Java had the JXTA project, it might do what you want.

Categories