[Q] Mono for Android - Frameworks

Hello guys,
*
A friend of mine,who writes programs in C #, asked me to post a little question for him here. He decided to do a little programming for the mobile platform, on Mono. Everything went well so far,until he had to test it on a mobile device.It installs fine,but the problem is when I start the app on the phone (it's Galaxy S, same happens with Wildfire S, it opens and immediately closes, without any error messages or anything. We have tested it in SDK Tools emulator and it worked fine there.
*
As I mentioned earlier,phones are Samsung Galaxy i9000 with CyanogenMod 2.3.7 and HTC Wildfire S with CM7.2 (same happens with stock rom) and it is written in Mono for Android and the IDE is Visual Studio 2012.
Is there any tool which could help him to track the problem?*
Do you perhaps know where could be a problem?
I can upload app if necessary
*
Thanks

logcat
Have you tried inspecting the logcat output? With the tools provided in the Android SDK, you can either view that output from the command line:
Code:
adb logcat
or use the DDMS GUI.

Here's logcat I did.
Code:
I/ActivityThread( 8627): Pub Test.Test.mono.MonoRuntimeProvider.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 8627): Trying to load lib /data/data/Test.Test/lib/libmonodroid.so 0x40518480
D/dalvikvm( 8627): Added shared lib /data/data/Test.Test/lib/libmonodroid.so 0x40518480
E/mono ( 8627): WARNING: The runtime version supported by this application is unavailable.
E/mono ( 8627): Using default runtime: v2.0.50727
E/mono ( 8627): The assembly mscorlib.dll was not found or could not be loaded.
E/mono ( 8627): It should have been installed in the `/Users/builder/data/lanes/
monodroid-mac-monodroid-4.2.6-branch/632e6ddf/source/monodroid/builds/install/mono-armv6/lib/mono/2.0/mscorlib.dll' directory.
I/ActivityManager( 729): Process Test.Test (pid 8627) has died.
Same happens with simple Hello world app.

Looks like it could be a problem with your Monodroid installation. This StackOverflow thread might be of some help: stackoverflow.com/questions/8634176/how-can-i-fix-a-missing-mscorelib-dll-error-that-occurs-when-trying-to-run-a-mon

I don't know what was the problem but after trying 'Release mode' instead of Debug mode app worked on phone too.
Thanks for help

manutdsnake said:
I don't know what was the problem but after trying 'Release mode' instead of Debug mode app worked on phone too.
Thanks for help
Click to expand...
Click to collapse
Release mode packages up the mono runtimes, the debug option doesn't. In theory, you can use debug in future as the mono stuff should now be on the device, I think.

manutdsnake said:
Hello guys,
*
A friend of mine,who writes programs in C #, asked me to post a little question for him here. He decided to do a little programming for the mobile platform, on Mono. Everything went well so far,until he had to test it on a mobile device.It installs fine,but the problem is when I start the app on the phone (it's Galaxy S, same happens with Wildfire S, it opens and immediately closes, without any error messages or anything. We have tested it in SDK Tools emulator and it worked fine there.
*
As I mentioned earlier,phones are Samsung Galaxy i9000 with CyanogenMod 2.3.7 and HTC Wildfire S with CM7.2 (same happens with stock rom) and it is written in Mono for Android and the IDE is Visual Studio 2012.
Is there any tool which could help him to track the problem?*
Do you perhaps know where could be a problem?
I can upload app if necessary
*
Thanks
Click to expand...
Click to collapse
You have to install the mono runtime on the phone.

He have to link assemblies and SDK, to do it goto Properties.

Before the new Xamarin 2.0 MonoDroid would only allow you to publish an apk to a device if you purchased a full licence. Just upgrade to the new Xamarin 2.0 and you will then be able to use the framework using Starter Edition up to 32kb of managed code for free. This will allow you to publish the apk with the framework bits linked correctly

Related

[Q] Setting up Eclipse

Hey all I was wondering if someone could help me out in installing and setting up eclipse. I tried before and ended up installing something called glassfish3 or something like that so what would be ideal is a list of links to the downloads I need to get maybe in the order I need to install them in? =P It would really be greatly appreciated!
Thanks,
D3luSi0n4L
Anyone? Please! I have the JDK & Java & Eclipse installed and Eclipse will not startup, I get an error....
"A Java Runtime Enviroment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual machine was found after searching the following locations:
C:\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
Someone suggested that I need to install the SDK but I thought that was only needed specifically for Android? & Before i setup Android I'd like to have Eclipse fully functional to avoid and problems that could occur. I installed Eclipse for EE Developers or whatever, the biggest file they and I installed JDK 6 Update 21
Eclipse (Top One) : eclipse*dot*org/downloads/
Java : oracle*dot*com/technetwork/java/javase/downloads/index.html
Any and all help is greatly appreciated!
Sincerely,
D3luSi0n4L
I'm almost close of not asking any more questions but I had problems with apk manager, I got it right, and I had problems with Avabox, and I got that right but now I'm having problems with Eclipse. I installed basically both files of Eclipse the big file and the small fiile (I didn't know which one I needed).
when I open the eclipse program I get this message:
"Failed to load the JNI shared library : c:\program files (x86)\java\jre6\bin\client\jvm.dll
I don't know what this means. can someone help me? thanks.
Sorry I'm also a noob at installing eclipse, but thought this might be a good place to ask my question too. I found a tutorial on how to install everything (i.e. eclipse, JDK, and SDK) put it said I needed to change my PATH to point to /tools and now after doing that I can't open eclipse. I go the same error you did in your first post. I'm thinking I needed the other lines that were in the PATH, but now I don't know what they were.
If you follow the steps here, it is fairly simple and easy:
http://developer.android.com/sdk/installing.html
You have to download first de java JDK (jre is not enought) and then download and instal eclipse... Just follow the instructions on the link
Sent from my GT-P1000 using XDA App
I've gone through this and had eclipse up and running. Even created some AVDs. Here is the part that screwed it up though.
"On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ and platform-tools/ directories to the path. "
D3luSi0n4L said:
Anyone? Please! I have the JDK & Java & Eclipse installed and Eclipse will not startup, I get an error....
"A Java Runtime Enviroment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual machine was found after searching the following locations:
C:\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
Someone suggested that I need to install the SDK but I thought that was only needed specifically for Android? & Before i setup Android I'd like to have Eclipse fully functional to avoid and problems that could occur. I installed Eclipse for EE Developers or whatever, the biggest file they and I installed JDK 6 Update 21
Eclipse (Top One) : eclipse*dot*org/downloads/
Java : oracle*dot*com/technetwork/java/javase/downloads/index.html
Any and all help is greatly appreciated!
Sincerely,
D3luSi0n4L
Click to expand...
Click to collapse
I downloaded the 32 bit version of eclipse and javaw.exe was not missing anymore. How do i use eclipse though?
Edit: I get it, JDK.

Android Screencast (My Mobiler for Android) and Android Screen Monitor

Hey guys, i just wanted to share these applications that i found awhile back. I have them posted in the old vogue forums but they still come in very handy to me.
I DID NOT DEVELOPE ANY OF THIS SOFTWARE. CREDIT GOES TO THE DEVELOPERS
Some of you may already have these.
If you have Android SDK, ADB and JAVA, all you need to do is download the attached files, extract, and run them.
Link To Android SDK
Link To Java
Android Screen Monitor
This is a really nice and easy to use screen monitoring\screenshot program.
ASM is an Android Debug Bridge (adb) client, When it starts monitoring screen,
ASM connects to adb on port 5037 and receives frame buffer continuously on the device or emulator and transfer image to your desktop window.
You can rotate and scaling monitor window and export a image into PNG file as screen shot tool.
ADB Must be installed
If you have sdk installed skip step 1.
If you have Java JRE(JDK) installed skip step 2
Make sure you have your phone plugged in usb.
1. Make sure ADB is functional
2. Download Android SDK for Windows and place the android-sdk-windows folder on the root of your C:\ Drive.
3. Download and install Latest version of Java
4. Download the attached asm.zip and extract asm.jar out.
5. Place the asm.jar in \android-sdk-windows\tools folder.
6. Right click on asm.jar and place a shortcut on your desktop. Run the jar file or shortcut to bring up the monitor
right click on monitor screen to:
get screenshots
change to landscape\portrait
zoom in or out
_____________________________________________________________
ANDROID SCREENCAST(My Mobiler for Android)
Features
- Mouse and keyboard control FOR ROOTED DEVICES ONLY
- Landscape mode (right click)
- Video recording
- Basic file browser
INSTRUCTIONS
SDK, ADB, and Java are required
Download the attached java file, unzip it, and just run it.
If you have trouble, put it in your sdk\Tools folder and make a shortcut to your desktop.
Should go in the Apps forum, not the android development forum.
dude0909 said:
Should go in the Apps forum, not the android development forum.
Click to expand...
Click to collapse
I thought i was in that forum. Dont know how i got here. Weird
anyone tried these yet?
incubus26jc said:
anyone tried these yet?
Click to expand...
Click to collapse
Yes, I just tried out the Android Screencast. It seemed to work well. I am not sure what I would use it for, but it did work.
I didn't try ASM because I use DDMS for screenshots. DDMS is built into the Android SDK and works perfectly without needing anything extra.
Thanks for the contributions though.
greek keyboard
although it is rather slow, it works Ok.
I can use the english keyboard for composing messages, working with contacts, but when I turn the PC-keyboard to the greek language, I cannot use it with the phone.
Any suggestion pls?
g00gl3 said:
Yes, I just tried out the Android Screencast. It seemed to work well. I am not sure what I would use it for, but it did work.
Click to expand...
Click to collapse
Screencast is great for people like me who are physically disabled and can't use their hands. I used to use EveryWan Personal Edition by Sparus Software which only works with Windows mobile devices...hope screencast will become as good as (or better than) EveryWan!
inverted screen
Hello
I tried the 2 apps : they work fine but the screen display is inverted !
Any idea?
Thanks
my device : ZTE Blade + FLB Froyo 2.2 ROM
(update: same result with webkey)
the same problem with zte blade and CyanogenMod-7.0.0-RC4

[Q] creating a simple app for coloured circle detection using openCV and eclipse

I am new to android app development. I need to develop a very simple app that could detect coloured circles. Can someone please tell me in detail how to use openCV Circle Recognition code in developing a simple android app that can detect coloured circles. I am currently using openCV+ Eclipcs but it does not allow me to compile the source code in to .apk file
I have already done what u are saying...I have done the following
1. I download the full NVidia tegra-devpack-2.0-windows-2013-02-06-14961502 and installed It contains both android ADT for eclipse and eclipse also. It also contains the open CV and it automatically configures everything.
2. Everything works fine when I make a new android app like “my first HELLO WORLD app” and I can even install it to my android phone that means everything is working fine and everything is configured correctly.
3. The problem arises when I try to import the source code of the “CVCamera” an common app for detecting circles in android devices
4. When I import it in the eclipse as an android project from existing code it gives me following 2 errors
(a) Project 'CVCamera' is missing required Java project: 'OpenCV'
(b) The project cannot be built until build path errors are resolved.
5. I have tried lots of things I even tried to link the open CV library to the project but of no use
6. I have a simple objective I want to develop an android application for detection of coloured circles by using the already available code on the web. Please help me in achieving the following
I am using openCV4android . I can even create new apps but the problem arises when I try develop the application by using already made source code. I am using the sources code of the CV camera app which has been already developed by so many developers Following is the link of the error I am getting in the eclipse.

[Oreo] Introducing Android Emulator from Google - the fast boot with snapshot

Android Studio 3.0 ships the latest version of the Android emulator, with the following major new features:
(1) Quick Boot, which allows the emulator to boot in a couple of seconds using state-of-the-art snapshot technologies. The android emulator is the first android virtual machine that supports true OpenGL snapshots.
(2) OpenGL ES 3 support, this means it supports more modern games.
(3) Android Oreo 8.0 and Google Play store support (this is an old feature)
https://androidstudio.googleblog.com/2017/10/android-emulator-2620-canary-with-quick.html
Follow the following steps to install Android studio and the emulator:
(1) Download and Install Android Studio 3.0 here:
https://developer.android.com/studio/index.html
(2) Make sure the Android Emulator version is 26.2+, this is the version that supports Quick Boot.
Go to Android Studio menu Tools > Android > SDK Manager , click Updates tab, and choose Canary Channel, as shown in the screenshot.
Then click Android SDK > SDK Tools, and you should see Android Emulator Update Available 26.2.1, select it and click OK to install.
(3) Create AVD
Go to Android Studio menu Tools > AVD Manager, click Create Virtual Device, you can click Show Advanced Settings to check if Quick Boot is available. If you don't see it, meaning you have an old version of the emulator.
(4) Quick Boot
To verify the Quick Boot feature, when you close the emulator (the + sign from sidebar), you should see a notification of Saving State..., and when you start the AVD, it should boot instantly, and showing Loading State...
Please refer to the attached screenshots for more details.
You can also download the preview version of Android Studio, then can download latest Android emulator directly:
https://developer.android.com/studio/preview/index.html
huisinro said:
You can also download the preview version of Android Studio, then can download latest Android emulator directly:
https://developer.android.com/studio/preview/index.html
Click to expand...
Click to collapse
Is this time the Android Emulator completely separate from the Android studio?
Because you know man Google can develop the best Android Emulator available on the earth but its is not optimising it to be like the what leapdroid was on the PC
---------- Post added at 06:48 AM ---------- Previous post was at 06:47 AM ----------
I definitely know that how people are especially searching for the emulators over the web and you supported that development sometime ago before you join Google so please request on our behalf to the Google to like develop something like Android on desktop so that this open source operating system will have well reach even to the desktop users and not just all those Chrome OS users.
If you've got a brave soul, all direct download links are inside this public xml repository file:
https://dl.google.com/android/repository/repository2-1.xml
for example, the Mac version of the emulator link: https://dl.google.com/dl/android/repository/emulator-darwin-4266726.zip
huisinro said:
If you've got a brave soul, all direct download links are inside this public xml repository file:
https://dl.google.com/android/repository/repository2-1.xml
for example, the Mac version of the emulator link: https://dl.google.com/dl/android/repository/emulator-darwin-4266726.zip
Click to expand...
Click to collapse
I didn't intend to hurt your feelings in any way but what I did was the request from the hundred of the users of the leapdroid community to request you to get the best available emulator that can be developed only by Google by the help of the excellent developers like you.
You know how much popular Leapdroid was when it was in the active development stage and people are worshiping you as the god of the emulator till now
Can you just give the link of the AVD and the emulator only from the XML file for windows so that we will just be able to run the emulator fine, because I am Noob and and I don't have any much idea about reading this XML file
Android Emulator v27 with Quick Boot is launched today:
Blog:
https://android-developers.googleblog.com/2017/12/quick-boot-top-features-in-android.html
Social:
https://twitter.com/AndroidDev/status/942824787633635329
https://plus.google.com/+AndroidDevelopers/posts/XAWLxuc92Wa
OMG!!! The amount of downloads I have to do before I can even try the emulator is crazy. Download Android Studio, download canary. You did not tell us what to do after the canary finished downloading. Also, I can't even find the items in step 3 that you stated in the first post. You did not state that I have to start a new project before I can even find this "AVD Manager". Not everyone is familiar with Android Studio. Then, I have to wait for another download when starting the VM. 1 full hour of downloading at least 3gb of stuff and figuring out where to find stuff and make them work and I have not even managed to open the VM. Cancelled the VM download finally and wasted my time trying to figure out how to get this emulator to work. If you really want people to test your emulator, at least give proper instructions and give a warning how much downloading is needed.

Emulator Kernel Version Missing (Pic Provided)

Trying to build my own AOSP ROM and I keep getting stuck on emulator unable to find the kernel version, though the file is there.
I am using Hyper-V VM with Ubuntu V20 installed and the VHD is exactly that, a .vhd file extension for the virtual hard drive.
I just can not seem to resolve the problem on the missing kernel, also have supplied a pic showing exactly what it says after the build is finished and then I try and run emulator.
Any help or info, links on the matter would be much appreciated and thank you for taking the time to help out.
I have also noticed I can not use "emulator -list-avds" nothing happens. Just exits and terminal is ready for user input again.
So far I did a repo sync again and then a m -checkbuild and just waiting for it to finish to try emulator again
Update: Decided to start from scratch
Changes that I have made.
Using Ubuntu 18.04 for O.S
Switched from M.S Hyper-V to Oracle Virtual-Box (V.B has more features then Hyper-V and is better in performance because of it.).
Virtual HDD is set to .VHD but is on Sata and not IDE now (Virtual-Box only allows it).
Made the VHD a fixed drive instead of dynamic for better performance (Max size of 512GB)
Dedicated 32GB of ram to VM.
Allowed up to 6 cores on a 12 core processor.
might experiment getting Oracle JDK installed instead of using openjdk, due to having issues with it.
UPDATE_1
Fresh build on 18.04 same issues as old build. emulator, avd and android. all not working.
I might have missed a package to download or something or maybe java still is not working. Using openjdk 11 at the moment. I am running out of ideas as to why i can not get it working.
Update_2
Looks like the reason emulator is not working is due to me not installing SDK, I am not using the IDE so I think I need the command-line & Platform tools installed. got to work out how to install it now.
UPDATE_3
SDK from what I know is installed. Now I am getting an output file is missing, but build completed with no issues. Please help, new image also supplied.

Categories

Resources