[android-developers] Re: Search Query

2013-01-25 Thread Tamilarasi Sivaraj
Hi,
Have you used filterTextWatcher on  addTextChangedListener method for 
edittext 
that's like,

edittext_name.addTextChangedListener(filterTextWatcher); and implement that 
method
Have you tried?

Thanks,

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




[android-developers] Re: Save Data on server

2013-01-25 Thread Tamilarasi Sivaraj
Hi,
Still which you have tried 
Have u tried the HttpURLConnection?
Thanks,

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




Re: [android-developers] Re: Search Query

2013-01-25 Thread Tamilarasi Sivaraj
ok Are you said about global infromation means it's a server 
information?

On Friday, January 25, 2013 3:05:13 PM UTC+5:30, ashwini wrote:
>
>
> ok thanq, but it is android device default feature, so i need implement 
> same thing like to retrieve local device information and global 
> information. 
>
> On Fri, Jan 25, 2013 at 2:57 PM, Tamilarasi Sivaraj 
> 
> > wrote:
>
>> Hi,
>> Have you used filterTextWatcher on  addTextChangedListener method for 
>> edittext 
>> that's like,
>>
>> edittext_name.addTextChangedListener(filterTextWatcher); and implement 
>> that method
>> Have you tried?
>>
>> Thanks,
>>
>>  -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>  
>>  
>>
>
>
>
> -- 
>
> Thanks&Regards,
> Ashwini V.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




Re: [android-developers] Re: Search Query

2013-01-25 Thread Tamilarasi Sivaraj
will you explain clearly what you want that will help easy to suggest the 
functionality

On Friday, January 25, 2013 3:20:29 PM UTC+5:30, ashwini wrote:
>
> no, just check once android device search icon , let u know the 
> functionality.
>
> On Fri, Jan 25, 2013 at 3:15 PM, Tamilarasi Sivaraj 
> 
> > wrote:
>
>> ok Are you said about global infromation means it's a server 
>> information?
>>
>>
>> On Friday, January 25, 2013 3:05:13 PM UTC+5:30, ashwini wrote:
>>
>>>
>>> ok thanq, but it is android device default feature, so i need implement 
>>> same thing like to retrieve local device information and global 
>>> information. 
>>>
>>> On Fri, Jan 25, 2013 at 2:57 PM, Tamilarasi Sivaraj 
>>> wrote:
>>>
>>>> Hi,
>>>> Have you used filterTextWatcher on  addTextChangedListener method for 
>>>> edittext 
>>>> that's like,
>>>>
>>>> edittext_name.**addTextChangedListener(**filterTextWatcher); and 
>>>> implement that method
>>>> Have you tried?
>>>>
>>>> Thanks,
>>>>
>>>>  -- 
>>>> -- 
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" group.
>>>> To post to this group, send email to android-d...@**googlegroups.com
>>>>
>>>> To unsubscribe from this group, send email to
>>>> android-developers+**unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>>>  
>>>>  
>>>>
>>>
>>>
>>>
>>> -- 
>>>
>>> Thanks&Regards,
>>> Ashwini V.
>>>
>>  -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>  
>>  
>>
>
>
>
> -- 
>
> Thanks&Regards,
> Ashwini V.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




Re: [android-developers] AlertDialog and AsyncTask

2013-01-27 Thread Tamilarasi Sivaraj
I think are you wanted after finishing the process in AsyncTask after that 
the dialog will close and your result will be displayed correct..
Is that you want you dismiss your dialog you use the code below..

*protected void onPostExecute(String str) {

/*your code here*/

dialog.dismiss();
}*

On Sunday, January 27, 2013 8:07:22 AM UTC+5:30, dashman wrote:
>
>
> I see a method isShowing() 
>
> but if the Dialog instance has been dismissed - won't that instance be gone
>
> and therefore dialog.isShowing() would result in an error.
>
> the problem i'm trying to make sure doesn't happen is the Asynctask
> fnishing after the dialog closes and I try to write to a dialog control 
> that no longer exists.
>
>
>
> On Saturday, January 26, 2013 8:25:24 PM UTC-5, TreKing wrote:
>>
>>
>> On Sat, Jan 26, 2013 at 4:04 PM, dashman  wrote:
>>
>>> Is it possible byt the time the AlertDialog finishes that the
>>> AlertDialog is closed - i.e. ui control no longer valid.
>>>
>>
>> I assume you meant "by" and "the AsyncTask finishes" - yes, of course 
>> it's possible. You just have to dismiss the dialog faster than it takes the 
>> task to run.
>>  
>>
>>> Or will the AsyncTask close automatically if the AlertDialog is closed.
>>>
>>
>> AsyncTask is not something that "closes". You can *cancel* it, if that's 
>> what you mean. But it doesn't do that automatically either. It does what 
>> you tell it to do. In this case, if your dialog goes away, you need to tell 
>> the task to stop doing what it's doing.
>>
>> how can i tell if the AlertDialog is shown or no longer active.
>>>
>>
>> Look at it's documentation. There are methods for being told when it is 
>> dismissed, canceled, or is currently showing.
>>
>>
>> -
>> TreKing  - Chicago 
>> transit tracking app for Android-powered devices
>>  
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group, send email to 
android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Edittext - can't type

2013-02-15 Thread Tamilarasi Sivaraj
hi aru you told you only used to emulator keypad for typing not used for 
your system keyboard right?


On Friday, February 15, 2013 10:32:49 AM UTC+5:30, Sagar Rout wrote:
>
> I am a newbie in android developement. i am not able to entered or type in 
> edittext using keyboard and whiledouble click , able to entered using 
> Android emulator keyboard.
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Edittext - can't type

2013-02-15 Thread Tamilarasi Sivaraj
Hi 


This is how I fixed it:

   1. Eclipse > Window menu > AVD Manager
   2. Select your virtual device and click Edit
   3. Under Hardware, Click New
   4. Select Keyboard Support then click OK
   5. Edit its value to yes
   6. Now you have to click off onto another item in the list, like 
   "Abtract LCD Density" or something. This seems to make the UI keep the 
   "yes" change.

thanks,


On Friday, February 15, 2013 10:32:49 AM UTC+5:30, Sagar Rout wrote:
>
> I am a newbie in android developement. i am not able to entered or type in 
> edittext using keyboard and whiledouble click , able to entered using 
> Android emulator keyboard.
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Edittext - can't type

2013-02-16 Thread Tamilarasi Sivaraj
My post was used for you?

On Friday, February 15, 2013 7:01:40 PM UTC+5:30, Sagar Rout wrote:
>
> Yes i that is what i m trying to tell you and help me if you can
>
> Thanks
>
> On Friday, 15 February 2013 15:45:09 UTC+5:30, Tamilarasi Sivaraj wrote:
>>
>> hi aru you told you only used to emulator keypad for typing not used for 
>> your system keyboard right?
>>
>>
>> On Friday, February 15, 2013 10:32:49 AM UTC+5:30, Sagar Rout wrote:
>>>
>>> I am a newbie in android developement. i am not able to entered or type 
>>> in edittext using keyboard and whiledouble click , able to entered using 
>>> Android emulator keyboard.
>>>
>>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: login screen

2013-02-20 Thread Tamilarasi Sivaraj

you use equals() method for string comparison. Because java supports this 
method for strings...

Try this:

EditText editText1 = (EditText) findViewById(R.id.editText1);
String userName = editText1.getText().toString().trim();
   
EditText editText2 = (EditText) findViewById(R.id.editText2);
String password = editText2.getText().toString().trim();
if(userName.equals(userName1) || password.equals(password1)){
 startActivity(intent);
}
else{
Context context = getApplicationContext();
CharSequence text = "Incorrect Username or Password!";
int duration = Toast.LENGTH_SHORT;

Toast toast = Toast.makeText(context, text, duration);
toast.show();
}

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Monday, February 4, 2013 1:50:02 AM UTC+5:30, broc.h...@us.army.mil 
wrote:
>
> I am trying to create a login screen for your basic hello world program. I 
> do not need a database for this so I hard coded the username and password 
> directly into the code. The problem I am having is when I enter the correct 
> username and password, I get my error message stating that either one is 
> wrong. Here is the code I have, any help would be greatly appreciated. 
>
> public void welcomeScreen(View view){
> String userName1 = "student";
> String password1 = "school";
> Intent intent = new Intent(this, WelcomeScreen.class);
> EditText editText1 = (EditText) findViewById(R.id.editText1);
> String userName = editText1.getText().toString();
> 
> EditText editText2 = (EditText) findViewById(R.id.editText2);
> String password = editText2.getText().toString();
> 
> if(userName != userName1 || password != password1){
> Context context = getApplicationContext();
> CharSequence text = "Incorrect Username or Password!";
> int duration = Toast.LENGTH_SHORT;
>
> Toast toast = Toast.makeText(context, text, duration);
> toast.show();
> }
> 
> else startActivity(intent);
> }
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android socket timeouts

2013-02-20 Thread Tamilarasi Sivaraj
Hi bob,

I don't know what you need exactly? that's like you want *Socket timeout or 
HTTP timeout*.
So i give the both timeout code for below you try this way.


*Socket Timeout: *

Try this:

try {
s = new DatagramSocket();
byte[] buf = new byte[1000];
DatagramPacket dp = new DatagramPacket(buf, buf.length);
InetAddress hostAddress = InetAddress.getByName("localhost");

String outString = "Say hi";// message to send
buf = outString.getBytes();

DatagramPacket out = new DatagramPacket(buf, buf.length, hostAddress, 
);
s.send(out);// send to the server

s.setSoTimeout(1000);   // set the timeout in millisecounds.

while(true){// recieve data until timeout
try {
s.receive(dp);
String rcvd = "rcvd from " + dp.getAddress() + ", " + 
dp.getPort() + ": "+ new String(dp.getData(), 0, dp.getLength());
System.out.println(rcvd);
}
catch (SocketTimeoutException e) {
// timeout exception.
System.out.println("Timeout reached!!! " + e);
s.close();
}
}

} catch (SocketException e1) {
// TODO Auto-generated catch block
//e1.printStackTrace();
System.out.println("Socket closed " + e1);

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

(or)

*HTTP Timeout:*

  
 
Try this:

*create variables like:*

private static final long CONN_MGR_TIMEOUT = 1;
private static final int CONN_TIMEOUT = 5;
private static final int SO_TIMEOUT = 5;

*and use this code with httppost:*

ConnManagerParams.setTimeout(params, CONN_MGR_TIMEOUT);
HttpConnectionParams.setConnectionTimeout(params, CONN_TIMEOUT);
HttpConnectionParams.setSoTimeout(params, SO_TIMEOUT);

I hope this will be help to you...


Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475



On Wednesday, February 20, 2013 10:58:38 PM UTC+5:30, bob wrote:
>
> I'm trying to set the timeout for socket activities in Android:
>
> System.setProperty("sun.net.client.defaultReadTimeout", "1000");
> System.setProperty("sun.net.client.defaultConnectTimeout", "1000");
>
> Does anyone know if this works?
>
> I tried to test it by setting the values real low and seeing if the 
> timeout happened real quick.  It looked like it didn't work, but I might 
> have set them too low.
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: DialogPreference - Background remove

2013-02-20 Thread Tamilarasi Sivaraj
 Try this link:

This is for DialogPreference

http://stackoverflow.com/questions/5722531/how-to-access-widgets-in-a-custom-dialogpreference-with-a-inflated-layout

And also you set background for layout Which you set the layout for 
DialogPreference

I hope this will help to you

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475



On Tuesday, February 19, 2013 4:59:43 PM UTC+5:30, Filipe Batista wrote:
>
> Hi,
>
> I have a custom DialogPreference where i have set my layout (*
> setDialogLayoutResource*), but the Dialog shows the "default" black 
> background around the layout.
> How can i remove that black background?
>
> I have already tried in the *showDialog(Bundle state) *method something 
> like this:
>
>>
>> getDialog().getWindow().setBackgroundDrawableResource(android.R.color.transparent);
>
>
> But it didn't work...
>
> Thanks.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: date pickers

2013-02-21 Thread Tamilarasi Sivaraj
Hi,
have you tried anything? you post your code which you have tried that is 
easy to help you...

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Thursday, February 21, 2013 3:41:58 PM UTC+5:30, Arun Kumar K wrote:
>
> Hi guys,
>
> i want to disable the past dates in date picker can any one help me pls
>
> -- 
> *Thanks & Regards*
> *K.Arun Kumar*
>  
>  

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android socket timeouts

2013-02-21 Thread Tamilarasi Sivaraj
Hi bob,
 
The Following link is help to you...This is got how to time out the socket 
like this,

*Socket socket = new Socket(ip_address, 31000);*

So try this,

http://stackoverflow.com/questions/4969760/set-timeout-for-socket

I hope that will be help to you..

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475






On Thursday, February 21, 2013 8:56:59 PM UTC+5:30, bob wrote:
>
> I'm doing TCP, not UDP.
>
> Also, it is not HTTP.
>
> I want to set the timeout for something like this:
>
> *Socket socket = new Socket(ip_address, 31000);*
>
> Thanks.
>
>
>
>
> On Thursday, February 21, 2013 1:08:44 AM UTC-6, Tamilarasi Sivaraj wrote:
>>
>> Hi bob,
>>
>> I don't know what you need exactly? that's like you want *Socket timeout 
>> or HTTP timeout*.
>> So i give the both timeout code for below you try this way.
>>
>>
>> *Socket Timeout: *
>>
>> Try this:
>>
>> try {
>> s = new DatagramSocket();
>> byte[] buf = new byte[1000];
>> DatagramPacket dp = new DatagramPacket(buf, buf.length);
>> InetAddress hostAddress = InetAddress.getByName("localhost");
>>
>> String outString = "Say hi";// message to send
>> buf = outString.getBytes();
>>
>> DatagramPacket out = new DatagramPacket(buf, buf.length, 
>> hostAddress, );
>> s.send(out);// send to the server
>>
>> s.setSoTimeout(1000);   // set the timeout in millisecounds.
>>
>> while(true){// recieve data until timeout
>> try {
>> s.receive(dp);
>> String rcvd = "rcvd from " + dp.getAddress() + ", " + 
>> dp.getPort() + ": "+ new String(dp.getData(), 0, dp.getLength());
>> System.out.println(rcvd);
>> }
>> catch (SocketTimeoutException e) {
>> // timeout exception.
>> System.out.println("Timeout reached!!! " + e);
>> s.close();
>> }
>> }
>>
>> } catch (SocketException e1) {
>> // TODO Auto-generated catch block
>> //e1.printStackTrace();
>> System.out.println("Socket closed " + e1);
>>
>> } catch (IOException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>>
>> (or)
>>
>> *HTTP Timeout:*
>>
>>   
>>  
>> Try this:
>>
>> *create variables like:*
>>
>> private static final long CONN_MGR_TIMEOUT = 1;
>> private static final int CONN_TIMEOUT = 5;
>> private static final int SO_TIMEOUT = 5;
>>
>> *and use this code with httppost:*
>>
>> ConnManagerParams.setTimeout(params, CONN_MGR_TIMEOUT);
>> HttpConnectionParams.setConnectionTimeout(params, CONN_TIMEOUT);
>> HttpConnectionParams.setSoTimeout(params, SO_TIMEOUT);
>>
>> I hope this will be help to you...
>>
>>
>> Regards
>> Android developer
>> Trinay Technology Solutions
>> www.trinaytech.com
>> 5705750475
>>
>>
>>
>> On Wednesday, February 20, 2013 10:58:38 PM UTC+5:30, bob wrote:
>>>
>>> I'm trying to set the timeout for socket activities in Android:
>>>
>>> System.setProperty("sun.net.client.defaultReadTimeout", "1000");
>>> System.setProperty("sun.net.client.defaultConnectTimeout", "1000");
>>>
>>> Does anyone know if this works?
>>>
>>> I tried to test it by setting the values real low and seeing if the 
>>> timeout happened real quick.  It looked like it didn't work, but I might 
>>> have set them too low.
>>>
>>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] loading SharedPreferences in Fragment

2013-02-21 Thread Tamilarasi Sivaraj
Hi,
The following link is got the Android SharedPreferences in Fragment
http://stackoverflow.com/questions/11741270/android-sharedpreferences-in-fragment

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Friday, February 22, 2013 8:09:39 AM UTC+5:30, Marcelo Corvezola wrote:
>
> Hmm thnx..I must be doing something else wrong then..cause when I use this 
> code
> private void loadPrefs() {
>  
> ///SharedPreferences sp = 
> this.getActivity().getSharedPreferences("CHECKBOX", 0);
>
> SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(
> this);
>
> boolean cbValue = sp.getBoolean("CHECKBOX", false);
>
> String name = sp.getString("NAME", "");
>
> if(cbValue){
>
> cb.setChecked(true);
>
>  }else{
>
> cb.setChecked(false);
>
> }
>
> et.setText(name);
>
> }
>
> }
>
>
> I get this error "The method getDefaultSharedPreferences(Context) in the 
> type PreferenceManager is not applicable for the arguments 
>
>  (TestFragment2)"
>
>
> I thought had to replace this
> SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this
> );
>
> With this
> SharedPreferences sp = this.getActivity().getSharedPreferences("CHECKBOX", 
> 0);
>
>
> and I get no errors, however this Throws a NullPointer Exception at 
> loadPrefs(); 
>
>
> public final class TestFragment2 extends Fragment {
>  TextView et; 
>
> TextView text;
>
> SharedPreferences sp;
>
> View myView;
>
> CheckBox cb;
>
>
> @Override 
>
> public void onCreate(Bundle savedInstanceState) {
>
> super.onCreate(savedInstanceState);
>
> loadPrefs();
> } 
>
>
> @Override 
>
> public View onCreateView(LayoutInflater inflater, ViewGroup 
> container, Bundle savedInstanceState) {
>  
> View myView = inflater.inflate(R.layout.fragment_2, container, 
> false);
>
> text = (TextView)myView.findViewById(R.id.textView2);
>
> et = (TextView)myView.findViewById(R.id.textView3);
> return myView;
>
> 
> }
>
> 
>private void loadPrefs() {
>
>SharedPreferences sp = this.getActivity().getSharedPreferences(
> "CHECKBOX", 0);   
>
>boolean cbValue = sp.getBoolean("CHECKBOX", false);
>
>String name = sp.getString("NAME", "");
>
>if(cbValue){
>
>cb.setChecked(true);
>
>}else{
>
>cb.setChecked(false);
>
>}
>
>et.setText(name);
>
>  }
>
> }
>
> 
>
>
>
> On Thu, Feb 21, 2013 at 4:46 PM, Mark Murphy 
> 
> > wrote:
>
>> Using the exact same code, if you wish.
>>
>> On Thu, Feb 21, 2013 at 7:40 PM, Marcelo Corvezola 
>> > 
>> wrote:
>> > Normally I use something like the code below to load sharedPreference 
>> into
>> > an activity..
>> >
>> > loadPrefs();
>> >
>> > }
>> >
>> >
>> > private void loadPrefs() {
>> >
>> > SharedPreferences sp = 
>> PreferenceManager.getDefaultSharedPreferences(this);
>> >
>> > boolean cbValue = sp.getBoolean("CHECKBOX", false);
>> >
>> > String name = sp.getString("NAME", "YourName");
>> >
>> > if(cbValue){
>> >
>> > cb.setChecked(true);
>> >
>> > }else{
>> >
>> > cb.setChecked(false);
>> >
>> > }
>> >
>> > et.setText(name);
>> >
>> > }
>> >
>> >
>> >
>> > How are preferences loaded in a fragment Acivity? thnx
>> >
>> > --
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to 
>> > android-d...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com 
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>> > ---
>> > You received this message because you are subscribed to the Google 
>> Groups
>> > "Android Developers" group.
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an
>> > email to android-developers+unsubscr...@googlegroups.com .
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 4.6 Available!
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> For more options, visit https://groups.google.com/g

[android-developers] Re: complex

2013-02-27 Thread Tamilarasi Sivaraj
Hi bob,

I don't know what you want exactly. 

But you will create the layout which you post the image.Use  *Table layout*.

Table layout is best and you will create *three TableRows* inside the 
TableLayout.

Then you create the relative or linear layouts inside top and bottom 
tablerows.

Finally you create the listview in centre tablerow and set height.

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Wednesday, February 27, 2013 1:28:38 AM UTC+5:30, bob wrote:
>
> So, I have this complex layout that I want to do.
>
> Basically, it will be TextViews/ImageViews at the four corners and a list 
> view in the center.
>
> Any ideas how to best do this?
>
> The stuff at the corners is in various dimensions.
>
>
> 
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: two activities running at same time

2013-02-28 Thread Tamilarasi Sivaraj
This is not possible.
You cannot have multiple activities running at the same time.
And you refer this 
http://stackoverflow.com/questions/6692552/running-two-activities-at-the-same-time-on-the-screen
http://stackoverflow.com/questions/11102337/can-you-have-two-activities-running-at-the-same-time

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Thursday, February 28, 2013 9:23:21 PM UTC+5:30, ga...@deanblakely.com 
wrote:
>
> I have an app with a main activity that has no visible interface 
> (android:theme="@android:style/Theme.NoDisplay).  The app is  started by 
> receipt of an SMS message in a BroadCast activity which kicks off another 
> activity (also no GUI) that does work and then sends an SMS message.  It 
> works very well; actually better than I had expected because it runs even 
> if other apps are running a foreground activity.
>  
> Now I'm familiar with the Android Activity Lifecycle but I guess this 
> means that Android (I'm using 2.33) can run "many" activities "at once."  
> Even when I'm running a very active GPS tracking application that is 
> writing layers on a mapview, my "no-display" app starts does his work and 
> sends the results out on an SMS message.  The tracking app that was running 
> never even blinked.
>  
> I don't have any problem (at least not programming related), I'm just 
> curious why this works.
> Regards,
> Gary
>  
>  
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: ListView background

2013-03-01 Thread Tamilarasi Sivaraj
Hi bob,

Try this:

Add a attribute on the ** Tag

*android:cacheColorHint="#" *// setting as a transparent color


Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Friday, March 1, 2013 1:48:59 AM UTC+5:30, bob wrote:
>
> When I'm scrolling my white ListView, for some reason, the background 
> turns black.
>
>
> Any ideas what could cause this?
>
>
> Thanks.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Edit Text

2013-03-07 Thread Tamilarasi Sivaraj
See this link:
http://developer.android.com/reference/java/text/NumberFormat.html

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Friday, March 1, 2013 5:24:39 PM UTC+5:30, Arun Kumar K wrote:
>
> Hi Guys,
>
> I have one problem in edit textif i enter the number in edit text i 
> want to display like this 1234-5678-9102-3214
>
> Constrain is
> Input Type="number"
> maximumlength="19"
>
>
> how can i do this one pls help me
>
> -- 
> *Thanks & Regards*
> *K.Arun Kumar*
>  
>  

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Problem while facebook login through my app

2013-03-11 Thread Tamilarasi Sivaraj
Already you have *Facebook native apk*  in your  *physical device or 
emulator*.So you have met this problem..

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Thursday, March 7, 2013 10:26:26 PM UTC+5:30, Bajrang Asthana wrote:
>
> Hi;
>
> I am not able to log-in to Facebook through my android app (*tried from 
> phone as well as on emulator)*, I am getting error your app is not 
> correctly configured. I am getting this problem only if *Facebook native 
> apk* is installed. 
>
> I look for android hash key and app id many times and everything seems OK 
> to me. I am not getting, is there anything else which can be the cause of 
> this problem.
>
> Please suggest :)
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Issue with SetCustomAnimations in fragments

2013-03-12 Thread Tamilarasi Sivaraj
can you post the java code when you met the stuggle and also  xml files for 
animation?
That will be easy to help you...

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475


On Tuesday, March 12, 2013 6:40:59 PM UTC+5:30, Ansh wrote:
>
> Hi Guys 
>
> I am having issue with the CustomAnimations setting while fragments are 
> being replaced.
>  here is the detailed 
> question
>
> Please help me as it has already eaten my whole day 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: help needed

2013-03-16 Thread Tamilarasi Sivaraj
you need  *MD5 Finger Print key* for developing Google map application..

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Saturday, March 16, 2013 11:11:25 AM UTC+5:30, ramesh babu wrote:
>
> for developing google map application why do we required sha1 key??... 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: help needed

2013-03-16 Thread Tamilarasi Sivaraj

have you put this ** line into your manifest file.

Regards
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Saturday, March 16, 2013 3:20:30 PM UTC+5:30, ramesh babu wrote:
>
> thank u jason&tamilarasi sivaraj,and here is another problem while 
> developing apps,that is i can't import  the packages in the program 
>
> import com.google.android.gms.maps.GoogleMap; 
> import com.google.android.gms.maps.MapFragment; 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: help needed

2013-03-16 Thread Tamilarasi Sivaraj
have you install the Google play service from the sdk?

On Saturday, March 16, 2013 4:10:28 PM UTC+5:30, ramesh babu wrote:
>
> yes,i have those lines in manifest file,but i can't import those files 
> in my application and the coding are 
>
>
> Manifest file:- 
>  
> http://schemas.android.com/apk/res/android"; 
> package="com.ramesh.map" 
> android:versionCode="1" 
> android:versionName="1.0" > 
>
>  android:minSdkVersion="9" 
> android:targetSdkVersion="17" /> 
> android:glEsVersion="0x0002" 
> android:required="true" /> 
>
>  
>  android:name="android.permission.ACCESS_NETWORK_STATE" /> 
>  android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
>  android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" 
> /> 
>  
>  android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
>  android:name="android.permission.ACCESS_FINE_LOCATION" /> 
>
>  android:name="com.ram.googlemapsv2.permission.MAPS_RECEIVE" 
> android:protectionLevel="signature" /> 
>
>  /> 
>
>  android:allowBackup="true" 
> android:icon="@drawable/ic_launcher" 
> android:label="@string/app_name" 
> android:theme="@style/AppTheme" > 
>android:name="com.google.android.maps" /> 
>  android:name="com.ramesh.map.Map" 
> android:label="@string/app_name" > 
>  
>  
>
>  /> 
>  
>  
>   android:name="com.google.android.maps.v2.API_KEY" 
> 
> android:value="67:18:01:96:8C:3C:A3:F9:3B:E9:14:96:10:DC:BB:D5:CF:E9:3C:21" 
> /> 
>
>  
>
>  
>
> and src is:- 
>
> package com.ramesh.map; 
>
> import android.annotation.SuppressLint; 
> import android.app.Activity; 
> import android.os.Bundle; 
> import com.google.android.gms.maps.GoogleMap; 
> import com.google.android.gms.maps.MapFragment; 
> public class Map extends Activity { 
>
>  GoogleMap map; 
>  @SuppressLint("NewApi") 
> protected void onCreate(Bundle savedInstanceState) { 
> super.onCreate(savedInstanceState); 
> setContentView(R.layout.activity_map); 
>  
>  
> map = ((MapFragment) 
> getFragmentManager().findFragmentById(R.id.map)) 
> .getMap(); 
>   // 
> map.setMapType(GoogleMap.MAP_TYPE_HYBRID); 
>   // 
> map.setMapType(GoogleMap.MAP_TYPE_NONE); 
>  
>  map.setMapType(GoogleMap.MAP_TYPE_NORMAL); 
>   // 
> map.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
>   // 
> map.setMapType(GoogleMap.MAP_TYPE_TERRAIN); 
>  } 
> } 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Hovering text view

2013-03-19 Thread Tamilarasi Sivaraj
I hope this link will be help to you..
http://developer.android.com/reference/android/view/View.OnHoverListener.html


Regards,
Android developer
Trinay Technology Solutions
www.trinaytech.com
5705750475

On Wednesday, March 13, 2013 10:15:21 AM UTC+5:30, smerag wrote:
>
> Hi,
>
> I am trying to show text view (like pop up window )on hovering over an 
> text view in list.
>
> Please let me know to do the same.
>
> Thanks in advance
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] asterisk sip account

2013-04-04 Thread Tamilarasi Sivaraj
HI,

   I have to create two  asterisk sip account in locally and i set up this 
account into  my android emulators. 
   It's displays the online status. But My problem is when i try call from 
one emulator to another. The call going to automatically end.
   Any body else know about the solution please share with me.

Thanks,
Tamilarasi Sivaraj   
   

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.