123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|701|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> port basic linux c program to Android

Mon, 04 Feb 2013, 07:16
waroffice
good afternoon gents,

I was wondering if someone good with Android could port the code below to be Android friendly.



I had a look but Im not good with Android

Thanks
Mon, 04 Feb 2013, 10:23
Dabz
Mmmmm... The major stumbling block will be that usb.h lib... But, it looks like someone has ported your usb whatsit to android already:-

github.com/trevd/libusb1-android
github.com/trevd/libusb0-android

Source: groups.google.com/forum/?fromgroups=#!topic/android-building/jk2iyiI8n2k

Just a guess, but, you may be able to use that, alongside the Android NDK and build it:-

developer.android.com/tools/sdk/ndk/index.html

I wish I had the time to play to see if I can get it building, but alas, I've got a load on myself, hopefully though, that'll get you going!

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Mon, 04 Feb 2013, 12:50
spinal
Wait, you can code for android in c? Why did I not know that?!

-=-=-
Check out my excellent homepage!
Mon, 04 Feb 2013, 13:16
Dabz

Wait, you can code for android in c? Why did I not know that?!


It's basically there for such a thing that waroffice wants to do, as in, use existing code on Android... Saying that, the NDK is what GLBasic targets when it compiles for android, where as monkey uses the more traditional Java based SDK.

As far as I can make out, there's no real benefit speed wise for casual/normal apps, the SDK will handle all that, but, if your pushing physics or something along them lines, it's worth a look!

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit