Doubts with Using Xamarin to develop Android App - IDEs, Libraries, & Programming Tools

Hi All,
We are developing Android App using C# with Xamarin.
I have task to integrate existing C source with App developed. This done by loading corresponding *.so.
Sorry in advance if these questions are naive....
Questions:
1 > I am using Windows. To generate the *.so what is the suitable IDE? Can the windows be used to generate *.so(static object)?
2> If I were to go with Eclipse , Do I need to install the plugins like SDK ,NDK etc...?
3> Do I need to care for processor architecture's , If need to compile the source?....I mean cross compilation
Thanks

sanddune008 said:
Hi All,
We are developing Android App using C# with Xamarin.
I have task to integrate existing C source with App developed. This done by loading corresponding *.so.
Click to expand...
Click to collapse
I'm not sure if I understand you question but I assume you want to extend an existing app -build in C# using Xamarin- with native android Java?
I'm not sure that's even possible. Xamarin is utilizing mono for android to create android (Linux) executable files. When decompiling my own Xamarin build apk with APK Studio I did see the mono .so libraries, but my own code was compiled. Referenced .Net (Windows!) dll's where added to the apk. I assume the mono libraries deal with how they are used in the compiled C# code.
Since there's no quick conversion I see a few options:
A - Change the Xamarin/C# android project to a library project (dll). Compile it using Xamarin and find out (google) how to utilize this dll using mono for android in your Java development environment (eclipse). There are mono .so files...
B - Convert the Xamarin/C# source to java source code. There are some commercial tools which claim to be able to convert C# to Java. Go java all the way.
C - Stick to Xamarin/C#
I think option A will lead to lots of headache assuming you referenced some .Net assemblies in your C# source. However it might be worth a try. Though keep in mind that if you keep using the Xamarin/C# part, you keep needing the Xamarin license to upgrade/update code in the future.
I would go for either B or C depending on the codebase. If it's a lot of code a Xamarin license renewal might be cheaper then a rewrite (conversion). In my experience code converters are reasonable tools, but I've never saw a one-click conversion happen. There's always extra work to make the converted code even compile.
In conclusion: Mixing Xamarin/C# and native Java code might be technically possible, I would rather make a choice for either one of them.
I can't answer your questions about eclipse and required libraries, but I hope my answer is of some use.
Regards,
Alex

Related

Question for developers

I want to learn how to develop small apps for the pocket pc platform.
What language should I learn. What software do u use?
Visual Basic? c++ ? I am kinda stuck.
Can someone point me in the right direction... also where can I find good documentation on developing for this platform?
Thanks
visual studio .net 2003 let you make applications for the xda in c++, c# and basic
embedded visual studio let you make applications for the xda in c++ using mfc and win32
you can also use powerbuilder i think it's called
and gc as in the gnu compiler
which language you want to use is up to you really
Hi,
i just decompressed a .cab file found in my MDA compact extended rom:
Default_PhonePad_ITA_RC10.CAB
i found a lot of files....
0CeSetup.001
0CeSetup.999
IN05D9~1.020
IN71C6~1.016
etc..
etc...
the question is easy...
how can i open these files? What kind of language are those files programmed with?
thanks in advance
how can i open these files? What kind of language are those files programmed with?
Click to expand...
Click to collapse
they would be Binary files as in already compiled files you it matter not which language they are written in as when they are compiled they are nothing but 0's and 1's
how you open them really depend on what you mean by opening them
if you mean that you want to run the application then you should not extract the files just doubleclick on the cab file and it autoinstall
if you mean how you edit cab files then there are many cab file editors
try doing a search in the forum or on google
if you mean that you want to decompile them back to code then i'm sure there are tools for that too but code which have already been compiled and then taken back to code looks very very bad
and you need to really understand win32 sdk to understand much of whats going on
decompilers should be able to decompile to what ever langauge they support no matter which language the program originaly was written in
Additional Programs
For Cabs: use the WinCE CAB Manager, download here: sorry forgot the link, just search here.
For ms_.nbf: use the windows mobile 2003 ROM Editor, download here: http://forum.xda-developers.com/download.php?id=3208
Rudegar said:
visual studio .net 2003 let you make applications for the xda in c++, c# and basic
embedded visual studio let you make applications for the xda in c++ using mfc and win32
you can also use powerbuilder i think it's called
and gc as in the gnu compiler
which language you want to use is up to you really
Click to expand...
Click to collapse
Incorrect. Visual Studio.net 2003 lets you make c# questions for PocketPC, but nothing else. For C++ you needed embeddded visual studio.
Visual Studio.Net 2005 does add everything, but thats in beta.
btf
they would be Binary files as in already compiled files you it matter not which language they are written in as when they are compiled they are nothing but 0's and 1's
Click to expand...
Click to collapse
ok, got it
if you mean that you want to decompile them back to code then i'm sure there are tools for that too but code which have already been compiled and then taken back to code looks very very bad
and you need to really understand win32 sdk to understand much of whats going on
decompilers should be able to decompile to what ever langauge they support no matter which language the program originaly was written in
Click to expand...
Click to collapse
yes, i meant this. Decompiling the cab file to read the code.
I thought there was a compiler for each language, that's why i was asking.
If somebody could suggest a free good decompiler....
well a cab file is not a program is more like a zip file
use the cab thingy mentioned and get the dll and exe files out of the cab file
here is what you would look for if the programs like most games is in pure ARM code
http://www.google.dk/search?q=arm+decompiler&btnG=Søg&hl=da
maybe this would help if you are trying to access .net
http://www.programmersheaven.com/search/download.asp?FileID=38892
how you go about it when you know something about the arm asm and maybe want to write your own decompiler
http://list.cs.brown.edu/pipermail/plt-scheme/2004-August/006284.html
maybe this
http://compilers.iecc.com/comparch/article/01-09-046
or if you feel luckey
http://www.google.dk/search?hl=da&q=pocketpc+decompiler&btnG=Søg&meta=
cab
my apology...cab is not a program...

HOWTO start MIDP Application development - some questions ..

Hey guys,
Currently I am Java programmer (applications and applets for PCs), but I want to try something new, and so I am instersted in developing apps for cellphones. Hope you can answer my questions:
1) MIDP 2.0 does support animated gifs and allows me to access the phones memory (for loading files) when the phone supports this, right? Whats the name of the API that allows me to access the phones memory?
2) Whats the best free development platform for MIDP 2.0 at the moment? Currently I use Eclipse, but I guess I need something else for mobile development.
3) Are there any websites with tutorials that give me a lil introduction to MIDP? Any links are welcome.
Just started to look at this myself, though not fully understanding it yet, managed to get a MIDP helloworld class compiled and .jar created just using javac / command line so far, but haven't managed to get it working on the device yet, need to look into preverifying so i'm told.
2) J2ME toolkit perhaps, free with registration on java.sun.com, explanation of it is in the link in reply (3), might be worth a look first to see if it's what you're after.
3) http://www.codeguru.com/Cpp/W-P/ce/networking/article.php/c7911/
If anyone has any further info, please respond.
http://today.java.net/pub/a/today/2005/02/09/j2me1.html?page=2
works

System.Diagnostics.Process alternative to launch an app

Hi,
I want to launch an app/file from within my C# program. The common way to do this is to use System.Diagnostics.Process class
e.g. System.Diagnostics.Process.Start(@"MyFile.txt");
This class does not seem to be available in CFv1.0. Is there an alternative way to run a file from within my code?
Dev Env: C#, VS2005, WM5.0 PPC and Compact Framework v1.0 (I have to stick with CFv1.0)
Thanks for any help and code given
Any takers? I'm still struggling to find a way to run another file from within my c# program. I can do in VB if it helps me. I don't think this should be difficult but I am coming up blank without being able to use System.Diagnostics.Process class (only available in CFv2.0)
This class was missing in the v1.1 CF Framework... and as such, there is no way to launch a thread.
You must upgrade to the v2.0 framework.
I need to find an alternative to using the System.Diagnostics.Process class. I have to support CFv1 devices with the install so cannot upgrade to CFv2
You can do it by P\Invoking the CreateProcess function.

Softwares required for Android App Development

Hi All,
I am a Software developer(Database Developer) and now i want to dabble in Android app making.
What are the necessary softwares required and programming language.
Please provide me the links for download too.I am on windows 8 pc 32 bit.
PS:I know the basics of Core Java with syntax and can write small programmes like Add,Subtract,Etc:laugh:
There are active threads about IDEs in this subforum ("IDE of choice for newcommers" for instance). I would recommend downloading Eclipse with the Android Development Tools directly from
developer.android.com/sdk/index.html
This package comes with a full Eclipse IDE, which provides the Android SDK including the build tools for Android. For me that has been everything necessary for developing for Android.
I suggest to you to use Android Studio, it is getting an Android Standard.
If you are more familiar with Eclipse you can start with it, but then you should move to Android Studio.
As AVD (Android Emulator) you can use the integrated emulator or use genymotion, that is much faster!
Just download the ADT from Google, it has the SDK and Eclipse in one package.
Hi for a pretty simple way to query databases and display you could have a look at GoAppzone, using the developer notes you can write a functioning app that can query write and delete, to Oracle, MySQL, SQL and OBDC databases,
You can test it out on your phone using Go Appzone showtime. Only downside is you have to pay for the ability to publish apps, The upside is that you can deploy them on all the major phone operating systems, without having to alter your code.
You can also try Unity3D - for a trial run. Unity has the possibility to publish your apps to Android, iOS, etc
raydekk said:
You can also try Unity3D - for a trial run. Unity has the possibility to publish your apps to Android, iOS, etc
Click to expand...
Click to collapse
Yep, Unity3d for Mobile is Free, you can publish on every mobile OS out there.
rahulraj.1 said:
Hi All,
I am a Software developer(Database Developer) and now i want to dabble in Android app making.
What are the necessary softwares required and programming language.
Please provide me the links for download too.I am on windows 8 pc 32 bit.
PS:I know the basics of Core Java with syntax and can write small programmes like Add,Subtract,Etc:laugh:
Click to expand...
Click to collapse
In my case I use Android Studio for Apps Development .It is very good as easy to use.You should download it from http://tools.android.com instead of http://developers.android.com. Current Release is 1.0 RC2 in canary channel. It also have SDK inbuilt. You should have JDK installed and JAVA_HOME defined.
Basic Java and Android Documentation is enough but if you want to use native code you may install NDK.
Unity is only needed for Game Development I use Unity free and my basic knowledge of C# for game development.
---------- Post added at 04:59 AM ---------- Previous post was at 04:51 AM ----------
Crichton333 said:
Just download the ADT from Google, it has the SDK and Eclipse in one package.
Click to expand...
Click to collapse
With release of Android Studio RC2 I don't think ADT will be preferred.Google itself is promoting Android Studio and now it have offline maven repository.Gradle plugin is 1.0 RC1 and studio is very stable now.
---------- Post added at 05:05 AM ---------- Previous post was at 04:59 AM ----------
raydekk said:
You can also try Unity3D - for a trial run. Unity has the possibility to publish your apps to Android, iOS, etc
Click to expand...
Click to collapse
He is asking for Apps Development and Unity is a game engine and only needed for game development.Anyway Unity free is enough for learning as a beginner is not going to use its pro functions like linear lighting.
just SDK(has Eclipse) and NDK from android official site and Java sdk(jre)
Hello
Necessary IDE are Android Studio or Eclipse (with Android SDK). Language (native) is java.
Just download the Android Studio bundle from Google. You will get the IDE and the latest SDK you need to start off. You also need to download the latest JDK as the native language to code is Java here.
You may need to use Adobe Photoshop or Illustrator to design icons or other app graphics as needed.
If you have to develop a videogame, use ide like Unity, it is the best way to begin

Android app with Gradle in Eclipse

Greetings!
I just started my internship in a company that develops android applications., but i have a problem. My boss insists that i work in Eclipse, but I'm unable to follow instructions from android developers site because my eclipse app doesnt have gradle.
To be precise, my job is to implement push messages into existing app but I'm stuck at these lines:
Add the dependency to your project-level build.gradle:
classpath 'com.google.gms:google-services:1.5.0-beta2'
Add the plugin to your app-level build.gradle:
apply plugin: 'com.google.gms.google-services'
dependencies {
compile "com.google.android.gmslay-services:8.4.0"
}
Is there a way to work around using gradle, and do this other way, or alternatively is there a way to add build.gradle files to my project.
I'm pretty worried because this is my first job, and I'd like to do and learn as much as possible but I'm just stuck. If someone could explain to me step by step what to do when i stumble upon a gradle, would appreciate it immensely.
Thanks
You can try to use Gradle (STS) Integration for Eclipse, but it's very hard
If you need to use Eclipse for Android development it is highly recommended to use ADT plugin: http://developer.android.com/tools/sdk/eclipse-adt.html
It is developed by Google for Android development and was the only choice few years ago. Now they support only Android Studio but you can of course use Eclipse. You may find an Eclipse ADT bundle as well somewhere which is an eclipse integrated with ADT. If I remember well it do have a Gradle plugin but if not then use Gradle STS from Eclipse marketplace
why dont you use Android studio?

Categories

Resources