Techbirds | Knowledge Hub | Page 8

Code to fire Intent to Get the image from Camera and Phone Gallery in Android : // from camera camera_btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, REQUEST_TAKE_PHOTO); } }); // from library library_btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) {

Read More →

576 total views, no views today

Hi Folks,                     I am wirting this very blog to let my developer friends know the limitation of android devices in order to create a Quality apps. It has been noticed in my practice so far that while developing apps we normally forgets issues concerned with

Read More →

520 total views, no views today

Code to perform Scaling,translation,rotation on canvas in android : public class Canvas extends View { Paint paint; Paint paint1; boolean flag = false; // new code attributes float x_down = 0; float y_down = 0; PointF start = new PointF(); PointF mid = new PointF(); float oldDist = 1f; float oldRotation = 0; Matrix matrix

Read More →

667 total views, no views today

Downloading video from webview using the API DownloadManager (which internally uses a asyntask):- public void DownloadFromUrl(String url, String fileName) { String extension = MimeTypeMap.getFileExtensionFromUrl(url); if (extension != null) { MimeTypeMap mime = MimeTypeMap.getSingleton(); String mimeType = mime.getMimeTypeFromExtension(extension); if (mimeType != null) { if (mimeType.toLowerCase().contains(“video”) || extension.toLowerCase().contains(“mov”) || extension.toLowerCase().contains(“mp4″) || extension.toLowerCase().contains(“m4v”)) { DownloadManager mdDownloadManager = (DownloadManager)

Read More →

510 total views, no views today

Hi folks, I am writing this to inform all developers who like to create facebook apps that url hitting on facebook must be unversioned because as per rules of facebook now one cannot have friends specific permissions oif used with version 2.0 Proper documentation is on developers.facebook.com. 492 total views, no views today

492 total views, no views today