[android-developers] Please help

2010-03-06 Thread Dc
I know i do not belong here but I need some computer help.  I have an
EeePC, two external hard drives.  I have been working from my external
drive now all I want to do is copy #1 external drive to #2 external
drive and to the computer itself.  Backup programs are not letting me
do this Paragan (ie)  or an I talking bout syc.
Dragging and dropping do not seem to work
also the cables I am using have two usb plugs.  I use the middle
ones.  What is the other for.  Data transfer?

Please help me I have seeked help for days.  I am in Thailand now with
critical things on this one hard drive and I want to back it up and
send it home

-- 
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: GPS blues

2012-02-28 Thread DC
Indeed, GPS, or location generally, works better (faster, even indoors 
etc.) if it is assisted by the Google's information about cell towers or 
wifi hotspots known positions. For this, you have to be connected to the 
Internet, so the phone could ask this database the position of current cell 
tower or wifi hotspot the phone is connected at the moment (or, if you 
haven't changed area, have a cache of positions on the phone). This first 
aproximation will help GPS get a faster fix of the more accurate position.

-- 
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] Android Listview - can not select multiple items when using a cursor

2012-04-10 Thread dc
0 down vote favorite
share [g+] share [fb] share [tw]


I have a listview populated with data from a cursor using
SimpleCursorAdapter. I want to make it so I can select multiple items
with a checkbox against each item but I can only get it to check a
single item at a time i.e. each time I select an item, it will clear
the currently selected item.

It works fine if I populate the listview using a simple string
ArrayAdapter. I can select multiple items. So I dont know why it
doesn't work with the SimpleCursorAdapter.

This listview is being dynamically added to an existing Linearlayout
(attributesLinearLayout) in a dialogfragment which contains other
controls, if that matters.

Here's the code:

***
Cursor attributesCursor = mDBHelper.getItemAttributesbyType(menuID,
itemID, "M");
getActivity().startManagingCursor(attributesCursor);

ListView lv = new ListView(this.getActivity());
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.MATCH_PARENT);
lv.setLayoutParams(params);


SimpleCursorAdapter adapter = new SimpleCursorAdapter(
getActivity(),
android.R.layout.simple_list_item_multiple_choice,
attributesCursor, new String[]
{ "AttributeDescription" },
new int[] { android.R.id.text1 },0);


attributesLinearLayout.addView(lv);

lv.setAdapter(adapter);

lv.setItemsCanFocus(false);
lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
***

 the multi choice listview works if i use this code, where "items" is
a simple String array of text:

***
lv.setAdapter(new ArrayAdapter(this.getActivity(),
android.R.layout.simple_list_item_multiple_choice,
items));
***

I also tried extending other adapters, including the array adapter and
CursorAdapter using custom item layouts but that again didnt allow me
to select multiple items.

Please help!!

-- 
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] ProgressDialog with Thread

2012-02-17 Thread dc
I am attempting to show a progress dialog while I am performing some
actions. I am having troubles getting it to perform the way I would
like. Here is what I want to do:
click event of a button
pop up a progress dialog showing a busy message.
perform some action
then once the action is complete, inflate a new layout into my main
layout. (changing screens)
It works fine except either I inflate the layout while the other
actions are still processing (layout change is outside the thread) or
if I put the layout change in the thread, it forces a close of the
app, at the layout.removeallviews; line.

private OnClickListener feeAcceptListener = new OnClickListener() {
   @Override
  public void onClick(View v) {
  progressBar = ProgressDialog.show(v.getContext(), "Please
Wait...","Communicating",true);
   new Thread(new Runnable() {
 @Override
 public void run() {
GetWts(); //processes some action
 progressBar.dismiss();
 }
   }).start();

   Handler handle=new Handler(){
 @Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);

 }
   };
   LinearLayout layout =
(LinearLayout)findViewById(R.id.main_view);
   layout.removeAllViews();
   LayoutInflater inflater = getLayoutInflater();
   layout.addView(inflater.inflate(R.layout.wts, null));

   Button print = (Button)findViewById(R.id.btnPrintTic);
   Button done= (Button)findViewById(R.id.btnDone);
   print.setOnClickListener(wtsPrintListener);
   done.setOnClickListener(wtsDoneListener);
  }
};

-- 
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] comments in android

2012-09-16 Thread DC
sorry for my last post this is the caret system for comment in android 
projects

*in  XML*



*Java single line comment: *

//*comment here*

*Java multi line comment: *

/*
*comment here*
*/

post by *DilSap*

-- 
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] Geolocation in Browser

2009-11-05 Thread Steve DC
I just tried the HTC Hero (Sprint) with Android 1.5 and was not able
to access my location through the browser. Getting location
coordinates from Javascript works on the iPhone and in Firefox 3.5+ on
my desktop. Is Geolocation being added to the Android browser or is
this a phone specific issue that it does not work on the Hero?

Thanks,
Steve

-- 
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