[android-developers] Simple code that works in 3.0 but not in 2.3.3 (with support lib)

2013-10-12 Thread Gink Labrev
Hi,

Why does the simple code below work in Android 3.0, but not in 2.3.3 ???
In 2.3.3, it shows only a blank screen.
Any help would be appreciated.

*import android.os.Bundle;*
*import android.support.v4.app.ListFragment;*
*import android.widget.ArrayAdapter;*

*public class TestListFragment extends ListFragment {*
*
*
* *
* private ArrayAdapterString myAdapter;*
* *
* private String[] data = {One, Two, Three};*
* *
* @Override*
* public void onActivityCreated(Bundle savedInstanceState) {*
* super.onActivityCreated(savedInstanceState);*
* *
* myAdapter = new ArrayAdapterString(getActivity(),
android.R.layout.simple_list_item_1, data);*
* *
* *
* setListAdapter(myAdapter);*
* }*
*}*
*
*
Regards,

-- 
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] Simple code that works in 3.0 but not in 2.3.3 (with support lib)

2013-10-12 Thread Gink Labrev
I found the cause. If the activity extends FragmentActivity, the code above
works in 2.3.3, but if it extends ActionBarActivity it does not work.

Does someone know how to solve it ?

This ActionBarCompat has a lot of bugs !! Maybe it is best to return to
ActionSherlockBar.




2013/10/12 Gink Labrev gink.lab...@gmail.com

 Hi,

 Why does the simple code below work in Android 3.0, but not in 2.3.3 ???
 In 2.3.3, it shows only a blank screen.
 Any help would be appreciated.

 *import android.os.Bundle;*
 *import android.support.v4.app.ListFragment;*
 *import android.widget.ArrayAdapter;*

 *public class TestListFragment extends ListFragment {*
 *
 *
 * *
 * private ArrayAdapterString myAdapter;*
 * *
 * private String[] data = {One, Two, Three};*
 * *
 * @Override*
 * public void onActivityCreated(Bundle savedInstanceState) {*
 * super.onActivityCreated(savedInstanceState);*
 * *
 * myAdapter = new ArrayAdapterString(getActivity(),
 android.R.layout.simple_list_item_1, data);*
 * *
 * *
 * setListAdapter(myAdapter);*
 * }*
 *}*
 *
 *
 Regards,


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

2013-08-19 Thread Gink Labrev
@Kristopher

Thanks very much.
I found these - https://github.com/koush/AndroidAsync too. It is a
Socket.io websocket client.


2013/8/13 Παύλος-Πέτρος Τουρνάρης p.tourna...@gmail.com

 OMG i came to post the same links Kristopher :P !! Υou got me :P



 On Tue, Aug 13, 2013 at 4:47 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 I can point you at:


 http://stackoverflow.com/questions/16675450/support-for-websockets-on-android
 http://autobahn.ws/
 https://github.com/koush/android-websockets

 But don't have any personal experience with either.

 Kris


 On Tue, Aug 13, 2013 at 9:37 AM, Gink Labrev gink.lab...@gmail.comwrote:

 Thanks. Could you suggest a third party alternative ?
 I have searched for it without success.
 I am developing a chat. I have a Node.js Socket.io server implementation.

 Regards,


 2013/8/12 Kristopher Micinski krismicin...@gmail.com

 Not in the SDK to my knowledge.  But what are you trying to do?  There
 are a lot of third party providers that offer good / sane Android
 alternatives to Websockets, depending on your use case.

 Kris


 On Mon, Aug 12, 2013 at 2:21 PM, Gink Labrev gink.lab...@gmail.comwrote:

 Hello everyone.

 Does Android implement the Java API for WebSocket (JSR-356) ?

 http://docs.oracle.com/javaee/7/tutorial/doc/websocket.htm
 http://jcp.org/aboutJava/communityprocess/final/jsr356/index.html

 If not, is there a component that allows to use Websockets in Android ?

 Regards,

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


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


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




  --
 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   Software Developer*

- *http://goo.gl/TsJ8u*
- *http://acschedule.org*

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

Re: [android-developers] Webscokets

2013-08-13 Thread Gink Labrev
Thanks. Could you suggest a third party alternative ?
I have searched for it without success.
I am developing a chat. I have a Node.js Socket.io server implementation.

Regards,


2013/8/12 Kristopher Micinski krismicin...@gmail.com

 Not in the SDK to my knowledge.  But what are you trying to do?  There are
 a lot of third party providers that offer good / sane Android alternatives
 to Websockets, depending on your use case.

 Kris


 On Mon, Aug 12, 2013 at 2:21 PM, Gink Labrev gink.lab...@gmail.comwrote:

 Hello everyone.

 Does Android implement the Java API for WebSocket (JSR-356) ?

 http://docs.oracle.com/javaee/7/tutorial/doc/websocket.htm
 http://jcp.org/aboutJava/communityprocess/final/jsr356/index.html

 If not, is there a component that allows to use Websockets in Android ?

 Regards,

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


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


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

2013-08-12 Thread Gink Labrev
Hello everyone.

Does Android implement the Java API for WebSocket (JSR-356) ?

http://docs.oracle.com/javaee/7/tutorial/doc/websocket.htm
http://jcp.org/aboutJava/communityprocess/final/jsr356/index.html

If not, is there a component that allows to use Websockets in Android ?

Regards,

-- 
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] open street maps with native android apps

2013-04-30 Thread Gink Labrev
How to use open street maps with native android apps ?
There are a lot of applications in this link, but any information about
used components.

http://wiki.openstreetmap.org/wiki/Android

Regards,
  Gink

-- 
-- 
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] open street maps with native android apps

2013-04-30 Thread Gink Labrev
I intend to use open street maps instead of google maps


2013/4/30 Jacky Alciné jackyalc...@gmail.com

 What are you trying to do? You want Google Maps to use its map information?

 Jacky Alciné
 home.jalcine.me - blog.jalcine.me - linkedin.jalcine.me


 On Tue, Apr 30, 2013 at 2:28 PM, Gink Labrev gink.lab...@gmail.comwrote:

 How to use open street maps with native android apps ?
 There are a lot of applications in this link, but any information about
 used components.

 http://wiki.openstreetmap.org/wiki/Android

 Regards,
   Gink

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




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




-- 
-- 
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] getActivity() returns null

2012-06-07 Thread Gink Labrev
Solution:
http://stackoverflow.com/questions/7998736/how-to-notify-all-fragments-in-viewpager-that-one-of-them-changed


2012/6/3 Gink Labrev gink.lab...@gmail.com

 Using the following sample codes, the app crashes when rotates screen and
 press the menu button.
 The app uses ViewPager + Fragments.

 http://pastebin.com/LcR2f2uM - Activity
 http://pastebin.com/tUFThnzr - PageAdapter
 http://pastebin.com/589zBWLy - Fragment

 What's happening ? I found these thread about similar cases, but I didn't
 solve the problem yet.


 http://stackoverflow.com/questions/9727173/support-fragmentpageradapter-holds-reference-to-old-fragments
 http://stackoverflow.com/questions/9039877/android-fragment-screen-rotate

 http://stackoverflow.com/questions/7951730/viewpager-and-fragments-whats-the-right-way-to-store-fragments-state

 Sorry for English.

 Thanks and regards,


-- 
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] Problem in IMEI ID

2012-06-03 Thread Gink Labrev
I think that Android haven't got access to IMEI. Or it has access in some
devices and it returns null in others.

2012/6/3 Marcin Orlowski webnet.andr...@gmail.com

 IMEI is 16 digits only.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/*, 
 *Google+*http://bit.ly/webnetmobile-gpand
 *Twitter http://webnetmobile.com/twitter/*





  --
 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 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] getActivity() returns null

2012-06-03 Thread Gink Labrev
Using the following sample codes, the app crashes when rotates screen and
press the menu button.
The app uses ViewPager + Fragments.

http://pastebin.com/LcR2f2uM - Activity
http://pastebin.com/tUFThnzr - PageAdapter
http://pastebin.com/589zBWLy - Fragment

What's happening ? I found these thread about similar cases, but I didn't
solve the problem yet.

http://stackoverflow.com/questions/9727173/support-fragmentpageradapter-holds-reference-to-old-fragments
http://stackoverflow.com/questions/9039877/android-fragment-screen-rotate
http://stackoverflow.com/questions/7951730/viewpager-and-fragments-whats-the-right-way-to-store-fragments-state

Sorry for English.

Thanks and regards,

-- 
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] Android GridView----not able to get correct item by touch event

2012-04-23 Thread Gink Labrev
Try to do it without the  OnGestureListener  interface and post the result.

Em 18 de abril de 2012 23:43, h...@isb.co.jp h...@isb.co.jp escreveu:

 I implemented a gridview with 7 rows and 3 columns(7,3).
  I am trying to get an item in gridview on touch. (want to get an
 touched item not clicked item)
 I can get an item but it is not the one I want.


 Example: When I touched (2,2), I should get the item in (2,2).
 Instead, I got the item in (3,2).

 Please check my source code as following:


 

 public class GridviewflickActivity extends Activity implements
 OnGestureListener {

 private GridView gv;
 private GestureDetector gestureDetecotr;
 private GestureDetector.OnGestureListener gl;
 private ImageView imageview;
 private int dragposition;
private ImageAdapter ia;

 @Override
 public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

gv=(GridView)findViewById(R.id.drag_grid);
ia=new ImageAdapter(this);
gv.setAdapter(ia);
gestureDetecotr = new GestureDetector(this);

 }

 public boolean dispatchTouchEvent(MotionEvent ev) {
System.out.println(dispatchTouchEvent);
  return gestureDetecotr.onTouchEvent(ev);

 }

 public class ImageAdapter extends BaseAdapter{
private Context mContext;

public ImageAdapter(Context c){
 mContext = c;
}

public int getCount() {
return mThumbIds.length;
}

public Object getItem(int position) {
return mThumbIds[position];
}

public long getItemId(int position) {
return position;
}

public View getView(int position, View convertView, ViewGroup
 parent) {

ImageView imageView1;
if (convertView == null) {
imageView1 = new ImageView(mContext);
imageView1.setLayoutParams(new GridView.LayoutParams(85,
 85));
imageView1.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView1.setPadding(8, 8, 8, 8);
} else {
imageView1 = (ImageView) convertView;
}

imageView1.setImageResource(mThumbIds[position]);
return imageView1;

 }


 private Integer[] mThumbIds = {
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7
 };
 }



 @Override
 public boolean onFling(MotionEvent e1, MotionEvent e2, float
 velocityX,
float velocityY) {
 System.out.println(onFling);

int x=(int)e1.getX();
int y=(int)e1.getY();
dragposition=gv.pointToPosition(x, y);
if (dragposition==gv.INVALID_POSITION){
return false;
}

int cnt=gv.getChildCount();
int fvp=gv.getFirstVisiblePosition();
imageview=(ImageView)gv.getChildAt(dragposition-fvp);
System.out.println(X: + x + Y:  + y + dragposition:
 +dragposition+ fvp:  +fvp);

 
 

 return true;
 }

 --
 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 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] Cache data in SqlLite or keep querying the web

2012-04-23 Thread Gink Labrev
What's kind of data ? Maybe system folder can be more adequate than sqlite.

Em 16 de abril de 2012 13:33, Jethro Borsje jethrobor...@gmail.comescreveu:

 Hi all,

 I am building a new app which gets (and updates) data from one of
 Googles API's. Now I and am struggling with the following question:
 should I make an effort to cache data in SqlLite and keep it in sync,
 or should I use the API and do a 'web query' every time the user opens
 an activity? I can make valid arguments for both ways and am not sure
 what to do.

 Best regards,
 Jethro

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

2012-04-23 Thread Gink Labrev
Ok. Good luck.

Em 20 de abril de 2012 19:59, Carlos Solano
carlosenrriqu...@gmail.comescreveu:

 Hola, soy un estudiante de secundaria y estoy tratando de entrar en el
 mundo de la programacion. Necesito ayuda, quiero iniciar la carrera en
 programacion y quiero crear una alplicacion que sea un examen de
 varias opciones (3 mas o menos) por ejemplo hacer la pregunta y que
 puedan haber tres opciones como respuesta. soy nuevo en esto y
 quisiera empezar con una aplicacion como esta. culaquier ayuda es
 bienvenida. gracias

 --
 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 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] Listview show funny stuff

2012-04-23 Thread Gink Labrev
You are returning a list of Client class objects.
You need to implements a method that returns a list of client name String.

Em 19 de abril de 2012 23:13, Ricardo Rivera dist...@gmail.com escreveu:

 I a listview connecto to a datbase and is showing in the list the value of
 the record for the app. Something like

 com.software.myapp.client.client@44abc0
 com.software.myapp.client.client@44abc1
 etc in the list

 I want to show only to show the Client Name

 Here is my Table scheme
 Client Id,Name,Addrs,Phone

 setContentView(R.layout.clientlist);
 clientds = new ClientDataSource(this);
 clientds.open();

 ListClient values = clientds.getAllClients();
 ArrayAdapterClient adapter = new ArrayAdapterClient(this,
 android.R.layout.simple_list_item_1, values);

  --
 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 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] File upload in android app.

2012-04-23 Thread Gink Labrev
http://lmgtfy.com/?q=android+file+upload

Em 23 de abril de 2012 02:04, asheesh arya asheesharya...@gmail.comescreveu:

 tell clearly whta exactly you want to do with your file wheather to upload
 file on server or sumthing else

  --
 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 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: what broadcast or method is called when the application is uninstalled

2012-04-23 Thread Gink Labrev
what broadcast or method is called 
None.

Em 23 de abril de 2012 03:29, albnok alb...@gmail.com escreveu:

 Even if there was, your app would not be around to delete it. :(

 You may have to save your files to your context's
 getExternalFilesDir(null) instead, where it will be deleted together
 with the app.


 On Apr 23, 1:19 pm, ANKUR GOEL ankur1...@gmail.com wrote:
  Hi all ,
 
  i want to delete some files from file directory folder when my
 application
  is uninstalled .
 
  so can i know what broadcast or method is called
 
  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 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] ANDROID BASED VEHICLE TRACKING ISSUES on a remote Server

2012-04-23 Thread Gink Labrev
Do these calculus in server side, not in Android.

Em 23 de abril de 2012 01:08, Bhuvan Chandra
bhuvanchandr...@gmail.comescreveu:

 Hello ,

 I dont have an answer for u but i have a question, as part of my project i
 have to develop an android app which could receive the gps coordinates and
 send them to a pc(i.p.address) through wifi both mobile and pc are
 connected to wifi,
 i have done the part of receiving the gps coordiantes from a satellite ,
 can u tell me  the code for sending these coordinates through wifi to a pc


 On Sun, Apr 15, 2012 at 5:20 PM, JOHN BOSCO BAHUNGIREHE 
 jbjobosc...@gmail.com wrote:

 Hi friends;

 Have got a problem in my code and some how  confused of how t include
 some of the features in the project. The project is about vehicle
 tracking using android,when  I try to test the attached code it runs
 with no error but the does not update the location to my current
 position on the map but instead to either my initialized coordinates
 of (0.0, 0.0) or if I send the Fake coordinates using the ddms it
 takes me to that position on the map without updating to my current
 location.
 Another issue is that I wanted to include the speed at which the
 vehicle is moving and the distance between the starting point and the
 current position of the vehicle and the letting the phone send this
 information to some remote server at the base station.

 I have attached the code for any brother or sister that is ready to
 help me understand how i can go about this problem to look at.
  THANK YOU VERY MUCH FOR YOUR HELP AND CONCERN

 Regards John B

 --
 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 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 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] what's layout-sw680dp-w1000dp means?

2012-04-22 Thread Gink Labrev
I never heard of it
The official documentation about supporting multiple screens can be found
here:
http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts


it does not mention  swNdp-wNdp schema, only swNdp or wNdp.


Em 17 de abril de 2012 04:37, wei li wlijobsearch...@gmail.com escreveu:

 Hi All,

 I am research android 4.0.3 contacts code. and find some layout
 directory such as layout-sw680dp-w1000dp. i know layout-sw680dp means
 at least width or height is high than 680dp. but i confused about
 layout-sw680dp-w1000dp. who can help explain it?
 or tell me where to get related document? 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 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: How to reduce size of JPEG Image in Android

2012-04-22 Thread Gink Labrev
Hi,

I think the code below can help:

private byte[] compressPhoto(Bitmap bm) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
bm.compress(CompressFormat.JPEG, 75, bos);
return bos.toByteArray();
}

Cordially,
Gink

On 17 abr, 01:04, perumal316 perumal...@gmail.com wrote:
 Hi All,

 In my application, I am invoking the camera application and taking a
 picture and saving it in a particular directory (E.g. /sdcard etc)

 The picture is saved as a JPEG image. How do I reduce the size of the
 image? Is there any available image encoder or compression available?

 I came across another posting at:

 http://stackoverflow.com/questions/8757341/android-reduce-size-of-cam...

 But this is scaling the image. I am looking for something that can compress
 or encode. Is it possible?

 Thanks In Advance,

 Perumal

-- 
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] As close my android application

2012-04-22 Thread Gink Labrev
Activity.finish()?
http://developer.android.com/reference/android/app/Activity.html
Or you can kill the application process if you have root privileges.

Em 19 de abril de 2012 16:42, julian Garcia julio.styl...@gmail.comescreveu:

 I need to know how I can close my android application and all its
 activities. Any ideas that might help me do this?

 thank you very much

 --
 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 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] Get access to the transmit power when using the wifi tethering

2012-04-22 Thread Gink Labrev
Maybe it can help you
http://developer.android.com/reference/android/net/wifi/WifiManager.html

Em 18 de abril de 2012 10:29, Jibin Ou insynci...@gmail.com escreveu:

 Hello, is anybody familiar with the wifi tethering? Actually, I want to
 get access to the transmit power of the wifi tethering signal. As far as I
 know, the transmit power is able to be changed in part of devices.

 I just want a way to get access to the current value of the transmit
 power. Then I can use this value to estimate the distance between the
 signal`s origin and the receiver.

 Thank you!

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