[Solved] Where I start from making android messaging app? [closed]

Any server-side programming language Java for android development A strong understanding on JSON parsing Take help from Google Cloud Messaging(GCM) Tool Understanding XMPP and XMPP Server For creating an instant messaging app, you need to have knowledge on front-end development which is taken care by Android system. For storing data to servers, back-end language is … Read more

[Solved] How to get a phone display print screen?

use following code to get screen shot from your mobile private void takeScreenshot() { Date now = new Date(); android.text.format.DateFormat.format(“yyyy-MM-dd_hh:mm:ss”, now); try { // image naming and path to include sd card appending name you choose for file String mPath = Environment.getExternalStorageDirectory().toString() + “https://stackoverflow.com/” + now + “.jpg”; // create bitmap screen capture View v1 … Read more

[Solved] Passing data and add other data to it and pass it again [duplicate]

Activity A: pass data to activity B Intent i = new Intent(getApplicationContext,ActivityB.class); i.putExtra(“DataA”,dataA); i.startActivity(i); retrive data in ActvityB String a; Intent i = getIntent(); a= i.getStringExtra(“DataA”); pass data in actvityc from ActivityB Intent i = new Intent(getApplicationContext,ActivityC.class); i.putExtra(“DataA”,a); i.putExtra(“DataB”,b); i.startActivity(i); retrive data in ActvityC String a,b; Intent i = getIntent(); a= i.getStringExtra(“DataA”); b= i.getStringExtra(“DataB”); solved … Read more

[Solved] How can we split the word into characters in android/java..?? and assign particular id to each character [closed]

I assume that you have maintained a map for mapping your characters with some numbers. Then you can simply split your string on empty string to get individual characters. And then iterate over your array to get the sum. Note, that, splitting on empty string will get you an empty string as first element in … Read more

[Solved] Google Nexus 4 for Android Development? [closed]

Overall, using the most recent version of Android for development is the way to go. (E.g.: Pre-honeycomb versions stored raster data of images/bitmaps in native memory, thus the Memory Analyzer Tool, when you searched for memory leaks not showed the actual size of a bitmap leaked, just a few hundreds of bytes.) On the other … Read more

[Solved] Android : using same Layout for EDIT and ADD NEW – Error in ADD? [closed]

Write below code in onCreate() method of your activity file to get data from intent. Bundle bdl = getIntent().getExtras(); String mBankName = bdl.getString(“bank”); int mAmount = bdl.getInt(“amount”); BankName.setText(mBankName); BalanceAmount.setText(String.valueOf(mAmount)); solved Android : using same Layout for EDIT and ADD NEW – Error in ADD? [closed]

[Solved] The import android.app.Activity is never used and app stopped unexpectedly

You seem to have a conflict with the Android version. I couldn’t find the definitive reference but PhoneGap seems to require at least Android SDK version 7 (Android 2.1). Set the following in your manifest.xml: <uses-sdk android:minSdkVersion=”7″ android:targetSdkVersion=”17″/> You might also need to create a new emulator instance with a higher Android version. solved The … Read more

[Solved] How to save form data in database when submit button is clicked? [closed]

EditText fd1 = (EditText)findviewById(R.id.fd1); EditText fd2 = (EditText)findviewById(R.id.fd2); EditText fd3 = (EditText)findviewById(R.id.fd3); submitbtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { String field1 = fd1.getText.toString(); String field2 = fd2.getText.toString(); String field3 = fd3.getText.toString(); dh.insert_values(field1, field2, field3); } }); On submit insert values into the database as like this.. and in your datahelper class public long insert_values(String … Read more

[Solved] How to create json response

Try mysql_fetch_assoc: $json = array(); while ($row = mysql_fetch_assoc($result)) { $json[$row[‘uid’]] = array( ‘lat’ => $row[‘lat’], ‘lon’ => $row[‘lon’], ‘loc’ => $row[‘loc’] ); } echo json_encode($json); You should use MySQLi or PDO_MySQL instead of mysql_. 1 solved How to create json response