Working on an app that must be secure and would like to check if the user set a passcode on the device. Is there any way to find out? Thanks guys.
Detect if passcode set on device?
UDP from AndroidEmulator to localhost Server(10.0.2.2) does not work?
Hi,
I simply try to send and receive data between MonodroidApp(AndroidEmulator) and a localDevServer. I understand localhost is specially mapped to "10.0.2.2" on AndroidEmulator, so I did the following, but the app does not respond.
System.Text.Encoding enc = System.Text.Encoding.UTF8;
string sendMsg = "testtest";
byte[] sendBytes = enc.GetBytes(sendMsg);
int localPort = 39000;
var udp = new System.Net.Sockets.UdpClient(localPort);
//send data
string remoteHost = "10.0.2.2";//"127.0.0.1";
int remotePort = 15000;
udp.Send(sendBytes, sendBytes.Length,
remoteHost, remotePort);
//receive data
System.Net.IPEndPoint remoteEP = null;
byte[] rcvBytes = udp.Receive(ref remoteEP);
string rcvMsg = enc.GetString(rcvBytes);
Console.WriteLine("received data:{0}", rcvMsg);
Console.WriteLine("sender address:{0}/port:{1}",
remoteEP.Address, remoteEP.Port);
This code is verified to work with Mono for Mac and the localDevServer with the pointer: remoteHost = "127.0.0.1"
so,
remoteHost = "10.0.2.2" pattern does not work.
What do I miss? Anyone, any thought?
Thank you.
Error XA9010: Unable to determine license edition. (XA9010)
Hello,
I installed the trial edition in order to evaluate the Xamarin.Android studio product over christmas. After a few hours testing it out I decided to just use Xamarin studio instead of VS2013 as I could not view the .axml in designer mode.
Now I'm completely unable to create/build solutions in Xamarin.Android studio as I'm getting errors regarding the licence file and the following from the build. There's a secondary error which relates to the target framework (see picture).
Error XA9010: Unable to determine license edition. (XA9010)
and also
Could not determine $(TargetFrameworkVersion) for API level '19.' (XA0000)
This is a Windows 7 laptop and I'm using the latest version of Xamarin.Android. v4.2.2 (build 2).
Has anyone got any ideas on how to fix this and/or should I just uninstall/install?
Thanks in advance.
Things working on DEBUG but not on RELEASE why is that ( Zipstorer ).
I am using zipStorer to zip and unzip files and it was all okay while debbug till today that i made a release version and nothing happens when i try to zip no freezing, literally no nothing !!! It just ignores... please someone what can it be?
Styling UIPickerView
Hello, I am having trouble adding a CALayer to my UIPickerView. I tried to follow the example in this thread: http://forums.xamarin.com/discussion/1615/styling-uipickerview but I have had no success. Am I correct to be adding my newly made CALayer to the Mask of my UIPickerView within the controller's ViewDidLoad() function?
Here is a gist of my code, beginning at line 48 is my attempt. https://gist.github.com/mwickman/1f20ba4f24fda875551b Does anyone see my error?
Scenario: I have 4 UIPickerViews on a single screen. I am atempting to put a layer on top of them in order to prevent each picker from appearing to overlap with the others. I realize 4 pickers is probably more than average, but I need my user to select 4 values from predetermined lists, where each subsequent list is dependent on the previous one. I'm open to other controls for this if anyone has a suggestion!
Thank you for any help!
Update: I'm having more success assigning the layer to View.Layer.Mask as opposed to the Picker itself
Refresh ViewController after PresentedController is dismissed
When my app starts up i create a 2 view controllers. One for my main landing and one for login, which is only shown if the user has not logged in before.
What I need to do is refresh the look of the landing page controller after I dismiss the login controller.
This is the code snippet to launch the two controllers:
// create a new window instance based on the screen size window = new UIWindow (UIScreen.MainScreen.Bounds);
mainAppNavController = new UINavigationController();
window.RootViewController = mainAppNavController;
homeController = new LockerViewController ();
mainAppNavController.PushViewController ( homeController, false );
// make the window visible
window.MakeKeyAndVisible ();
var login = new LoginViewController ();
mainAppNavController.PresentViewController (login, false, null);
Then once the login is complete, I dismiss it with
//get rid of the login window
DismissViewController (true, null);
How do I catch the fact that the login window has been dismissed so I can refresh the underlying landing page view controller?
Thanks for any help!!
How to display track info and progress on bluetooth devices (IE: Car Audio)?
We're just finishing up our Android app, and we've discovered something that we didn't think of.
When listening to our audio in the car, the deck reads the previous song we were listening to (Rdio) rather than our track information.
What do I need to do to update the Track Title, Album Title, and Progress on the Bluetooth deck?
For that matter, it might be prudent to display it over USB as well.
Please Note: we're using ICommand's to update everything, so triggering some method should be trivial from within the Command Object.
Setting Switch textOn/textOff programmaticly doesn't work
Setting Switch textOn/textOff programmaticly doesn't work
Setting the text the first time works. But then after something like a language change I want to change the labels. But even if set de texton and the textoff the visible label stays the same.
How do you remove / customize the bar at the bottom of a TabHost?
How do you remove / customize the bar at the bottom of a TabHost?
At the end of the day, I'm trying to have a white bar at the bottom of my active TabHost
item.
Right now I'm trying to remove it, so that I can add my own in as a drawable.
I've tried in xml
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:tabStripEnabled="false"
android:background="@drawable/tab_indicator"/>
And I've tried in code
private void CreateTab(Type activityType, string tag, string label)
{
var intent = new Intent(this, activityType);
intent.AddFlags(ActivityFlags.NewTask);
var spec = TabHost.NewTabSpec(tag);
spec.SetIndicator(label);
spec.SetContent(intent);
TabHost.TabWidget.StripEnabled = false;
TabHost.AddTab(spec);
}
But unfortunately, neither of these approaches have worked.
I need to remove the thin blue bar to be white, and I need the active indicator to also be white.
Any advice on how to do this?
Getting Started with Notification Hubs - utterly confused!
Hi everyone,
I haven't done any Xamarin development for a couple of weeks, but with all the Microsoft/Xamarin announcements from the Visual Studio 2013 launch, I figured I should catch up on a few things, so I decided to try the Notification Hubs walkthrough here: http://www.windowsazure.com/en-us/manage/services/notification-hubs/getting-started-xamarin-ios/#certificates but it's got me utterly confused as things don't seem to be matching up. Specifically, when you get to the point where you start coding, it tells you to download the 'Azure Mobile Services' component and add 'WindowsAzure.Messaging;' to AppDelegate.cs Problem is, the reference from this component is 'Microsoft.WindowsAzure.MobileServices;' and there's no component for 'Messaging' and from that point, nothing matches between the documentation and the components.
Am I reading out of date documentation, or have I screwed something else up? (It's Saturday night and I'm tired, so I may be doing something wrong!)
I'm on the Alpha release of Xamarin Studio and are fully up to date (version 4.3.0). The Azure Mobile Services component from the store is version 1.1.0
Any clues? Thanks, Richard.
cannot call extrenal web service
hi,
i very new in xamarin and i faced issue. i able to connect to the local web service but my issue when calling external web service
when calling it. i got that message :
Xamarin Studio crashing on viewing Developer Account
Xamarin Studio keeps crashing when going to Preferences -> Developer Accounts
. It is responsive for a brief moment, but then it just crashes entirely and a crash dialog appears. Is there anything I can do to avoid this behaviour?
Even when trying to remove the current Developer Account, it reappears and then XS crashes again. It is super annoying and I can't seem to get it to refresh my certificates.
Remote notifications only fire when the app is loaded in memory
I have remote notifications working, but my remote notification handler (based on the Xamarin GcmClient component) seems to only ever be invoked if the app is actually loaded (shows up in the switch apps view). It works whether it's in the foreground or background, but after the user kills the app, the remote notifications don't activate my GcmClient service until the user restarts the app.
Is this an Android limitation, or is there something I'm missing in my Xamarin.Android app that would allow this to work?
If there is an exception being raised early on in my GcmClient handler such that the work I expect isn't happening, I don't know how to tell, since AFAIK there's no way to hook Android so that a debugger attaches as soon as my process is started.
how do add a background image to my view?
I can't figure out how to add a background image to my view. I can pick a color just fine but surely I can add an image? I've seen people who have done it using a pattern but I can't seem to translate it to Mono Touch.
Any help greatly appreciated.
How to manage radiogroup?
My question is on the title because I do not see in the tuto the code c# to manage readiogoup.Thank you.
Device emulator not starting after upgrade to 4.10
I just upgraded to Xamarin 4.10 and have one of my pre-configured devices selected in the Xamarin Android toolbar. Device has an [A] besides the name but when I hit F5 to start debugging, I get the "Device Unavailable" popup indicating that the selected device is neither running nor attached.
Your release notes docs.xamarin.com/releases/android/xamarin.android_4/xamarin.android_4.10/ indicates a device should transition from A to S but this is not happening.
If I start the device using Android Emulator Manager, I still get this error. What am I missing?
TIA.
ExpandableListView Example?
I am trying to understand how to implement the ExpandableListView in my MonoDroid app. I can't find any examples or tutorials anywhere on this site or thru google. Could anyone point me in the right direction?
Thanks.
Invalid or corrupted license
I just create a new project and I get 'Invalid or corrupted license' message while building it. I'm using the Starter edition. How can I fix this issue.
Error with my try with Xamarin
I Just try a simple Hello_World for testing Xamarin apps but i unable to try in emulator you have an idea what is my problem ?