what is the equivalent to:
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
in a plain Xamarin Android App?
Related
When creating an Intents.intentdefinition file, the generated Intent subclass source defines the class as:
#available(iOS 12.0, macOS 10.16, watchOS 5.0, *) #available(tvOS, unavailable)
#objc(OrderSoupIntent)
public class OrderSoupIntent: INIntent {}
But INIntent became available in iOS 10: https://developer.apple.com/documentation/sirikit/inintent
Why is the generated class iOS 12+ only? Can it be iOS 11+?
I found that custom intents was introduced in iOS 12. While I couldn't find in the SiriKit documentation, here's the WWDC video introducing the feature: https://developer.apple.com/videos/play/wwdc2018/211
Siri Shortcuts are a powerful new feature in iOS 12 that allow your app to expose its functionality to Siri.
I have tried following documentation here http://ionicframework.com/docs/v2/native/device/ but am not getting anything back.
home.ts
import {Component} from '#angular/core';
import {Device} from 'ionic-native';
#Component({
templateUrl: 'build/pages/home/home.html',
})
export class HomePage {
public device;
constructor() {
this.device = {};
platform.ready().then(() => {
this.device['uuid'] = Device.device.uuid;
});
}
}
home.html
<li>Device UUID is {{device.uuid}}</li>
I have already ran ionic plugin add cordova-plugin-device
UPDATE: i am testing the app using IonicView App.
Debugging in the Chrome Debugger under different device sizes will not allow you to debug any type of code related to native device properties, hence you need to test your app through an emulator (ios/ android). Please note ionic serve allows you to view the app through the default browser application which isn't an emulator.
For reference on how to test your app through ionic on an emulator see the CLI Docs
I have a native iOS code which is created in Xcode 5.1, Also I have one sample unity 3d ios project code.
I want to merge or integrate unity 3d ios code into my native ios code. How can I do that the same
Thanks In Advance
Check this out:
http://docs.unity3d.com/Manual/PluginsForIOS.html
Briefly:
Start first from simply one class let's say FooPlugin.cs in Unity3D which do the following:
[DllImport ("__Internal")]
private static extern float _FooPluginFunction();
which has public method:
public static void FooPluginFunction()
{
_FooPluginFunction(); // call the native extension
}
Then build XCode project and add some FooPlugin.m which implements this method:
void FooPluginFunction() {
// this is where native world is met
}
I made a very simple Xamarin.iOS app but my app crashes immediately when i launched it on the device: iPhone 4 and iPhone 5.
In the simulator and on the iPhone 5s device it works correctly.
Whenever I use a DateTime object my app crash.
I use following versions of Xamarin.iOS:
Xamarin Studio
Version 4.2.3 (build 59)
Runtime:
Mono 3.2.6 ((no/9b58377)
Package version: 302060000
Xamarin.iOS
Version: 7.0.7.2 (Business Edition)
Build date: 2014-17-02 17:43:23-0500
The relevant code (I started with a utility template from xamarin):
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
var testDateTime = DateTime.Now;
Console.WriteLine (testDateTime.ToString ());
}
In XCode i become this error: Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Does anyone know a soloution for this type of error?
This issue is caused by using a DateTime object with Xamarin when the region settings were Swiss German. The bug is fixed by Xamarin and will be released later.
In the meantime there is a workaround:
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.CreateSpecificCulture("de-DE");
Thank you for the great Support Rolf & Xamarin.
i have downloaded the VMWare iso for blackberry playbook simulator and it works well.
how can i upload to it my Android application (blackberry online test says that is compatible) on the simulator?
In my Eclipe i don't have the "Run as" Blackberry simulator...so i can't upload it as i do with all the android apps.
Even if i create a new app choosing Blackberry project i can't upload it and, as you can see is the default one.
package mypackage;
import net.rim.device.api.ui.UiApplication;
/**
* This class extends the UiApplication class, providing a
* graphical user interface.
*/
public class MyApp extends UiApplication
{
/**
* Entry point for application
* #param args Command line arguments (not used)
*/
public static void main(String[] args)
{
// Create a new instance of the application and make the currently
// running thread the application's event dispatch thread.
MyApp theApp = new MyApp();
theApp.enterEventDispatcher();
}
/**
* Creates a new MyApp object
*/
public MyApp()
{
// Push a screen onto the UI stack for rendering.
pushScreen(new MyScreen());
}
}
The source code you've listed is a BB7 (or lower version) Java app which won't run on Playbook.
To upload an AIR or C++ app written for Playbook (or its VMWare simulator) you use blackberry-deploy.bat coming with WebWorks SDK or with the other RIM SDKs:
blackberry-deploy.bat -installApp -password qaqa -device 192.168.1.128 -package my_app.bar"
I'm not sure about Android Java apps, maybe you can use the same batch file for them too?
What exactly you want to do ?
Playbook support Application created for Playbook not for Blackberry smartphones & it provide runtime environment for Android applications.
So if you wish to create an app for Playbook You can choose Flash builder to develop in Adobe Air.
Or if you want to run your android application to playbook follow this to install blackberry plugin on your eclipse.
https://developer.blackberry.com/android/documentation/install_plugin_prerequisites_1895476_11.html
Once you are ready with Blackberry plugin , you need to verify your app for Blackberry Playbook(Follow this Link)
https://developer.blackberry.com/android/documentation/Test_your_app_1985225_11.html