Is there a way to create/change an email account from source at android an ios? We would like to provide our customer a way for adding their mail accounts to android and ios devices within in an app.
I've already taken a look at the Android Account Manager but I'm still not sure if I can add System-Mail Accounts with it(example..?) :(
API: Android Account Manager
For IOS up to now i haven't found anything :(
For iOs you will have to create a configuration profile using the iPhone Configuration Utility for Mac OS X or for Windows. Basically those are XML/Plist-Files - only some content is obfuscated (like passwords). But if you don't include passwords you can modify this xml content in your app then you should be able to create a local NSURL and call UIApplication's openURL. if that doesn't work you'll have to deploy your configurations from a webserver - there is a guide for that. In that case you have to create a http-NSURL and pass that to openURL.
Related
I have some about Android connect to Azure file share with smb problem.
English isn’t my native language. I apologize for my mistakes.
I would like use azure smb files share with my android phone, I already install app like X-plore File Manager that support smb protocol.
but when I keyin url, stroage account name and stroage account key, app return message "failed authentication".
That url, name and key I think it's correct because I also use in my Windows 10 FileExplore, and it's work.
I didn't open secure-transfer because android only support SMB2.
How can I solve this problem?
Edit:
when I using IOS to connect Azure SMB, there is no problem.
But Android third party application always can't connect, Please see I have try app below.
x-plore file manager
AndSMB (samba client)
File Manager Plus
app return error message like this
With the help of storage account key, we can be able to use SMB, and for this we need to enable Azure Active directory domain services, refer to MS docs for enabling AAD DS. For enabling this we need client machine, with help of storage key we can add to AAD DS.
Thanks to 9to5mac for the blog for enabling SMB connectivity in files app for IOS.
Also, we need to interact with third party application to connect with Android.
Hi (i'm new to this so you'll need to forgive me)
My end goal is to be able to grab an attribute from Microsoft azure active directory for use in my app. The issue being that while i have done a fair amount of research i'm still at a loss of how to achieve my end result.
I have found that Microsoft has an API of sorts that allows authentication with azure AD but i'm unable to find any information as to how i query an attribute.
Possible solutions I've looked into:
https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-devquickstarts-android (Microsoft's android AD API)
Using Java to find simple Active Directory Information (this isn't a possible solution as i need azure integration as the AD server isn't outward facing).
I'm sure that the solution to this isn't a complex one but i would be grateful if someone could point me in the right direction. I don't have much experience with AD which is why i'm struggling here.
You could learn how to integrate Azure AD into an Android app from here . You could call Microsoft Graph API or Azure AD Graph API to access AAD resource :
To call Microsoft Graph API/Azure AD Graph API from Android Native Client application , In Settings blade of that app in azure portal, select Required Permissions and select Add. Locate and select Windows Azure Active Directory(Azure AD graph api )/Microsoft Graph(microsoft graph api) , add the appropriate permissions under Delegated Permissions .
To get access token With ADAL for android :
mContext.acquireToken(MainActivity.this, resource, clientId, redirect, user_loginhint, PromptBehavior.Auto, "", callback);
resource is required and is the resource you're trying to access.So you need to set that value to "https://graph.windows.net" if you want to call Azure AD graph api , and "https://graph.microsoft.com" if you want to call Microsoft Graph Api.
I have created an android sample project using AWS Mobile Hub with User Sign-In and Push Notifications services.
I've downloaded the project and opened it through Android Studio, in order to take the necessary files for push notifications from the sample project and to integrate it in my existing Android app.
I thought it would be simple, but then I found out this huge files branch:
It is difficult to understand what files I do need and what files I don't need. Could you please help me to figure out what do I need to import into my existing project in order to integrate Push Notifications in my app?
You should copy the contents of MySampleApp/app/src/main/java/com/amazonaws verbatim into your new project and Also parts of AndroidManifest.xml and build.gradle and Application.java.
For a complete instruction, I would recommend that you go through Mobile Hub Console > Project Name > Build > Select Android > On Left side go to develop > Use as an Example.
You will find all the instructions you need for your android project
The "PushListenerService" class is basically a useful example class where the magic happens. So keep every file that support that class. The
private static void generateNotification(Context context, final String message)
is what displays the notification message.
Another important note is how to get the user's device endpoint value. This can be gotten using the "PushManager" class.
String endpoint = pushManager.getEndpointArn();
The endpoint ARN of a device help you send direct notification to that device.
PublishRequest publishRequest = new PublishRequest();
publishRequest.setMessage(message);
publishRequest.setSubject(subject);
publishRequest.withTargetArn(endpoint); //This can also be a "topic" ARN
snsClient.publish(publishRequest);
Pretty nice job done by the guys at AWS. Big thanks to them! :D
There is no easy way out. Just take your time and go through all the code in the classes that relate to the AWS service you want to implement. Good luck!
Btw, make sure your app is not open on the test device when you send a notification to it or else you won't see a notification since your app is already running. I notice this is a default behaviour.
In my project I need to access the Exchange accounts on the device, to change them.
I need to do it programatically , inside my application.
I have searched around but it does not seem that there is a way of doing such a thing.
Please any help or suggestion?
EDIT EDIT
To be more specific i need to:
lists all email accounts on the device and allows the user to change settings for Exchange accounts:
*server address
*server port number
*SSL (on/off)
*accept all SSL certificates (on/off)
*account password
You can't modify the permissions/settings of an another exchange account (it gives you a security error). You only can create your own exchange account witch it will be included in your exchange accounts as yourAppName..
Take a look at AccountManager (http://developer.android.com/reference/android/accounts/AccountManager.html)
You should be able to do something like this:
AccountManager accountManager = AccountManager.get(context);
Account[] accountList = accountManager.getAccounts();
for(Account account : accountList){
accountManager.getUserData(account, AccountManager.KEY_USERDATA);
accountManager.setUserData(account, AccountManager.KEY_USERDATA, "data");
}
Powershell is probably the tool that I would want to use to do this, but from devices it is tricky. Tools like AccountManager should assit with this as under the hood they are probably using Remote Powershell scripting. Alternatives that I can think of are:
Create your own web service that you can execute powershell commands from, and have your app connect to that. This is a good primer that works for Exchange 2010 and 2013: http://forums.asp.net/t/1683553.aspx?Mailbox+creation+in+Exchange+Server+2010+using+ASP+Net+3+5+application
Find a tool to execute remote powershell requests from the device direct. I have not tried this but this looks like a good thread to follow: http://social.technet.microsoft.com/Forums/windowsserver/en-US/bc1b417d-0388-486b-8742-305a48224a92/android-client-for-powershell-remote-scripting?forum=winserverpowershell
I personally already had web services hosted inside the domain that my app was using anyway (data source was in the domain), so I put my mailbox and AD user management service along side those, then the mobile apps made simple calls like CreateUser, EnableMailbox, CreateMailEnabledUser...
I am writing an application to help test android devices' capabilities to connect to wlan's with varying security settings (ex. wpa aes peap). However, I noticed that the published android.net.wifi api does not contain fields to set parameters needed for peap and eap-fast authentication. Does anybody know how to establish a connection to peap programatically?
Below is a link that shows the WifiConfiguration() class possessing unpublished fields (ex. eap, phase2, identity, password). However, eclipse will not let me utilize these fields in my code since they are not officially in the android api.
http://www.netmite.com/android/mydroid/1.6/frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.java
I was having a similar problem. The solution is to use "Reflection".
Here is a link that should be very applicable to you.
How to programmatically create and read WEP/EAP WiFi configurations in Android?