Re: [mono-android] pp crashes when opening

2012-12-17 Thread Jonathan Pryor
On Dec 17, 2012, at 11:12 AM, Javier Martínez Sáez  
wrote:
> I have built, aligned and signed my app..
>  
> Then I install it using adb.

Is this a Debug build or a Release build?

>From the logcat output, I suspect that this is a Debug build (or it's a 
>Release app with the shared runtime enabled, which is not a supported 
>configuration). Debug builds are not "stand-alone"; they require the presence 
>of other packages and files be installed on the target.

Debug builds should be installed from within the IDE, or lacking that, with 
MSBuild:

MSBuild /t:Install YourApplicationProject.csproj

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


[mono-android] DatabaseUtils.getTypeOfObject binding is missing

2012-12-17 Thread Jeremy A. Kolb - ARA/NED
I'm not seeing this function in DatabaseUtils.
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


[mono-android] How to tell is Java.Lang.Object is byte[]

2012-12-17 Thread Jeremy A. Kolb - ARA/NED
I'm trying to replicate DatabaseUtils.getTypeOfObject and am running into 
trouble telling it the object is a byte[].

The code in the android source is:

} else if (obj instanceof byte[]) {
return Cursor.FIELD_TYPE_BLOB;

"obj is byte[]" doesn't work so I tried:

Type type = obj.GetType();
if (type.IsArray && type.GetElementType() == typeof(Java.Lang.Byte))
return FieldType.Blob;

However type.IsArray fails.

Jeremy
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] How to tell is Java.Lang.Object is byte[]

2012-12-17 Thread Jonathan Pryor
On Dec 17, 2012, at 1:45 PM, Jeremy A. Kolb - ARA/NED  wrote:
> I’m trying to replicate DatabaseUtils.getTypeOfObject and am running into 
> trouble telling it the object is a byte[].

I assume you have:

Java.Lang.Object obj = ...;

If so, the easiest way to check that is:

if (obj.Class.Name == "[B") {
byte[] contents = (byte[]) obj;
}

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


[mono-android] Mono out of synch - broken mono install

2012-12-17 Thread dickies
Using a MacBook with Snow Leopard I tried to investigate an issue in my app
with  MonoDroid.UrlImageViewHelper
  .

With Mono for Android 4.2.5 it was returning a lot of timeouts and was
unreliable on my device (Android 2.2) because images were not being
returned. So I did a bit of digging and found that this might be the cause:
https://bugzilla.xamarin.com/show_bug.cgi?id=7025

I then stupidly allowed the automatic updates to run in MonoDevelop which
installed MonoDevelop 3 and updated Mono for Android to the latest version.

When I tried to deploy to my device after this nothing would deploy because
it needed Mountain Lion. My MacBook won't support Mountain Lion so I'm stuck
for the time being.

My only option was to try to rollback so I now have:

- Mono Framework 2.10.9
- Mono for Android 4.2.5
- MonoDevelop 2.8
- MonoTouch 5.4.0

My project builds ok, but when deploying to an emulator I get this error:

'cant resolve internal call to
"System.Reflection.FieldInfo::get_marshal_info()" (tested without signature
also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: mscorlib.dll

When you update one from svn you need to update, compile and install the
other too...

You probably have a broken mono install'

Can anyone give me some clues how to mend my install?

Cheers,

Steve



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Mono-out-of-synch-broken-mono-install-tp5712632.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] Splash Page on Resume

2012-12-17 Thread craig
I saw this tutorial on splash pages:

http://docs.xamarin.com/Android/Guides/User_Interface/Creating_a_Splash_Screen

However, boss wants the app to reload data from server and re-display splash
page whenever app is resumed from background, which could be in the middle
of the app instead of at the very beginning.  Is there a good strategy for
doing this?

I've tried a couple different ways but all have flaws.  Thanks for your
help.



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Splash-Page-on-Resume-tp5712633.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] Mono out of synch - broken mono install

2012-12-17 Thread Jonathan Pryor
On Dec 17, 2012, at 3:32 PM, dickies  wrote:
> My project builds ok, but when deploying to an emulator I get this error:
> 
> 'cant resolve internal call to 
> "System.Reflection.FieldInfo::get_marshal_info()" (tested without signature 
> also)
> 
> Your mono runtime and class libraries are out of sync. The out of sync 
> library is: mscorlib.dll

The assemblies you build your code against on your machine need to be the same 
versions as that found on your target device. This is presumably a Debug build 
of your app, and thus your app is using the Mono.Android.DebugRuntime and 
Mono.Android.Platform.ApiLevel_* packages on your target, and your target may 
have a different version than what is installed on your development machine.

(This shouldn't happen, as IDE-based deploy should be checking the package 
versions and re-deploying when they don't match, but it's not unheard of for 
things to break...)

I would suggest opening Settings > Apps on your target, and removing all "Mono" 
packages. Then clean + rebuild your project, then re-deploy. The shared runtime 
packages should be reinstalled onto the target device, and they should match 
what your app was built against.

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] pp crashes when opening

2012-12-17 Thread Javier Martínez Sáez
It's a release build. I am trying to make the apk file.
Let me explain to you what I am doing..

1) zipalign -v 4 d:\android\egestionaMobile.egestionaMobile.apk 
d:\egestionaMobile.apk --> I think This makes me the apk file.
2) jarsigner -verbose -keystore d:\egestiona-mobile.keystore 
d:\egestionaMobile.apk egestiona-mobile --> I think this signs the apk file.
3) Adb install D:\egestionaMobile.apk --> I think this installs my app on my 
device.

I think there is something wrong on my project properties or something... use 
shared runtime is unchecked.

But with this configuration I am able to deploy it on my device with no 
problems..

I have just unchecked use shared runtime. That’s the difference between debug 
and release mode.

Thanks in advance!

Un saludo

Javier Martínez Sáez
Responsable Soporte Técnico eLegisla


www.externalia.com
Tfno.:  945 291 684 | Fax 945 205 228
sopo...@egestiona.es



www.egestiona.es | www.elegisla.es | www.eadr.es

 CLÁUSULA DE CONFIDENCIALIDAD 
Este mensaje electrónico y todos los ficheros adjuntos que contiene son 
confidenciales y destinados exclusivamente para el uso de la o las personas a 
las que va dirigido, pudiendo estar sujeta a Secreto Profesional. Si usted ha 
recibido este mensaje por error, le agradecemos lo comunique al emisor. 
Asimismo, le informamos que la distribución, copia o utilización de este 
mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su 
finalidad, están prohibidas por la ley.
 Antes de imprimir este e-mail piense bien si es necesario hacerlo. El 
medioambiente es cosa de todos


-Mensaje original-
De: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] En nombre de Jonathan Pryor
Enviado el: lunes, 17 de diciembre de 2012 17:47
Para: Discussions related to Mono for Android
Asunto: Re: [mono-android] pp crashes when opening

On Dec 17, 2012, at 11:12 AM, Javier Martínez Sáez  
wrote:
> I have built, aligned and signed my app..
>  
> Then I install it using adb.

Is this a Debug build or a Release build?

From the logcat output, I suspect that this is a Debug build (or it's a Release 
app with the shared runtime enabled, which is not a supported configuration). 
Debug builds are not "stand-alone"; they require the presence of other packages 
and files be installed on the target.

Debug builds should be installed from within the IDE, or lacking that, with 
MSBuild:

MSBuild /t:Install YourApplicationProject.csproj

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] pp crashes when opening

2012-12-17 Thread Javier Martínez Sáez
I forgot to say the first step.. package egestionamobile for Android (.apk).

Thanks!

Un saludo

Javier Martínez Sáez
Responsable Soporte Técnico eLegisla


www.externalia.com
Tfno.:  945 291 684 | Fax 945 205 228
sopo...@egestiona.es



www.egestiona.es | www.elegisla.es | www.eadr.es

 CLÁUSULA DE CONFIDENCIALIDAD 
Este mensaje electrónico y todos los ficheros adjuntos que contiene son 
confidenciales y destinados exclusivamente para el uso de la o las personas a 
las que va dirigido, pudiendo estar sujeta a Secreto Profesional. Si usted ha 
recibido este mensaje por error, le agradecemos lo comunique al emisor. 
Asimismo, le informamos que la distribución, copia o utilización de este 
mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su 
finalidad, están prohibidas por la ley.
 Antes de imprimir este e-mail piense bien si es necesario hacerlo. El 
medioambiente es cosa de todos



-Mensaje original-
De: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] En nombre de Javier Martínez Sáez
Enviado el: martes, 18 de diciembre de 2012 8:35
Para: 'Discussions related to Mono for Android'
Asunto: Re: [mono-android] pp crashes when opening

It's a release build. I am trying to make the apk file.
Let me explain to you what I am doing..

1) zipalign -v 4 d:\android\egestionaMobile.egestionaMobile.apk 
d:\egestionaMobile.apk --> I think This makes me the apk file.
2) jarsigner -verbose -keystore d:\egestiona-mobile.keystore 
d:\egestionaMobile.apk egestiona-mobile --> I think this signs the apk file.
3) Adb install D:\egestionaMobile.apk --> I think this installs my app on my 
device.

I think there is something wrong on my project properties or something... use 
shared runtime is unchecked.

But with this configuration I am able to deploy it on my device with no 
problems..

I have just unchecked use shared runtime. That’s the difference between debug 
and release mode.

Thanks in advance!

Un saludo

Javier Martínez Sáez
Responsable Soporte Técnico eLegisla


www.externalia.com
Tfno.:  945 291 684 | Fax 945 205 228
sopo...@egestiona.es



www.egestiona.es | www.elegisla.es | www.eadr.es

 CLÁUSULA DE CONFIDENCIALIDAD  Este 
mensaje electrónico y todos los ficheros adjuntos que contiene son 
confidenciales y destinados exclusivamente para el uso de la o las personas a 
las que va dirigido, pudiendo estar sujeta a Secreto Profesional. Si usted ha 
recibido este mensaje por error, le agradecemos lo comunique al emisor. 
Asimismo, le informamos que la distribución, copia o utilización de este 
mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su 
finalidad, están prohibidas por la ley.
P Antes de imprimir este e-mail piense bien si es necesario hacerlo. El 
medioambiente es cosa de todos


-Mensaje original-
De: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] En nombre de Jonathan Pryor Enviado 
el: lunes, 17 de diciembre de 2012 17:47
Para: Discussions related to Mono for Android
Asunto: Re: [mono-android] pp crashes when opening

On Dec 17, 2012, at 11:12 AM, Javier Martínez Sáez  
wrote:
> I have built, aligned and signed my app..
>  
> Then I install it using adb.

Is this a Debug build or a Release build?

From the logcat output, I suspect that this is a Debug build (or it's a Release 
app with the shared runtime enabled, which is not a supported configuration). 
Debug builds are not "stand-alone"; they require the presence of other packages 
and files be installed on the target.

Debug builds should be installed from within the IDE, or lacking that, with 
MSBuild:

MSBuild /t:Install YourApplicationProject.csproj

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


___
Monodroid mailing list
Monodroid@lists.ximian.com

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


___
Monodroid mailing list
Monodroid@lists.ximian.com

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