sohaib rahman

Greenhorn
+ Follow
since Jun 01, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sohaib rahman

Hi nitin,

It is good to know that you are switching to Android development which has a lot of potentials. By the way I want to tell you that there is difference between learning a programming theoretically and doing it practically. In my opinion, you should start doing a small project based on some idea in Android. As you sit for doing a project, ideas will run automatically in your mind. And as you strike upon an idea, ask the question in Google and it will throw you a list of tutorials which will give you the knowledge on how to materialize on that idea. During the reading process, the tutorial will throw some light on Android APIs which you wanted to learn. As you go on to do more projects in Android, you will be armed with the best of knowledge in it. In my opinion, theory books on Android will do no good unless you are doing it practically.

Ok. If you are really interested in buying a book I would recommend "Busy coder's guide" as it is written in a clear manner.
12 years ago
Hi Ulf,

Thank you for your valuable response. It is pleasurable to hear that there are some people who are investing time to respond to my questions. I admit that I have no idea on how to start as a freelancer and acquire good customers. Some of the people in this forum might have an experience as freelancer especially in Android and some of them are working online and making money. I am just asking for suggestions for which this forum is made and not seeking HELP. I would like to invite all you people in sharing their valuable experience and/or tips and tricks. This would not be only useful to me but to the people who are in their jobs and want to shift as a freelancer. What are the dos and donts etc. I am a young 25 year old amateur developer who has taught and developed in Java and wants to run his own start up. I would like to ask the experienced people in this forum to give their inputs.

Thanks

Sohaib Rahman
12 years ago
I am an experienced Java developer. I am thinking to get started as Freelance Android Developer. My questions are as follows:
1. How do I get started as Freelancer?
2. How do I earn more profits while developing application in Android?
3. How should I win customers and make them come to me for more projects?
4. What infrastructure is necessary for being a freelancer?

Please reply me. I require your help.
12 years ago
Dear All,

I have created an application which does the following:
1.Preview
2.Capture Image
3.Save Image
4.Still the image
5.Preview Again

I have written the following code to do the above things:


From the above code I am able to perform steps 1, 2, 3 and 5 but not step 4. How to do this? Can you provide me any code or any idea?

My application is creating the camera from the scratch rather than using the inbuilt camera API. But it should behave like an original camera that means, it must still the image and when the back button is pressed, it should again come back to the preview.

I am not able to still the image after capturing the picture. Please help me! How to do that?
12 years ago
I have three images that depicts the company logo, name and slogan. I want to animate these three images in such a way that a logo appears first, then the name and then the slogan. After these three animations, I want the screen to disappear and display a new activity. How to do this? Please help me.
12 years ago
Dear folks,

We all know that when we call the finish() method of the activity on click of a button, say "Exit", the application exits. True. This is true for my app which I am creating. All the activity's current state are destroyed.
I have written the following code:

btnExit.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {

finish();

}

}

But the problem is that, if the user clicks on the home button directly without clicking on the "Exit" button, the application state remains as it is. The point from where I exit the application on the press of the home button of the android phone, remains as it is as if it is asking me to continue from where I have left. How to destroy the application completely? Please do not ask me to search this forum. I've already done that.
12 years ago
I am creating a game called Jumbled Words in which the user is given a word in a scrambled format for which the user has to unscramble it. For each correct answer the score gets incremented by 10 and the user is shown the current score. After the user exits the application the current score should get stored somewhere, say a file or a database (assuming the game is played for the first time) and display it as the highest score. Suppose for the first time the game is played and the score is 100 and the value is stored in the file/DB, for the second time when the user plays the game and the score is 200. By assuming 200 is the highest score compared to the highest score in the file or DB i.e. 100, the value 100 must be replaced by 200 and display 200 as highest score. Whenever the user wants to see the highest score, it should retrieve the highest score and display it in a view.

I want the following suggestions from my folks:

1. What type of data storage system must I use? A file, database or a properties file. Which would be better.

2. What logic must I apply to display the highest score?

3. What APIs of Android must I use for the File, DB or Properties?javascript:emoticon('');
12 years ago
Hi vamsi,
1. Your basics of core java must be strong. This is because Android API is fully made up of Java.
2. Buy a best book on Android. I recommend the following:
i. Beginning Android by Mark Murphy
ii. Hello Android by Edd Burnett
iii.Unlocking Android by Frank Ableson, Charlie Collins, Robi Sen


12 years ago
I am creating an application which allows a user to send a message from the email address of the sender to the email address of the receiver. For this I am providing two text boxes which is as follows:


Enter Sender's Email Address:
sohaibrahman@gmail.com

Enter Receiver's Email Address:
xyz@gmail.com

Type Your Message:
Hi! How are You?

There is a "Send" Button that will send the message from Sender's email id to Receiver's email id without authentication (Yes! The user need not type the user name and password).

How to do this? Please help me

12 years ago
You can also try

Learning Android by O'Reilly
12 years ago
here is the screenshot of the view
12 years ago
Yes Pramod,
The suggestion you had given me is true for portrait orientation, but when the orientation changes to landscape the remaining radio buttons go down and I am not able to scroll. What now?
12 years ago
Dear folks,

I am not able to work with the scrolls which I have added in my XML file called choice.xml. This XML file has a set of radio buttons and an exit button. I have written the following code for choice.xml file:


choice.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="700dip" android:orientation="vertical" android:id="@+id/linearLayout">
<TextView android:layout_width="wrap_content" android:textSize="15sp" android:id="@+id/textView1" android:layout_height="wrap_content" android:text="@string/strChoice"></TextView>
<ScrollView android:id="@+id/scrollView1" android:layout_height="600dip" android:layout_width="fill_parent">
<RadioGroup android:id="@+id/radioGroup1" android:layout_width="wrap_content" android:layout_height="wrap_content">
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/optFiveLetterWord" android:text="@string/strFiveLetterWord"></RadioButton>
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/optSixLetterWord" android:text="@string/strSixLetterWord"></RadioButton>
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/optSevenLetterWord" android:text="@string/strSevenLetterWord"></RadioButton>
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/optEightLetterWord" android:text="@string/strEightLetterWord"></RadioButton>
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/optNineLetterWord" android:text="@string/strNineLetterWord"></RadioButton>
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/optTenLetterWord" android:text="@string/strTenLetterWord"></RadioButton>
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/optTwelveLetterWord" android:text="@string/strTwelveLetterWord"></RadioButton>
</RadioGroup>
</ScrollView>
<RelativeLayout android:layout_marginTop="-50dip" android:gravity="bottom" android:layout_height="wrap_content" android:layout_width="fill_parent">
<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btnExit" android:text="@string/strExit"></Button>
</RelativeLayout>
</LinearLayout>

I have not written any code in Choice.java which is an Activity class and corresponds to choice.xml. When I test the application after installing in the android phone, the scroll is not working. It does not work for portrait as well as the landscape orientation.

I know that I have to write the code in Choice.java but don't know what to write and how to use the ScrollView. Please help.
12 years ago