sdk

How to logout in facebook from another activity?

天大地大妈咪最大 提交于 2019-12-10 19:57:15
问题 I am using facebook SDK 4.4.0. i want to logout in facebook from another activity? How can I add logout functionality in another activity ? I want to go to another activity after successful login and add logout functionality in that activity loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { new fblogin().execute(loginResult.getAccessToken()); } @Override public void onCancel() { } @Override public

How do I handle event when user touch up outside the UIView?

你说的曾经没有我的故事 提交于 2019-12-10 19:12:16
问题 I have a custom popup menu in my iOS application. It is UIView with buttons on it. How do I handle event when user touch up outside this view? I want to hide menu at this moment. 回答1: You should create a custom UIButton that takes up the whole screen. Then add your subview on top of that button. Then when the user taps outside of the subview they will be tapping the button. For example, make the button like this: UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom]; [button

SDK Error: 0x8D07, while using Canon SDK in C#

柔情痞子 提交于 2019-12-10 18:44:53
问题 I download the source only tutorial here. When I run it with connect my Canon 70D, I got the error below. What is the point I missed? The Error: The error occurs on this line: And here is how the folder which includes EXE file looks like: 回答1: I fixed this problem by letting the camera know there's enough disk space on the host. Adding the line CameraHandler.SetCapacity(); before CameraHandler.TakePhoto(); should do the trick. 回答2: Error 0x8D07 stands for EDS_ERR_TAKE_PICTURE_CARD_NG I'm not

“No system images installed for this target” Xamarin AVD Manager

痞子三分冷 提交于 2019-12-10 18:32:43
问题 Anytime I select a target for Google APIs it tells me there are no system images available. I have completely removed and reinstalled every available option in SDK manager. For the API Level I am trying to use, I have every available image installed. Also I have tried copying the images out of the default folder as suggested by another question's answer and restarting visual studio. AVD Manager SDK Manager 回答1: Solved the issue by selecting a standard api lvel target (non google apis) and

Iphone SDK set static IP

℡╲_俬逩灬. 提交于 2019-12-10 18:32:16
问题 Does anyone know how to setup an IP address in iOs programmatically? It is really easy to do manually, just go to settings and configure the network. However, I want to do this inside a program, to connect to a WiFi network that do not have a DHCP server. Any pointers would help. Update: This does not seem to be possible. Any suggestion on what I should do instead? The app needs to connect to a network that does not have a DHCP server. 回答1: I very much suspect this isn't possible without the

Can't install Lync 2013 SDK with Skype for Business 2016

谁都会走 提交于 2019-12-10 18:25:03
问题 I'm trying to make a simple WinForms application that changes Skype for Business status (I'm using Skype for Business 2016). According to the links below, I should be able to install the Lync 2013 SDK (which I'm finding here: https://www.microsoft.com/en-in/download/details.aspx?id=36824 ). But when I attempt to install it, it says Microsoft Lync 2013 not found. Go here to download and install: http://go.microsoft.com/fwlink/?LinkID=248583 . Any suggestions? Do I have to also have Lync

Android SDK - running functions in the background

北慕城南 提交于 2019-12-10 18:16:40
问题 I have a function which can vary in the time it takes to finish. I would like to display a progress dialog whilst this function is operating. I am aware that you can use a 'Thread' to achieve this. Can someone point me in the right direction for doing this ? EDIT: Here is the code I am using: private class LongOperation extends AsyncTask<String, Void, String> { ProgressDialog dialog; public Context context; @Override protected String doInBackground(String... params) { if (!dialog.isShowing())

how to Change my app's target API level from 23 to 26

会有一股神秘感。 提交于 2019-12-10 17:40:03
问题 I have a problem when i try to upload my app to google play console and it is the API level that is must be 26 and my app is just developped with 23 version and now i don't know how to change this API version from 23 to 26 to make it works without errors. Help me please! 回答1: Steps: Go to File >Project Structure. select App Module in left panel select Flavour tab from the top menu tabs You can change the Min SDK version (In your case change Target SDK Version to 26 ) Click Ok Reference: http:

Calling MediaRecorder crashes app in AndroidStudio

感情迁移 提交于 2019-12-10 17:13:56
问题 I am trying to create a class that sets and starts audio recording but as soon as I click the button the app crashes. Iv isolated the problem to where I set the parameters for the MediRecorder. private void startRec() throws IOException { if (mrecorder!=null) mrecorder.release(); mrecorder= new MediaRecorder(); -> mrecorder.setAudioSource(MediaRecorder.AudioSource.MIC); /* mrecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR

Flurry 4.2.2 SDK not sending events session data in iOS

℡╲_俬逩灬. 提交于 2019-12-10 16:47:31
问题 I know that there is a delay in Flurry reporting, however, we are seeing no results the following day on Flurry's reporting. [Flurry setDebugLogEnabled:YES]; [Flurry setLogLevel:FlurryLogLevelDebug]; [Flurry startSession:_appSettings.flurryAppId]; [Flurry setSessionReportsOnCloseEnabled:YES]; [Flurry setSessionReportsOnPauseEnabled:YES]; [Flurry setEventLoggingEnabled:YES]; UIDevice *device = [UIDevice currentDevice]; [Flurry logEvent:@"SESSION_START" withParameters:[NSDictionary