Re: [mono-android] Crash in Release Mode

2011-12-28 Thread was
Not quite! On my laptop I have to use:

Stream myInput = Assets.Open("SkylogPro.db"); 

whereas on my Desktop I have to use:

Stream myInput = Assets.Open("skylogpro.db"); 

The file in the Assets folder on both machines is: SkylogPro.db! How does
one clear the Assets cache? I've deleted and added the file in the Assets
folder, used Build>Clean etc, but nothing works.

Regards...Andrew

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Crash-in-Release-Mode-tp5099176p5105146.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


Re: [mono-android] Crash in Release Mode

2011-12-28 Thread was
Sorry, it's not different on my computers. This should read:

Not quite! In Release mode I have to use: 

Stream myInput = Assets.Open("SkylogPro.db"); 

whereas in Debug mode I have to use: 

Stream myInput = Assets.Open("skylogpro.db"); 

The file in the Assets folder is: SkylogPro.db! How does one clear the
Assets cache? I've deleted and added the file in the Assets folder, used
Build>Clean etc, but nothing works.
 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Crash-in-Release-Mode-tp5099176p5105166.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


Re: [mono-android] VS2010 editing .axml files

2011-12-28 Thread efontana
The odd thing was is simply started working again, after a long delay. very
strange.

-
iPhone and Android Developer

www.ericfontana.com 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/VS2010-editing-axml-files-tp5103576p5105251.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


[mono-android] Unable to build Mono for Android Samples?

2011-12-28 Thread efontana
I tried to build the API demo, getting these errors:

-- Build started: Project: ApiDemo, Configuration: Debug Any CPU --
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\Graphics\Compass.cs(51,20):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorOrientation'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\Text\LogTextBox.cs(28,39):
error CS1502: The best overloaded method match for
'Android.Widget.TextView.TextView(Android.Content.Context)' has some invalid
arguments
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\Text\LogTextBox.cs(28,45):
error CS1503: Argument 1: cannot convert from 'System.IntPtr' to
'Android.Content.Context'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(48,19):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorAccelerometer'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(49,19):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorMagneticField'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(50,19):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorOrientation'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(60,19):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorAccelerometer'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(61,19):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorMagneticField'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(62,19):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorOrientation'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(199,35):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorAccelerometer'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(207,41):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorMagneticField'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\OS\Sensors.cs(215,36):
error CS0117: 'Android.Hardware.SensorManager' does not contain a definition
for 'SensorMagneticField'
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\Graphics\PictureLayout.cs(115,5):
warning CS0162: Unreachable code detected
C:\Users\eric\Downloads\mono-monodroid-samples-2b756b6\ApiDemo\Tutorials\FormWidgetsTutorial.cs(27,13):
error CS0079: The event 'Android.Views.View.KeyPress' can only appear on the
left hand side of += or -=

Compile complete -- 13 errors, 1 warnings
== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==


-
iPhone and Android Developer

www.ericfontana.com 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Unable-to-build-Mono-for-Android-Samples-tp5105395p5105395.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


Re: [mono-android] Unable to build Mono for Android Samples?

2011-12-28 Thread efontana
I'm fully up-to-date on all software.

-
iPhone and Android Developer

www.ericfontana.com 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Unable-to-build-Mono-for-Android-Samples-tp5105395p5105397.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


Re: [mono-android] Unable to build Mono for Android Samples?

2011-12-28 Thread ChrisNTR
Hi Eric,

>From the information above, it looks like you downloaded an old GitHub
version from mono/monodroid-samples. This was moved a month or two ago over
to xamarin so the download now is xamarin/monodroid-samples. It might be
worth re-downloading the samples from here:
https://github.com/xamarin/monodroid-samples (which will contain
fixes/updates for the samples etc) and see if you can get them to run.

I hope this helps,

Chris Hardy

On Wed, Dec 28, 2011 at 9:46 AM, efontana  wrote:

> I'm fully up-to-date on all software.
>
> -
> iPhone and Android Developer
>
> www.ericfontana.com
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Unable-to-build-Mono-for-Android-Samples-tp5105395p5105397.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
>



-- 
ChrisNTR
Microsoft ASPInsider
http://weblogs.asp.net/chrishardy
http://twitter.com/chrisntr
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] How to navigate to anther page from activity1 class

2011-12-28 Thread caruso
You mean an Intent

Intent intent = new Intent();
intent.SetClass(this, typeof(CLASS_TO_START));
/* if you want some Extras in the Intent */
intent.PutExtra("KEY", "DATA");
StartActivity(intent);

In the Second Activity:

 string DataFromFirstIntent = Intent.GetStringExtra("KEY");

More About Intents look here:
http://docs.xamarin.com/android/getting_started/Hello_Multiscreen_Applications?highlight=Intent

OR by Android
http://developer.android.com/reference/android/content/Intent.html

Greetz Enrico

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/How-to-navigate-to-anther-page-from-activity1-class-tp5105091p5105412.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


Re: [mono-android] Unable to build Mono for Android Samples?

2011-12-28 Thread efontana
That was it! I guess I picked the wrong link!

-
iPhone and Android Developer

www.ericfontana.com 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Unable-to-build-Mono-for-Android-Samples-tp5105395p5105414.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


Re: [mono-android] Unable to build Mono for Android Samples?

2011-12-28 Thread ChrisNTR
Where'd you find that link? We should probably update it so other people
don't run into the same issue :)

Chris Hardy

On Wed, Dec 28, 2011 at 9:58 AM, efontana  wrote:

> That was it! I guess I picked the wrong link!
>
> -
> iPhone and Android Developer
>
> www.ericfontana.com
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Unable-to-build-Mono-for-Android-Samples-tp5105395p5105414.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
>



-- 
ChrisNTR
Microsoft ASPInsider
http://weblogs.asp.net/chrishardy
http://twitter.com/chrisntr
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


[mono-android] An examples using the SearchDialog?

2011-12-28 Thread efontana

Anyone converted and used this:

http://developer.android.com/guide/topics/search/search-dialog.html




-
iPhone and Android Developer

www.ericfontana.com 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/An-examples-using-the-SearchDialog-tp5105626p5105626.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


[mono-android] Opening the "Android Virtual Device(AVD)", it show an "Just In Time debugging" Error

2011-12-28 Thread Pritish
Hello ,

   Thanks for previous help. 

Now i am facing new error while opening the "Android Virtual
Device(AVD)",it show an "Just In Time debugging" error while click on No
button it terminate the AVD also click on Yes button the AVD becomes hang.

please help me to trigger out from the error.

Regards
Pritish 
 


-
Regards
Pritish
--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Opening-the-Android-Virtual-Device-AVD-it-show-an-Just-In-Time-debugging-Error-tp5103068p5103068.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


[mono-android] How to navigate to anther page from activity1 class

2011-12-28 Thread sachin nikam
I am very new to perticularly this.I want redirect my page to another page
present in solution exlporer.

How do i achieve this.
Please help ASAP.

Thanks,
sachin. 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/How-to-navigate-to-anther-page-from-activity1-class-tp5105091p5105091.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


Re: [mono-android] TypeLoadException for custom type when using shared runtime

2011-12-28 Thread warren burch
I had a similar issue. Turning off fast deployment for all my libraries fixed
this up for me. Hope it does for you too.

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/TypeLoadException-for-custom-type-when-using-shared-runtime-tp5104628p5105676.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


Re: [mono-android] OnTouchEvent responsiveness gets progressively poorer

2011-12-28 Thread warren burch
Hmmm. To try and work around the problem above I tried circumventing MFA
handling of touch event entirely but I am seeing another problem. 

If I make a little android app in Eclipse and dump out the OnTouch events I
see all the expected events (DOWN/MOVE/UP/etc.), if I do the same in my mono
app referencing the view.Handle and attaching an OnTouchListener in java to
it I only see ACTION_DOWN!

Is MFA eating the other events? I can send projects as an illustration if
you would like.

Confused.
Warren

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/OnTouchEvent-responsiveness-gets-progressively-poorer-tp5104000p5105682.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


Re: [mono-android] An examples using the SearchDialog?

2011-12-28 Thread caruso
Iam sitting on it, at the End it is not much effort behind it but the first
time i thought this is very hard to understand.

For the content Provider i have used the Content Provider from the Samples
and written it so that it suits me. Import is to use the
SearchManager.Suggest - Colums for your Query.

Changed the names from the Example in the Manifest, that it find my content
provider.

Maybe i will write in the next one month a tutorial for this.

-
greetz Enrico

student from germany
--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/An-examples-using-the-SearchDialog-tp5105626p5105710.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


Re: [mono-android] An examples using the SearchDialog?

2011-12-28 Thread efontana
Any chance you can zip up the project and post it?

-
iPhone and Android Developer

www.ericfontana.com 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/An-examples-using-the-SearchDialog-tp5105626p5105768.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


[mono-android] Using MediaRecorder

2011-12-28 Thread John Croft
When I try to call MediaRecorder.SetAudioSource(AudioSource.Mic) I get the
following error and stack trace:

UNHANDLED EXCEPTION: Java.Lang.RuntimeException: Exception of type
'Java.Lang.RuntimeException' was thrown.
I/MonoDroid(20246): at Android.Runtime.JNIEnv.CallVoidMethod
(intptr,intptr,Android.Runtime.JValue[]) <0x00074>
I/MonoDroid(20246): at Android.Media.MediaRecorder.SetAudioSource
(Android.Media.AudioSource) <0x00157>
I/MonoDroid(20246): at
SimpleMediaRecorder.MediaRecorderActivity.StartRecording () <0x0005f>
I/MonoDroid(20246): at
SimpleMediaRecorder.MediaRecorderActivity.m__0
(object,System.EventArgs) <0x00027>
I/MonoDroid(20246): at
Android.Views.View/IOnClickListenerImplementor.OnClick (Android.Views.View)
<0x0005f>
I/MonoDroid(20246): at
Android.Views.View/IOnClickListenerInvoker.n_OnClick_Landroid_view_View_
(intptr,intptr,intptr) <0x00063>
I/MonoDroid(20246): at (wrapper dynamic-method)
object.e0cb1123-e1af-4525-961a-2bac254e4ede (intptr,intptr,intptr) <0x00033>
I/MonoDroid(20246): 
I/MonoDroid(20246):   --- End of managed exception stack trace ---
I/MonoDroid(20246): java.lang.RuntimeException: setAudioSource failed.
I/MonoDroid(20246): at android.media.MediaRecorder.setAudioSource(Native
Method)
I/MonoDroid(20246): at
mono.android.view.View.OnClickListenerImplementor.n_onClick(Native Method)
I/MonoDroid(20246): at
mono.android.view.View.OnClickListenerImplementor.onClick(OnClickListenerImplementor.java:27)
I/MonoDroid(20246): at android.view.View.performClick(View.java:2408)
I/MonoDroid(20246): at android.view.View$PerformClick.run(View.java:8816)
I/MonoDroid(20246): at android.os.Handler.handleCallback(Handler.java:587)
I/MonoDroid(20246): at android.os.Handler.dispatchMessage(Handler.java:92)
I/MonoDroid(20246): at android.os.Looper.loop(Looper.java:123)
I/MonoDroid(20246): at
android.app.ActivityThread.main(ActivityThread.java:4627)
I/MonoDroid(20246): at java.lang.reflect.Method.invokeNative(Native Method)
I/MonoDroid(20246): at java.lang.reflect.Method.invoke(Method.java:521)
I/MonoDroid(20246): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
I/MonoDroid(20246): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
I/MonoDroid(20246): at dalvik.system.NativeStart.main(Native Method)

TIA -
John

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Using-MediaRecorder-tp5106306p5106306.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