> From: [email protected] > Subject: Monodroid Digest, Vol 10, Issue 66 > To: [email protected] > Date: Sat, 14 May 2011 06:36:06 -0400 > > Send Monodroid mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.ximian.com/mailman/listinfo/monodroid > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Monodroid digest..." > > > Today's Topics: > > 1. Detecting Network connectivity state changes (dbeaugrand) > 2. Re: Resx Localization (Anthony.Coqui) > 3. Re: Slow/poor performance (Tom Opgenorth) > 4. UNSUSCRIBE (Sergio Pinto Osorio) > 5. Win 7 64 bit problems? (Tom Opgenorth) > 6. Re: Slow/poor performance (Piotr Kryger) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 13 May 2011 12:17:10 -0700 (PDT) > From: dbeaugrand <[email protected]> > Subject: [mono-android] Detecting Network connectivity state changes > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > I have a need to monitor the state of the network connections in my > application. I have setup a BroadcastReceiver on > ConnectivityManager.ConnectivityAction to do this. > > ... > mWiFiReceiver = new NetworkStateChanged(); > this.RegisterReceiver(mWiFiReceiver, new > IntentFilter(ConnectivityManager.ConnectivityAction)); > ... > > ... > [BroadcastReceiver] > public class NetworkStateChanged : BroadcastReceiver > { > public override void OnReceive(Context context, Intent intent) > { > Log.Debug("TESTME, "Got an OnReceive inside the > NetworkStateChanged ..."); > } > } > ... > > This seems to work great giving me notifications. > > But the JAVA example i was following uses getParcelableExtra to obtain the > NetworkInfo. > > @Override > public void onReceive(Context arg0, Intent arg1) { > > NetworkInfo networkInfo = (NetworkInfo) > arg1.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); > if(networkInfo.getType() == ConnectivityManager.TYPE_WIFI){ > DisplayWifiState(); > } > > I can only find a GetParcelableArrayExtra in monodroid API. Can someone > point me to a monodroid way of getting the NetworkInfo from the OnReceive > Intent? > > Thanks for your help, > Dennis > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Detecting-Network-connectivity-state-changes-tp4394070p4394070.html > Sent from the Mono for Android mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 2 > Date: Fri, 13 May 2011 22:37:17 -0400 > From: Anthony.Coqui <[email protected]> > Subject: Re: [mono-android] Resx Localization > To: "'Discussions related to Mono for Android'" > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="us-ascii" > > Hello :) > > I am using the latest Build which includes support for creating a RESX > files. (example: MainPage.resx) > > This compiles into the project's dll which is then packaged into the apk > file. All works as it should for the default language. > > > Unfortunately, I am hitting a wall when it comes to getting a non-default > language to work. > > Here is what I have done... > After creating my default resx file, I made a copy of it and named it > MainPage.it-IT.resx. During the build process this will compile and create > an it-IT folder with the Italian resources.dll file, as it does with any > other Silverlight app. > > After inspecting the contents of the apk file, I found that this non-default > language file is not being included, and as a result I cannot get the > alternate languages to function. (which makes sense given that it is not > being included in the apk file) > > I'm not sure if there is something obvious I am missing or if there is a > bug. > > Please let me know what you think, > Ant > > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Jonathan Pobst > Sent: Monday, April 18, 2011 5:23 PM > To: Discussions related to Mono for Android > Cc: Anthony Ramirez > Subject: Re: [mono-android] Resx Localization > > I verified that resx files work in Mono for Android, and added the VS > template for the next version. > > Jonathan > > On 4/18/2011 9:47 AM, Anthony Ramirez wrote: > > Hello :) > > > > Just wanted to follow up and see if anyone had any more > > suggestions/comments before I posted as a bug. > > > > Thanks, > > Ant > > > > > From: [email protected] > > > To: [email protected] > > > Subject: Re: [mono-android] Resx Localization > Date: Wed, 13 Apr > > 2011 17:22:13 -0400 > > Hmm... > > > > > > In preparation for posting this bug, I created a simple sample app > > by > performing the following steps: > > > 1 - Create a 'Mono for Android' project > 2 - Right-clicked on the > > project and selected 'Add New Item' > > > > > > At this point, it became apparent that there is no way for me to > > add a > 'Resources File' (.resx) file to my project. > > > > > > Previously, I was able to introduce the .resx file by copying and > > pasting it > from a WP7 project into my 'Mono for Android' project. > > > > > > Ultimately, I want to have one shared method that can be used on my > > WP7, > MonoTouch and Mono for Android projects. :) > > Am I > > attacking this problem from the wrong angle? > > > > > > Thanks again for the help, > > > Ant > > > > > > > > > > > > -----Original Message----- > > > From: [email protected] > > > [mailto:[email protected]] On Behalf Of Jonathan > > Pryor > Sent: Wednesday, April 13, 2011 11:12 AM > To: Discussions > > related to Mono for Android > Subject: Re: [mono-android] Resx > > Localization > > On Apr 13, 2011, at 2:28 AM, Anthony.Coqui wrote: > > > > For the last 3 hours, I've been trying to get localization > > working with > resx files and cannot get the app to switch to another > language. > > > > > > This _could_ be: > > > > > > https://bugzilla.novell.com/show_bug.cgi?id=664573 > > > > > > Specifically, the locale is cached at process startup, so if you > > start your > process then change the locale, your app will continue > > to use the locale > that was originally found. > > > > > > You should try exiting the process and restarting the app, see if > > that fixes > things. > > > > > > You can exit the process on the emulator by using `adb shell kill > > PID` (find > the PID via `adb shell ps` and look for your package > > name). You can't > directly kill the process on devices, but for > > Debug builds you can ask the > process to exit itself by: > > > > > > 1. Opening obj/Debug/android/AndroidManifest.xml > > > 2. Look for the <receiver android:name="mono.android.Seppuku" /> > > element; > nested within is an <action/> and <category/> element, e.g. > > > > > > <receiver android:name="mono.android.Seppuku"> > > > <intent-filter> > > > <action android:name="mono.android.intent.action.SEPPUKU" /> > > > <category > > > > android:name="mono.android.intent.category.SEPPUKU.Mono.Samples.HelloTests" > > > /> > > > </intent-filter> > > > </receiver> > > > > > > 3. Use `adb shell am broadcast -a ACTION -c CATEGORY`, e.g. > > > > > > $ adb shell am broadcast -a mono.android.intent.action.SEPPUKU \ > > > -c > mono.android.intent.category.SEPPUKU.Mono.Samples.HelloTests > > > > > > > I checked the CultureInfo.CurrentCulture.EnglishName within the > > app and it > returns the "non-English" culture, however, the > > ResourceManager continues to > return the English language. > > > > > > Another possibility is that ResourceManager isn't finding an exact > > match for > your "non-English" culture, and selects English as the > > fallback culture, > thus resulting in english strings. > > > > > > > Is it even possible to do this? > > > > > > I would expect it to, but haven't actually tested it. :-) > > If > > none of the above corrects the problem, could you please file a bug > > > report and attach a solution that exhibits the problem? > > > > > > Thanks, > > > - Jon > > > > > > _______________________________________________ > > > Monodroid mailing list > > > [email protected] > > > > > > UNSUBSCRIBE INFORMATION: > > > http://lists.ximian.com/mailman/listinfo/monodroid > > > > > > _______________________________________________ > > > Monodroid mailing list > > > [email protected] > > > > > > UNSUBSCRIBE INFORMATION: > > > http://lists.ximian.com/mailman/listinfo/monodroid > > > > > > > > _______________________________________________ > > Monodroid mailing list > > [email protected] > > > > UNSUBSCRIBE INFORMATION: > > http://lists.ximian.com/mailman/listinfo/monodroid > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > > ------------------------------ > > Message: 3 > Date: Fri, 13 May 2011 21:05:03 -0600 > From: Tom Opgenorth <[email protected]> > Subject: Re: [mono-android] Slow/poor performance > To: Discussions related to Mono for Android > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Just gave this a quick try - got a 'System.Exception: "jarsigner" exited > with code 1.'. > > Before I dig too deep into this, thought I'd see if there were any sage > words of advice. :) > > TIA. > > On Thu, May 12, 2011 at 16:30, Brian Long <[email protected]>wrote: > > > >>if there are any instructions/help that anyone can provide to document > > the splash screen process, that would be great. > > > > Wally, I may be able to help on this one > > > > The sample Mono for Android app at > > http://blong.com/Downloads/MonoAndroidJavaSplashScreenApp.zip uses a > > Java splash screen, which appears pretty promptly. > > > > Of course once it invokes the main Mono for Android activity, there > > can be a delay, but since the user has already seen a part of the app > > on screen, psychologically this isn't so bad. > > > > It's pretty much the template project with a splash screen on the > > front, implemented in Java. > > > > - Brian > > _______________________________________________ > > Monodroid mailing list > > [email protected] > > > > UNSUBSCRIBE INFORMATION: > > http://lists.ximian.com/mailman/listinfo/monodroid > > > > > > -- > http://www.opgenorth.net > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.ximian.com/mailman/private/monodroid/attachments/20110513/18da5712/attachment-0001.html > > > ------------------------------ > > Message: 4 > Date: Sat, 14 May 2011 00:13:57 -0400 > From: Sergio Pinto Osorio <[email protected]> > Subject: [mono-android] UNSUSCRIBE > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Saludos > > Atte. > *Sergio Pinto Osorio* > *Ingeniero en Inform?tica* > Telefono M?vil: 9-5386973 > Correo: [email protected] - [email protected] > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.ximian.com/mailman/private/monodroid/attachments/20110514/98a206ff/attachment-0001.html > > > ------------------------------ > > Message: 5 > Date: Fri, 13 May 2011 23:14:21 -0600 > From: Tom Opgenorth <[email protected]> > Subject: [mono-android] Win 7 64 bit problems? > To: monodroid <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > So I was trying to build an APK for my own Notepad port (not the same as > Brian's). It was working yesterday on my laptop (Win7 Ultimate 32 bit). > Now I try to compile on my Win 7 64 bit PC, and I get this error: > > C:\Program Files (x86)\MSBuild\Novell\mandroid.exe -v --nosign > --sdk-dir="C:\android-sdk-windows" > --builddir="E:\work\android\NotePad\NotePad\obj\Debug\android" > --framework-dir="C:\Program Files (x86)\Reference > Assemblies\Microsoft\Framework\MonoAndroid\v2.2" --framework-dir="C:\Program > Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0" > -S="E:\work\android\NotePad\NotePad\obj\Debug\res" > --package="com.example.android.notepad" --abi="armeabi" > --java-sdk-dir="C:\Program Files (x86)\Java\jdk1.6.0_25" --debug > --sdk-platform="8" > "E:\work\android\NotePad\NotePad\bin\Debug\com.example.android.notepad.dll" > "C:\Program Files (x86)\Reference > Assemblies\Microsoft\Framework\MonoAndroid\v2.2\Mono.Android.dll" > "C:\Program Files (x86)\Reference > Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" "C:\Program > Files (x86)\Reference > Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll" "C:\Program > Files (x86)\Reference > Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll" "C:\Program > Files (x86)\Reference > Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll" "C:\Program > Files (x86)\Reference > Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll" > monodroid : error 1: System.NullReferenceException: Object reference not set > to an instance of an object [E:\work\android\NotePad\NotePad\NotePad.csproj] > at > MonoDroid.Utils.ProcessRocks+<ReadStandardOutput>c__Iterator5.MoveNext () > [0x00000] in <filename unknown>:0 > at Monodroid.Toolbox.InvokeCommand (IEnumerable`1 commandLine) [0x00000] > in <filename unknown>:0 > at Monodroid.Toolbox.InvokeAapt (System.String packageName) [0x00000] in > <filename unknown>:0 > at Monodroid.Droidinator.CreatePackagedResources > (System.Collections.Generic.List`1 javaTypes) [0x00000] in <filename > unknown>:0 > at Monodroid.Droidinator.CreateApk () [0x00000] in <filename unknown>:0 > at Monodroid.MainClass.Main (System.String[] argv) [0x00000] in > <filename unknown>:0 > Done Building Project "E:\work\android\NotePad\NotePad\NotePad.csproj" > (SignAndroidPackage target(s)) -- FAILED. > > Build FAILED. > > Any suggestions? > -- > http://www.opgenorth.net > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.ximian.com/mailman/private/monodroid/attachments/20110513/9486a89b/attachment-0001.html > > > ------------------------------ > > Message: 6 > Date: Sat, 14 May 2011 12:36:03 +0200 > From: Piotr Kryger <[email protected]> > Subject: Re: [mono-android] Slow/poor performance > To: Discussions related to Mono for Android > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="utf-8" > > I got the same error, when trying to setup splash screen in my project > (though sample project from Brian worked fine). > I found the problem was line setContentView(R.layout.splash) in > SplashActivity.java - commenting this one made my project compile and deploy > fine. As a workaround I replaced constant name R.layout.splash with its > value, which can be found in obj/android/src/R.java > file. Now it works. Any ideas what was the reason? (btw. would be great to > see more meaningfull error messages from monodroid). > > -- > Piotr > > 2011/5/14 Tom Opgenorth <[email protected]> > > > Just gave this a quick try - got a 'System.Exception: "jarsigner" exited > > with code 1.'. > > > > Before I dig too deep into this, thought I'd see if there were any sage > > words of advice. :) > > > > TIA. > > > > On Thu, May 12, 2011 at 16:30, Brian Long > > <[email protected]>wrote: > > > >> >>if there are any instructions/help that anyone can provide to document > >> the splash screen process, that would be great. > >> > >> Wally, I may be able to help on this one > >> > >> The sample Mono for Android app at > >> http://blong.com/Downloads/MonoAndroidJavaSplashScreenApp.zip uses a > >> Java splash screen, which appears pretty promptly. > >> > >> Of course once it invokes the main Mono for Android activity, there > >> can be a delay, but since the user has already seen a part of the app > >> on screen, psychologically this isn't so bad. > >> > >> It's pretty much the template project with a splash screen on the > >> front, implemented in Java. > >> > >> - Brian > >> _______________________________________________ > >> Monodroid mailing list > >> [email protected] > >> > >> UNSUBSCRIBE INFORMATION: > >> http://lists.ximian.com/mailman/listinfo/monodroid > >> > > > > > > > > -- > > http://www.opgenorth.net > > > > > > _______________________________________________ > > Monodroid mailing list > > [email protected] > > > > UNSUBSCRIBE INFORMATION: > > http://lists.ximian.com/mailman/listinfo/monodroid > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.ximian.com/mailman/private/monodroid/attachments/20110514/971d4945/attachment.html > > > ------------------------------ > > _______________________________________________ > Monodroid mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monodroid > > > End of Monodroid Digest, Vol 10, Issue 66 > *****************************************
_______________________________________________ Monodroid mailing list [email protected]
UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
