Techbirds | Knowledge Hub | Page 39

class updateTwitterImageStatus extends AsyncTask { /** * Before starting background thread Show Progress Dialog * */ @Override protected void onPreExecute() { super.onPreExecute(); pDialog = new ProgressDialog(MainActivity.this); pDialog.setMessage(“Updating to twitter…”); pDialog.setIndeterminate(false); pDialog.setCancelable(false); pDialog.show(); } protected String doInBackground(String… args) { File file = new File(Environment.getExternalStorageDirectory() + “/screenshot.jpg”); try { StatusUpdate status = new StatusUpdate(“upload image”);

Read More →

455 total views, no views today

Posted on: April 14, 2014 /

Categories: PHP / Author Name: Diksha Verma

The problem here is that some text or whitespace (spaces, newline) before the opening PHP tag or after the closing PHP tag in theme’s functions.php file. Note : There should not be a single character before or after those tags. 544 total views, no views today

544 total views, no views today

hello Again Folks, I was working with fragments that are binding json data from API call but as fragments on swiped in calls my Async task that does the binding stated. but when switched to back and forth with fragments makes the crashes. for the same i found the following discussed solution to make it

Read More →

555 total views, no views today

How to enable the android back button key in cocos2d-x Step 1. In your .h file which is inheriting CCLayer, write virtual void keyBackClicked(); Step 2. Define this function in your .cpp file void HelloWorld:: keyBackClicked() { //my code } Step 3. In your init() or onEnter method, write this->setKeypadEnabled(true); And you are done.. HAPPY

Read More →

1,897 total views, no views today

hi folks, In the recent past , idealt with the problem of loading the images from urls that i get from facebook. it was making my app slow so i digged deeper and found many solutions out of which i personally recommend doing it via AQuery. Being a developer its good practice to reuse the

Read More →

423 total views, no views today