Sreenu Vengala

Greenhorn
+ Follow
since Oct 26, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sreenu Vengala

Hi everyone.

anyone explain the folowing

1. String strNameOne = "coderanch";

2. String strNameTwo = new String("coderanch");

anyone explain difference between 1 & 2.

Thanks&Regards
Srinu

14 years ago
Hi..

Please help on how to exit an application..

Thanks
Srinu
14 years ago
Hi..

How to check whether softkeypad is enable or not..

I tried in the following way but it is not working

Configuration configuration = getResources().getConfiguration();
configuration.keyboardHidden == Configuration .KEYBOARDHIDDEN_NO
It is not working

and I tried in following way this one also not working

InputMethodManager inputMethodManager = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
boolean myBool = inputMethodManager.hideSoftInputFromWindow(msgBox.getWindowToken(), InputMethodManager.RESULT_UNCHANGED_SHOWN);



Thanks
Srinu
14 years ago
Hi...

I am implementing IM(Instant Messenger), here I am using ExpandableList for friends, separating online and offline friends using groups..

my requirement is I am getting latest friend list from the server every 3 seconds, but these new values are not updated in ExpandableList.(If I expand and collapse the group by touching then the values are updated), without touching values are not updated..

please any one help on this..

please find the attached screen shot..



Thanks
Srinu
14 years ago
Hi Friends.

In my IM Application once user signout the application, it shows login screen,
from here user click on back button again showing the contact list screen.

How to remove activities from the stack, any one help on this.


Thanks..
Srinu
14 years ago
Hi Friends.

I am doing one IM application, when I click on Home button the application is closed, when I open the application it started from login screen.

My requirement is when I click on Home showing the home, again clicking on that application then showing the last screen of that application.

Can any body help on this..


Thanks..
Srinu
14 years ago
Hi.

When click on back button I got the following error.

W/ActivityManager( 75): Duplicate finish request for HistoryRecord.

what does it mean, any one explain..

Thanks....
14 years ago
I got the solution

new AlertDialog.Builder(MySettings.this)
.setTitle("Options")
.setItems(R.array.select_dialog_items3, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
switch(which){
case 0:
// for activation
break;
case 1:
//for personalisation
break;
case 2:
//cancel
break;
}
}
})
.create()
.show();
}
};
14 years ago
Hi Friends.

How to create Layouts manually..
please give me some examples.

Thanks.
14 years ago
Hi.

how to show popup's with multiple values in Android, anyone help.

Thanks
srinu
14 years ago
Hi Dhanya..

ArrayListAdapter.notifyDataSetChanged(); wont work, I tried already for ListView.

Thanks
14 years ago
getListView().setDivider( null );
getListView().setDividerHeight(0);

is the solution.

Srini
14 years ago
Hi everyone.

How to refresh the ExpandableList with out touching the screen.

Thanks.
14 years ago
Hi.

In my application when click on ExpandableList I got the following error.
and ExpandableList values every 5 seconds values are updating

W/dalvikvm( 773): threadid=3: thread exiting with uncaught exception (group=0x4001da28)
E/AndroidRuntime( 773): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 773): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.listview/com.listview.Conversation}: java.util.ConcurrentModificationException
E/AndroidRuntime( 773): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
E/AndroidRuntime( 773): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
E/AndroidRuntime( 773): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
E/AndroidRuntime( 773): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 773): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 773): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 773): at android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 773): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 773): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 773): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 773): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime( 773): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 773): Caused by: java.util.ConcurrentModificationException
E/AndroidRuntime( 773): at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:66)
E/AndroidRuntime( 773): at com.listview.Conversation.onCreate(Conversation.java:88)
E/AndroidRuntime( 773): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime( 773): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
E/AndroidRuntime( 773): ... 11 more

Conversation is the custom class.

Thanks.

14 years ago
Hi.

Any one help on how to implement Back button functionality in Android phone.

Thanks
Srini
14 years ago