Re: [mono-android] CodePage 1252 not supported!!

2012-02-13 Thread devbuzz
Thanks Dragos,

Can you expand a little?

Where do I add the default code = 0?

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/CodePage-1252-not-supported-tp5470102p5478509.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] have these areas been bound?

2012-02-13 Thread Atsushi Eno
Whenever you are wondering if some android.jar API is bound or not, 
check out our API documentation page.

http://docs.mono-android.net/?link=root:/MonoAndroid-lib

Android.AccessibilityServices and Android.Speech.Tts are there, if 
that's what you meant.


Atsushi Eno


Wally McClure wrote:
After listening to Mike Bluestein's 5 new features of ICS last week, 
I'm rather excited regarding the features of ICS.  I'm wondering if 
the following areas have been bound into MfA:


  * Accessibility.  I work on a lot of us govt. accessibilty/section
508 areas in web applications.  How much support for the
explore-by-touch mode been added along with the accessibility
services in ICS?
  * Text to speech support.  This includes the engine side as well as
building a client application.



If you are wondering what I am looking at, its here: 
http://developer.android.com/sdk/android-4.0.html



Wally



___
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


[mono-android] What i used in Android 4.0.3 for Cairo.Matrix

2012-02-13 Thread Pritish


In Android 4.0.3 Cairo.Matrix is not available so for that what i used
instead of it.
 

-
Regards
Pritish
--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/What-i-used-in-Android-4-0-3-for-Cairo-Matrix-tp5478345p5478345.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] CodePage 1252 not supported!!

2012-02-13 Thread Dragos Pop
Try using default code = 0

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/CodePage-1252-not-supported-tp5470102p5478457.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] JNI Help Please

2012-02-13 Thread digitalml
Jon, Any ideas on this please?  I'm using the exact code you provided in the
previous posts.

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/JNI-Help-Please-tp5144171p5480147.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] JNI Help Please

2012-02-13 Thread Jonathan Pryor
Sorry for the delay...

On Feb 6, 2012, at 5:45 PM, digitalml wrote:
> So using the above code that you posted is working for me, but the 
> constructor to my .java object is being called multiple times and is 
> producing some strange behavior. How many instances of my java object are 
> created with the above code?

One instance of a Java object should be created for each C# object instance 
(unless the (IntPtr, JniHandleOwnership) constructor is used, in which case 
multiple C# objects could refer to the same Java instance).

What I'd suggest you do is print out the stack trace within your jni_helper 
constructor to see what is creating the instance.

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


[mono-android] How can you learn native Android faster than Monodroid?

2012-02-13 Thread Lee Whitney

All of a sudden I had 4 days to come up with a proof of concept Android
app working on device.  Only problem is I had never touched Android
development.  In fact I had never even used an Android device before
(typical crazy developer assignment right?).  Oh and by the way, I've
never coded in Java.

So I figure my best shot was Monodroid since I have a C#/.NET background.

I spent a full day with M4A, and gave up due to roadblocks.  Spent the
next day from scratch with only the Android SDK, and actually have all the
basics of my app working on device.

What's wrong with this picture?  If the problem is I'm not smart enough
then shouldn't the native option have been harder?

Lee





___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] How can you learn native Android faster than Monodroid?

2012-02-13 Thread Jonathan Pobst
We would love to know what 'roadblocks' you hit.  Hopefully there is 
something we can do to fix them!


Jonathan

On 2/13/2012 2:01 PM, Lee Whitney wrote:


All of a sudden I had 4 days to come up with a proof of concept Android
app working on device.  Only problem is I had never touched Android
development.  In fact I had never even used an Android device before
(typical crazy developer assignment right?).  Oh and by the way, I've
never coded in Java.

So I figure my best shot was Monodroid since I have a C#/.NET background.

I spent a full day with M4A, and gave up due to roadblocks.  Spent the
next day from scratch with only the Android SDK, and actually have all the
basics of my app working on device.

What's wrong with this picture?  If the problem is I'm not smart enough
then shouldn't the native option have been harder?

Lee





___
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] How can you learn native Android faster than Monodroid?

2012-02-13 Thread Dean Cleaver
Lee,

I had the opposite experience. I had (what we thought was) 95% of my iPhone app 
written in MonoTouch, and they were hassling me about an Android version. I 
mucked around one Saturday morning, got fed up with the simulator so went out 
and bought an Android phone, purchased Mono for Android, and by Sunday night I 
had a fully functional app up and running - only missing things like Badges on 
the tabs that I can't see an equivalent for. And this was nearly a year ago 
too, so it's not the most recent and much more bug free version of MfA either.

I don't think it's anything to do with being smart or not smart enough - I'm 
wondering what roadblocks you hit? Some things took me a bit of finding, but I 
found them in the end.

Dino

-Original Message-
From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Lee Whitney
Sent: Monday, February 13, 2012 2:02 PM
To: monodroid@lists.ximian.com
Subject: [mono-android] How can you learn native Android faster than Monodroid?


All of a sudden I had 4 days to come up with a proof of concept Android app 
working on device.  Only problem is I had never touched Android development.  
In fact I had never even used an Android device before (typical crazy developer 
assignment right?).  Oh and by the way, I've never coded in Java.

So I figure my best shot was Monodroid since I have a C#/.NET background.

I spent a full day with M4A, and gave up due to roadblocks.  Spent the next day 
from scratch with only the Android SDK, and actually have all the basics of my 
app working on device.

What's wrong with this picture?  If the problem is I'm not smart enough then 
shouldn't the native option have been harder?

Lee





___
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


[mono-android] Java Android custom view JNI not calling constructors in xml layout

2012-02-13 Thread alr
I'm having some difficulty getting correct object types when using a C# class
as a managed wrapper for a Java android view. I posted a more detailed
question on StackOverflow: http://stackoverflow.com/q/9264487/1028144

Any help would be greatly appreciated!

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Java-Android-custom-view-JNI-not-calling-constructors-in-xml-layout-tp5480245p5480245.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] Question regarding FileCreationMode.WorldReadable

2012-02-13 Thread craig
I'm trying to do something simple but I'm always getting an IllegalArgument
exception:

Context.OpenFileOutput(path, FileCreationMode.WorldReadable)

I want my file to be readable by other apps.  Does anyone have experience
with this?  According to the Java documentation I think I'm doing it
correctly, but Mono for Android documentation seems lacking in this area.

Also is there an easy way to add the WorldReadable flag to an already
existing file?  I am using WebClient.DownloadFile to download files and
would like them to have the WorldReadable flag applied without having to
arbitrarily re-create them.

I'm trying to do all this from my applications personal directory rather
than using an SD card.





--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Question-regarding-FileCreationMode-WorldReadable-tp5480914p5480914.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] Question regarding FileCreationMode.WorldReadable

2012-02-13 Thread craig
I found the answer shortly after I posted.

Apparently when using Context.OpenFileOutput you only supply the filename
and not a path.  I was supplying the full path, in my case
/data/data/MCC.Android/files/Test.txt vs. just Test.txt.  The file is still
written to the same exact directory, you just can't supply a path or it
throws an error.

So that is fixed and I can move forward now, but I'm still wondering if
there is a way to easily add the WorldReadable flag to an already existing
file that was not created using Context.OpenFileOutput... in my case the
file was created by using the WebClient.DownloadFile method.

I suppose I could refactor my code to download the file to memory first and
then write it to file using OpenFileOutput but I'd rather avoid this if
possible.  Also I was hoping to make my code that does the file I/O
cross-platform for either Android or iOS, and using Context.OpenFileOutput
means my shared class now has Android specific code in it.

Any help is appreciated, thanks.

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Question-regarding-FileCreationMode-WorldReadable-tp5480914p5480990.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] System.Drawing under m4a?

2012-02-13 Thread Paul Johnson
Hi,

I'm part way through porting an iOS app to Android and have found a
large number of references to System.Drawing in the iOS code. When I
checked what references I can add, System.Drawing is missing for
Android. Is this supposed to be the case and if it is, is there
anything similar to System.Drawing that I can use?

Target platform is Android 2.2 minimum.

Thanks

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

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


[mono-android] match_parent?

2012-02-13 Thread Paul Johnson
Hi,

Is it just that it is currently missing or is there another reason why
parent_match isn't recognised with m4a?

Thanks

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

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


Re: [mono-android] System.Drawing under m4a?

2012-02-13 Thread Jonathan Pobst
I don't think iOS has full System.Drawing either, just some helper 
classes like Color, Rectangle, and Point.


If that's all you need, you can easily pull in the individual classes from:

https://github.com/mono/mono/tree/master/mcs/class/System.Drawing

Jonathan


On 2/13/2012 7:59 PM, Paul Johnson wrote:

Hi,

I'm part way through porting an iOS app to Android and have found a
large number of references to System.Drawing in the iOS code. When I
checked what references I can add, System.Drawing is missing for
Android. Is this supposed to be the case and if it is, is there
anything similar to System.Drawing that I can use?

Target platform is Android 2.2 minimum.

Thanks

Paul
___
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] match_parent?

2012-02-13 Thread Jonathan Pobst

Are you targeting Android 2.2 or greater?

match_parent was added in Android 2.2 (API Level 8)

http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT

Jonathan


On 2/13/2012 8:00 PM, Paul Johnson wrote:

Hi,

Is it just that it is currently missing or is there another reason why
parent_match isn't recognised with m4a?

Thanks

Paul
___
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] System.Drawing under m4a?

2012-02-13 Thread Jonathan Pryor
On Feb 13, 2012, at 8:59 PM, Paul Johnson wrote:
> I'm part way through porting an iOS app to Android and have found a large 
> number of references to System.Drawing in the iOS code.

Behold! System.Drawing!

http://androidapi.xamarin.com/?link=N%3aSystem.Drawing

However, look closely at the documentation, e.g.:

http://androidapi.xamarin.com/?link=T%3aSystem.Drawing.Point

Note:

Assembly: OpenTK (in OpenTK.dll)

This is the same as MonoTouch: a (very small) subset of System.Drawing is 
provided, and it's bundled in the OpenTK.dll assembly.

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] System.Drawing under m4a?

2012-02-13 Thread Brannon King
Override the Draw or OnDraw method of any View inheritor. You will get a
Canvas object passed in to that method that has a very similar interface to
System.Drawing.Graphics. If you need a finite amount of scrolling, you
could write your own inheritor of HorizontalScrollView and override his
Draw method. Then add to that an empty View with it's minimum width set for
determining the scroll range. Calling Invalidate to cause a redraw is also
very GDI-ish.

On Mon, Feb 13, 2012 at 6:59 PM, Paul Johnson
wrote:

> Hi,
>
> I'm part way through porting an iOS app to Android and have found a
> large number of references to System.Drawing in the iOS code. When I
> checked what references I can add, System.Drawing is missing for
> Android. Is this supposed to be the case and if it is, is there
> anything similar to System.Drawing that I can use?
>
> Target platform is Android 2.2 minimum.
>
> Thanks
>
> Paul
> ___
> 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


[mono-android] StartUp Project is ignored?

2012-02-13 Thread Brannon King
When setting a different project than the Mono for Android project as the
StartUp project, I still get prompted to start a simulator when
running/debugging from Visual Studio. I think this is a bug. I don't need
any emulators running for my other executable project that targets a
different platform. Thoughts?
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] StartUp Project is ignored?

2012-02-13 Thread Jonathan Pobst
It should be following the solution settings of which projects you want 
to deploy.  If you do not want your MFA project to deploy, go to 
Configuration Manager and uncheck "Deploy" for that project.


Hope this helps!
Jonathan

On 2/13/2012 11:54 PM, Brannon King wrote:

When setting a different project than the Mono for Android project as
the StartUp project, I still get prompted to start a simulator when
running/debugging from Visual Studio. I think this is a bug. I don't
need any emulators running for my other executable project that targets
a different platform. Thoughts?


___
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