Daveoc64 | 24 May 2013 12:09
Picon
Favicon

IOMap on Mono For Android

Is it possible to use the IOMap environment variable on Mono for Android?

I'm not sure how (or if) Environment Variables can be set for an application
in MFA, or whether the specific option can be used.

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/IOMap-on-Mono-For-Android-tp5713345.html
Sent from the Mono for Android mailing list archive at Nabble.com.
runpandarun | 24 May 2013 08:30

New Launch 2D Game “Night Runner” (Coming Soon)

Hi

Take a seat and start shining with our “Night Runner” look. “Night Runner”
keeps your gaming experience fun and fresh !!The game has fantastic
features, including awesome graphics, controls and a unique upgrading
system. The game story is very interesting.

"Alex",  He's A Hero Of This Game.
“Luka”, Enemy of Alex.
<http://mono-for-android.1047100.n5.nabble.com/file/n5713343/yeeee.jpg> 
<http://mono-for-android.1047100.n5.nabble.com/file/n5713343/ohhhh.jpg> 

If you really want to play that game, please feel free to comment on it.

For more detail like:- http://www.facebook.com/creatiosoft
                                   http://twitter.com/creatiosoft

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/New-Launch-2D-Game-Night-Runner-Coming-Soon-tp5713343.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid <at> lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
craig | 23 May 2013 06:06
Picon

Upgrade to 4.7

I'm running Xamarin Android 4.6 and want to upgrade to 4.7 but Visual Studio
is not detecting that an upgrade is available.

Can someone provide a direct link, ideally to the latest stable version?

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Upgrade-to-4-7-tp5713337.html
Sent from the Mono for Android mailing list archive at Nabble.com.
Paul Johnson | 21 May 2013 18:28
Picon

Is it possible to create a special layout on the fly?

Hi,

First caveat before I describe this, is that it must work with Android 2.3.

I am generating the user interface on the fly for a messenger app. The 
way it currently works is that there is a vertical linear layout into 
which I Factory.Inflate the container the message will go into. I fill 
the container and add it to the layout. This works fine and is nice and 
easy.

The problem is that the UI container is set like this. One horizontal 
layout (weightsum = 1) then two verticals (layout_weights 0.8 and 0.2). 
Inside these layouts are two horizontal layouts for text to go into. The 
verticals are set to match_parent for the width.

viz

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:p1="http://schemas.android.com/apk/res/android"
     p1:orientation="horizontal"
     p1:minWidth="25px"
     p1:minHeight="25px"
     p1:layout_width="fill_parent"
     p1:layout_height="fill_parent"
     p1:id=" <at> +id/linearLayout1">
     <LinearLayout
         p1:orientation="horizontal"
         p1:minWidth="25px"
         p1:minHeight="25px"
         p1:layout_width="match_parent"
(Continue reading)

Paul Johnson | 20 May 2013 14:19
Picon

Time out on async task with the 4.6 release

Hi,

Using the current stable version of monodroid, is there a way to add a 
timeout to an async task. There are suggestions on stackoverflow in 
Java, but nothing in C# specific to Android (well, none that google 
threw back to me).

I'm making a http request and need it to return if there is nothing back 
in 5 seconds from when it's made.

Thanks

Paul
--

-- 
"Space," it says, "is big. Really big. You just won't believe how 
vastly, hugely, mindbogglingly big it is. I mean, you may think it's a 
long way down the road to the chemist's, but that's just peanuts to 
space, listen..."
Hitch Hikers Guide to the Galaxy, a truly remarkable book!

runpandarun | 20 May 2013 08:57

Just Read And Share Your Experience.

I am Neeraj From Creatiosoft Solution Private Limited. We have create some
amazing and useful app for android.

Our application name and link is given below.

*Track The Person Application*:-
https://play.google.com/store/apps/details?id=com.creatiosoft.tracktheperson&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5jcmVhdGlvc29mdC50cmFja3RoZXBlcnNvbiJd

*Collage Creator: Photo Art Lab*:-
https://play.google.com/store/apps/details?id=com.galaxysoft.mixpics.photogrid&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5nYWxheHlzb2Z0Lm1peHBpY3MucGhvdG9ncmlkIl0.

Both apps are very unique and useful. The downloading of these app are well,
but some user are confused how to use it, and why user are not like it.

So the task is, all you tell me the your opinion, what we have do new in
this app, and that' s the major problem why the user are not understand how
to use it.

Thanks.
Neeraj Kr Singh
http://www.Creatiosoft.com
SkyPe Id:- neeraj.singh633

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Just-Read-And-Share-Your-Experience-tp5713329.html
Sent from the Mono for Android mailing list archive at Nabble.com.
gspro | 19 May 2013 03:48
Picon
Gravatar

AutoCompleteTextView (con't)

I posted before regarding this question, but am still struggling. I created a
custom adapter to bind the autocomplete to an array list dynamically - a web
service is called after 2 characters are typed. The code is a combination of
the xamarin content control samples, and another sample on the web (sorry
OP, don't remember where it's from). So in the activity that hosts the
autocomplete textview, I create and bind the adapter, and in the
autocomplete textview's text changed event, I call the web service and bind
the results to the adapter  -adapter.add(myPoco). The service returns data,
but the adapter.count always remains zero, and the custom adapters
PerformFiltering event is never called. Here is the activity code followed
by the custom adapter code. I'm not sure where to put the code to call the
service. It would seem logical to put it in the text changed, but that's not
working:

 protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            this.SetContentView(Resource.Layout.login);
...

            AutoCompleteTextView act =
FindViewById<AutoCompleteTextView>(Resource.Id.txtEmailCopyToAC);

            //ContactAdapter 
            ca = new ContactAdapter(this,
global::Android.Resource.Layout.SimpleDropDownItem1Line);
            act.Adapter = ca;

            //act.Adapter = new ContactAdapter(this,
global::Android.Resource.Layout.SimpleDropDownItem1Line);
(Continue reading)

andyjohnson0 | 17 May 2013 16:55
Picon

Missing icon preventing deploy to Play Store

I am trying to upload an apk to the play store, and this is failing with the
message "Upload failed You need to add an icon to your APK.". This is a new
app and has not been uploaded before.

I used aapt.exe to dump the apk's badging and get the following:

package: name='foo.MyApp' versionCode='1' versionName='0.1' sdkVersion:'15'
targetSdkVersion:'15'
application-label:'My Application'
application: label='My Application' icon=''
application-debuggable
launchable-activity: name='foo.myapp.MainActivity'  label='Start Screen'
icon='res/drawable/icon.png'
(identifying details removed and remainder omitted)

I'm assuming the icon='' on the third line is the problem.

Things I've checked:

1. I _do_ have an icon in Resources/Drawable/Icon.png. It is 72x72x32bit and
previews ok. Its build action is Android Resource.

2. In the generated obj/Release/android/AndroidManifest.xml file, the
<application> element does _not_ have an android:icon parameter. Other apps
have android:icon=" <at> drawable/icon" there.

3. My main activity seems to be attributed correctly:

    [Activity(MainLauncher=true, Label=" <at> string/Title",
Icon=" <at> drawable/Icon", Theme=" <at> android:style/Theme.Holo.Light")]
(Continue reading)

Joshua Barker | 16 May 2013 15:11
Favicon

4.7.4 Beta Crash with SIGSEGV

In using the 4.7.4 Beta, my application is crashing during debugging on a 4.0.3 x86 emulator. This happens in Xamarin Studio or VS2012. The part that’s having issues is on an adaptation of CommonWare’s WakefulIntentService and does not crash when not debugging or in older versions. Any ideas?

 

[] * Assertion at /Users/builder/data/lanes/monodroid-mlion-master/f6831347/source/mono/mono/mini/mini.c:3692, condition `l' not met

[mono-rt] Stacktrace:

[mono-rt]

[mono-rt]   at <unknown> <0xffffffff>

[mono-rt]   at CatAndroid.Services.WakefulIntentService.SendWakefulWork (Android.Content.Context,Android.Content.Intent) [0x00001] in WakefulIntentService.cs:35

[mono-rt]   at CatAndroid.Services.WakefulIntentService.SendWakefulWork (Android.Content.Context,System.Type) [0x00001] WakefulIntentService.cs:41

[mono-rt]   at CatAndroid.Services.UpdatesMessagesListener.SendWakefulWork (Android.Content.Context) [0x00001] in UpdatesMessagesListener.cs:23

[mono-rt]   at CatAndroid.BroadcastReceivers.AlarmBroadcastReceiver.OnReceive (Android.Content.Context,Android.Content.Intent) [0x00087] in AlarmBroadcastReceiver.cs:35

[mono-rt]   at Android.Content.BroadcastReceiver.n_OnReceive_Landroid_content_Context_Landroid_content_Intent_ (intptr,intptr,intptr,intptr) [0x00018] in /Users/builder/data/lanes/monodroid-mlion-master/f6831347/source/monodroid/src/Mono.Android/platforms/android-15/src/generated/Android.Content.BroadcastReceiver.cs:301

[mono-rt]   at (wrapper dynamic-method) object.c26999d6-9683-4fc8-8ce3-f2459840e165 (intptr,intptr,intptr,intptr) <IL 0x0001d, 0x00027>

[mono-rt]   at (wrapper native-to-managed) object.c26999d6-9683-4fc8-8ce3-f2459840e165 (intptr,intptr,intptr,intptr) <IL 0x00024, 0xffffffff>

[mono-rt]

[mono-rt] =================================================================

[mono-rt] Got a SIGSEGV while executing native code. This usually indicates

[mono-rt] a fatal error in the mono runtime or one of the native libraries

[mono-rt] used by your application.

[mono-rt] =================================================================

[mono-rt]



STATEMENT OF CONFIDENTIALITY: The information in this message is privileged and confidential and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that you are prohibited from disseminating, distributing, or copying the information contained in this message. If you have received this message in error, please notify the sender immediately and destroy all copies of the original message.
<div>
<div class="WordSection1">
<p class="MsoNormal">In using the 4.7.4 Beta, my application is crashing during debugging on a 4.0.3 x86 emulator. This happens in Xamarin Studio or VS2012. The part that&rsquo;s having issues is on an adaptation of CommonWare&rsquo;s WakefulIntentService and does not
 crash when not debugging or in older versions. Any ideas?</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">[] * Assertion at /Users/builder/data/lanes/monodroid-mlion-master/f6831347/source/mono/mono/mini/mini.c:3692, condition `l' not met</p>
<p class="MsoNormal">[mono-rt] Stacktrace:</p>
<p class="MsoNormal">[mono-rt] </p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at &lt;unknown&gt; &lt;0xffffffff&gt;</p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at CatAndroid.Services.WakefulIntentService.SendWakefulWork (Android.Content.Context,Android.Content.Intent) [0x00001] in WakefulIntentService.cs:35</p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at CatAndroid.Services.WakefulIntentService.SendWakefulWork (Android.Content.Context,System.Type) [0x00001] WakefulIntentService.cs:41</p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at CatAndroid.Services.UpdatesMessagesListener.SendWakefulWork (Android.Content.Context) [0x00001] in UpdatesMessagesListener.cs:23</p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at CatAndroid.BroadcastReceivers.AlarmBroadcastReceiver.OnReceive (Android.Content.Context,Android.Content.Intent) [0x00087] in AlarmBroadcastReceiver.cs:35</p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at Android.Content.BroadcastReceiver.n_OnReceive_Landroid_content_Context_Landroid_content_Intent_ (intptr,intptr,intptr,intptr) [0x00018] in /Users/builder/data/lanes/monodroid-mlion-master/f6831347/source/monodroid/src/Mono.Android/platforms/android-15/src/generated/Android.Content.BroadcastReceiver.cs:301</p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at (wrapper dynamic-method) object.c26999d6-9683-4fc8-8ce3-f2459840e165 (intptr,intptr,intptr,intptr) &lt;IL 0x0001d, 0x00027&gt;</p>
<p class="MsoNormal">[mono-rt]&nbsp;&nbsp; at (wrapper native-to-managed) object.c26999d6-9683-4fc8-8ce3-f2459840e165 (intptr,intptr,intptr,intptr) &lt;IL 0x00024, 0xffffffff&gt;</p>
<p class="MsoNormal">[mono-rt] </p>
<p class="MsoNormal">[mono-rt] =================================================================</p>
<p class="MsoNormal">[mono-rt] Got a SIGSEGV while executing native code. This usually indicates</p>
<p class="MsoNormal">[mono-rt] a fatal error in the mono runtime or one of the native libraries
</p>
<p class="MsoNormal">[mono-rt] used by your application.</p>
<p class="MsoNormal">[mono-rt] =================================================================</p>
<p class="MsoNormal">[mono-rt]</p>
</div>
<div>
<br><br>
STATEMENT OF CONFIDENTIALITY: The information in this message is privileged and confidential and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that
 you are prohibited from disseminating, distributing, or copying the information contained in this message. If you have received this message in error, please notify the sender immediately and destroy all copies of the original message.</div>
</div>
Paul Johnson | 15 May 2013 20:02
Picon

factory.Inflate issue

Hi,

I have some code that generates the UI on the fly. The first time it 
runs, it runs a treat. However when I run it again or add something to 
the top view, things get messed up (the objects that need to be inflated 
become *tiny* at the top but the last object is the correct size)

My code to do this is this

if (clearFirst)
             {
                 RunOnUiThread(delegate {
                     topListLayout.RemoveAllViewsInLayout();
                     bottomListLayout.RemoveAllViewsInLayout();
                 });
             }

             if (myCircles.Count == 0)
             {

                 myView = 
factory.Inflate(Resource.Layout.circleaddFragment, null);
                 LinearLayout shell = new LinearLayout(context);

                 shell.Orientation = Orientation.Horizontal;
                 shell.SetGravity(GravityFlags.CenterVertical);
                 shell.LayoutParameters = new 
LinearLayout.LayoutParams(LinearLayout.LayoutParams.WrapContent, 
LinearLayout.LayoutParams.WrapContent);
                 shell.SetPadding(0, 0, 0, 
(int)GeneralUtils.convertDpToPixel(5f, context));

                 ImageView circleAdd = 
myView.FindViewById<ImageView>(Resource.Id.imageCircleAdd);
                 circleAdd.Click += (object sender, EventArgs e) => 
createCircle(sender, e);
                 RunOnUiThread(() => shell.AddView(myView));
                 RunOnUiThread(()=>topListLayout.AddView(shell));
             }
             else
             {
                 RunOnUiThread(delegate {

                     LinearLayout topLay = new LinearLayout(context);
                     topLay.LayoutParameters = new 
LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent, 
ViewGroup.LayoutParams.WrapContent);

topLay.SetPadding((int)GeneralUtils.convertDpToPixel(5f, context), 0, 
(int)GeneralUtils.convertDpToPixel(5f, context), 0);
                 foreach (Circles circle in myCircles)
                 {
                     myView = 
factory.Inflate(Resource.Layout.circleFragment, null);

                     TextView txtCirc = 
myView.FindViewById<TextView>(Resource.Id.textCircleName);

                         txtCirc.Text = myCircles[count].ShortName;
                         ImageView imgCirc = 
myView.FindViewById<ImageView>(Resource.Id.imageCircle);
                         int m = new int();
                         m = count;
                         imgCirc.Tag = m;
                         imgCirc.Click += displayMyCircle;

                     topLay.AddView(myView);
                     if (count == myCircles.Count || topLay.ChildCount == 3)
                     {
                         topListLayout.AddView(topLay);
                         topLay = new LinearLayout(context);
                         topLay.Orientation = 
Android.Widget.Orientation.Horizontal;
                         topLay.SetGravity(GravityFlags.CenterHorizontal);
                     }
                         count++;
                 }
                     myView = 
factory.Inflate(Resource.Layout.circleaddFragment, null);
                     TextView txtCircAdd = 
myView.FindViewById<TextView>(Resource.Id.textCircleName);
                     txtCircAdd.Text = 
GeneralUtils.StringFromInt(Resource.String.circleAdd);
                     ImageView imgCircAdd = 
myView.FindViewById<ImageView>(Resource.Id.imageCircleAdd);
                     imgCircAdd.Click += createCircle;
                     topLay.AddView(myView);
                     topListLayout.AddView(topLay);
                 });
             }

             RunOnUiThread(delegate {
             count = 0;

                 LinearLayout botLay = new LinearLayout(context);
                 botLay.LayoutParameters = new 
LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent, 
ViewGroup.LayoutParams.WrapContent);

botLay.SetPadding((int)GeneralUtils.convertDpToPixel(5f, context), 0, 
(int)GeneralUtils.convertDpToPixel(5f, context), 0);
             foreach (Circles circle in OClientData.CirclesList)
             {
                     myView = 
factory.Inflate(Resource.Layout.circleFragment, null);
                 TextView txtCirc = 
myView.FindViewById<TextView>(Resource.Id.textCircleName);

                     txtCirc.Text = 
OClientData.CirclesList[count].ShortName;
                     ImageView imgCirc = 
myView.FindViewById<ImageView>(Resource.Id.imageCircle);
                     int m = new int();
                     m = count;
                     imgCirc.Tag = m;
                     imgCirc.Click += displayPublicCircle;

                 botLay.AddView(myView);
                 if (count == OClientData.CirclesList.Count || 
botLay.ChildCount == 3)
                 {
                     bottomListLayout.AddView(botLay);
                     botLay = new LinearLayout(context);
                     botLay.Orientation = 
Android.Widget.Orientation.Horizontal;
                     botLay.SetGravity(GravityFlags.CenterHorizontal);
                 }
                     if (count + 1 == OClientData.CirclesList.Count)
                         break;
                     count++;
             }
                 myView = 
factory.Inflate(Resource.Layout.circleaddFragment, null);
                 TextView txtCircAdd = 
myView.FindViewById<TextView>(Resource.Id.textCircleName);
                 txtCircAdd.Text = 
GeneralUtils.StringFromInt(Resource.String.circleAdd);
                 ImageView imgCircAdd = 
myView.FindViewById<ImageView>(Resource.Id.imageCircleAdd);
                 imgCircAdd.Click += createCircle;
                 botLay.AddView(myView);
                 bottomListLayout.AddView(botLay);
             });

The circles are the correct size at the bottom, just not at the top. The 
circles are really simple

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content">
     <LinearLayout
         android:orientation="vertical"
         android:minWidth="25px"
         android:minHeight="25px"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:id=" <at> +id/linearLayout5"
         android:gravity="center_horizontal"
         android:layout_weight="1">
         <TextView
             android:text=" <at> string/circleBlank"
             android:textAppearance="?android:attr/textAppearanceMedium"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:id=" <at> +id/textCircleName"
             android:textColor="#000" />
         <ImageView
             android:src=" <at> drawable/emptycircle"
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:id=" <at> +id/imageCircle" />
     </LinearLayout>
</LinearLayout>

Any help or advice here would be appreciated.

Thanks

Paul
--

-- 
"Space," it says, "is big. Really big. You just won't believe how 
vastly, hugely, mindbogglingly big it is. I mean, you may think it's a 
long way down the road to the chemist's, but that's just peanuts to 
space, listen..."
Hitch Hikers Guide to the Galaxy, a truly remarkable book!

Francesco Colombo | 14 May 2013 15:13
Picon
Gravatar

Android GL preserve question

Is this method GLView.setPreserveEGLContextOnPause  available on Xamarin.Android?

<div><div dir="ltr">Is this method GLView.setPreserveEGLContextOnPause<span>&nbsp; available on Xamarin.Android?<br><br></span>
</div></div>

Gmane