[android-developers] android bug gsm: NetworkOperatorName when returning to home network

2012-05-11 Thread Graham Bright
Hi, When I roam in another network my android devices books into the GSM network of that Operator. The NetworkOperatorName is displayed and all is fine. However when I return to my home country the network name of the operator from the visted country is still present on my android

[android-developers] I need a way to get hold of a populated hashmap from a service?

2012-04-11 Thread Graham Bright
Hi, Would you suggest using the steps mentioned in the blog below to bind to a running service? I need a way to get hold of a populated hashmap from my service? bindService(mServiceIntent, mConnection, Context.BIND_AUTO_CREATE); ...

Re: [android-developers] SipDroid project + chat or sms

2012-04-06 Thread Graham Bright
Found jainsip to be better not sure if this is enabled voip support on all handsets On 6 Apr 2012 15:55, Jagruti Sangani jagruti.sang...@inextrix.com wrote: hello can anybody know how can we send message to other sip user in sipdroid? Or can we add chat facility in sipdroid like as in viber?

[android-developers] How to creating a custom HashMapAdapter

2012-04-04 Thread Graham Bright
Hi, If I have a hashmap containing the following how can I instantiate a custom adapter. The custom adapter should extend baseadapter. Hashmap contains (String,String) I need to combine both key and value so it looks something like KEY+VALUE, KEY+VALUE and assign this to an array

[android-developers] ArrayIndexOutOfBoundsException

2012-04-04 Thread Graham Bright
Hi, I can't figure out why I am getting and out of bounds exception ? Any ideas Thanks public static String[] items = new String[0]; public static HashMapString, String map = new HashMapString, String(); @Override public void onCreate(Bundle icicle) {

[android-developers] getview in customadapter not called

2012-04-04 Thread Graham Bright
Hi, In class 1 I have a hashmap which I send to my CustomAdapter. map.put(year, Apple); map.put(make, Mango); map.put(model, Grape); map.put(style, Orange); map.put(series, Peach); Log.d(TAG, HELLO WORLD + map.entrySet());

[android-developers] customAdapter how to print out content of array in TextView.setText() of getview

2012-04-04 Thread Graham Bright
Hi, I have written a CustomAdapter to display a list of hash key+value items as a list. But I am stuck on the line below. label.setText(my_VALUES[0]) Class two is my CustomAdapter and I am passing it a hashMap public MyCustomAdapter(DynamicLists dynamicLists, int row, HashMapString,String

[android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Hi, I have a hashmap with key, value pairs example :- (msisdn,value) 43664xxx,2 43665xxx,3 now I want to display this information in a ListView but I don't know how to feed the data to an ArrayAdapter. HERE IS MY ADAPTER, note I want to replace myList with data from the Hashmap a

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
: Keep in mind that HashMap does not have an order... ArrayAdapter does everything based on a position value, which indicates an ordered collection of some sort. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 3, 2012 at 1:16 PM, Graham

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
) Update your adapter with the new list of data and call notifyDataSetChanged() Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 3, 2012 at 1:46 PM, Graham Bright gbwienmobil...@gmail.comwrote: Thanks Justin, Order is not important, as my

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
One more question when I declare a test HashMap it seems only to work as static private static final MapInteger, String myHashMap = new HashMapInteger, String(); static { myHashMap.put(1, one); myHashMap.put(2, two); } and I am unable to access the HashMap outside of the brackets. So new

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
as MyHashMap cannot be resolved ... ? What? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 3, 2012 at 2:37 PM, Graham Bright gbwienmobil...@gmail.comwrote: One more question when I declare a test HashMap it seems only to work

[android-developers] Re: CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Thanks, That worked fine fine, I'm new to this stuff :) maybe I could use the following to feed the data to an ArrayAdapter from the Hashmap which is declared outside of MyClass not sure if that would work new ArrayListString(myHashMap.keySet()), assuming myHashMap is a HashMapString,

Re: [android-developers] Re: CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
in the adapter. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 3, 2012 at 3:01 PM, Graham Bright gbwienmobil...@gmail.comwrote: maybe I could use the following to feed the data to an ArrayAdapter from the Hashmap which is declared outside

Re: [android-developers] Re: SIP Stack registration packet with authorization

2012-03-19 Thread Graham Bright
Might be better off using Jain Sipp sipmanager seems not to be supported on 2.3 android phones such as samsung galaxy s and s2 On 14 Mar 2012 15:36, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Mar 15, 2012 at 12:20 AM, matej148 matejmihal...@gmail.com wrote: Hi Nikolay, thank you

Re: [android-developers] Re: Native SIP Supported on all ICS Devices?

2011-12-30 Thread Graham Bright
in api's out of it. I had successfully integrated pjsip of CSipsimple open source and it is working great for me. http://www.pjsip.org/apps.htm Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Thu, Dec 29, 2011 at 7:10 PM, Graham Bright gbwienmobil

Re: [android-developers] Native SIP Supported on all ICS Devices?

2011-12-29 Thread Graham Bright
Hi, I have been playing around with the sipdemo and I have created simple application. The application creates SIPManager object and attempts to connect using SipProfile to sip2sip.info. This doesn't work either from the phone (Samsung Galaxy 2 running 2.3 Android) or the emulator. I get back

Re: [android-developers] which to use shared preferences or files best practices

2011-12-24 Thread Graham Bright
Thanks Graham On 23 Dec 2011 13:51, TreKing treking...@gmail.com wrote: On Fri, Dec 23, 2011 at 4:15 AM, Graham Bright gbwienmobil...@gmail.com wrote: To store the te... How long is this string? If it's relatively short, a preference. If it's relatively long, a file

[android-developers] which to use shared preferences or files best practices

2011-12-23 Thread Graham Bright
Hi all, I am trying to decide if I should use shared preferences or files for the following scenario. I want to present to the user a list of simple text strings which if selected will be used later in my code. Example Text string 1 Text string 2 User defined Text string If the user

Re: [android-developers] Re: PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-25 Thread Graham Bright
Thanks for the great advice, I figured out the problem. I had an issue with array initialization, and my thread was doing nothing On Nov 25, 2011 8:06 a.m., Lew lewbl...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Re: PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-24 Thread Graham Bright
Guys thanks a million I got it working. I can post the code if anyone is interested? On 24 Nov 2011 18:52, Lew lewbl...@gmail.com wrote: BelvCompSvs wrote: I'm just here to confirm what the other two coders told you ~ I found it o... That's actually pretty bad advice. Don't place a 'catch

[android-developers] PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-23 Thread Graham Bright
Hi, I am creating service which will run in the background and contain a blocking list (implemented using ArrayList) which may be used later by other activites. My Problem:- From my activity Services Demo I pass data to my service using dataIntent.putExtra(originator, x); this is fine but

[android-developers] Re: PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-23 Thread Graham Bright
Can anyone help? Thanks Graham On Nov 23, 2011 11:51 a.m., Graham Bright gbwienmobil...@gmail.com wrote: Hi, I am creating service which will run in the background and contain a blocking list (implemented using ArrayList) which may be used later by other activites. My Problem:- From

[android-developers] Re: PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-23 Thread Graham Bright
:36 пользователь Graham Bright gbwienmobil...@gmail.com написал: Can anyone help? Thanks Graham On Nov 23, 2011 11:51 a.m., Graham Bright gbwienmobil...@gmail.com wrote: Hi, I am creating service which will run in the background and contain a blocking list  (implemented using

Re: [android-developers] Re: Problem with losing contains of ArrayList please help

2011-11-20 Thread Graham Bright
Hi Shashi, Thanks for responding, from myphone i am calling querycontacts which presents to the user a button called block and textbox. Using querycontacts i am calling another class (now part of querycontacts) to populate an arraylist called items. I want to use this arraylist later as a

[android-developers] Problem with loosing contains of ArrayList please help

2011-11-19 Thread Graham Bright
Hi all, I am new to Android programming and I am trying to write an application which uses a blocking list based on ArrayList. The class Querycontacts presents to the user contains to block. Querycontacts calls ExtractContracts to add the number to an ArrayList checking to see if the number is

[android-developers] ANDROID TOAST ARRAYLIST NULL POINTER

2011-11-13 Thread Graham Bright
Hi I get a null point exception with the following code can anyone help ? I want to go through my array items and print each item to the user using a toast message Thanks Graham package gb.org; import java.util.Arrays; import java.util.ArrayList; import android.widget.Toast; import

[android-developers] onItemLongClockListener - ArrayList throws IndexOutOfBoundsException

2011-10-12 Thread Graham Bright
Hi, When I try to remove the list element in my ArrayLilst I get IndexOutofBoundsException. Specifically in OnItemLongClickListener. Can anyone help ? Thanks, Graham package listmodified.org; import java.util.Arrays; import java.util.ArrayList; import android.app.ListActivity; import

[android-developers] Re: onItemLongClockListener - ArrayList throws IndexOutOfBoundsException

2011-10-12 Thread Graham Bright
Found the problem myList.remove(*this*); //remove the current object , *postion* throws an exception On Tue, Oct 11, 2011 at 11:37 AM, Graham Bright gbwienmobil...@gmail.comwrote: Hi, When I try to remove the list element in my ArrayLilst I get IndexOutofBoundsException. Specifically

[android-developers] SIPMANAGER RETURNS NULL FROM EMULATOR AND SAMSUNG GALAXY S 2

2011-07-29 Thread Graham Bright
Hi, Has anyone had any luck with SipManager. I have been playing around with the sipdemo and I have created simple application. The application creates SIPManager object and attempts to connect using SipProfile to sip2sip.info. But manager, api and voip are not supported. This doesn't work

[android-developers] Help needed with OnItemLongClickListener custom adapter - UnsupportedOperationException

2011-06-15 Thread Graham Bright
Hi, I am new to Android programming and need help with onItemLongClick. I have implemented an OnItemLongClickListener but when i long click on an item in my list an UnsupportedOperationException is raised. I include two files below listmodified and my custom adapter CustomAdapter Thanks in