Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 03 Mar 2015, 20:18
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Android programming in Puppy: "Studio"
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
Rattlehead


Joined: 11 Sep 2008
Posts: 246
Location: Madrid, Spain

PostPosted: Tue 30 Dec 2014, 13:45    Post_subject:  Android programming in Puppy: "Studio"  

I'd like to create my own Android applications, but I'm a complete beginner atm. All the tutorials I have found in Internet seem to take too much things for granted.

Also, in this forum, I've seen there is some kind of Android simulator that allows you to test stuff. Examining some of the code in the tutorials, from what I remember of a course I did in the 90s, it seems Android uses some variant of Java, so I guess I'd need the Java Development Kit (this will give you an idea of my level of 'rookieness' in the matter).

What are the tools that I would need? Is there some puplet that is Android ready out of the box? Recommended books and sites to learn programming? Thank you

Edited_time_total
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2907
Location: New Zealand

PostPosted: Tue 30 Dec 2014, 14:37    Post_subject:  

Hi rattlehead, have a look at kevin bowers post here. Maybe he can offer some mutually beneficial info.
Back to top
View user's profile Send_private_message 
stemsee

Joined: 27 Jun 2013
Posts: 952
Location: Displaced

PostPosted: Tue 30 Dec 2014, 15:22    Post_subject:  

You need the android sdk or android studio from here!

http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CC4QFjAA&url=http%3A%2F%2Fdeveloper.android.com%2Fsdk%2F&ei=Y_uiVO_zFofoaM-sgKAG&usg=AFQjCNG2OCt-GU5GslQw7zE0jmgKb3auDA&bvm=bv.82001339,d.d2s
Back to top
View user's profile Send_private_message MSNM 
Rattlehead


Joined: 11 Sep 2008
Posts: 246
Location: Madrid, Spain

PostPosted: Mon 05 Jan 2015, 14:18    Post_subject:  

Thank you for the response guys. It took me some time to process it -not the kind of 101 information I was expecting!

Kevin's thread says

Quote:
For those who don't already know, Android is based on Linux


OK, cool, great to know, but what's the language people use to program stuff in it? I stick to my previous message - looks like Java to me; where can I learn it?

The rest of that thread sends my head spinning quickly. It mentions an application called Sulu2 which is used to root Android, something that I'll have to do at some point of the road, but by now I just wont to crank out the usual hello world in a simulator!

Quote:
You need the android sdk or android studio from here!


Thank you for the resource. But could someone avoid me 10,000 of hours of tweaking (which I don't have right now) and point me to a Puppy where such package is either already installed, or certified to just work once downloaded? The Samepup mentioned in the other thread seems to do all kind of nifty synchronizations between Puppy and Android, but it doesn't seem to be a platform for programming, please correct me if I'm wrong...
Back to top
View user's profile Send_private_message 
amigo

Joined: 02 Apr 2007
Posts: 2334

PostPosted: Mon 05 Jan 2015, 16:23    Post_subject:  

It's java.
Back to top
View user's profile Send_private_message 
Robin2

Joined: 17 Jan 2015
Posts: 54

PostPosted: Tue 27 Jan 2015, 16:04    Post_subject:  

Rattlehead wrote:
But could someone avoid me 10,000 of hours of tweaking


I have no experience of the Android SDK on Puppy (being new to Puppy) but it was a lot of work on Xubuntu - basically a lot of stuff to download. If you can save it outside the Puppy system I would do so.

Unless you are familiar with Java programming the Android system is a lot to swallow. I experimented a bit with installing JRuby on Android which did not need much pure Java code.

To be honest, compared to programming Android java (on any PC) the extra bits for Puppy are likely to be easy.

...R
Back to top
View user's profile Send_private_message 
gcmartin


Joined: 14 Oct 2005
Posts: 4801
Location: Earth

PostPosted: Wed 28 Jan 2015, 00:58    Post_subject: Android ONLY requires a PUP with the JDK. Rest is easy.  

To get started is really very easy, per se. The problem is NOT Puppy, but, no PUP developer, IMHO, has provided a PUP with the JDK built in. It has been requested, but none, yet, has stepped forward.

Here's an idea for you to consider: Appeal to any one of the several PUP developers who are doing 64bit PUPs. This is the better platform because of its data pathing for the emulator requirement in test and debug.

Next, you need to ask the developer to please provide the JDK in their REPO if it is NOT in their distro to allow all sorts of things to occur, one of which is Android stuff. One PUPPY member, @Musher0, here, has done the hard work of creating an installable instructions for JDK.

Once you have the JDK installed on the PUP, ALL OF THE REST IS EASY!!! (In Windows and Macs, they do this so easily)

OK, lets assume you can get this far, the most mature platform with object kinds of built in navigators is eClipse with the Android feature added. There are others, but the eClipse people team with the Android people to maintain the platform and keep it as consistent with the Android developers as humanly possible.

Lastly, there are at least 100 explanations, videos, tutorials, etc to get anyone to "Hello World" quickly using this environment, and you can target it to any one of the various versions of Androids EVER EXISTED! (i.e v2.x all the way to 5.x (Lollipop) and beyond)

This gets you started. All the rest of your skills for Android will follow ... for some, quickly, for others, not so.

Again, simply distro, JDK, eClipse, Android kit. The easiest of these are the eClipse and Android who rely on the JDK's presence.

If anyone gets this far, we have the makings of the Android PUPPY. With it we can do all kinds of present day home device stuff, especially if we understand that at the end of this year, some already estimate that there will be over 7 billion Android smart devices in the world going to 20billion soon after.

Hope this is seen as a help

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
Robin2

Joined: 17 Jan 2015
Posts: 54

PostPosted: Wed 28 Jan 2015, 09:15    Post_subject: Re: Android ONLY requires a PUP with the JDK. Rest is easy.  

gcmartin wrote:
To get started is really very easy, per se. The problem is NOT Puppy, but, no PUP developer, IMHO, has provided a PUP with the JDK built in.


Do you mean the Oracle JDK or the Android ADK?

Installing the Oracle JDK is simple. Download the ZIP file. Extract it to somewhere convenient. Make symlinks in /usr/bin to the java and javac executables.

I have my jdk installed in a separate partition outside the Puppy system.

...R
Back to top
View user's profile Send_private_message 
gcmartin


Joined: 14 Oct 2005
Posts: 4801
Location: Earth

PostPosted: Wed 28 Jan 2015, 18:59    Post_subject:  

Thanks @Robin2

In the Linux world there are 2 JAVA efforts: There is the traditional one now owned by Oracle and there is the Open Source one. Respectively, they are JDK and OpenJDK.

My understanding is eClipse will operate on either, as it is a mere JAVA app. But, subtleties may surface in use. (I am NO expert of which JAVA. But am aware that Android has specific recommendations when using the ADK on eClipse in JAVA.)

For Android stuff, I have ONLY used Windows, JDK, eClipse for Android. (BTW, some of you are probably already aware that this combination can build for iPhone apps, as well)

Now that so many of this community's users have smartDevices, it might be time for community members to consider a method of providing PUPs a means to Add this to ability to PUPPY distros.

For example, today Puppyland world has a DEVX for each distro produced. Maybe an addition to the distro would be:
  • a "JAVADEVX" (JAVA+DEVX) availability along with the traditional DEVX.
  • Or maybe PUPPYlanders could provide a separate packaging which has a universal installable for any PUP.
  • Or maybe, there could be an ISO for smartDevice users developers which also would make Puppy Linux more attractive to those who come to Puppyland from Windows.
    (I do not posses the skills to do a creditable job at this, but many of you do and may see advantage to any one of these ideas.)
This,of course, is consistent with the majority of the world having a smartDevice by the end of 2015.

Puppy Linux ability and speed works to advantage and its attractiveness. This is offered as some ideas for making PUPPY as gleaming as possible to the eyes of those who venture in.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
Robin2

Joined: 17 Jan 2015
Posts: 54

PostPosted: Thu 29 Jan 2015, 08:24    Post_subject:  

From this webpage - the Android Studio system requirements

Quote:
Linux

GNOME or KDE desktop
GNU C Library (glibc) 2.11 or later
2 GB RAM minimum, 4 GB RAM recommended
400 MB hard disk space
At least 1 GB for Android SDK, emulator system images, and caches
1280 x 800 minimum screen resolution
Oracle® Java Development Kit (JDK) 7


It is hard to reconcile this with the concept of the small size of Puppy distros.

My approach would be to keep the Puppy system small and install these things in another partition outside the Puppy system.

By the way I should have referred to the Android SDK - the Android ADK is a different thing.

...R[/quote]
Back to top
View user's profile Send_private_message 
gcmartin


Joined: 14 Oct 2005
Posts: 4801
Location: Earth

PostPosted: Thu 29 Jan 2015, 11:26    Post_subject:  

Understood. The Andcliperoid programming I refer is that which runs when added and used in eClipse which require JDK to support both coding and image testing of your coded apps.

On PUPs, having some experience with this, I recommend you have a 64bit PC, again. If your x86 PC is a modern 1 made since 2006, you already have the physical requirements for doing your app development with little hardship.

Your idea to have your development done where it stores and uses storage outside of the main distro's files is one most every PUP use understands the advantage.

Not sure what you refer when you say small as it means so many things to people.

What this thread ask is a good one. A PUP "arrangement" capable of also producing Android apps for home use.

There are 2 current PUPs which is positioned to address your needs, but, will need their JREs replaced with JDKs which positions for your needs: LightHouse and EmSee. There may be other PUPs which contain JRE OOTB, but I am not aware of any other PUPs. In those PUPs the JAVA libraries and the system variables are already positioned for the change. If they are used as your model, your JDK installation may place itself in your system so that all other pieces for development, simply, fall in place.

Looking forward.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
Rattlehead


Joined: 11 Sep 2008
Posts: 246
Location: Madrid, Spain

PostPosted: Thu 29 Jan 2015, 13:44    Post_subject:  

Hey guys, thank you for all the info. My computer time is a bit limited lately, but I'll try to get my head around these suggestions at some point.

However, I think I found something that might be deadly to my pretensions already...

Quote:
2 GB RAM minimum


Ouch. My laptop has 1 GB only.

Anyways, thanks for the info. In the meantime, I found the Android SDK for dummies book in my library and I'm halfway through. It's refreshed my Java, but I would also need to practice some more... Thank you everybody.
Back to top
View user's profile Send_private_message 
gcmartin


Joined: 14 Oct 2005
Posts: 4801
Location: Earth

PostPosted: Thu 29 Jan 2015, 19:02    Post_subject:  

Just remember; Android is NOT pure JAVA. JAVA is the development environment support subsystem.

Android on you smartDevice gets apps which are a combination of HTML5, XML, and JAVA. Android, the operating system, has a virtual machine built into its fabric, currently JAVA. But Oracle has not played nicely with the Android group and for past 2 years a new Virtual Machine is emerging for apps to use. And we will move of it in coming year with some subtlety emerging in Lollipop (Android version 5+).

For the immediate challenge, though, the PUP needs still remain as a target for both development, testing, and vehicle delivery outside of the development framework.

We have all the pieces which have been done over past years, but, not yet combined on any one PUP or combined and tested REPO package for any one PUP.

But, I am SURE we are going to get there. There are just too many billions to ignore. Soon, smartDevices will exceed ALL PCs (Microsofts/Apples/etc) on the planet in operations....ALL.

Puppyland has already taken a 1st step with it 2014 entry of MTP for data/content management. This thread addresses, similarly, how PUPs can be used to manage apps for personal needs.

And, every person, today and tomorrow, young and old, are the users who pay attention whenever they see or hear iOS or Android.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 310
Location: Germany

PostPosted: Mon 02 Feb 2015, 22:53    Post_subject:  

Android Studio 1.0.2 in Precise based L.A.S.S.I.E. using LP2_jdk-1.7u25-i586.sfs.
AndroidStudio-1.0.2-in-Precise-based-L.A.S.S.I.E.-and-LP2_jdk-1.7u25-i586.sfs.jpg
 Description   
 Filesize   92.06 KB
 Viewed   127 Time(s)

AndroidStudio-1.0.2-in-Precise-based-L.A.S.S.I.E.-and-LP2_jdk-1.7u25-i586.sfs.jpg


_________________
RSH
No Smart-Phones, no FaceBook, no Twitter etc...
but: LazY Puppy!
Copyright is NOT Copyleft: good people are aware of this and respect both of them!
Back to top
View user's profile Send_private_message 
stemsee

Joined: 27 Jun 2013
Posts: 952
Location: Displaced

PostPosted: Tue 03 Feb 2015, 06:38    Post_subject:  

@LazY PuppY

Could you make one complete sfs module of latest java and sdk studio for easy distribution and use!?!?

Smile
Back to top
View user's profile Send_private_message MSNM 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0973s ][ Queries: 12 (0.0056s) ][ GZIP on ]