First of all, you should have an Ubuntu One account.For creating an Ubuntu One account, you just have to click on the Ubuntu One icon.It is in your launcher.



You will be given 5gb of free space.You will have an Ubuntu One folder under the Home folder.Now, whatever you will put into it, you can easily access it from any corner of the world.But what if i have an android phone and i want to access all my shared files which are under Ubuntu one??

This is what i am going to cover here..

1. Go to Android Market and download this app- Ubuntu One Files


After the downloading and installation is finished, open it.You will be greeted with a beautiful interface.

2. As you can see, you will have two options here.You can Sign in or you can create your account.Well, i already have one so i am just signing in.

3. After signing in, you will be able to see your already shared files( these files i have shared through my laptop, though i am opening this app first time but because i am accessing the same Ubuntu folder, i am able to access all my files).



4. So, if you haven't saved any file earlier then you can do it with the help of this app also.And you will be able to access the shared files on your Ubuntu.

5. To upload any file, just tap the '+' icon at the right corner of the main page.You will be able to see a lot of options there.


6. I have chosen to upload an image, so i just tap on 'Add image'.Now, it will open your phone's gallery where the images are located, you just have to tap on the specific image to upload it on the cloud.

7. If the uploading is started, you will be notified like this.

 8. To see the uploading status, just see at your notification bar.

9. When your file will be uploaded, you will be notified like this.

Your file is successfully uploaded on Ubuntu One!!

Question: Will it be available under the Ubuntu One folder in My pc?

Answer: For the availability under your pc's Ubuntu One folder, the file must have to be downloaded and this will only be happening when you are connected to internet. Take an example of my case, i uploaded this image when i was at office.So, when i came back to home and connected my laptop to internet, That image got automatically downloaded to my laptop's Ubuntu One folder.


So, this is how you can create a link between your Ubuntu Os and your android phone.

Happy SynCing guys!!

Hi friends,

This is my second post on android.
The most basic code that we write while learning a new technology is always “Hello World”.
I am no one to break that convention, lets write Hello World :)

Before moving to interesting code part, there is some pretty boring theory part that you must understand before.

There are mainly four type of application component:

1. Activity:
An activity represents a single screen with user interface.

2. Services:
A service is a component that runs in background to perform long-running operations.

3. Content Providers:
A content provider manages a shared set of application data. You can store your data in file system or Database or on web, and you can access or modify them through content provider.

4. Broadcast Receivers:
BR is a component that responds to system wide announcements.

I copied these lines from the tutorials on Android Developers Site. If you want to know more about these components then you can always refer to those tutorials.

So, back to Hello World:

Our Aim:
To write an application/activity that say “Hello World”

How To:
We will write an activity and then add a TextView to it which will contain the text Hello World.

Where to Test:
Android Virtual Device.

To start a AVD we have to create an AVD first. Open AVD Manager
(Window>>AVD Manager)




Click on New


Enter the Name for the Virtual Device and Target (this will depend on which android version you installed)



Now you can see the device in the list, click on Start and then Launch.


Your Andriod Virtual Device will start


Now, there are two ways to write 'Hello World' one is create purely JAVA code and other is JAVA + XML. First method is highly discouraged as is less flexible, difficult to maintain and can lead to seriously mumbo jumbo kind of code in complex activities :)

We'll look at the first method first (as I believe unless you don't know what is bad, you'll never appreciate the good :) )

I believe that you setup the android development environment. If not than you can refer to my previous post of SETTING UP ANDROID DEVELOPMENT ENVIRONMENT.

Now first start a new Android Project.
File>>New>>Android Project


If you are not able to find the 'Android Project' under 'New' then you can go to
File>>New>>Others
then you can find 'Android Project' in there.


Now enter a name for the project.


Select a Target for the project


Enter the name of the package and click on finish


Eclipse will generate one default activity for you under the name of the package provided by you.
Now when an activity will start the first method which will be called is 'onCreate()', so we will simply override this method.

Now most of the user interface components directly descend from View class, we will use TextView component. So what we have to do is create a new TextView object, pass object of the current activity as context (all activities are context) and then we'll set this view to the activity :)

Check the following code:


The above was the code way of saying hello world :)
Right Click on the project name and
'Run as>>Android Application'
(wait for sometime as android virtual environment take time to start)

Now lets take a look at the more flexible way, in this way we will define the look and feel in a xml which will be under the folder
res>>layout.

First create an xml by name 'helloworld_layout.xml' (you can use any name)



You have to select the proper resource type, check into above pic.

Now you have to open the xml and switch to Graphical Layout view from lower left corner.


Now drag and drop TextView and edit its content by change the value of the Text field from the Properties panel.

Now the difficult part is over :)
Simply go to your class and in onCreate() method remove all lines and write

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.helloworld_layout);
}

here R is the class that is automatically generated when the application compiles and is used to access resources :)

We are done.
Right Click on the project name and 'Run as>>Android Application' (wait for sometime as android virtual environment take time to start)

If you are facing any problem please comment, I am glad to help :)
Once upon a time, i found an application for windows that fetched the songs' lyrics by itself. Want to see it, go here - MiniLyrics- Fetching Your Songs' Lyrics

For Ubuntu, i am still searching an app like this:(.

But for android, there is an awesome app in android market.I am going to put some light on the awesomeness of this application.

1.Search for this in android market.



2.Just play your favorite song, it will ask you whether you want to play your song with default music player or with TuneWiki, tap on the TuneWiki and you will find lyrics synced with your song.



3.If you just want to find some lyrics, you can do it by writing songs' name in the searchbox.




4.You can also view the top Charts and listen the preview of the songs.



5.And one more thing, you can also see the bio of your favorite singer or band.




There are so many things in this app.So, you guys should give a try to this app if you are not already using it.
There are so many applications in Ubuntu Software Center to make you puzzled about which app to use.I feel the same thing when i open software center to find some new app.Well, it becomes quite easy when you have specific thing in your mind to look for, which doesn't happen in my case.So, how to search for good app..

Let's find out..

1. Go to this link- Best apps in Ubuntu Software Center

2. You can get the list of top paid apps..


3. Best Free apps list is also available...

I found  this at the bottom of the page:-

The lists of top 10 app downloads includes only those applications submitted through My Apps on the Ubuntu App Developer site.

So, all statistics  are right from the Ubuntu sources, not from any third party source.They keep update these lists every month, so you will always have the information about the latest popular app.

Bookmark it guys!!!
Hi friends,

Problem?

Recently I tried to install sun-jdk on ubuntu but then I found that due to some distribution law of Oracle, sun-jdk is removed from ubuntu repositories. The Oracle geeks care enough to provide easy installer .exe's for Windows but for Linux they are providing only binaries.
So I tried to edit .bashrc file and install sun-jdk but the problem with that is it was working for command prompt but other applications like eclipse were not able to find jre. So I found a new way which I am sharing with you here.

So lets start :)

1. First you have to download the jdk binaries from Oracle website: Download
** Its better if you install jdk it contains java+jre.
2. Then you have to extract the jdk folder somewhere, I did it in my home partition: :~/Java/jdk1.7.0_03
3. Now check if there any jdk installed on your machine or not, you can check that by typing.

java -version

4. If it asks you to install open-jdk then no java is installed otherwise it will tell you the version of open-jdk or whatever java is installed on your machine.

Lets consider first that no java installed on your machine.....

Solution:-

1. Then its simple just open the file /etc/environment with sudo privileges and add following to its end.
:/home/tarun/Java/jdk1.7.0_03/bin:/home/tarun/Java/jdk1.7.0_03/jre/bin
** the bold path is location to your jdk and jre bin's

Now lets consider that you have open-jdk installed on your machine and you want to switch to sun-jdk.......

Solution:-


1. For this migration you have to first install a package called 'java-common'
sudo apt-get install java-common
2. After installing the package you have to run:
sudo update-java-alternatives --config java

then if you have more than one java's installed it will give you option of choosing one as default, and you are done :)
Hi friends,

How to apply themes and icons to ubuntu.

Though this is a very easy step but many of my friends who recently switched from windows to Ubuntu are facing problem in this. The thing is we are in habit of double clicking each and every .exe we find and this makes it difficult for us to adapt to Linux.

First you have to download the tarball of the theme you want to apply (tarball is .tar.gz or .tar.bzip file).

Get the tarball and extract is somewhere. You can simply right click on them to extract or you can use following command

tar -zxvf theme.tar.gz

Then you have to copy the theme folder into ~/.theme folder.


When you'll add your theme folder to ~/.theme you can see your theme in Settings>Preferences>Appearance


This is how you can install new themes, but sometimes installing new themes isn't enough, you might also need to install new icons.
To install new icons get the icons tarball from anywhere you wan't, best place is gnome-look.org

Extract the tarball by right clicking or above mentioned command.

Then you have to copy-paste the icon folder into ~/.icon


Then you have to open Settings>Preferences>Appearance, you have to customize your theme.



Then you can find your icons there under icons tab.



After doing all the changes you'll get new themes set :)

Hi friends.
I am posting this as an Introduction to a new distro called as Bodhi Linux.
"LOVE AT FIRST SIGHT"
This is the first time I am saying in reference to a technology :)



Here is the first look of the desktop that you'll get after login.
This distribution is using enlightenment [http://www.enlightenment.org/] desktop.
The things that made me its fan is that the graphics were as good as KDE (I really miss using KDE because of my buggy wifi card :( )
The second thing is its speed, its speed is like LXDE desktop. It was so fast that even after the animation also I was feeling like lagging behind.

I am sharing some of its features that might be little bit confusing for Gnome users.

1. Shelf: 
Instead of bar or panel its Default bottom bar is called shelf. Shelf is just like shelf in real life, you can put many things on it :). If you want you can remove all the shelves from the screen. It dont have restriction of one last bar. Shelf is somehow equal to AWN. I used the word 'somehow' because it lacks the 3D view feature.

2. Midori: 
 Enlightenment desktop uses Midori Web Browser. This is a less known browser as compared to Firefox and Chrome. I personally love Chrome more that any browser and Firefox's integration with Down Them all download manager. So I personally never give it a shot, but you guys should try, you may never know when you can find something better.

3. Ibar: 
Ibar is just like Gnome main menu, it will contain your quick launch shortcuts and the main menu option.

4. Itask:
 It is the kind of windows switcher.

The good thing about Ibar and Itask are you can add them directly to your desktop, you dont need a shelf or a bar to always hold them :)
Even you can add anything directly to desktop. Things added to desktop that are called Gadgets and they are just like widgets in KDE.
Some of you might find AWN or Docky not properly working in e17, I'll suggest you to try Engage. It is just like AWN :)

5. You can apply different wallpapers to different Desktops (though it slows desktop switching a bit but it switches desktop in a style :)).

6. Everywhere on dekstop is the menu, Left click and you can get anything. If you want you can change this to right click as well.



In beginning you might find it difficult to find few things, but guys stick to it for sometime it is good :)
In case you need any help you can post it in comments I'll try to solve your problem or you can also ask you question on http://forums.bodhilinux.com/

[Please leave your views about this distro in comments]
© 2015 Techie's House. Designed by Bloggertheme9