Third Party API in Blackberry(JDE) - blackberry

How to use third party api in blackberry jde ?....(I need send file to ftp server)

You can simply add the JAR file into the project - on the projects name, right click and select "Add file to project". With it added, you can import any of its libraries.
Another way is to make another project and set it to the library type. Add the JAR to it and and then you can add this project to your main project as a project dependancy. This works also but if you want to put your project on a real device, you need to first install the library project and then install your app.

Related

How to create an Xcode project that is not an app but is visible in other projects?

I want to create a project with a handful of categories that add useful functionality to UIKit.
I want to keep this as a separate project so that it can be source-controlled separately (and eventually hosted on github, and downloadable as a dependency via cocoa pods...but let's skip this for now.)
But all the Xcode 6.1 project templates imply an app inside. When I select an empty project it complains about missing base SDK. But this cannot be set without a target present. It is quite confusing. I don't need a target. Do I?
The project should be just a shell for a number of categories + a accompanying summary header file.
I want to be able to drag this project as a subproject to any other proper app project, import the summary header file and expose those categories to the main project.
Any advice?
You need a target. Every source file that should be compiled must be a part of a target.
You could reference each source file from the target(s) in your app's Xcode projects, but that'd be tedious as you'd have to add to every project manually when you add source to your shared repository.
Either create an embedded framework project or a static library. Unless you are really going to share code between an app and an app's extension, go with the static library. It is a lot easier to manage.
Create a project that has a static library target, add the files to that static library.
Then create a workspace that has your static library project and your app(s) project(s) in it. Modify the app targets to link against the static library.

Add a framework to an existing project without using cocoapods

I've got an existing project where i want to add the framework called CoreActionSheetPicker from
https://github.com/skywinder/ActionSheetPicker-3.0
The problem is i cant seem to add the framework to my project? when i pull the framework over to my existing project none of the files below is added and when i try to import it says it does not exist
import CoreActionSheetPicker
I want to do this without cocoaPods. What is the steps in order to do such? i'm using swift. Do i first need to create a WorkSpace?
I've just cloned it, and it appears the project file is invalid. You can see this by trying to open it. You should raise the issue with the owner on GitHub, which is how you're supposed to ask questions about projects there. Then you will get feedback directly from the creator or at least someone else who knows about that project.
As for adding a project,
Download the source
Drag the .xcodeproj into your project within Xcode
Add the framework in Build Phases / link binary with libraries
Add it as a Build Phase / target dependency.
Note that at the moment, you should always builds 3rd part libraries with your swift project, and not just include the binary. See here about binary compatibility of frameworks:
https://developer.apple.com/swift/blog/?id=2

Xcode 4.5 (iOS) - Link projects (library and app)

I have 2 projects in the same workspace. One is iOS library and the other is iOS app.
Is there an easy way to get the app project use the library proejct?
I have one requirement: Whenever i make changes in the library project i want them to automatically affect the app project.
Don't copy the Library project into your app project. Instead make a reference of Library project into app Project.
Whenever you import Library project into app project OR you just drag n drop it... then use reference of Library instead of copying of resources into app project...
this way whenever you made change in library project... it will automatically reflected in app project.
EDIT
Whenever you drag n drop a file in Xcode project....
You are asked 2 options...
Copy items into Destination group's folder.
Folder's option.
For option 1. De-Select the checkbox. which will create a reference for that file.
For option 2. you can do whatever you want....

export external jar in blackberry but does'nt work

I generated a jar that contain the class which I use in my application, but I add this jar into the project following these steps:
right click in the project.
properties
Build
Libraries
Add external jars or add jars
ok
I can use these libraries as I write my code, but when I'm loading my project in the emulator or device it said that my library "NOT FOUND".
Please help, what is the correct way to use an external jar in blackberry projects?
please try following step:
right click in the project.
properties
Build
Libraries
Add external jars
select order and export tab
check mark true which .jar file you add
click ok
From the BlackBerry developer docs:
In the Package Explorer view, right-click the project that you want to add a dependency to.
Click Build Path > Configure Build Path .
Click the Libraries tab.
Complete one of the following tasks:
Click Add JARS if the .jar file is in the current workspace.
Click Add External JARS if the .jar file is not in the current workspace.
Select the .jar file that you want this project to depend on. The .jar file must be generated by a Java® application project. You cannot add a BlackBerry® application project of the Library type in this manner.
Click OK.
Pay close attention to the two different options in step 4. above, choosing the one that applies to your situation (where your .jar file is located).

include a java-me jar with a blackberry application

I want to use the ksoap2-j2me-core-prev-2.1.2.jar file. But on use time application create a error
Module 'ksoap2-j2me-core-prev-2.1.2' not found
Any 3rd party jar has to be preverified using the SDK's preverify tool. Also, make sure that in Eclipse, you select the check box for the jar underneath the "Order and Export" tab when setting the build path (the same place where you add the jar)

Resources