I would like to create a credit card app to take payments in Android using Authorize.net payment gateway.
I found some example code here from Authorize.net).
I followed the instructions however on step 2 I am not able to add its sdk as library with another project. When I create a new project as "ExampleActivity.java" & used this code as explained, I got red line errors on the AuthNet object & Environment.SANDBOX
Can anyone help me How to implement this code without errors?
Add the Authrized_net_lib project as a library project
Add jar file authorize_net_lib jar file in your project
Then Clean the project
Now copy and paste given sample code
It will not give error.
Related
So I was trying integrate zoom into my app, in the process it requires me to add the zoom libraries to my own module, so I created one, but after creating the module, I can't run my app from the studio, it says module not specified.
When I was creating the module, there was an error in the following file
settings.gradle
include ':libsystem'
include ':mobilertc'
include ':commonlib' <component name ="libraryTable">
I deleted
<component name ="libraryTable">
error was gone.Do I need to include something in this file so that I can run my app?
Nvm, I deleted include':app' in settings.gradle by accident.
Follow these steps and see the example for zoom integration.
Step 1. Create an online zoom account for development.
ZOOM Account Create
Step 2. Create a meeting using API or Manually.
Step 3. Initialize ZOOM SDK.
Github: ZOOM SDK Integration
i never using component name if using another module. as long I can use the file in that module, I think it's good.
I'm trying to run Vuforia SDK samples from here on Android:
I have already downloaded the main SDK and put those sample files in the sample folder. I have added the Vuforia.jar as a library and dependency to my project. The app runs on my Samsung S4 and shows the Menu but when I click Start on any of the examples it sends me back to the main menu rather than opening the camera. It doesn't show any crash error in the logs.
I'm wondering if anyone has experienced this problem and has managed to fix it?
I had the same issue and when looked at the log it had this message com.vuforia.samples.VuforiaSamples W/System.err: The library libVuforia.so could not be loaded
Then I followed the answer here https://developer.vuforia.com/forum/android/crash-start-button-sample
and that .jar file to the project. This solved the above issue.
Also I had to generate a license key for the app and set it in the last parameter in Vuforia.setInitParameters(mActivity, mVuforiaFlags, "") in the SampleApplicationSession class
try it:
add the Vuforia.jar lib in your project;
go to archive build.gradle (Module:app) and check if the variable 'VUFORIA_SDK_DIR' is correct (in my project it had the value "../../../" but i had to change to "../../"), the path has to lead to your Vuforia SDK dir;
finally, change the method Vuforia.setInitParameters in the archive SampleApplicationSession.java (line: 414), add your vuforia key in the third paramether;
it works to me
hello,i want to put my project code and Sdk ,and so on to internet,.then someone can get my project apk by using the code. i want to some advice and some clue. because many people can get my new apk,and i donot want to directly give apk to people。
Use www.github.com for Source Code and www.travis-ci.org for Continuos Integrations
Hi there I am just newer in android development and I am trying to build my first app and I do will until now.
but I need to use ViewPagerIndicator so I do my search and I've found JakeWharton-Android-ViewPagerIndicator also I am using inellij IDE
but the problem that when I want to add this library into my project I can't find the jar file and I don't know if the error from my side or what please any help.
regards
You will need to create a new module with the library sources and add it as a dependency to your main module. This answer has detailed steps you can follow. Just replace the library used with ViewPagerIndicator.
I've been trying to implement Google In-App Billing into one of my Android apps by following http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample
but I get the error that "IabHelper cannot be resolved to a type" after following the steps for an "Existing Project". I've added a picture as well.
Make sure you have followed step 3:
Add the helper classes from the /util directory of the TrivialDrive sample to your project. Remember to change the package name declarations in those files accordingly so that your project compiles correctly.
You need to copy all the classes under com.example.android.trivialdrivesample.util and put them in your project. IabHelper is one of them and seems to be what you are missing.
so this worked for me:
If you just copied the files, then you need to change the package name of each java file in the util folder...
I have misunderstood where to copy the helper classes to? I am not able to read that from images provided. I have all of them changed accordingly to my app however still struggling on where to copy these files to. Neither able to understand that from https://developer.android.com/training/in-app-billing/preparing-iab-app.html#SetPermission as I do not have util folder in my app.