Integrating twitter sdk with android app in android studio? - twitter

I want to share posts on twitter from my android application, For this i need to integrate the twitter sdk with my android application in android studio. The examples that i am getting is for integrating twitter in eclipse.
Can any bodyhelp as how to integrate twitter sdk in android studio?

There's a plugin for android studio to integrate twitter that is Fabric.
Step 1- Go to dev.twitter.com
Step 2- Download FabricAndroidStudioPlugin.
Step 3- After downloading, follow this link to add this plugin in android studio.
To add this plugin in android studio
Go to File ->> Settings ->> Click on Plugins -->> then click on Install plugin from disk button -->> then select that FabricAndroidStudioPlugin zip file and ok..!! An icon of fabric will be there on toolbar. Then click that icon and follow the steps. fabric will now do everything automatically.

It helps me for Twitter integration in android application.
This is offical Twitter Kit for Android(Twitter SDK)
check this link
https://dev.twitter.com/twitterkit/android/installation
dependencies {
// Include all the Twitter APIs
compile 'com.twitter.sdk.android:twitter:3.0.0'
// (Optional) Monetize using mopub
compile 'com.twitter.sdk.android:twitter-mopub:3.0.0'
}
repositories {
jcenter()
}
public class CustomApplication {
public void onCreate() {
TwitterConfig config = new TwitterConfig.Builder(this)
.logger(new DefaultLogger(Log.DEBUG))
.twitterAuthConfig(new TwitterAuthConfig("CONSUMER_KEY", "CONSUMER_SECRET"))
.debug(true)
.build();
Twitter.initialize(config);
}
}

Related

Xamarin bar code scanner ZXing.Net Mobile

I am working on an Xamarin.Forms application. Specifically, I am focusing on the Android platform before I focus on iOS. So far in my application I have implemented login and registration. When I was working on the login and registration features of the application all the work that I did was in the PCL, which would compile into android and iOS.
However, I now want to implement barcode scanning. For this requirement I have decided to use the ZXing.Net.Mobile for Forms library. After reading the documentation it says the following var scanPage = new ZXingScannerPage();. I have download ZXing.Net.Mobile for Forms in my Xamarin.Android solution however it is unable to find the class. Any help or guidance would be great thanks.
I have download ZXing.Net.Mobile for Forms in my Xamarin.Android solution however it is unable to find the class
If you just install the ZXing.Net.Mobile nuget package, it's unable to find the class.
You could see the ZXing.Net.Mobile source code, the ZXingScannerPage.cs class is included in ZXing.Net.Mobile.Forms. So you need download the ZXing.Net.Mobile.Forms nuget package :
Then you could get started with ZXingScannerPage :
var scanPage = new ZXing.Net.Mobile.Forms.ZXingScannerPage();

Unable perform google plus sign in ios using ionic 2

Hi i am applying social login scenario in my ionic app where i applied google sign option and it is working perfectly with android and when comming to the ios im getting the below error
the api key and bundle id everything are set and working perfect
You have to follow the below steps as configuration for google login through IOS
Go to https://developers.google.com/mobile/add?platform=ios&cntapi=signin for IOS registration
Enter IOS bundle Id from widget Id in config.xml of the project
Enable Google sign In and generate configuration file
Copy the reverse client Id from downloaded file
Install the plugin with reverse client Id instead of webclient Id which we used for Android
run cordova plugin add cordova-plugin-googleplus --save --variable REVERSED_CLIENT_ID="myreversedclientid"
We can find the reverse client Id in Google developer console also credentials->iOS URL schema is the reverse client Id
Extract from Plugin documentation
To get your iOS REVERSED_CLIENT_ID, generate a configuration file
here. This GoogleService-Info.plist file contains the
REVERSED_CLIENT_ID you'll need during installation. This value is only
needed for iOS.
The REVERSED_CLIENT_ID is also known as the "iOS URL Scheme" on the
Developer's Console.
Login on iOS takes the user to a SafariViewController through the
Google SDK, instead of the separate Safari browser.
IMPORTANT:
Please note that myreversedclientid is a place holder for the reversed
clientId you find in your iOS configuration file. Do not surround this
value with quotes. (iOS only Applications)
If you are building a hybrid application (iOS and Android), or an
Android application, you have to replace myreversedclientid with the
reverse value of Client ID in your Release credential generated on
step 3, on Google Developer's Console, this will be:
"com.googleusercontent.apps.uniqueId", without quotes.
1)Go to firebase console in your project add for ios.
2)you can see the google-info-plist file download it.
3)in this plist file have webclientid and reverseclientid use this
in package json file where google plus varible of webclient id and reverseclient id.same
as in config.xml file then after.
4)run commnad ionic cordova prepare ios then ionic cordova build ios
5)buy beer for me :)

How to integrate Payfort SDK to iOS with Swift

I am trying to integrate payfort SDK to my iOS project.
I am using xcode 9.0 and swift 4.0.
I followed the instruction on payfort docs. But still can't see the module name of payfort in my project.
This is the guide https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_2.0.pdf
But it showing only PayFortLogo.png when import module. See in below picture.
Payfort guide to integration ios mobile SDK
Please the doc first:
https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_1.3.pdf
1- TO intregrate Payfort SKD follow the following steps. Don't use any other method.
 Downloaded iOS SDK from official link.
 Unzip the downloaded iOS SDK.
 Drag the PayFortSDK.framework & PayFortSDK.bundle to Frameworks in Project Navigator.
o Create a new group Frameworks if it does not exist.
o Choose Create groups for any added folders.
o Make Sure to select Copy files if needed.
2- Copy PayfortView2.xib & PayfortView2_ar.xib from the project view or ask Payfort support team for it, Now use them in your project.
3- Use your custom view for PayfortView by mapping it with PayfortView.h using Payfort framework Connect all outlets with your custom view.
paycontroller?.setPayFortCustomViewNib("PayFortView2")
4- Download "JVFloatLabeledTextField" library from github or use pod for it.
5- Use JVFloatLabeledTextField instead of PFKJVFloatLabeledTextField change PayfortView2.xib and PayfortView2_ar.xib class in "Identify Inspactor" from xcode.
6- Now open "PayFortView.h" from ~/PayFortSDK.framework/Header/PayFortView.h in your project change outlet PFKJVFloatLabeledTextField to JVFloatLabeledTextField
Bellow is the link that I have integrated to my demo project:
Change your payfort account.
https://github.com/bhoopend232/PayfortDemo.git
Just follow these below steps in swift4 and Objective-c we are easily acheive payfort sdk integrate to your projects.It will help full mostly.
.Downloaded iOS SDK from official link.
List item
Unzip the downloaded iOS SDK.
List itemDrag the PayFortSDK.framework & PayFortSDK.bundle to Frameworks in Project Navigator.
Copy PayfortView2.xib & PayfortView2_ar.xib from the project of github to drag into your project.
paycontroller?.setPayFortCustomViewNib("PayFortView2")
Download "JVFloatLabeledTextField" library from github Or use pod for it.
Use JVFloatLabeledTextField in place of PFKJVFloatLabeledTextField change PayfortView2.xib and PayfortView2_ar.xib in "Identify Inspactor" from xcode.
IF we are using sand box account and production account use seperate urls to use
For sandBox:
https://sbpaymentservices.payfort.com/FortAPI/paymentApi
For Production:
https://paymentservices.payfort.com/FortAPI/paymentApi
While check this below pdf file for passing parameters and response
https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_2.9.pdf
just in the success response we call the xib file .Then it will automatically redirect to card details page.
If you want source code just check this below repository in swift4
https://github.com/SRReddy411/PayFortPaymentDemo
If you want objective c then we will check this one
https://github.com/SRReddy411/payfort-Objective-c
Read the docs properly. Section 4.2, page 10. The framework is written in Objective-C and you have a Swift project, so you need a Bridging-Header.
One of the hundreds of tutorial on how to setup a `Bridging-Header: https://youtu.be/lon5YVMUxHQ

How to integrate GTM with Firebase analytics enabled Application which developed using Xamarin Android platform

I am developing Mobile application using Xamarin Android. We have integrated Firebase portal with our application successfully. Also we are able to see all automated event and custom event on Dashboard in firebase Console.
Now my requirement is to integrate Google Tag Manager(GTM) SDK with existing Firebase SDK in my application. I tried to integrate by following some below links
https://developers.google.com/tag-manager/android/v5/
https://github.com/IdoTene/XamarinTagManagerAndroid
but ended up with build error Invalid Resource file Name for GTM configuration file(GTM-XXXX.json).
So here is my question, How to integrate GTM SDK with Firebase SDK in Xamarin Android application.
Please any help would be greatly appreciated.
I don't know if you figured it out eventually, but for future reference, the problem is that the IdoTene tagmanager project is for tagmanager v4, which is pre firebase. Instead you should use the version that Xamarin maintains:
https://www.nuget.org/packages/Xamarin.GooglePlayServices.TagManager/
The steps are very simple. Integrate GTM containers (ios and android) as follows:
For Android -> create subfolder in assets folder and name it as containers, copy container in it (make sure it's naming starts with GTM-xxxxxx.json).
For iOS -> create a folder container in the root directory and copy GTM container json there (GTM-xxx.json)
Then install Xamarin.GooglePalyServices.TagManager nuget for Android and Xamarin.Google.iOS.Tagmanger for iOS.
Thats it for Android, but for iOS, there is a one more step.
Integrate following code in AppDelegate.cs
Google.TagManager.TagManager.Configure();
Then you should be good to go!! :)

Blackberry jre configuration

I am new to that Blackberry development platform.
I installed eclipse plugin for blackberry successfully.
Now when creating the project its showing no jre click configure jre when clicked and configure and select whenever option its shows the same error then I go to that update site and install the sdk but after downloading its shows error like
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile..
Please help me create my first BB app here.
Can't send more logs because I have 9 reputation and require 10 reputation for adding hyperlinks
Well, try this out
Remove BlackBerry plugin from Eclipse, shut eclipse down.
Next go to BlackBerry developer website (register, its free I think), get the correct SDK your handset has, install it.
Add the home directory of this SDK to your path.
Now launch Eclipse, go get the BlackBerry plugin and install it. Now try creating a BlackBerry project, it should work.
If it doesnt, try running one of the sample apps that get shipped with the SDK in Eclipse, say the "Hello World" app. If it works, modify it for your project.

Resources