ArchiveMarch 2013

How to retrieve installed application list and permissions

H

In this short post i will show you how use the PackageManager class to retrieve the list of installed applications and associated permissions on your android device . Starting from the your Activity context you can obtain an instance of PackageManager through the method called getPackageManager(). Using that class is it possible to get a list of ApplicationInfo objects containing details about...

How to create object in salesforce through Web-Service using Apex Metadata API

H

Hi All, many times we required to create objects into Salesforce through web services i.e. using Metadata API. Here is a sample code by which we can create such custom object into the Salesforce. for the Apex Metadata Api please refer Apex Metadata API this link. // Visualforce Page code <apex:page controller="MetadataUse" action="{!createObject}"> </apex:page> // Apex code...

Detect User Language With PHP

D

This function uses php server variables to detect the “possible” language of the browser of the connected user. This let you show information with the correct language. Since the HTTP_ACCEPT_LANGUAGE variable contains many information there is some dirty job to do with regular expression to clean the variable and determine the most important value from the ones contained. The HTTP_ACCEPT_LANGUAGE...

Web Services and PHP – SOAP vs XML-RPC vs REST

W

What is web services? In a typical web surfing scenario, a visitor visits a website and use the functionality provided by that particular website.HTTP request is send to server from web browsers and server responses are translated by browser to display the desired result of the visitor. But, this scenario has been changed in the recent days. You don’t need to visit the particular website to use...

How to make UITextField’s text selected programmatically ?

H

  Hi, For making UITextField’s text selected programmatically you need to set the UITextField’s delegate linke below : txt.delegate = self; and then put following code in textFieldDidBeginEditing -(void)textFieldDidBeginEditing:(UITextField *)textField { [textField selectAll:self]; } And don’t forget to add delegate in .h @interface ViewController : UIViewController...

Zbar SDK is not working well in iOS6

Z

To solved the problem follow the steps: Go to the ZBar homepage and navigate to the mercurial repository (direct link) Download the zbar repository as zip. Unzip the file and navigate to the subfolder named “iphone”. Open the XCode project. Delete the “Examples” folder (the folder caused a build error on my machine). Hit “CMD + B” and build the source. Find...

How to access passes from passbook in app?

H

Create AppId which is similar to passTypeIdentifier. For example if your passTypeIdentifier is pass.abc.xyz then your AppId must be com.abc.xyz .While creating provisioning profile make use of this appId and make use of this provisioning profile for your app. Then only you will be able to distinguish passes available in your passbook. Also, Keep in mind that the App ID you signing your code with...

How to compress Image in gzip format

H

Some times the Size of images are too large and in some of the applications images are needed to save on particular server but because off large size it takes lots off time to save into server.If we compress that image into a particular format then we can save some space of server. Step 1 – Create one Category and add libz.dylib library. Step 2 – in .h file i.e in interface...

Category