Jolla Application Development - Sailfish General

Hi Developers, or anyone just interested in Sailfish,
I figured that before the mods create a Sailfish App Development thread, we could post our successes, guides and tips here. I find Sailfish a wonderful platform to develop on so far
For starters, here's the beginner's guide to Sailfish app development:
What you need:
- Anything capable of Running code, the only OS the Sailfish IDE isn't compatible with is OS/2 and DOS
- The sailfish IDE, https://sailfishos.org/develop.html
- Virtualbox (just have it installed, the IDE will do its thing)
- Some programming knowledge is necessary, if you don't know QML, don't be too scared to dive in and learn things on the go, that's what I'm doing, you'll find Sailfish Silica (Sailfish "API") very simple and logical
Click to expand...
Click to collapse
If there's anything that needs to be added, tell me. Please share any ideas you come up with and especially any good beginner guides.

Thank you for this thread. Eager to see good native apps.

so i download virtualbox, then the IDE and just start coding? i know a little of qml...

djvita said:
so i download virtualbox, then the IDE and just start coding? i know a little of qml...
Click to expand...
Click to collapse
Yep, it's really simple and everything sets up automatically, you just fire up the IDE and code.

Related

how to start dev android?

I am familier with linux, can say as an expert. But I know nothing in android and mobile. How can I start to develope it? please leave some links. e.g. any kernal to download or there's already a android kernal for mobile? Thanks.
fyfcc said:
I am familier with linux, can say as an expert. But I know nothing in android and mobile. How can I start to develope it? please leave some links. e.g. any kernal to download or there's already a android kernal for mobile? Thanks.
Click to expand...
Click to collapse
There are loads of porting threads etc dependant on what device your looking to work on with regards to kernel development.
If its apps etc you wish to develop, do a quick google search and you should find links to eclipse dev enviroment the android adt and sdk
You can start at here: developer.android.com/index.html

[Q] How-to build a kernel from source

Can anyone either give a step-by-step guide to building a kernel from source on Ubuntu. or give a link to a good guide. I have searched the web but I cant find a straightforward guide.
I think I have done most things but when I try to 'make' I get the error 'make: arm-eabi-gcc: Command not found'
Im guessing I dont have the correct gcc toolchain but I dont know how to get/install it.
From the flykernel post:
erasmux said:
Kernel Sources
My sources with all my updates and changes are found on github:
http://github.com/erasmux/hero-2.6.29-flykernel
Use hero_defconfig for the regular version and hero-bfs_defconfig for the BFS version.
See the wiki for more information about building the kernel. Another great resource about kernel building is the cyanogen wiki - do note that currently the CM kernel will not work on the hero.
Please feel free to contact me regarding my sources and kernel development.
Click to expand...
Click to collapse
The cyanogen wiki is excellent.
You just need Android NDK!
Hi,
you just need Android NDK and add proper dir to environment PATH variable to fix your problem...
If you should have any problems, here is a step by step guide for you:
1) Get latest Android NDK from: developer.android.com/sdk/ndk/index.html
(Ubuntu: android-ndk-r5-linux-x86.tar.bz2)
2) Extract it wherever you wish (tar -xvjf android-ndk-r5-linux-x86.tar.bz2)
3) Set some variables typing:
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:/path/to/android-ndk-r5/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/
And U R ready to compile your kernel
For your first compilation I recommend use erasmux's flykernel!
Just follow the steps from this short wiki github.com/erasmux/hero-2.6.29-flykernel/wiki
Have a fast compilation dude
f_padia said:
Can anyone either give a step-by-step guide to building a kernel from source on Ubuntu. or give a link to a good guide. I have searched the web but I cant find a straightforward guide.
I think I have done most things but when I try to 'make' I get the error 'make: arm-eabi-gcc: Command not found'
Im guessing I dont have the correct gcc toolchain but I dont know how to get/install it.
Click to expand...
Click to collapse
first download the prebuilt binaries from android source:
run this command in bash:
Code:
git clone git://android.git.kernel.org/prebuilt
then download the kernel source, for example Behnaam old kernel:
Code:
mkdir android
cd android
git clone https://github.com/behnaam/HeRo-2.6.29-GoDmOdE.git
then follow these steps:
https://github.com/behnaam/HeRo-2.6.29-GoDmOdE/wiki/
yes, that easy
Does this code link closely to any programming languages like Java? Visual Basic? I've been learning C++ and would like to get into the developing scence
Calico5 said:
Does this code link closely to any programming languages like Java? Visual Basic? I've been learning C++ and would like to get into the developing scence
Click to expand...
Click to collapse
There is some Java of course but I'm pretty sure there's also some C and C++
Calico5 said:
Does this code link closely to any programming languages like Java? Visual Basic? I've been learning C++ and would like to get into the developing scence
Click to expand...
Click to collapse
The kernel code is pure C.
The android code is mostly Java and C++, maybe also some c.
As far as I know no visual basic, thank god
erasmux said:
The kernel code is pure C.
The android code is mostly Java and C++, maybe also some c.
As far as I know no visual basic, thank god
Click to expand...
Click to collapse
No man that would be great! That's the only coding language besides Windows DOS I speak :'(
erasmux said:
The kernel code is pure C.
The android code is mostly Java and C++, maybe also some c.
As far as I know no visual basic, thank god
Click to expand...
Click to collapse
Thanks for the info! I think i'll finish off learning C++, before having a look at Java... then maybe one day i can become an android developer
C0mpu13rFr34k said:
No man that would be great! That's the only coding language besides Windows DOS I speak :'(
Click to expand...
Click to collapse
same here! VB is just soo easy albeit rubbish in pure programming talk
Well this link is little old but should work to, anyway the basics
http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html
elelinux said:
Well this link is little old but should work to, anyway the basics
http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html
Click to expand...
Click to collapse
thanks! I did finally come across this page after much searching. its an excellent guide and very easy to follow... now on to the compiling...
I have started adding some info for developers to my flykernel wiki. I have done some minor updates to the page about building the kernel, including adding the link brought by elelinux, big thanks to him
I have also added a small git tutorial which can be very helpful to developers new to git.

[Q] Anrdroid Emulator

Hi,
I'm trying to experiment with making my own build, but for the first instance I'm trying to gain an understanding of how everything is working by working with a current build.
I'm using eclipse in linux with the android sdk etc.
My question relates to running already prepared builds in the emulator. From what I understand in the sdk/platform folder I should be able to place the system.img file from a current build and run it on the emulator, however when I try this the emulator appears to freeze.
What am I doing wrong or missing?
Thanks in advance.
I think i"ll follow this thread pretty closely, i've been wanting to run android on win xp sp3, thru my sdk setup, and would like to know how to as well. Maybe somebody with the proper know-how will be generous enough to post a brief guide, enough to point us noobs in the right direction to get builds running on our pc's. I'd like to be able to use the sdk to troubleshoot, fiddle around, and test a few things out, among other things.
If some kind soul would be willing to post a couple of good links, i'd be willing to read up, give it a go, and do my best at making a guide/tut for running android in the sdk
Sent from my... whatever
huggs said:
I think i"ll follow this thread pretty closely, i've been wanting to run android on win xp sp3, thru my sdk setup, and would like to know how to as well. Maybe somebody with the proper know-how will be generous enough to post a brief guide, enough to point us noobs in the right direction to get builds running on our pc's. I'd like to be able to use the sdk to troubleshoot, fiddle around, and test a few things out, among other things.
If some kind soul would be willing to post a couple of good links, i'd be willing to read up, give it a go, and do my best at making a guide/tut for running android in the sdk
Sent from my... whatever
Click to expand...
Click to collapse
Have you downloaded Eclipse? I can manage to run the SDK platform in the Android Emulator, but for some reason I'm having trouble with modified/custom Roms.
http://developer.android.com/index.html
http://www.eclipse.org/
No, i havent. I thought you could just run android from the sdk. I'll check it out when i get home. Thanks, i'll let u know how it goes as soon as i get it all set up
Sent from my... whatever
huggs said:
No, i havent. I thought you could just run android from the sdk. I'll check it out when i get home. Thanks, i'll let u know how it goes as soon as i get it all set up
Sent from my... whatever
Click to expand...
Click to collapse
You want to download eclipse, then install the ADT, you'll find instructions on the android developers site under the SDK tab, enjoy.

Beginning to develop apps using Android Studio!

Hello all,
New to this community. Learning Android development with Android Studio, but with the tutorial that was developed on Eclipse. The tutorial which I am following is from developer.android.com, which is really fantastic, but the same thing when converted to Android Studio pops up errors. I have link to the project attached, could somebody advice me on whats wrong in this.
Thank you all.
Silly me. A typo in the package name created the problem. Thanks to all who viewed this post.
sumchans said:
Silly me. A typo in the package name created the problem. Thanks to all who viewed this post.
Click to expand...
Click to collapse
I was just wondering about that Android Studio... How is it compared to the ADT bundle?
I'm also new to development... Downloading things through SDK Manager as we speak as per the instructions from the Getting Started training on developer.android.com
---------------------
Aspiring Android developer
damiandownfall said:
I was just wondering about that Android Studio... How is it compared to the ADT bundle?
I'm also new to development... Downloading things through SDK Manager as we speak as per the instructions from the Getting Started training on developer.android.com
---------------------
Aspiring Android developer
Click to expand...
Click to collapse
Hi,
If you are new to development I recommend starting off with Android Studio, because that is going to be the future of Android development. But the programs as of now has some bugs, so when error pops up, it would make you think whether it is your code or the program.

Creating Custom ROM for Asus Zenfone Max Pro M1

I have been running about, trying to create a basic custom ROM for my device.
Have tried most of the methods mentioned in forums. Nothing seems to work.
Anybody out here who can guide me through it?
Also, explaining customising the Android system.
Thanking everyone in advance.
arbajmessiali said:
I have been running about, trying to create a basic custom ROM for my device.
Have tried most of the methods mentioned in forums. Nothing seems to work.
Anybody out here who can guide me through it?
Also, explaining customising the Android system.
Thanking everyone in advance.
Click to expand...
Click to collapse
Create??????
Really don't get the "thanks in advance" thing!!
akshmau5 said:
Create??????
Really don't get the "thanks in advance" thing!!
Click to expand...
Click to collapse
Yes. Create.
I mean building or compiling.
arbajmessiali said:
Yes. Create.
I mean building or compiling.
Click to expand...
Click to collapse
If you are an up and coming developer (I am assuming) then Github or the best place to start would be from lineage os website and their guide "how to build for your device".
And ofc you would need all possible help from our lead device developers like Shivam Kumar Jha and Sagar for the device trees, kernel source codes and what not!! I have no clue.
The base is already compiled from AOSP by the respective main contributors rather head developers. You have to take the source code and tweak it/compile it (ofc not easy) for our device.
You asked the question to explain android customisation in general!!! Well, if you don't know that, then unless you are on NZT-48 or a really genius programmer, I doubt you can do it. (Also great if you prove me wrong here). Don't mean to discourage you.
Wouldn't we do it all for ourselves??!!!!!
For Android customization - the basics would be to root and go tweaking, fiddling and modding around on the stock rom first. Lots of amazing stuff already. (Why to reinvent the wheel!)
Then depends on your requirements.
Good luck.
akshmau5 said:
If you are an up and coming developer (I am assuming) then Github or the best place to start would be from lineage os website and their guide "how to build for your device".
And ofc you would need all possible help from our lead device developers like Shivam Kumar Jha and Sagar for the device trees, kernel source codes and what not!! I have no clue.
The base is already compiled from AOSP by the respective main contributors rather head developers. You have to take the source code and tweak it/compile it (ofc not easy) for our device.
You asked the question to explain android customisation in general!!! Well, if you don't know that, then unless you are on NZT-48 or a really genius programmer, I doubt you can do it. (Also great if you prove me wrong here). Don't mean to discourage you.
Wouldn't we do it all for ourselves??!!!!!
For Android customization - the basics would be to root and go tweaking, fiddling and modding around on the stock rom first. Lots of amazing stuff already. (Why to reinvent the wheel!)
Then depends on your requirements.
Good luck.
Click to expand...
Click to collapse
A real thank you.
Have already started the learning process.
Hope to come up with a ROM soon.
arbajmessiali said:
A real thank you.
Have already started the learning process.
Hope to come up with a ROM soon.
Click to expand...
Click to collapse
Oh that's great mate!
Are you in computer science?
Or what programming languages do you know?
akshmau5 said:
Oh that's great mate!
Are you in computer science?
Or what programming languages do you know?
Click to expand...
Click to collapse
I am pursuing Mechanical Engineering.
But I do know Java and web development.
arbajmessiali said:
I am pursuing Mechanical Engineering.
But I do know Java and web development.
Click to expand...
Click to collapse
Good stuff!!
Attaboy:good:
I am trying the same thing myself using the lineageOS 15.1 branch.
I am using the directions provided in the lineageOS Wiki for the X00TD device (can't post a link because i am a newbie).
The instructions are clear enough but I am having specific problems with the brunch command - specific errors come up for missing files.
Is this the right place to start posting specific technical questions?

Categories

Resources