Android:
How to import existing Android project into project workspace?
1. Launch Eclipse
2. Choose File menu, click New->Android Project
3. then Choose "Create project from existing resource".
4. Browse the location where the project is.
After chosen, it will take automatically other settings there.
5. Click 'Finish' to complete it.
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
http://itunes.apple.com/us/app/tossring/id358100360?mt=8
Friday, March 19, 2010
Sunday, March 14, 2010
Android:Give space between top and bottom controls
Android:
How to give space between top and bottom controls
* 'Layout Margin Top' - add or change to some value. For ex: 25dip
Cheers,
M.P.Prabakar
Senior Systems Analyst
Have fun and be addictive by playing iPhone "TossRing" water game, click the link is below..
http://itunes.apple.com/us/app/tossring/id358100360?mt=8
How to give space between top and bottom controls
* 'Layout Margin Top' - add or change to some value. For ex: 25dip
Cheers,
M.P.Prabakar
Senior Systems Analyst
Have fun and be addictive by playing iPhone "TossRing" water game, click the link is below..
http://itunes.apple.com/us/app/tossring/id358100360?mt=8
Thursday, March 4, 2010
Android: Animation support on Android
Android:
Animation support on Android
I.
Core Animation: Animation can be applied to Views, Surfaces and other objects.
Animations are available for, Translation, Rotation, ScaleAnimation, Alpha Animation(Object level animation, fading etc) and AnimationSet(for combining several animations into one)
http://developer.android.com/intl/de/reference/android/view/animation/Animation.html
http://developer.android.com/intl/de/reference/android/view/animation/LayoutAnimationController.html
II.
Android supports tweened animation which includes rotations, fading, moving and stretching.
http://developer.android.com/intl/de/guide/topics/resources/available-resources.html
III.
Android supports 2D graphics library for drawing and animating shapes and images.
http://developer.android.com/intl/de/guide/topics/graphics/2d-graphics.html
IV)
Apart from the above, Android supports always Open GL ES 1.0 too for high end graphics.
Excellent tutorials available here:
http://developerlife.com/tutorials/?p=343
Some example sources are available in the below link:
http://www.deitel.com/ResourceCenters/Programming/Android/AndroidAnimation/tabid/3554/Default.aspx
Animation support on Android
I.
Core Animation: Animation can be applied to Views, Surfaces and other objects.
Animations are available for, Translation, Rotation, ScaleAnimation, Alpha Animation(Object level animation, fading etc) and AnimationSet(for combining several animations into one)
http://developer.android.com/intl/de/reference/android/view/animation/Animation.html
http://developer.android.com/intl/de/reference/android/view/animation/LayoutAnimationController.html
II.
Android supports tweened animation which includes rotations, fading, moving and stretching.
http://developer.android.com/intl/de/guide/topics/resources/available-resources.html
III.
Android supports 2D graphics library for drawing and animating shapes and images.
http://developer.android.com/intl/de/guide/topics/graphics/2d-graphics.html
IV)
Apart from the above, Android supports always Open GL ES 1.0 too for high end graphics.
Excellent tutorials available here:
http://developerlife.com/tutorials/?p=343
Some example sources are available in the below link:
http://www.deitel.com/ResourceCenters/Programming/Android/AndroidAnimation/tabid/3554/Default.aspx
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
Android: How to zoom-in zoom-out images on Android
Android:
How to zoom-in zoom-out images on Android:
I.)
Sample code:
float scaleWidth, scaleHeight;
float zoom = 0.0f;
void ShowImage() {
Bitmap cur_bm = BitmapFactory.decodeFile(path);
float imageWidth = (float)cur_bm.getWidth();
float imageHeight = (float)cur_bm.getHeight();
float newHeight = imageHeight / (imageWidth / screenWidth);
float newWidth = screenWidth;
scaleWidth = screenWidth / imageWidth;
scaleHeight = newHeight / imageHeight;
image.setImageBitmap(cur_bm);
SetImageMatrix();
}
void SetImageMatrix() {
Matrix mtrx = new Matrix();
mtrx.postScale(scaleWidth, scaleHeight);
image.setImageMatrix(mtrx);
image.setScaleType(ScaleType.MATRIX);
image.invalidate();
}
void ZoomIn(float zoom) {
zoom += 0.01;
scaledWidth += zoom;
scaledHeight += zoom;
ShowImage();
}
void ZoomOut(float zoom) {
zoom -= 0.01;
scaledWidth -= zoom;
scaledHeight -= zoom;
}
II.) References:
http://groups.google.com/group/android-developers/browse_thread/thread/bdc4998a70f310c7
http://www.anddev.org/images_and_photos_zoom_in-out-t265.html
How to zoom-in zoom-out images on Android:
I.)
Sample code:
float scaleWidth, scaleHeight;
float zoom = 0.0f;
void ShowImage() {
Bitmap cur_bm = BitmapFactory.decodeFile(path);
float imageWidth = (float)cur_bm.getWidth();
float imageHeight = (float)cur_bm.getHeight();
float newHeight = imageHeight / (imageWidth / screenWidth);
float newWidth = screenWidth;
scaleWidth = screenWidth / imageWidth;
scaleHeight = newHeight / imageHeight;
image.setImageBitmap(cur_bm);
SetImageMatrix();
}
void SetImageMatrix() {
Matrix mtrx = new Matrix();
mtrx.postScale(scaleWidth, scaleHeight);
image.setImageMatrix(mtrx);
image.setScaleType(ScaleType.MATRIX);
image.invalidate();
}
void ZoomIn(float zoom) {
zoom += 0.01;
scaledWidth += zoom;
scaledHeight += zoom;
ShowImage();
}
void ZoomOut(float zoom) {
zoom -= 0.01;
scaledWidth -= zoom;
scaledHeight -= zoom;
}
II.) References:
http://groups.google.com/group/android-developers/browse_thread/thread/bdc4998a70f310c7
http://www.anddev.org/images_and_photos_zoom_in-out-t265.html
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
Wednesday, February 24, 2010
iPhone: How to submit our application into Apple AppStore:
iPhone:
How to submit our application into Apple AppStore:
Note: You should have bought Apple's developer account ($99 or $199) before submitting your applicaiton into Apple AppStore.
1. Log in to http://itunesconnect.apple.com
2. Click on 'Manager you applications' tab.
3. 'Add new application' tab
4. If your product has encryption, choose 'Yes', otherwise choose 'No'.
5. Follow on what are you seeing in the next pages as usual.
6. If you want upload your app as priced version, you can choose pricing tier in a tab which will ask you in one stage. Minimum starting from $ 0.99 U.S which is 'Tier 1' and maximum of $ 999.99 U.S which is 'Tier 85'.
Note: As a pre-requisite, keep the following items ready before starting this process:
1. Binary which has built with AppStore provisional profile file.
2. An application icon image in 512 * 512 size in .JPG format.
3. Four or Five(Max) application screenshot files in .JPG format.
4. You can have your URL, email address etc.
Cheers !
M.P.Prabakar.
Senior Systems Analyst.
How to submit our application into Apple AppStore:
Note: You should have bought Apple's developer account ($99 or $199) before submitting your applicaiton into Apple AppStore.
1. Log in to http://itunesconnect.apple.com
2. Click on 'Manager you applications' tab.
3. 'Add new application' tab
4. If your product has encryption, choose 'Yes', otherwise choose 'No'.
5. Follow on what are you seeing in the next pages as usual.
6. If you want upload your app as priced version, you can choose pricing tier in a tab which will ask you in one stage. Minimum starting from $ 0.99 U.S which is 'Tier 1' and maximum of $ 999.99 U.S which is 'Tier 85'.
Note: As a pre-requisite, keep the following items ready before starting this process:
1. Binary which has built with AppStore provisional profile file.
2. An application icon image in 512 * 512 size in .JPG format.
3. Four or Five(Max) application screenshot files in .JPG format.
4. You can have your URL, email address etc.
Cheers !
M.P.Prabakar.
Senior Systems Analyst.
Tuesday, February 23, 2010
Android: Dip and Pix in Android:
Android:
Dip and Pix in Android
If you want your layouts to work in difference resolutions, you have to use "dip" in sizing it.
"dip" stands for - Device Independent Pixels.
Dip and Pix in Android
If you want your layouts to work in difference resolutions, you have to use "dip" in sizing it.
"dip" stands for - Device Independent Pixels.
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
Android:How to get auto scrolling in Linear Layout in Android?
Android:
How to get auto scrolling in Linear Layout in Android?
For example i placed the scroll view code picked up from my main.xml file below, you can copy the same xml code for scrollview mentioned below as same in your xml file too.
Followed from this link:
http://osdir.com/ml/handhelds.android.devel/2008-03/msg00551.html
Note: .. mentioning < or > from the following code ..
..strike....?xml version="1.0" encoding="utf-8"?..
..scrollview xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"..
..linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:scrollbarAlwaysDrawVerticalTrack="true"..
..textview
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="@string/TickerLbl1" android:background="@color/TickTextViewBackCol" android:textStyle="bold" android:id="@+id/TextView"/..
..textview android:id="@+id/TextView01" android:layout_height="wrap_content" android:text="@string/TickerLbl1" android:layout_width="fill_parent" android:textStyle="bold" android:layout_marginTop="2dip" android:background="@color/TickTextViewBackRedColor"..../TextView..
../LinearLayout..
../ScrollView..
How to get auto scrolling in Linear Layout in Android?
For example i placed the scroll view code picked up from my main.xml file below, you can copy the same xml code for scrollview mentioned below as same in your xml file too.
Followed from this link:
http://osdir.com/ml/handhelds.android.devel/2008-03/msg00551.html
Note: .. mentioning < or > from the following code ..
..strike....?xml version="1.0" encoding="utf-8"?..
..scrollview xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"..
..linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:scrollbarAlwaysDrawVerticalTrack="true"..
..textview
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="@string/TickerLbl1" android:background="@color/TickTextViewBackCol" android:textStyle="bold" android:id="@+id/TextView"/..
..textview android:id="@+id/TextView01" android:layout_height="wrap_content" android:text="@string/TickerLbl1" android:layout_width="fill_parent" android:textStyle="bold" android:layout_marginTop="2dip" android:background="@color/TickTextViewBackRedColor"..../TextView..
../LinearLayout..
../ScrollView..
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
Monday, February 22, 2010
Android: Found some important things from this Android link ...
Android:
I have found many important notes from the following link:
http://www.brighthub.com/mobile/google-android/articles/31793.aspx
Here, you can find about,
1. How to get image from a URL programmatically?
2. How to install files on the device?
3. How to remove apps on the device?
4. Top paid and free apps details..
5. Working with Databases in Android
6. Create calculator
7. G-1 device related etc.
Enjoy reading this link mentioned above, it is useful..
I have found many important notes from the following link:
http://www.brighthub.com/mobile/google-android/articles/31793.aspx
Here, you can find about,
1. How to get image from a URL programmatically?
2. How to install files on the device?
3. How to remove apps on the device?
4. Top paid and free apps details..
5. Working with Databases in Android
6. Create calculator
7. G-1 device related etc.
Enjoy reading this link mentioned above, it is useful..
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
Sunday, February 21, 2010
Android: How do we see logs in Eclipse?
Android:
How do we see logs in Eclipse?
1. We need to add Log.d or Log.v etc to the source code to print the logs.
For ex:
Log.d("Portfolio:", "getParsedOutput:" + getParsedOutput); // here getParsedOutput is a string.
2. Go to Eclipse "Window (menu)->Show View->choose Other -> Android -> LogCat.
You can see the LogCat added in your project now in the bottom.
Otherwise Choose DDMS, where-in you choose Simulator/Device where you can see the logs printed.
How do we see logs in Eclipse?
1. We need to add Log.d or Log.v etc to the source code to print the logs.
For ex:
Log.d("Portfolio:", "getParsedOutput:" + getParsedOutput); // here getParsedOutput is a string.
2. Go to Eclipse "Window (menu)->Show View->choose Other -> Android -> LogCat.
You can see the LogCat added in your project now in the bottom.
Otherwise Choose DDMS, where-in you choose Simulator/Device where you can see the logs printed.
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
Android: Source not found problem?
Android:
When you debug your code, you may find "Source not found" (or) 'The JAR of this class file belongs to 'Android 1.1 which does not allow modifications to source attachments on its entities' etc. message.
Basically this problem is due to Android sources are not included in Eclipse.
To resolve it,
1. Easy method would be following the below link:
http://android.opensourceror.org/2010/01/18/android-source/
i) Download which version of SDK that you have. For ex: Donut means Android 1.6
ii) Create a folder called "source" For ex: sdk/platforms/android-1.5/sources
iii) Right click and refresh your project in Eclipse.
iv) click Run-Debug History
You will find still the same problem..like you will see message as 'Source not found' with Edit source path button.
v) Click on Edit source path button and click 'Add' button.
vi) Choose 'library system path' and choose your 'source' folder there.
Now go ahead and debug again.
When you debug your code, you may find "Source not found" (or) 'The JAR of this class file belongs to 'Android 1.1 which does not allow modifications to source attachments on its entities' etc. message.
Basically this problem is due to Android sources are not included in Eclipse.
To resolve it,
1. Easy method would be following the below link:
http://android.opensourceror.org/2010/01/18/android-source/
i) Download which version of SDK that you have. For ex: Donut means Android 1.6
ii) Create a folder called "source" For ex: sdk/platforms/android-1.5/sources
iii) Right click and refresh your project in Eclipse.
iv) click Run-Debug History
You will find still the same problem..like you will see message as 'Source not found' with Edit source path button.
v) Click on Edit source path button and click 'Add' button.
vi) Choose 'library system path' and choose your 'source' folder there.
Now go ahead and debug again.
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
How to debug Android projects in Eclipse?
How to debug Android projects in Eclipse?
Mac OS X eclipse setup:
It is very simple. But why i write and keep like this is because when i'm new to Android project development using Eclipse, i didn't know how to debug the code. I searched for sometime and found that, "Run -> Debug History ->" is the best one to debug the code in Eclipse.
Windows eclipse setup:
If you want to Debugging on Windows environment, you need to add the following line in AndroidManifest file for application.
android:debuggable="true" to the element
Mac OS X eclipse setup:
It is very simple. But why i write and keep like this is because when i'm new to Android project development using Eclipse, i didn't know how to debug the code. I searched for sometime and found that, "Run -> Debug History ->
If you want to Debugging on Windows environment, you need to add the following line in AndroidManifest file for application.
android:debuggable="true" to the
Thank you for followers!
Cheers,
M.P.Prabakar
Senior Systems Analyst.
Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..
Friday, February 19, 2010
How to retrieve HTTP URL data programmatically on Android:
How to retrieve HTTP URL data programmatically on Android:
Here is the simple function:
After getting this, you can look up, how to parse the data to have with your requirements.
Thanks you.
Cheers !
M.P.Prabakar
Senior Systems Analyst.
Here is the simple function:
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
private String getURLRequestData ()
{
String contentData=null;
try {
URL url1 = new URL("http://www.xxxx.com/xxxx.html");
URLConnection con = url1.openConnection();
InputStream is = con.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);
ByteArrayBuffer baf = new ByteArrayBuffer(50);
int current = 0;
while ( (current = bis.read())!=-1 )
{
baf.append((byte)current);
}
contentData = new String(baf.toByteArray());
} catch (IOException e) {
e.printStackTrace();
}
return contentData; // you will get output code get from the URL given..
}
After getting this, you can look up, how to parse the data to have with your requirements.
Thanks you.
Cheers !
M.P.Prabakar
Senior Systems Analyst.
How to setup internet connetivity on Android Emulator?
How to set up Internet Connectivity on Android Simulator?
This is how we can setup Internet connectivity on Android Simulator if it doesn't take connection automatically.
1. Make sure there is 3G icon shown on top of the emulator screen. If no, reset the emulator until it comes.
2. Add the following line lastly in your application manifest file, which will be in your project folder path as AndroidManifest.xml.
This will do it !!!
Cheers !
M.P.Prabakar
Systems Analyst.
This is how we can setup Internet connectivity on Android Simulator if it doesn't take connection automatically.
1. Make sure there is 3G icon shown on top of the emulator screen. If no, reset the emulator until it comes.
2. Add the following line lastly in your application manifest file, which will be in your project folder path as AndroidManifest.xml.
This will do it !!!
Cheers !
M.P.Prabakar
Systems Analyst.
Saturday, November 14, 2009
iPhone:CLang static analyser for objective C for iPhone development
CLang static analyser for objective C for iPhone development:
Please follow the following link, which is useful for this purpose.
http://www.fruitstandsoftware.com/blog/index.php/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/
http://iphonedevelopment.blogspot.com/2009/02/clang-static-analyzer.html
Please follow the following link, which is useful for this purpose.
http://www.fruitstandsoftware.com/blog/index.php/2008/08/finding-memory-leaks-with-the-llvmclang-static-analyzer/
http://iphonedevelopment.blogspot.com/2009/02/clang-static-analyzer.html
Monday, November 9, 2009
How to create iTunes free account without Credit card option?
How to create iTunes free account without Credit card option:
Please follow the steps mentioned below to create an iTunes free account to download free software through iTunes.
1. Run iTunes
2. Click on iTunes Store from left pane
3. In the right pane scroll down at bottom right corner and choose your country. For ex: choose United States flag
4. Click on App Store from top menu
5. Scroll down and find Free Apps Section on right side. Rollover on a free app and click Free button
iTunes will ask you to enter Apple ID and Password. As you don't have an account,
6. Click on Create New Account button
7. Click Continue button on Welcome screen
8. Check the terms and condition checkbox and hit Continue button
9. Fill out all the required details in the form and hit Continue button
10. Select None from Credit Card options
11. Enter the remaining fields if it is mandatory.
12. An email will be sent to you. Check you given email account, read the instructions to verify your account.
That's it ! You Got to Go !
M.P.Prabakar
Senior Systems Analyst.
Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
Please follow the steps mentioned below to create an iTunes free account to download free software through iTunes.
1. Run iTunes
2. Click on iTunes Store from left pane
3. In the right pane scroll down at bottom right corner and choose your country. For ex: choose United States flag
4. Click on App Store from top menu
5. Scroll down and find Free Apps Section on right side. Rollover on a free app and click Free button
iTunes will ask you to enter Apple ID and Password. As you don't have an account,
6. Click on Create New Account button
7. Click Continue button on Welcome screen
8. Check the terms and condition checkbox and hit Continue button
9. Fill out all the required details in the form and hit Continue button
10. Select None from Credit Card options
11. Enter the remaining fields if it is mandatory.
12. An email will be sent to you. Check you given email account, read the instructions to verify your account.
That's it ! You Got to Go !
M.P.Prabakar
Senior Systems Analyst.
Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
Saturday, November 7, 2009
iPhone:Preparing Devices for Development
Preparing Devices for Development
Building your application for an iPhone OS–based device provides the most realistic environment
for you to test its operation and efficiency. Xcode makes building the application, transferring it to
the device, and launching it a simple affair.
The following sections describe how to build and run your application for iPhone OS–based devices and how to manage them in the Organizer.
In order to test your application on a device, you must configure your computer and your device for iPhone OS development. This process comprises the following tasks:
■ Become an iPhone Developer Program member
■ Obtain a developer certificate
■ Designate your device for development
■ Obtain and install a provisioning profile
Becoming an iPhone Developer Program Member
In order to become an iPhone Developer Program member, visit the iPhone Dev Center.
http://developer.apple.com/iphone/index.action
Obtaining a Developer Certificate
A developer certificate is a certificate Xcode uses to code sign your application before it uploads it to your device for testing.
To get a developer certificate:
1. Launch Keychain Access, located in /Applications/Utilities.
2. Choose KeychainAccess > Certificate Assistant > Request a Certificate From a Certificate Authority.
3. In the Certificate Information window:
a. In the User Email Address field, enter your email address.
b. In the Common Name field, enter your name.
c. In the “Request is” group, select the “Saved to disk” option.
d. Click Continue.
The Certificate Assistant saves a certificate signature request (CSR) file to your Desktop.
4. Upload your CSR file to the iPhone Dev Center.
5. Download your developer certificate and the Apple Root and AppleWWDRcertificates from the
iPhone Dev Center.
6. Double-click each certificate to install them on your computer.
Designating a Device for Development
To designate a device for development:
1. Launch Xcode.
2. Plug the device into your computer.
3.In the New Device Detected dialog, click Use for Development.
Obtaining and Installing a Provisioning Profile
To be able to use a device to test your application, you need a provisioning profile. A provisioning
profile identifies a device as one that’s used for development and specifies the actions you can perform
on that device, such as whether you can make calls.
Download your provisioning profile from the iPhone Dev Center. After that, place it in the
~/Library/MobileDevice/Provisions directory:
1. In the Finder, go to your home directory and navigate to Library/MobileDevice.
2. Choose File > New Folder.
3. Name the new folder “Provisions”.
4. Drag your provisioning-profile file to the newly created Provisions directory.
You must quit and relaunch Xcode in order for it to load your provisioning profile, which appears
in Organizer > Summary > Provisions.
Building Your Application for a Device
To build your application for a device:
1. Select the device SDK from the Project > Set Active SDK menu or the Overview toolbar item.
2. Choose Build > Build (or Build > Build and Run).
The status bar in the project window indicates whether the build was successful or whether there
are build errors or warnings. You can view build errors and warnings in the text editor or the project window.
iPhones and iPod touches support two instruction sets, ARM and Thumb. Xcode uses Thumb
instructions by default because using Thumb typically reduces code size by about 35 percent relative
to ARM. Applications that have extensive floating point code might perform better if they use ARM
instructions rather than Thumb. You can turn off Thumb for your application by turning off the
Compile for Thumb build setting.
Running Your Application on a Device
To run the application you built in choose Run
> Run. If you have more than one devices attached to your computer, you can choose the device onto
which Xcode puts the built application using the Project > Set Active Executable menu.
Once running, you can test that your application performs as you intend using all the capabilities of
your device.
Thank you !!!
M.P.PRABAKAR
Senior Systems Analyst.
Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
Building your application for an iPhone OS–based device provides the most realistic environment
for you to test its operation and efficiency. Xcode makes building the application, transferring it to
the device, and launching it a simple affair.
The following sections describe how to build and run your application for iPhone OS–based devices and how to manage them in the Organizer.
In order to test your application on a device, you must configure your computer and your device for iPhone OS development. This process comprises the following tasks:
■ Become an iPhone Developer Program member
■ Obtain a developer certificate
■ Designate your device for development
■ Obtain and install a provisioning profile
Becoming an iPhone Developer Program Member
In order to become an iPhone Developer Program member, visit the iPhone Dev Center.
http://developer.apple.com/iphone/index.action
Obtaining a Developer Certificate
A developer certificate is a certificate Xcode uses to code sign your application before it uploads it to your device for testing.
To get a developer certificate:
1. Launch Keychain Access, located in /Applications/Utilities.
2. Choose KeychainAccess > Certificate Assistant > Request a Certificate From a Certificate Authority.
3. In the Certificate Information window:
a. In the User Email Address field, enter your email address.
b. In the Common Name field, enter your name.
c. In the “Request is” group, select the “Saved to disk” option.
d. Click Continue.
The Certificate Assistant saves a certificate signature request (CSR) file to your Desktop.
4. Upload your CSR file to the iPhone Dev Center.
5. Download your developer certificate and the Apple Root and AppleWWDRcertificates from the
iPhone Dev Center.
6. Double-click each certificate to install them on your computer.
Designating a Device for Development
To designate a device for development:
1. Launch Xcode.
2. Plug the device into your computer.
3.In the New Device Detected dialog, click Use for Development.
Obtaining and Installing a Provisioning Profile
To be able to use a device to test your application, you need a provisioning profile. A provisioning
profile identifies a device as one that’s used for development and specifies the actions you can perform
on that device, such as whether you can make calls.
Download your provisioning profile from the iPhone Dev Center. After that, place it in the
~/Library/MobileDevice/Provisions directory:
1. In the Finder, go to your home directory and navigate to Library/MobileDevice.
2. Choose File > New Folder.
3. Name the new folder “Provisions”.
4. Drag your provisioning-profile file to the newly created Provisions directory.
You must quit and relaunch Xcode in order for it to load your provisioning profile, which appears
in Organizer > Summary > Provisions.
Building Your Application for a Device
To build your application for a device:
1. Select the device SDK from the Project > Set Active SDK menu or the Overview toolbar item.
2. Choose Build > Build (or Build > Build and Run).
The status bar in the project window indicates whether the build was successful or whether there
are build errors or warnings. You can view build errors and warnings in the text editor or the project window.
iPhones and iPod touches support two instruction sets, ARM and Thumb. Xcode uses Thumb
instructions by default because using Thumb typically reduces code size by about 35 percent relative
to ARM. Applications that have extensive floating point code might perform better if they use ARM
instructions rather than Thumb. You can turn off Thumb for your application by turning off the
Compile for Thumb build setting.
Running Your Application on a Device
To run the application you built in choose Run
> Run. If you have more than one devices attached to your computer, you can choose the device onto
which Xcode puts the built application using the Project > Set Active Executable menu.
Once running, you can test that your application performs as you intend using all the capabilities of
your device.
Thank you !!!
M.P.PRABAKAR
Senior Systems Analyst.
Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
Friday, November 6, 2009
iPhone:Binary Type FAT and Non-Fat
Discussion on Fat and Non-FAT Binary type:
At WWDC, it was mentioned that you can build a binary which supports both the ARM v6 instruction set of the original models of iPhone and iPod touch, as well as one that uses the new ARM v7 instruction set of the iPhone 3G S and new iPod touch models.
Standard "non-fat" binaries should run just fine on all currently available devices (3G S or not). As long as you built your application for 2.x and tested it on both 2.x and 3.x OS devices, you should be just fine. The only reason you'd want to specifically create a fat binary would be to squeeze extra performance out of these new devices.
Technically, "fat" means the application will run on at least two architectures.
The iPhone runs an OS X derivative. OS X has the plumbing to support multiple types of processors. This includes the binary carrying a marker for weather or not it is Fat. Your iPhone app should never be marked as fat since it is only capable of running on the iPhone.
PowerPC is the type of processor Apple used in all Macs from 1992 through 2006. It was produced by IBM and Motorola. In 2006 Apple transitioned to x86 and as such they had to support Macs with multiple types of processors in OS X. They did this by compiling for both platforms and calling the resulting binary Fat.
Thanks.
M.P.PRABAKAR
Senior Systems Analyst.
Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
At WWDC, it was mentioned that you can build a binary which supports both the ARM v6 instruction set of the original models of iPhone and iPod touch, as well as one that uses the new ARM v7 instruction set of the iPhone 3G S and new iPod touch models.
Standard "non-fat" binaries should run just fine on all currently available devices (3G S or not). As long as you built your application for 2.x and tested it on both 2.x and 3.x OS devices, you should be just fine. The only reason you'd want to specifically create a fat binary would be to squeeze extra performance out of these new devices.
Technically, "fat" means the application will run on at least two architectures.
The iPhone runs an OS X derivative. OS X has the plumbing to support multiple types of processors. This includes the binary carrying a marker for weather or not it is Fat. Your iPhone app should never be marked as fat since it is only capable of running on the iPhone.
PowerPC is the type of processor Apple used in all Macs from 1992 through 2006. It was produced by IBM and Motorola. In 2006 Apple transitioned to x86 and as such they had to support Macs with multiple types of processors in OS X. They did this by compiling for both platforms and calling the resulting binary Fat.
Thanks.
M.P.PRABAKAR
Senior Systems Analyst.
Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
Labels:
Binary Fat and Non-Fat,
Fat,
Fat and Non-Fat,
iPhone,
Non-Fat
Wednesday, November 4, 2009
Unlock iPhone 3G or 3GS 05.11.07 baseband
iPhone users who got their phone locked after updating to 3.1 and greater updated version with 05.11.07 baseband, can be happy now that they can unlock their phone now using blacksn0w software. This software is released today Nov 3rd, 2009 by Geohot.
Follow the steps to unlock your iPhone 3.1 or greater with 05.11.07 baseband:
1. Check your iPhone vesion 3.1 or greater with baseband 05.11.07 or greater.
2. Download iPhone OS 3 Community Toolbar from the link:
http://www.iphoneos3.com/?jOomC2RI
3. Connect iPhone on your computer and run blackra1n application.
4. Choose "make it ra1n" button from blackra1n application screen.
5. blackra1n will put your device into recovery mode and jailbreak your device.
6. Once blackra1n is done jailbreaking, your iPhone will reboot and you should see the blackra1n icon on your iPhone or iPod touch screen.
7. Tap the blackra1n icon to open it. Tap on Cydia, Rock, and blacksn0w and then click the Install button to install them.
Here your device Go ! That's it..Unlocked successfully !
Notes:
If your iPhone has already been jailbroken and you don't need to do that again, then just launch Cydia,
1. Go to Manage -> Sources
2. Edit and Add this url -> http://blackra1n.com and install it.
3. Once point 2nd is done, search for "blacksn0w" software and install it.
Here your device Go ! That's it..Unlocked successfully !
Enjoy Jailbreaking and Unlocking ! We should thank specially for GeoHot guys !
Cheers,
M.P. Prabakar
iPhone app development Analyst.
xxxx company.
'Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
Follow the steps to unlock your iPhone 3.1 or greater with 05.11.07 baseband:
1. Check your iPhone vesion 3.1 or greater with baseband 05.11.07 or greater.
2. Download iPhone OS 3 Community Toolbar from the link:
http://www.iphoneos3.com/?jOomC2RI
3. Connect iPhone on your computer and run blackra1n application.
4. Choose "make it ra1n" button from blackra1n application screen.
5. blackra1n will put your device into recovery mode and jailbreak your device.
6. Once blackra1n is done jailbreaking, your iPhone will reboot and you should see the blackra1n icon on your iPhone or iPod touch screen.
7. Tap the blackra1n icon to open it. Tap on Cydia, Rock, and blacksn0w and then click the Install button to install them.
Here your device Go ! That's it..Unlocked successfully !
Notes:
If your iPhone has already been jailbroken and you don't need to do that again, then just launch Cydia,
1. Go to Manage -> Sources
2. Edit and Add this url -> http://blackra1n.com and install it.
3. Once point 2nd is done, search for "blacksn0w" software and install it.
Here your device Go ! That's it..Unlocked successfully !
Enjoy Jailbreaking and Unlocking ! We should thank specially for GeoHot guys !
Cheers,
M.P. Prabakar
iPhone app development Analyst.
xxxx company.
'Want to relax and fun !!! Play the excellent game "ArrangeMe" on iPhone for free'
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=335163596&mt=8
Subscribe to:
Posts (Atom)