[mono-android] gtk-sharp on android possible?

2012-12-01 Thread huseyin cakir
Hi;

I have been developing applications for linux/windows by using
mono and gtk-sharp. I wonder if there is a way to get these apps.
on android by using monodroid or do i have to use android.sdk?

To be more precise; I want to run my gtk-sharp applictions(".exe")
run on android without any change is there a way to to this?

As i understood i have to change my gui layer gtk-sharp  codes into
android?

Thank you!
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] gtk-sharp on android possible?

2012-12-01 Thread Jonathan Pryor
On Dec 1, 2012, at 5:32 AM, huseyin cakir  wrote:
> I have been developing applications for linux/windows by using mono and 
> gtk-sharp. I wonder if there is a way to get these apps. on android by using 
> monodroid or do i have to use android.sdk?

Short version: No, you should use Mono for Android or the Android SDK.

Long version: There is no GTK+ backend to target Android (afaik). Even if there 
were, you'd likely need to redo all your layout.

The only way to make this work would be to run an X11 server on the device, and 
use the normal GTK+ X11 backend. (There _are_ X11 servers on the Android store, 
so this isn't impossible... Possibly insane, or a _great_ April Fools hack [0], 
but not impossible...)

There are two problems with this approach:

1. The Mono for Android assemblies are not fully compatible with desktop .NET. 
They're a superset of Silverlight, so large swaths of classes are missing (e.g. 
System.Configuration). It may not be possible to run a Gtk# app unchanged w/o 
recompiling all of Gtk# and your application.

2. A desktop app + X11 will be a _terrible_ user experience.

The sane approach is to separate out your app logic from your GUI code 
(MVC/MVVM/etc. come in handy here), "port" your core app logic onto Mono for 
Android, and write a new GUI using Android-native types. This is the approach 
take by apps such as TouchDraw, iCircuit, and Rdio:

http://praeclarum.org/post/15789866032/icircuit-code-reuse-part-trois
http://blog.xamarin.com/2012/11/27/touchdraw-for-android-now-available/

 - Jon

[0]: http://tech.slashdot.org/story/03/08/26/2042206/gtk-tty-port

Pity the screenshots & source are no longer compatible; it was a GTK+ 2.0 
backend for curses support, allowing you to run GTK+ apps on a console w/o a 
framebuffer or X11.

In short, hilariously insane.

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] gtk-sharp on android possible?

2012-12-01 Thread huseyin cakir
I got it thanks. But if there was a way to port my gtk-sharp apps. on
android it would be great.

Best Regards.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] howto install / move apk on sdcard

2012-12-01 Thread steven_pack
How can you tell which version of m4a an apk was compiled with?

I'm pretty sure I've had preferExternal, minSDK 7, targetSDK 8, for months,
but I've recently had user reports they can't move to the SD card and I want
to check if the apk was built against 4.2.3.

I extracted the apk file and looked at the versions using the Edit
References... dialog in MonoDevelop, but hte Mono.Android assembly has
0.0.0.0 as the version, and all the System.* assemblies have 2.0.5.0.

Is the version compiled in somehow?



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/howto-install-move-apk-on-sdcard-tp5710398p5712561.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid