Mar
08

How to play a media file from the raw folder – Android?

//Make sure to create 'raw' folder under 'res' folder

int resID = getResources().getIdentifier("soundfile", "raw", getPackageName());

try{

	MediaPlayer mp = MediaPlayer.create(this, resID);
	mp.start();

}catch (Exception e) {

}

Mar
08

How to play a media file from the assets folder – Android?

try{

	MediaPlayer mp = new MediaPlayer();
	AssetFileDescriptor descriptor =
			getAssets().openFd("folder1/folder2/sound.mp3");
	mp.setDataSource(descriptor.getFileDescriptor(),
			descriptor.getStartOffset(),
			descriptor.getLength());
	descriptor.close();
	mp.prepare();
	mp.start();

}catch (Exception e) {

}

Dec
11

iOS7 fails to Launch App-Store app review page?

I just got confirmation from Apple that this issue has been fixed in iOS 7.1. You can now open the review page directly instead of just the main page. I’ve confirmed that it works on an iPod Touch 5th gen. updated to iOS 7.1

Jul
27

How to open pdf file in Windows Phone 8?

async void launchPDF()
{
 string fileURL = @"Assets\file.pdf";
 StorageFile pdfFile = await
 Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(fileURL);
 if (pdfFile != null)
 {
   IAsyncOperation<bool> success =
           Windows.System.Launcher.LaunchFileAsync(pdfFile);

   if (await success)
   {
     // File launched
   }
   else
   {
     // File launch failed
   }
 }
 else
 {

 }
}

Make sure pdf file build action is content

Mar
19

Amazon Android Store Common Rejections

So recently I’ve submitted some apps on Amazon app store. Below are the reasons of some app rejections that I’ve faced.

 

—Your app has failed a test case.—

Bug Description:Functionality fail.
Steps to Reproduce:

1.Download, install and launch the app.
2.Tap on the “Menu” of the device.
3.Tap on “Settings” button.
4.No functionality is performed.

 

—Your app has failed a test case.—

Bug Description:Call interrupt fail.
Steps to Reproduce:

1.Download, install and launch the app.
2.Start playing the game.
3.Make an incoming call to the device. Answer the call.
4.The timer runs in background.

Mar
10

List of Android Devices with Density

 

Model                   | Android Version | Density
Advent Vega             |      2.2        |  mdpi
 
Asus Transformer Prime  |      4.0        |  hdpi
Freelander PD10         |      4.0        |  hdpi
Google Galaxy Nexus     |      4.0        |  xhdpi
Google Nexus One        |      2.3        |  hdpi
Google Nexus S          |      4.0        |  hdpi
Google Nexus 4          |      4.2        |  xhdpi
Google Nexus 7          |      4.1        |  tvdpi (but will scale down your hdpi assets)
Google Nexus 10         |      4.2        |  xhdpi (Launcher icon xxhdpi)
HTC Desire              |      2.2        |  hdpi
HTC Desire S            |      2.3        |  hdpi
HTC Desire X            |      4.0        |  hdpi
HTC Desire HD           |      2.3        |  hdpi
HTC Doubleshot          |      2.3        |  hdpi
HTC Glacier             |      2.3        |  hdpi
HTC Nexus One           |      2.3        |  hdpi
HTC Hero                |      2.1        |  mdpi
HTC Legend              |      2.1        |  mdpi
HTC Sensation           |      2.3        |  hdpi
HTC One S               |      4.0        |  hdpi
HTC One X               |      4.0        |  xhdpi
HTC One V               |      4.0        | hdpi
HTC Tattoo              |      1.6        |  ldpi
HTC Wildfire            |      2.1/2.2    |  mdpi
Huawei Blaze            |      2.3        |  mdpi
LG Nexus 4              |      4.2        |  xhdpi
LG Optimus S            |      2.2        |  mdpi
LG Optimus Sol          |      2.3        |  hdpi
LG Optimus One          |      2.2        |  mdpi
LG Optimus V            |      2.2        | mdpi
LG Optimus 3D           |      2.3        |  hdpi
Motorola Atrix          |      2.3        |  hdpi
Motorola Defy           |      2.3        |  hdpi
Motorola Defy Mini      |      2.3        |  mdpi
Motorola Droid          |      2.0-2.2    |  mdpi
Motorola Droid 3        |      2.3        | hdpi
Motorola Flipout        |      2.1        |  ldpi
Motorola Razr           |      2.3        |  hdpi
Motorola Xoom           |      3.1/4.0    |  mdpi
Motorola Xoom2          |      3.2        |  mdpi
Sony X10 Mini           |      2.1        |  ldpi
Sony X10i               |      2.3        |  hdpi
Sony Xperia Arc S       |      2.3        |  hdpi
Sony Xperia P           |      2.3        |  hdpi
Sony Xperia Play        |      2.3        |  hdpi
Sony Xperia Pro         |      4.0        |  hdpi
Sony Xperia S           |      2.3        |  xhdpi
Sony Xperia X8          |      2.1        |  mdpi
Samsung Epic 4G         |      2.2        |  hdpi
Samsung Galaxy Ace      |      2.2        |  mdpi
Samsung Galaxy S        |      2.3        |  hdpi
Samsung Galaxy S II     |      2.3        |  hdpi
Samsung Galaxy S III    |      4.0        |  xhdpi
Samsung Galaxy Tab 7"   |      2.2        |  hdpi
Samsung Galaxy Tab 10"  |      3.0        |  mdpi
Samsung Galaxy Tab 2 10"|      4.0        |  mdpi
Samsung Galaxy Nexus    |      4.0        |  xhdpi
Samsung Galaxy Note     |      2.3        |  xhdpi
Samsung Galaxy Note 2   |      4.1        |  hdpi
Samsung Nexus 10        |      4.2        |  xhdpi
Samsung Nexus S         |      4.0        |  hdpi
ZTE Blade               |      2.3        |  hdpi
ZTE Libra               |      2.2        |  hdpi

Sep
03

Samsung The Copy Cat

Remember RIM sued Samsung for copying the Blackberry with the Blackjack. Samsung has a history of copying other ideas. Apple wins patent lawsuit, against samsung and they filed another one for Glaxy s3 as well.

Jul
31

AWS S3 Time Zone Error

Are you getting this error while using AWS S3 “The difference between the request time and the current time is too large.” The solution is simple just correct your timezone on your device. For more information click below link.

http://www.bucketexplorer.com/documentation/amazon-s3–difference-between-requesttime-currenttime-too-large.html

Jun
20

Rumor: Google to Launch Its Own tablet

There’s a rumor in air that Google will launch it’s own Google tablet on June 27th in Google I/O

 

Mar
07

New iPad. The iPad HD

 

 

Four times more pixels than iPad 2. Razor-sharp text. Richer colors. The Retina display transforms the entire iPad experience. So everything looks and feels incredibly lifelike and perfectly detailed.

The A5X chip with quad-core graphics drives four times the pixels of iPad 2 yet it delivers the same smoothness and fluidity iPad is known for. Even with all that extra oomph, the new iPad still gets an amazing 10 hours of battery life.

The new iPad features Apple’s 5-megapixel iSight camera. Designed with advanced optics, it lets you shoot gorgeous photos and 1080p HD video.

Built with the latest in wireless technology, the new iPad lets you connect to fast data networks around the world — up to 4G LTE.2

Whether it’s the new album you bought, photos of your Barcelona escapade, or an HD movie,
AirPlay lets you stream what’s on your iPad straight to your speakers and HDTV.

 

 

 

 

Older posts «