[android-developers] GroupActivity is not being closed
hello friends, I am using GroupActivity in this i have used Toptab and BottomTab. now problem is that when i am pressed back buttom application is not being closed .so can any body tell me solution of that i have also used onBackPressed() { finish(); android.os.Process.killProcess(android.os.Process.myPid()); System.runFinalizersOnExit(true) } this code is also not working. please help me in this regard 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] Adding button on custom view
Hai all... I am creating a custom view without using xml... using java code...My question is how could I add new button to my view class using java codeMy code is just like below. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MyView view1 = new MyView(this); setContentView(view1); } public class MyView extends View { public MyView(Context c) { super(c); mBitmap = MainActivity.getBitmap(); } @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); mBitmap = Bitmap.createScaledBitmap(mBitmap, w, h, true); mCanvas = new Canvas(mBitmap); } @Override protected void onDraw(Canvas canvas) { canvas.drawColor(0xFFAA); canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint); canvas.drawPath(mPath, mPaint); } } It is not my full code...I need to add some custom button and some menu. I have to draw to the canvas using all these...Is it possible to add such a button and menu in view using java 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
[android-developers] when i am trying close this activity it is not being closed.
import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Vector; import org.ksoap2.serialization.SoapObject; import android.app.Activity; import android.app.ActivityGroup; import android.app.LocalActivityManager; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.view.KeyEvent; import android.view.ViewGroup.LayoutParams; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.ScrollView; import android.widget.TextView; public class DashBoard extends ActivityGroup//Activity { Intent intent; Vector dashBoardImage; //DashBoardSaveData dashboard; SoapObject storeresponse[]; Bitmap bit[]; int iconHori[]={R.drawable.icontrain,R.drawable.iconrestorent,R.drawable.iconcamera,R.drawable.iconmovie,R.drawable.icontrain,R.drawable.iconaeroplan ,R.drawable.icontrain,R.drawable.iconrestorent,R.drawable.iconcamera,R.drawable.iconmovie,R.drawable.icontrain,R.drawable.iconaeroplan}; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); DashBoardSaveData d=new DashBoardSaveData(); DashBoardSaveData.setDashBoard(DashBoard.this); dashBoardImage=d.image; LocalActivityManager mag=getLocalActivityManager(); RelativeLayout rl=new RelativeLayout(this); ImageView header1=new ImageView(this); header1.setImageResource(R.drawable.header1); RelativeLayout.LayoutParams lay1 = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); lay1.addRule(RelativeLayout.ALIGN_PARENT_TOP); ImageView header2=new ImageView(this); header2.setImageResource(R.drawable.header2); RelativeLayout.LayoutParams lay2 = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); lay2.topMargin=24; lay2.leftMargin=30; LinearLayout ll1=new LinearLayout(this); ll1.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); ll1.addView(mag.startActivity(topActivity, new Intent(this,TopTab.class)).getDecorView()); RelativeLayout.LayoutParams lay = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); lay.topMargin=120; lay.leftMargin=20; lay.rightMargin=20; //horizontal alignment //ImageView leftarrow=new ImageView(this); //leftarrow.setImageResource(R.drawable.leftarrow); //RelativeLayout.LayoutParams layleftarrow = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); //layleftarrow.topMargin=162; ////layleftarrow.addRule(RelativeLayout.ALIGN_PARENT_LEFT); //ImageView rightarrow=new ImageView(this); //rightarrow.setImageResource(R.drawable.rightarrow); //RelativeLayout.LayoutParams layrightarrow = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); //layrightarrow.topMargin=162; //layrightarrow.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); //ScrollView sc=new ScrollView(this); //LinearLayout lHorizontal=new LinearLayout(this); //lHorizontal.setOrientation(LinearLayout.HORIZONTAL); //for(int i=0;iiconHori.length-1;i++) //{ // ImageView horizin_i=new ImageView(this); // // horizin_i.setImageResource(iconHori[i]); // horizin_i.setPadding(10, 0, 10,0); // horizin_i.setLayoutParams(new LayoutParams(60, 60)); // lHorizontal.addView(horizin_i); // //} Animatated anim=new Animatated(this); RelativeLayout.LayoutParams horizontalLay = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); //horizontalLay.topMargin=162; //horizontalLay.leftMargin=40; //sc.addView(lHorizontal); //end ImageView searchback=new ImageView(this); searchback.setImageResource(R.drawable.searchback); RelativeLayout.LayoutParams lay3 = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); lay3.topMargin=243; //ImageView searc=new ImageView(this); //searc.setImageResource(R.drawable.search); //RelativeLayout.LayoutParams lay4 = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); //lay4.topMargin=171; // EditText
Re: [android-developers] reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)
I've filed an issue here: http://code.google.com/p/android/issues/detail?id=37990 -- 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: Menu icon contrast
Take a look at this page: Providing Resourceshttp://developer.android.com/guide/topics/resources/providing-resources.html. You want to provide different drawable resources depending on the platform version. So, for example, your res/drawable-v11 can contain the icons for Honeycomb and above, res/drawable-v9 can contain the icons for Gingerbread, and res/drawable can contain the icons for anything below that. You can also define your own styles, so you can be sure whether your backgrounds will be dark or light! -- 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: Aligning a view to an ImageView in different resolutions
On Sep 27, 6:02 pm, Adam Lichwierowicz adam.lichwierow...@gmail.com wrote: Than please advice when exactly (or where in the code to be precise) is this moment - since in all of the listeners I have mentioned, the Matrix did not gave correct points - the points where the same as if the imageview was not rescaled at all. So I.e. Input point 110,50 (correct on original unscaled bitmap)- output points 110,50 (incorrect on the screen) but better idea is what Kostya suggested: custom ViewGroup, like this: public class ILayout extends FrameLayout { private Button mButton; private ImageView mImageView; public ILayout(Context context, AttributeSet attrs) { super(context, attrs); mImageView = new ImageView(context); mImageView.setImageResource(R.drawable.test); addView(mImageView); mButton = new Button(context); addView(mButton); } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); float[] pts = { 1, 1, 4, 4 }; mImageView.getImageMatrix().mapPoints(pts); mButton.layout((int) pts[0], (int) pts[1], (int) pts[2], (int) pts[3]); } } here we have an ImageView displaying 5x5 test.png image and a button which should appear scaled and translated in the centre of ImageView's image pskink -- 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 to add different images in imagebutton ?
Android to add different images in imagebutton of the listview ? -- 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] Notifying the fragment when it is currently selected in a viewpager
I use ViewPager loaded with fragments in it .The *onResume()* method of each fragments does some logic and so i get problems when the adjacent fragments(left and right) to the currently selected page are also loaded to provide smooth scrolling between the pages. Does the fragment recieve any *callbacks* when it get actually selected? -- 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] Notifying the fragment when it is currently selected in a viewpager
we can achieve that by creating interface. e.g *public* *class* SampleFragment *extends* ListFragment { *private* OnItemSelectedListener listener; *public* *interface* OnItemSelectedListener { *public* void *onItemSelected*(int index); } *public* void *setOnItemSelectedListener*(OnItemSelectedListenerlistener ) { *this*.listener = listener; } @Override *public* void *onListItemClick*(ListView l, View v, int position, long id) { listener.*onItemSelected*(position); } Activity source code *public* *class* MyActivity *extends* Activity *implements* ItemFragment.OnItemSelectedListener { @Override *public* boolean *onCreate*(Bundle bundle) { *// ...* SampleFragment item = *new* *SampleFragment*(); item.*setOnItemSelectedListener*(*this*); *// ...* } *public* void *onItemSelected*(int index) { *// ...* } *// ...* } Hope this snippet helps you. Good Luck Regards Vinay Kumar On Sat, Sep 29, 2012 at 3:18 PM, Raneez rane...@gmail.com wrote: I use ViewPager loaded with fragments in it .The *onResume()* method of each fragments does some logic and so i get problems when the adjacent fragments(left and right) to the currently selected page are also loaded to provide smooth scrolling between the pages. Does the fragment recieve any *callbacks* when it get actually selected? -- 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] I need an apk to install .ttf font in my android tablet (acer iconia a500)
I need an apk to install .ttf font in my android tablet (acer iconia a500). -- *Wajiha Kanwal* PHP developer waji.kan...@gmail.com -- 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] I need an apk to install .ttf font in my android tablet (acer iconia a500)
I doubt that there is anyone on this list that will/can supply you with an app/apk that does this. If you are looking to use a custom font in an app you write yourself, this might be helpful: http://stackoverflow.com/questions/10051915/how-to-install-custom-font-in-android-device Further googling might prove usefull (this was the I'm feeling lucky hit). On Sat, Sep 29, 2012 at 12:34 PM, Wajiha Kanwal waji.kan...@gmail.com wrote: I need an apk to install .ttf font in my android tablet (acer iconia a500). -- Wajiha Kanwal PHP developer waji.kan...@gmail.com -- 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 -- Michael Banzon http://michaelbanzon.com/ -- 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: Google cancelled this order. Reason: Other
I think this is a glitch on Googles side, they should be aware of it by now. Perhaps one of Googles competitors is trying to cause problems with a purchase/cancel campaign (i've seen it before). Regards, Fred On 28 September 2012 18:22, Nathan nathan.d.mel...@gmail.com wrote: On Friday, September 28, 2012 9:18:21 AM UTC-7, Kostya Vasilyev wrote: This, I believe, can be useful sometimes: https://wallet.google.com/**manage/ https://wallet.google.com/manage/ I had one user report that removing the credit card from his profile there, then adding it back, made his next attempt at ordering succeed. -- K I'll start with that and hope they fix what appears to be a systematic problem. Orders are up but successful orders are down. Nathan -- 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 -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- 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] Share DataStream between activities
thanks I will try it ... anyway how can i acess the context from another activity? 2012/9/29 Kristopher Micinski krismicin...@gmail.com: There are two ways to do this: You can stuff the stream in the global application context, *or*, you can use a background service to manage the connection and interface with the connection in your activities. kris On Fri, Sep 28, 2012 at 9:40 PM, Telmo Neves telmoneve...@gmail.com wrote: Hi everybody I need to pass a dataOutputStream and DataInputStream between activities in my app so i can have communication between app and server always i need How i can do this ? Is it possible without need a new socket? 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 -- 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] Share DataStream between activities
http://developer.android.com/reference/android/content/Context.html#getApplicationContext() kris On Sat, Sep 29, 2012 at 8:01 AM, Telmo Neves telmoneve...@gmail.com wrote: thanks I will try it ... anyway how can i acess the context from another activity? 2012/9/29 Kristopher Micinski krismicin...@gmail.com: There are two ways to do this: You can stuff the stream in the global application context, *or*, you can use a background service to manage the connection and interface with the connection in your activities. kris On Fri, Sep 28, 2012 at 9:40 PM, Telmo Neves telmoneve...@gmail.com wrote: Hi everybody I need to pass a dataOutputStream and DataInputStream between activities in my app so i can have communication between app and server always i need How i can do this ? Is it possible without need a new socket? 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 -- 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: geolocation
Thank you guys for your prompt answer! I just modified the previous code into the following and it works, indeed it gives me the latitude value on my phone and I need to precise not using the emulator (here it still give me an exception, I guess this normal since we dont have a gps in the emulator). but my problem now is that why it does not work on my phone, when I use GPS_PROVIDER, though my gps is enabled on phone ?!?!! -- the new code that works is : mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); /* Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); criteria.setPowerRequirement(Criteria.POWER_LOW); */ String locationprovider = mLocationManager.NETWORK_PROVIDER;//getBestProvider(criteria, true); Location mLocation = mLocationManager.getLastKnownLocation(locationprovider); String text = latitude : + mLocation.getLatitude(); // String text = Last location lat: + mLocation.getLatitude() //+ long: + mLocation.getLongitude(); //+ speed : + mLocation.getSpeed() + // Time: + mLocation.getTime(); tv.setText(text); --- Thnk you very much, -- aek On Saturday, September 29, 2012 12:03:51 AM UTC+1, aek wrote: Hi there, I am tryin to run a simple code to illustrate the geolocation service. Unfortunately I am having an unexpected exception that unable to execute the activity. any help! thank you in advance simple pg for geolocalisation package com.example.lastlocation; import android.location.Criteria; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.app.Activity; import android.content.Context; import android.view.Menu; import android.widget.TextView; public class MyLocation extends Activity { TextView tv; LocationManager mLocationManager; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tv = (TextView) findViewById(R.id.textview1); mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); criteria.setPowerRequirement(Criteria.POWER_LOW); String locationprovider = mLocationManager.getBestProvider(criteria, true); Location mLocation = mLocationManager.getLastKnownLocation(locationprovider); String text = Last location lat: + mLocation.getLatitude() + long: + mLocation.getLongitude(); //+ speed : + mLocation.getSpeed() + // Time: + mLocation.getTime(); tv.setText(text); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; } } _ -- 09-28 22:10:32.784: D/AndroidRuntime(969): Shutting down VM 09-28 22:10:32.784: W/dalvikvm(969): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 09-28 22:10:32.804: E/AndroidRuntime(969): FATAL EXCEPTION: main 09-28 22:10:32.804: E/AndroidRuntime(969): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.lastlocation/com.example.lastlocation.MyLocation}: java.lang.NullPointerException 09-28 22:10:32.804: E/AndroidRuntime(969): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 09-28 22:10:32.804: E/AndroidRuntime(969): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 09-28 22:10:32.804: E/AndroidRuntime(969): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 09-28 22:10:32.804: E/AndroidRuntime(969): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 09-28 22:10:32.804: E/AndroidRuntime(969): at android.os.Handler.dispatchMessage(Handler.java:99) 09-28 22:10:32.804: E/AndroidRuntime(969): at android.os.Looper.loop(Looper.java:123) 09-28 22:10:32.804: E/AndroidRuntime(969): at android.app.ActivityThread.main(ActivityThread.java:4627) 09-28 22:10:32.804: E/AndroidRuntime(969): at java.lang.reflect.Method.invokeNative(Native Method) 09-28 22:10:32.804: E/AndroidRuntime(969): at java.lang.reflect.Method.invoke(Method.java:521) 09-28 22:10:32.804: E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 09-28 22:10:32.804: E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
Re: [android-developers] Re: Hardware acceleration and drawPath problem
Do you have any ideas about paths being displayed at certain positions but not others? On Saturday, September 29, 2012 2:51:02 AM UTC, Romain Guy (Google) wrote: You are running into a well known hardware acceleration limitation. Paths are currently transformed into OpenGL texture at the size you define them. This means that if your Path contains only coordinates between 0 and 1, the texture will be 1x1. This is why your addPath() solution works. This is something we *really* *really* *really* want to improve but it's pretty complicated. We're working on it though :) On Fri, Sep 28, 2012 at 7:33 PM, thibault thib...@gmvhdl.comjavascript: wrote: I've made some progress on this, but I think there are two bugs in the hardware acceleration: 1) When Canvas.drawPath is called with a path created via the Path.transform(Matrix matrix, Path dest) method, nothing is drawn. A work around is using an alternative method Path.addPath(Path path, Matrix transform) which works correctly. 2) Some paths are just not displayed depending on the position. Moving them by 1.0 in the x or y direction sometimes make them appear. Unfortunately, this is not a suitable workaround because the layout is dynamic and will change. I haven't picked up a pattern yet on why certain positions and not others. It is no where near the edge of the clipping rectangle. On Friday, September 28, 2012 8:14:06 PM UTC, thibault wrote: I have a Drawable whose draw method make calls to Canvas.drawText and Canvas.drawPath. When hardware acceleration is enabled, I only see the text displayed, none of the paths are displayed. Everything is correctly displayed when hardware acceleration is disabled. Does anyone have ideas about this? -- 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.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.com javascript: -- 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: Hardware acceleration and drawPath problem
Do you have any ideas about paths being displayed at certain positions but not others? On Saturday, September 29, 2012 2:51:02 AM UTC, Romain Guy (Google) wrote: You are running into a well known hardware acceleration limitation. Paths are currently transformed into OpenGL texture at the size you define them. This means that if your Path contains only coordinates between 0 and 1, the texture will be 1x1. This is why your addPath() solution works. This is something we *really* *really* *really* want to improve but it's pretty complicated. We're working on it though :) -- 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] Thanks!
Thanks for sharing such useful information... -- 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: Menu icon contrast
Thanks. Platform version sounds good in theory, but my Gingerbread (v2.3.3) emulator is light-on-dark, while my Gingerbread (also v2.3.3) phone is dark-on-light. How reliable is the emulator for this? I've also heard that menus can't be styled, but I'll look further into that. Are there no system calls that can help here? Query the current display settings or something? Cheers, Andrew -- 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] NoClassDefFoundError - Rejecting re-init on previously-failed class
Hi, Please somebody explain me what this error means and how to avoid it. After a while my app Force Closes because of this error: 09-28 12:53:45.746 I/dalvikvm(29489): Rejecting re-init on previously-failed class Lcom/bartat/android/ui/task/AsyncTaskExt; v=0x0 09-28 12:53:45.748 D/AndroidRuntime(29489): Shutting down VM 09-28 12:53:45.755 I/am_crash( 1146): [29489,com.bartat.android.secret,572996,java.lang.NoClassDefFoundError,com.bartat.android.ui.task.AsyncTaskExt,CommandsActivity.java,726] 09-28 12:53:45.755 I/am_finish_activity( 1146): [1079225264,123,com.bartat.android.secret/.CommandsActivity,crashed] 09-28 12:53:45.750 W/dalvikvm(29489): threadid=1: thread exiting with uncaught exception (group=0x40015560) 09-28 12:53:45.752 E/AndroidRuntime(29489): FATAL EXCEPTION: main 09-28 12:53:45.752 E/AndroidRuntime(29489): java.lang.NoClassDefFoundError: com.bartat.android.ui.task.AsyncTaskExt This problem couldn't be solved by reinstalling the app. If I rename the AsyncTaskExt to AsyncTaskExt2 for example then it works again for long. But after a few weeks/months it started to get this error again. What does it mean? Why it is thrown and how to avoid it without renaming the class? Please help me, Tamás -- 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: Android resource qualifier
Those qualifiers are available only since android 3.2 if I remeber well. So the question, do your xperia and samsung run ICS or JB? If they run on gingerbread then that will not work. On Friday, September 28, 2012 12:39:06 PM UTC+2, Vinay Kumar wrote: Hi, I am unable to get the values form values-sw480dp on my sony Xperia device which is 480 x 854 neither on Samsung galaxy tab which is 600 x 1024. But able to get on Motorola Xoom which is 1280 x 752. e.g res/values-sw480dp/strings.xml/ string name=hello_worldhello world/string The values on respective devices Sony Xperia * @2131034113* Samsung *@2131034113* on xoom * hello world* Can any one explain me this behavior, why Sony Xperia and Samsung has * @2131034113* value. Thank you 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
[android-developers] NFC android
Guyz , How can i add NFC support for android application, are there any sample code for read write NFC tag please help me.. 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
Re: [android-developers] Re: Hardware acceleration and drawPath problem
I have never seen this problem. On Sat, Sep 29, 2012 at 6:22 AM, thibault thiba...@gmvhdl.com wrote: Do you have any ideas about paths being displayed at certain positions but not others? On Saturday, September 29, 2012 2:51:02 AM UTC, Romain Guy (Google) wrote: You are running into a well known hardware acceleration limitation. Paths are currently transformed into OpenGL texture at the size you define them. This means that if your Path contains only coordinates between 0 and 1, the texture will be 1x1. This is why your addPath() solution works. This is something we *really* *really* *really* want to improve but it's pretty complicated. We're working on it though :) -- 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 -- Romain Guy Android framework engineer romain...@android.com -- 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] GroupActivity is not being closed
On Sat, Sep 29, 2012 at 1:01 AM, rauf qureshi qureshira...@gmail.comwrote: now problem is that when i am pressed back buttom application is not being closed Yes it is. That's the default behavior. If it's not, you're doing something wrong. And no, closing your app does not necessarily mean killing the process. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] NFC android
On Sat, Sep 29, 2012 at 12:39 PM, shashi asanka shashi.kalut...@gmail.comwrote: How can i add NFC support for android application, are there any sample code for read write NFC tag please help me.. Did you actually try looking for any? - TreKing http://sites.google.com/site/rezmobileapps/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
[android-developers] Re: Nexus 7 has no menu button?
Hi all, I just run into this issue too. I'm using minsdk set to 8 and target to 11. According to the blog here: http://android-developers.blogspot.hu/2012/01/say-goodbye-to-menu-button.html - If you set either minSdkVersion or targetSdkVersion to 11 or higher, the system *will not* add the legacy overflow button. - Otherwise, the system *will* add the legacy overflow button when running on Android 3.0 or higher. - The only exception is that if you set minSdkVersion to 10 or lower, set targetSdkVersion to 11, 12, or 13, and you do not use ActionBarhttp://developer.android.com/reference/android/app/ActionBar.html, the system *will* add the legacy overflow button when running your app *on a handset* with Android 4.0 or higher. This would indicate that I meet the third (exception) condition so it would have a compatibility action overflow button, and indeed, it appears on my Galaxy Nexus running jelly bean, but NOT on a Nexus 7. i.e. The Nexus 7 and the Galaxy Nexus behaves differently even if they are running the same OS version... Is this because the Nexus 7 is not considered a *handset* ??? I feel this was not a good decision to have different behavior for different form factors that FUNCTIONALLY handicap the programs. Does anybody have information on this? Rudolf On Wednesday, September 19, 2012 10:42:44 PM UTC+2, Keith Wiley wrote: I don't have access to a Nexus 7 but I'm getting feedback from users that they can't access the menus in my app...like, at all...which I find perplexing since I use the same standard menus that all Android apps use (including the Android home-screen). If the Nexus 7 doesn't have a relatively obvious menu button, it seems to me that the majority of Android apps, including the home-screen, would be veritably unusable. Can anyone help me understand what's going on here? 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: Boxchip Android 4.0.3 “Voice Activity not found”
and the logcat shows? On Saturday, September 29, 2012 7:53:52 PM UTC+1, Marcelo Corvezola wrote: Im testing my app on a Boxchip Android 4.0.3 tablet, and my app crashes when using the speech recognizer intent. I've tested my app on many diff. devices, including generic China built android devices and the speech recognizer works on all of them. I tried using google's built in Browset searchVoice search on the Boxchip device, and when I hit the Mic icon I get a activity Not Found toast msg. Is this a known issue. Did this chip manufacturer ship this ROM without speech recognition? ScreenShot is running on Device. 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-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] An app developer is asking for my login credentials...
Hi there, I have a company building an app for me and they're asking for the login credentials to my Google Play account. Wouldn't this also give them access to my Gmail, Adsense, Adwords, etcetera accounts? Or can Google Play have a separate login? Thanks in advance, Sal C. -- 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] gridview laggy when scrolling
Hi, I just finisched an app where i use 103 png from the drawable folder in a GridView, point is the the scrolling si very laggy on my phone ( a galaxy nexus ) and on my friend phone too. I've surfed pretty everything on the web and still dont have found a solution, i've red that it's normal, i've red that google said to leave the gridview and use a listview giving each line how many columns i want via the ImageAdapter. Can anyone help me please ? Is there a way to have it fluid or should i change my system ? -- 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] Gtalk app crash issue caused by SQLite UNIQUE constraint.
Hi guys, Gtalk Crash Randomly while waiting for an incoming vedio/audio chat, here are logs: 09-19 15:22:40.177 1436 13204 W dalvikvm: threadid=35: thread exiting with uncaught exception (group=0x410a5438) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: FATAL EXCEPTION: Packet Processor 09-19 15:22:40.187 1436 13204 E AndroidRuntime: android.database.sqlite.SQLiteConstraintException: columns thread_id, real_date, type are not unique (code 19) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:727) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:1565) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:1514) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at com.google.android.gsf.talk.TalkProvider.updateInternal(TalkProvider.java:3123) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at com.google.android.gsf.talk.TalkProvider.update(TalkProvider.java:1500) 09-19 15:22:40.187 1436 13204 E AndroidRuntime: at android.content.ContentProvider$Transport.update(ContentProvider.java:235) It seems there is SQLite constraint error, the application attempt to insert/update duplicated records, please have a look, thanks. Best regards, Franklin -- 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 magnetometer sampling rate improvement/jitter reduction
I'd like to ask for some help regarding the sampling rate and jitter on the magnetometer. I'm working on a project with some people that involves a high rate magnetic field sampling application. Even though we have developed an algorithm to workaround the jitter and other issues we encountered, we'd like to improve the sampling rating somehow and, at the same time, if possible, attempt to reduce the sampling jitter which is worse than sampling at a lower rate. We are using a Samsung Nexus S and according to the tests we performed we observed that the sampling rates between 15ms and 20ms and, sometimes, peaks around 50 ms (this is between consecutive events). People that are more experienced with Android than us, might have a possible hint on how to address these issues. Even though we came up with different ideas for different approaches, we are not quite sure where the bottleneck could lie, besides the intrinsic sensor hardware constraints (AK8973 magnetometer). Our approaches are: 1. Modify the sensor device driver 2. Use Android NDK to develop native code in order to obtain the samples from the sensor (already tested - the results were the same as the ones obtained at the Java level) 3. Modify the Android API, that is, improve somehow how the events are handled 4. Root the phone and deactive unnecessary tasks running in the background 5. Attempt to modify at the kernel level the interrupts priorities I just wanted to ask for some hints/directions on how to address these issues, that is, what could be the best approach based on your experience and knowledge of Android and according to the location of the bottleneck. Thank you in advance for your attention. (I'm sorry for my english as I'm not a native speaker) -- 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: AutoCompleteTextView cursor position.
I had the same issue. Removing this line will solve your problem: myAutoText.setText(num); -- 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] Buttons- Application - Eclipse
Hi all, Currently using program; eclipse (recommended by Google), I've only just started, but I've come to a standstill, when you create a button, how do you make it link to an external source? And on that matter, how do you make it link to other pages? Thanks for your help! -Bailey -- 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 Canvas drawBitmap function
I'm trying to display a bitmap on canvas using the matrix. canvas.drawBitmap(currentBitmap, m_matrix, tempPaint); but the result appears, image seems weird. After that I have shown it using bounds canvas.drawBitmap(currentBitmap, 0, 0, tempPaint); But here image looks good, in both the cases image is not scaled. How should I set matrix properties for the initial display? Does the matrix display uses something else for showing the image because of that image is getting changed? Please suggest any tutorials for details explanation. -- 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: Android App - Python+Eclipse
You can use https://code.google.com/p/android-python27/ to embed your project (+Python2.7 interpreter) in an APK. Le jeudi 20 septembre 2012 23:09:33 UTC+2, Prat a écrit : Hello, I am a beginner of android apps. I am using eclipse to develop an android app for samsung galaxy tab. I have installed pydev plugin for eclipse too. However, I am unsure of how to bundle my python files and create a new android app. Basically, I do not know, where to put my python files (src/gen/res etc). Please help me with a reference material that can give detailed notes on the procedure. Thanks. Regards, Prat -- 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] OnBalloonTap problem!
Hi! I'm trying to finish my app, but I have an small problem (I think) I hope anybody here, could give me a hand. In my itemezedoverlay, I have this function: *protected boolean onBalloonTap(int i, OverlayItem item) { * * * * Toast.makeText(c, Calculando ruta... ,Toast.LENGTH_LONG).show(); * * * * double latitudo = 43.250064;* * double longitudo = -5.774496;* * * * double latitudd = 43.223914;* * double longitudd = -5.781582; * * * * * * String uri = http://maps.google.com/maps?saddr=+latitudo+,+longitudo+daddr=+latitudd+,+longitudd+mode=walking;; * * * * Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));* * intent.setClassName(com.google.android.apps.maps, com.google.android.maps.MapsActivity);* * c.startActivity(intent);* * * * return true;* * * *}* * * As you see, if you press over a place, you execute an intent, and it calls routing in Gmaps. That it works perfectly, but I wanted to know how can I pass from my main program, as a parametrer latitudd, latitudo, longitudd and longitudo. The app should make, if you press over on balloon, the route since where you are (I have a location service, that it works perfectly) and until where you pressed (so you know both locations. I hope anybody could understand what I'm trying to explain. So sorry, if my english it's not perfect. Cheers! Artemio -- 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] Creating custom tabbar - best approaches
Hi there, coming from a iOS background I'm digging a little bit deeper into the android stuff. As all of you know, there are tabbars in iOS which I can style with custom backgrounds and buttons. Now I would like to rebuild such a easy tabbar which is bottom aligned in an example android project. I know the interfaces guidelines say navigation should be on top, I just want to implement this bar as an experimental task. What I've got: - The app should require min. api lvl 8 - A background image, which has some curved top border with transparent background. This image has a min-width (in our case: 480px) - Also there should be lets say 5 buttons. So I've got 5 button images. What I've would like to know: - What would be the cleanest approach to solve this task? Subclassing a specific view? - How do I layout/draw custom views with the ADT plugin? I know I can create a layout which can be used by an activity but is there a way to define a custom widget on a visual way? - Regarding to my tabbar background: Should I try to convert it to a 9patch image? So that I only need to provide one image? What I've tried so far: - Created a fragment which has my tabbar image as background image. Problems here so far: How do I define a fixed height for this fragment? So that this is recognized by other activities. - Created a fragment which has a ImageView with my background image. Buttons were laid out by alignTo parameters which felt a little bit messy and confusing Don't get me wrong: I just want some buzzwords or hints which poke me to the right direction. Any hint will be appreciated Regards oni -- 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] Andoid Cp1251-encoding support
Hello. I need to know if Android-device supports Windows-style Cp1251 string encoding. Does it depend on Android version or device manufacturer? If yes, in what way? Thanks, Dmitry -- 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] NFC - “New Tag Collected” instead of reading tags of application
I have a class, which creates conncection to NFC and two activites. Both of them creates an object of that class so they can connect to NFC. Earlier it worked somehow but now I've got problem - my application doesn't do anything onNewIntent, even on the first activity. Instead of it, I can see New tag collected from build-in app called Tags (Nexus S). What should I do? Here is my topic on stackOverflow, no answers: http://stackoverflow.com/questions/12620880/new-tag-collected-instead-of-reading-tags-of-application-nfc-android -- 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] [Q] does anyone knows about Andar augmented reality library for android?
Hi, I'm still working on the sample code release of andar library I'm having hard time in placing new pattern. and changing the stock cube 3D model. I'm using this for my diploma thesis. hopes anyone could help me. sorry for my bad english. anyway my project is to print the pattern in t-shirt and use the app for viewing the design through the app. -- 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: sip demo
hey i have also same problem..i have used sip demo and it runs perfectly fine on emulator but it is not running on real device samsung galaxy fit 2.3.4 and samsung galaxy Y 2.3.6...so if u have any solution then plz guide me..Thanks in advance.. On Monday, January 30, 2012 3:26:54 PM UTC+5:30, Jagruti Sangani wrote: hello, i have used the sip demo which was on http://developer.android.com/guide/topics/network/sip.html link.but i got sipmanager as null result.and also api and voip support result me as false.i m using android 4.0.3 api 15 and try to call from emulator to asterisk.but not work bcz of may be manager as null.so reply me as soon as posible. -- 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] Nokia e90 android
Hey. I have a nokia e90 stoped in my house and i wanted to know that if is possible that to put android on it? -- 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] NFC PBtF function can't work on Android 4.0.4
Hi, I developing NFC function now, I discover the NFC jni source code different from Android 2.3.7 to Android 4.0.4. Those different caused NFC function PBtF(Power By the Field) can not work. Would you please help to answer that modify for what purpose? And how to turn on the NFC PBtf function in Android 4.0.4? YaoTsu LIn The source code show on following. /packages/apps/Nfc/jni/com_android_nfc_NativeNfcManager.cpp *In function com_android_nfc_NfcManager_doSelectSecureElement* /*Android 2.3.7 code base*/ ret = phLibNfc_SE_SetMode(seID, phLibNfc_SE_ActModeVirtual, nfc_jni_se_set_mode_callback, (void *)cb_data); /* Android 4.0.4 code base*/ if(seID == 0xABCDF0) { TRACE(Select UICC); ret = phLibNfc_SE_SetMode(seID, phLibNfc_SE_ActModeVirtual, nfc_jni_se_set_mode_callback, (void *)cb_data); } else { TRACE(Select SMX); ret = phLibNfc_SE_SetMode(seID, phLibNfc_SE_ActModeVirtualVolatile, nfc_jni_se_set_mode_callback, (void *)cb_data); } *In function com_android_nfc_NfcManager_doDeselectSecureElement* /*Android 2.3.7 code base*/ ret = phLibNfc_SE_SetMode(seID, phLibNfc_SE_ActModeOff, nfc_jni_se_set_mode_callback, (void *)cb_data); /* Android 4.0.4 code base*/ if(seID == 0xABCDF0) { TRACE(Deselect UICC); ret = phLibNfc_SE_SetMode(seID, phLibNfc_SE_ActModeOff, nfc_jni_se_set_mode_callback, (void *)cb_data); } else { TRACE(Deselect SMX); ret = phLibNfc_SE_SetMode(seID, phLibNfc_SE_ActModeDefault, nfc_jni_se_set_mode_callback, (void *)cb_data); } -- 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] NFC Problem
Hello, i've got a little problem with the NFC_NDEF_DISCOVERED action. I've got an application that when reads a NFC tag it gets the payload and sends it to a webservice. In fact everything is working good, i set the intent filter so the application wake up when the phone reads a tag with a specific URI and so on, but when my application is running and i read a tag with a different mime type or also the same but with a different uri andorid sends me a NFC_NDEF_DISCOVERED with the intent of the last scanned NFC. What can i do?? 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: Widget Layout Frustration
I'm having this exact problem.. was anyone ever able to come up with a way of doing this that is consistent across different home screens? It seems like the tCalendar app does it perfectly. Thanks. On Friday, October 30, 2009 12:40:59 AM UTC-4, Evan Ruff wrote: Hey Guys, I was hoping someone could help me with a home screen widget I'm trying to layout. Basically, I'm trying to layout my widget so it matched a standard home screen application shortcut perfectly. Basically, at this point, I'm about ~2px off and it's driving me crazy! Has anyone gotten this to match up just right? Should I be able to find this layout in the source somewhere? Any clues would be much appreciated. Here's my layout thus far: drawable/text_border.xml - For the black background around the text: shape xmlns:android=http://schemas.android.com/apk/res/android; solid android:color=#9900/ padding android:left=5dp android:right=5dp android:bottom=1dp android:top=1dp / corners android:radius=7dp / /shape layout/widget.xml - The widget itself: ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=center LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center ImageView android:id=@+id/icon android:layout_gravity=center android:src=@drawable/icon_gray android:layout_width=wrap_content android:layout_height=wrap_content android:paddingBottom=5px android:paddingTop=5px / TextView android:id=@+id/message android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/text_border android:textColor=# android:layout_gravity=center android:text=Assistant android:textSize=12px / /LinearLayout /FrameLayout Thanks for any help tuning this badboy. Thanks! Evan -- 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] Native server with web socket support?
I would like to host a server on Android that supports web sockets so I can push real time data from Android phone/tablet to connected web and mobile app clients. I will need to integrate the server code into a larger native app so I can access native Android features. Is this possible? I've viewed threads on SO and there's lots of interest but no clear answers. I've looked at iJetty but can't determine whether it supports web sockets as Jetty does. Many thanks in advance to anyone for answering such a basic question. -JillH -- 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] Requesting Location Updates official java code wont pass from compiler
i am new to android development (15 days old), and im trying to develop an application with live gps live position. I am going through developers.android tutorials and so far so good but i have been experiencing a dead end two days now i have just copied and pasted the official example code from http://developer.android.com/guide/topics/location/strategies.html#Updates which is: // Acquire a reference to the system Location ManagerLocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); // Define a listener that responds to location updatesLocationListener locationListener = new LocationListener() { public void onLocationChanged(Location location) { // Called when a new location is found by the network location provider. makeUseOfNewLocation(location); } public void onStatusChanged(String provider, int status, Bundle extras) {} public void onProviderEnabled(String provider) {} public void onProviderDisabled(String provider) {} }; // Register the listener with the Location Manager to receive location updates locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); and i get this message for the last line of code: Syntax error on tokens, ConstructorHeaderName expected instead Syntax error on token (, expected i cant use the locationManager object properly either, i mean i cannot even use its methods... also i have imported the location package (import android.location.*;) can you help me on that?Has anyone experienced the same problem? please let me know if you need more information, and thank you 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
[android-developers] Android and Z-Order
How do you animate views around one another using the 3.0 animation framework when you can't influence the Z-ORDER? If the layout of elements isn't guaranteed and the z-order is based off the layout order, how can you change the z-order to do effective animations? -- 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: Can't read Calypso card (NfcB ISO 14443-3B)
Hi Julien, Have you already can read the Calypso card? I'm trying to do the same with no succes. -- 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] ICS TaskManager like Animation [slide left|right]
Hi all, i'm trying to make an application (for my homework),i spent 3 days looking for making an animation that looks like the ICS taskManger,my activity shows a lot of images verticaly,when i swipe right or left(the slide animation should folow fingers), the image should disappear i tried with a lot of solutions but i never get the right one,please help me, and 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
[android-developers] Re: sendEmptyMessageAtTime issue
public final boolean sendEmptyMessageAtTime (int what, long uptimeMillis)Returns true if the message was successfully placed in to the message queue. Returns false on failure, usually because the looper processing the message queue is exiting. you can test the returns 在 2012年9月28日星期五UTC+8下午3时31分50秒,Dmitriy F写道: A handler that I defined doesn't get a message set with sendEmptyMessageAtTime. The time I get from updateTime.getTimeInMillis is valid. What am I missing here ? @Override protected void onResume() { super.onResume(); mNavigationBarFragment.configureFor(0); Calendar updateTime = Calendar.getInstance(); updateTime.set(Calendar.YEAR, 2012); updateTime.set(Calendar.HOUR_OF_DAY, 18); updateTime.set(Calendar.MINUTE, 40); updateTime.set(Calendar.SECOND, 0); if(mUpdateOnAirLabel.sendEmptyMessageAtTime(1, updateTime.getTimeInMillis())){ // messages gets placed } } private Handler mUpdateOnAirLabel = new Handler() { public void dispatchMessage(android.os.Message msg) { // doesn't get triggered } public void handleMessage(android.os.Message msg) { // doesn't get triggered } }; The time I get from the calendar object is right: ?php echo date(r, 1348753200578 / 1000); output: Thu, 27 Sep 2012 17:40:00 +0400 After that I've tried to offset from the current timestamp Calendar now = Calendar.getInstance(); long nowt = now.getTimeInMillis(); if(mUpdateOnAirLabel.sendEmptyMessageAtTime(1, now.getTimeInMillis() + 5000)){ ... } And it's not triggering either. What's wrong here ? -- 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] Complaining party of a trademark infringement mailed google the app can go back but no responde for over 2 weeks now..
Like the title says, so far I've sent 10 emails asking when my app will go back online since the complaining party mailed them it's ok to put the app back, and I've got back one mail saying the complaining party needs to mail them.. In every mail I include the email, the time and the subject of the email that says the app can go back (I was cc-ed) Anyone have a suggestion what else I could try besides mailing every day ? Thanks, Danny -- 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] HttpClient, connection refused, localhost
Hii mi name is alberto i am from Mexico, i am not speak Inglish, for this note is exelente.. very good... El martes, 29 de enero de 2008 06:58:09 UTC-6, Rick Genter escribió: On Jan 29, 2008, at 3:09 AM, n2 wrote: Hello! i am working on an android client which is calling methods of a REST web service. I am using the commons HttpClient of the android api. When i am calling a simple get method with HttpClient in the android emulator i get an exception, message is Connection refused. I cant see any stacktrace, but this is a another problem (Logging in android??) The (dummy) URL which is called: http://localhost/itsmyphone-server/rest/this/is/a/method When i am loading this URL with my browser everything is fine. When i am calling this Url by HttpClient in a JUnit test outside of android everything works fine, response is ok, no error. You can't use localhost; localhost is the (emulated) phone. You need to specify the IP address or DNS name of the actual web server. -- Rick Genter rick_...@comcast.net javascript: -- 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] USB to PC connection
I have an idea for an app that will both have a component that runs on the computer of the user and a component that runs on the phone. The idea will be that the two will communicate over wifi. To make this secure, I want to set up a public/private key pair on the computer and the phone. In order to do this in a user-friendly way, I want to do so automatically over usb. However, in exploring how much of what I want is actually possible on android, I have been unable to find out how to have an app communicate over usb to a program on the computer. Technically, it would be similar to using the computer as a USB accessory, but I doubt it would actually be similar enough to make this work. I have also read that it might be possible using ADB port forwarding, but this doesn't really look like it would make it more user-friendly for end users. Finally, I suppose I could solve the problems by only using the file system and mounting it, storing the public key in a file on the s-card, but it's not really the ease of use that I am looking for. Is there a way of communicating between an application running on a pc and an app running on an android device that I have missed? Is there a mistake in my current understanding of the possibilities? -- 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: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.
http://www.mobisoftinfotech.com/blog/android/android-ui-design-tips-for-samsung-galaxy-note/ read the above link. It is very good. -- 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] Any news on when the market/play/whatever stats will update properly?
This is getting ridicolous now, the stats stop updating for days, the counts when they do update are not accurate, instead of changing the name or creating a useless console with no extra functionality shouldnt at last Google provide us with real stats? Dont need any graphs or anything created, a json, xml or even a simple csv is fine. Google devs use itunes connect and I am sure they do use the API there to track stats isnt it time after 16 different Android API's to at last get the basics required by a dev? We will obviously never be able to reply to comments if we are not top devs or get access to any other usefull tool, at least give us proper updating stats. -- 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] WebView zoom
Hello, I'm using a WebView and I'd like to keep zoom value, after the user changed it using pinch-to-zoom or visual controls. To do it, I'm restoring zoom value in this way: public void onPageFinished(WebView webView, String url) { webView.loadUrl(javascript:(function() { + document.getElementsByTagName('body')[0].style.zoom=' + zoomValueToRestore + '; })()); } Anyway the problem is that after using this code, you can't zoom OUT anymore (but you can zoom IN). For some reason the zoomValueToRestore becomes the new minimum-zoom-value. Why? -- 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] Does Jelly Bean support Ext4 formatted external SD card?
Does anyone know if Jelly Bean supports ext4 formatted external SD card? I found this commit below. commit 344ca10856f3d3087a3288ce8f91ad83665d93fb Author: Kenny Root *kr...@google.com* kr...@google.com Date: Tue Apr 3 17:23:01 2012 -0700 Add in ext4 support for ASEC containers Now forward locked applications will be in ASEC containers both internal to the system and externally. This change adds support for putting applications in ext4-based ASECs. Change-Id: I8d6765b72dd2606e429c067b47a2dbcaa8bef37d It seems that ext4.cpp/ext4.h files have been added in /system/vold/ folder but not sure these are only for ASEC partition... Anyone who has any information about this, please let me know. and I wonder if any android mobile device in market these days support ext4 formatted external SD card. regards, -Mina -- 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: Feature request: Notification previews on the lockscreen like iOS 5 or Lockinfo
I have been looking for the same functionality but unfortunately it is still missing on Android 4.1. I guess there are many ex-iphone users are seeking for the same function out there. I really hate to unlock my screen, and then pull down the notification bar before I can have a preview of texts, calls and whatsapp notifications -- 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] VideoView not scaling
Hi, I'm currently having an issue with scaling the videoview through a pinch zoom action. Basically, I've added a listener [ScaleGestureDetector.SimpleOnScaleGestureListener] to my videoview instance (I've extended my video view class). When the scaling action happens, the onScale method of the listener is called. Then I scale width and the height of the video player. However, here's my issue, The size of the video view is scaled properly but the content in it does not get scaled in order to fit the window. The size of the video content remains the same. Did anybody get that issue in the past? Thanks JB -- 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 login and registration using web services
hi, I am using web services to store the database for Login and registration page for the game application we are using glass fish server I am android beginner, how to do it? -- 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] Z-Order of Views During Animation with ViewPropertyAnimator
Guys, Am I correct in my understanding that you cannot change the z-ordering of views in respect to one another whilst animating with ViewPropertyAnimator? For example, if I add a whole bunch of things to a LinearLayout, the z-order is done so that the last added item has the highest z-order. I want to be able to change the z order during animation. How do I do that? bringToFront does not work John -- 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] [Help] Eclipse AVD error
Hi I have an issue in Eclipse. When I try to run the application on the AVD I get two errors: The first appears in the box AVD: emulator: ERROR: Could not write hardware.ini to C: \ Users \ Philip \. android \ avd \ Testapp.avd / hardware-qemu.ini: Permission denied The second in the console: Error: Failed to save settings file 'C: \ Users \ myName \. Android \ androidtool.cfg': File not found I have the whole package of Android Users. I do not know if administrator (I run the Eclipse as admin), or if the folder is read-only. Do not know what happens. Working from W7. Thank U -- 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: Android and JMX
G'day, I've been looking at doing a similar thing Brian, did you ever come up with a solution? I haven't seen anything on the Internet on how to achieve this. Cheers, Jason On Wednesday, 11 May 2011 00:24:14 UTC+10, brian lee wrote: I am trying to write a simple app to monitor some mbeans of another java application running. How can I get android to import javax.management so I can create a connection to the jmx? 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: Isolated database tests
Sorry for resurrecting the thread but I was unable to find answer other place than the docs. You can indeed make isolated database tasts by keeping a reference to your IsolatedContext and calling deleteDatabase(name). private DatabaseManager manager = null; private IsolatedContext isolate; @Override protected void setUp() throws Exception { super.setUp(); if(isolate == null) isolate = new IsolatedContext(null, mContext); if(manager == null) manager = new DatabaseManager(isolate); System.out.println(this.getClass().getSimpleName() + setting new isolatedcontext); } @Override protected void tearDown() throws Exception { super.tearDown(); isolate.deleteDatabase( databaseName ); } -- 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] Creating custom tabbar - best approaches
Forewarning: I don't do anything with Android GUIs, I just hack on internals,..., that being said, ActionBar Sherlock might be worth a look... (I *think*)... kris On Wed, Sep 26, 2012 at 5:53 AM, onigunn asrij...@gmail.com wrote: Hi there, coming from a iOS background I'm digging a little bit deeper into the android stuff. As all of you know, there are tabbars in iOS which I can style with custom backgrounds and buttons. Now I would like to rebuild such a easy tabbar which is bottom aligned in an example android project. I know the interfaces guidelines say navigation should be on top, I just want to implement this bar as an experimental task. What I've got: The app should require min. api lvl 8 A background image, which has some curved top border with transparent background. This image has a min-width (in our case: 480px) Also there should be lets say 5 buttons. So I've got 5 button images. What I've would like to know: What would be the cleanest approach to solve this task? Subclassing a specific view? How do I layout/draw custom views with the ADT plugin? I know I can create a layout which can be used by an activity but is there a way to define a custom widget on a visual way? Regarding to my tabbar background: Should I try to convert it to a 9patch image? So that I only need to provide one image? What I've tried so far: Created a fragment which has my tabbar image as background image. Problems here so far: How do I define a fixed height for this fragment? So that this is recognized by other activities. Created a fragment which has a ImageView with my background image. Buttons were laid out by alignTo parameters which felt a little bit messy and confusing Don't get me wrong: I just want some buzzwords or hints which poke me to the right direction. Any hint will be appreciated Regards oni -- 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] Nokia e90 android
Your question is off-topic for this list. This list is for developing applications with the Android SDK. On Wed, Sep 26, 2012 at 3:22 PM, ddimensao ddimen...@gmail.com wrote: I have a nokia e90 stoped in my house and i wanted to know that if is possible that to put android on it? -- 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.2 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-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] Requesting Location Updates official java code wont pass from compiler
On Wed, Sep 26, 2012 at 6:25 AM, Markos Anastasios goku...@gmail.com wrote: and i get this message for the last line of code: Syntax error on tokens, ConstructorHeaderName expected instead Syntax error on token (, expected Perhaps you incorrectly pasted it. Off the cuff, what is there looks fine. Here are two sample apps that uses LocationManager and requestLocationUpdates(): https://github.com/commonsguy/cw-omnibus/tree/master/Internet/Weather https://github.com/commonsguy/cw-omnibus/tree/master/Location/Periodic -- 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.2 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-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] Does Jelly Bean support Ext4 formatted external SD card?
This list is for developing applications with the Android SDK. Questions regarding the Android open source code are better asked on a list hosted at: http://source.android.com/community/index.html On Thu, Sep 27, 2012 at 12:46 AM, Mina goldn...@gmail.com wrote: Does anyone know if Jelly Bean supports ext4 formatted external SD card? I found this commit below. commit 344ca10856f3d3087a3288ce8f91ad83665d93fb Author: Kenny Root kr...@google.com Date: Tue Apr 3 17:23:01 2012 -0700 Add in ext4 support for ASEC containers Now forward locked applications will be in ASEC containers both internal to the system and externally. This change adds support for putting applications in ext4-based ASECs. Change-Id: I8d6765b72dd2606e429c067b47a2dbcaa8bef37d It seems that ext4.cpp/ext4.h files have been added in /system/vold/ folder but not sure these are only for ASEC partition... Anyone who has any information about this, please let me know. and I wonder if any android mobile device in market these days support ext4 formatted external SD card. regards, -Mina -- 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 -- 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.2 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-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: Unable to execute Bluetooth HDP Demo
Hi all. I've found a HDP application on Google Play. https://play.google.com/store/apps/details?id=jp.littlesoftware.dnet.bts I think that It's the only HDP application with HDP API in the world. It can communicate with these devices. AD UC-321PBT-C AD UA-767PBT-C AD UC-411PBT-C I don't have any of them. So I want someone who have these devices to check the steps below. 1.communicate with the device. 2.kill the app proccess or turn off Bluetooth in Android config. 3.try to recommunicate. If you can recommunicate in step3, the application would unregister AppConfig correctly. And we can say that, there are some way to unregister AppConfig correctly and make HDP application what works fine. 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] NDK - What is host system?
I am getting this error while using the NDK on a project: checking build system type... i686-pc-linux-gnu checking host system type... Invalid configuration `arm-linux- androideabi': system `androideabi' not recognized aconfigure: error: /bin/sh ./config.sub arm-linux-androideabi failed It's obvious what the build system type is, but the documentation seems to not even mention what a HOST SYSTEM TYPE is. -- 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] Hybrid App: Need some help with showing Listview.
Hi there, I'm developing a hybrid app and I need to show a listview in my native code and the values for the view are fetched from a HTML. How do I achieve that? Regards, Sowmya -- 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] A month to go till Droidcon London - October 25th 26th!
*Droidcon is UK largest conference dedicated to Android development and applications, it’s a unique opportunity to meet the Android community, get hands on knowledge about Android development and see the latest in Androidapplications and technologies. The multi-track conference attracts the best speakers from the Android development community, on the latest topics, tablets, enterprise, design ADK. The barcamp is a unique opportunity to share and exchange experience with the 600 Android enthusiasts present at the event. The democamp is a privileged moment to see or show the latest in Android software and hardware applications.* The line-up is filling up, here are some featured speakers: Mark Murphy, Simon Cross, Julian Harty, Matt Gaunt, Lars Hard, Al Sutton. Companies present includes Google, Samsung, Songkick, SoundCloud, Facebook and many more! See the full-line and get involved - http://uk.droidcon.com/ -- 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] Difference between Connect and createGroup in wifi direct
Hi, I am trying to create a network group with wifi direct. I have come across two methods 1. public void connect (WifiP2pManager.Channelhttp://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.Channel.html c, WifiP2pConfighttp://developer.android.com/reference/android/net/wifi/p2p/WifiP2pConfig.html config, WifiP2pManager.ActionListenerhttp://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html listener) Start a p2p connection to a device with the specified configuration. 2. public void createGroup (WifiP2pManager.Channelhttp://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.Channel.html c, WifiP2pManager.ActionListenerhttp://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html listener) Create a p2p group with the current device as the group owner. This essentially creates an access point that can accept connections from legacy clients as well as other p2p devices. whats the basic difference two? Do I need to *call connect on every device to add them to the group*? Or whether *createGroup() will automatically establish a network* with available peers and* for every new peer I have to call connect()* to add it to the group? How can I properly create a group? How does the concept pf group works? Thanks for your 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] TextureView Canvas
Hello, I am currently working on an app that requires computations/rendering based on a variety of user inputs. I have implemented the SurfaceView and things work as expected. But I started facing performance issues when I tried to put this inside a horizontal scroll view. Obviously it is not intended to work this way - but I tried anyway :) Based on what I have read - it appears like I have to move to TextureView. But i am unable to override the onDraw, and therefore cannot perform the necessary drawing using the Canvas. This might be a trivial question - but I wanted to know if we can use TextureView to draw primitives on the screen using a Canvas? The only examples I have seen thus far show the use of video/camera/openGL rendering on the TextureView. Any help on this would be great. Thanks much -Ajit -- 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] OnKeyListener errors
Hi, Could anyone tell me what I'm doing wrong here? using System;using Android.App;using Android.Content;using Android.Runtime;using Android.Views;using Android.Widget;using Android.OS;using Android.Text;using Android.Views;using Android.Views.KeyEvent;using Android.Widget.EditText;using Android.App.Activity;using Android.OS.Bundle;using Android.Text.Util;using Android.Views.InputMethods.InputMethodManager; namespace SiteZoeker { [Activity(Label = SiteZoeker, MainLauncher = true, Icon = @drawable/icon)] public class Activity1 : Activity { EditText mEdit; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the main layout resource SetContentView(Resource.Layout.Main); mEdit=(EditText)FindViewById(Resource.Id.txtSitenummer); mEdit.SetOnKeyListener(EnterHit); } private View.SetOnKeyListener Enterhit = new View.SetOnKeyListener { public Boolean onKey(View v, int keyCode, KeyEvent Event) { if ((Event.KeyCode == Keycode.Enter)) { mEdit.RequestFocus(); return true; } else return false; } }; }} The red parts are the ones giving me the error: Error 3 Type or namespace definition, or end-of-file expected Error 4 The name 'EnterHit' does not exist in the current context Error 5 'Android.Views.View.SetOnKeyListener(Android.Views.View.IOnKeyListener)' is a 'method' but is used like a 'type' Error 7 Invalid initializer member declarator Error 2 } expected Error 1 ; expected Error 6 'Android.Views.View.SetOnKeyListener(Android.Views.View.IOnKeyListener)' is a 'method' but is used like a 'type' I use Visual Studio 2010 SP1 with Monodroid Eval installed. br, Eric -- 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: Unable to execute Bluetooth HDP Demo
Hi all. I've found a HDP application on Google Play. https://play.google.com/store/apps/details?id=jp.littlesoftware.dnet.bts I think that It's the only HDP application with HDP API in the world. It can communicate with these devices. AD UC-321PBT-C AD UA-767PBT-C AD UC-411PBT-C I don't have any of them. So I want someone who have these devices to check the steps below. 1.communicate with the device. 2.kill the app proccess or turn off Bluetooth in Android config. 3.try to recommunicate. If you can recommunicate in step3, the application would unregister AppConfig correctly. And we can say that, there are some way to unregister AppConfig correctly and make HDP application what works fine. Thanks. On Tuesday, July 17, 2012 8:07:58 PM UTC+9, wambin wrote: For my 6 monthes reseach, I understand that below. No one can build Android HDP application with this HDP API. (Some people built HDP app to use Bluez with JNI. search in youtube.) I cann't find any Android HDP app in markets. (it has taken 6 monthes over since HDP API to be published!) So many people have troubles about HDP demo. Android API developers don't take any action about it. (4.1.1 jellybean has same problems http://code.google.com/p/android/issues/detail?id=26704can=1q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars ) The only way to report the problem to Android API developers is Google group Android. (http://code.google.com/p/android/issues/list) developer.android.com dosen't publish mail address but provide this forum. I want to add star to the HDP issues( http://code.google.com/p/android/issues/detail?id=26704q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars) API developers to see, if no one has solution. Regards. On Tuesday, July 17, 2012 4:49:41 PM UTC+9, jfernandez wrote: Hi wambin, Then, you have found the same troubles that all of us. Regards. On Tue, Jul 17, 2012 at 7:59 AM, wambin ambiti...@gmail.comjavascript: wrote: Hi, thanks to reply. The problem is that ApplicationConfiguration remain, in spite of calling unregisterAppConfiguration(). I confirmed the demo can communicate with a health device at first time, but second time or later it cann't. Sometimes Android reboots when I unregister the application config and REregister. The demo can communicate only once whenever rebooting. My health devices blood pressure: HEM-7081-IT weighing machine: HBF-206IT pedometer: HJ-720IT I can communicate currectly with all of these devices and get health data.(only once whenever rebooting) On Thursday, July 12, 2012 6:06:55 PM UTC+9, jfernandez wrote: Hi wambin: Could you tell more about the exact problem that you are experiencing? And, what's the medical device that you are using? Regards. On Tue, Jul 10, 2012 at 12:16 PM, wambin ambiti...@gmail.comjavascript: wrote: Hi jfernandez and all. I've had the same problem for half a year. My device is Galaxy Nexus SC-04D ver4.0.4. I've not solved this problem yet, in spite of half a year researches. I gradually be sure that this is a bug of unregisterAppConfig(). Here is a report about this problem. Google android group http://code.google.com/p/android/issues/detail?id=26704can=1q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars I think this is a only way to report the bug to Android API developers, because developer.android.com provides this forum as a Support. So, I want you to add a star or comment to this issue, if you have the same problem. And wish to be debug. On Thursday, February 2, 2012 8:05:51 PM UTC+9, jfernandez wrote: Hi all, I have observed a strange and undesirable behaviour that I'm going to describe. When an HDP channel is stablished, the Android system starts a long proccess of freeing memory (I have lots of Logcat messages like dalvikm - GC_CONCURRENT freed 494K ...), even in some occasions, the system crashes and the smartphone is rebooted. I don't know if this is a problem of my ROM/smartphone (I'm using Android 4.0.3 ICS). Does anybody has the same problem? Thanks and regards! On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I'm executing the BluetoothHDPDemo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone isunableto open the channel connectionHDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample
[android-developers] WifiDirect P2P Connection
Dear Android developers, I using WifiDirect sample program for making WifiP2P connection. I want to not show message-Dialog(Arrow connecting other Android Yes or No) on Android when WifiP2P connecting. Anyone know what not show message-Dialog when WifiP2P connection.or Hide it. -- 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] How to create a secure web service client in android(Mutual Certificates Security)
I have successfully tested a simple soap web service using *ksoap2* in android.But actually what i need is to access a web service which implements *secure web service* given in this examplehttp://docs.oracle.com/cd/E17802_01/webservices/webservices/reference/tutorials/wsit/doc/WSIT_Security9.html#wp162511 .I have successfully run and tested this with java client.But is it possible to access this types of web service in android using ksoap2 or something else.*I mean like giving client private key*..etc.If it is possible please can anyone show me how to do it. 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] if apk have not been installed, how to get it's Context?
If apk have not been installed, how to get it's Context? When i used createPackageContext, it just throw me NameNotFoundException. So, i need your suggest and help. 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] Connecting two headsets to the same mobile or tablet
Hi Is there a way to connect two bluetooth or one bluetooth headset and another wired headset to the same mobile phone or tablet so two people can listen to the same audio file playing on the device? I think this could be a very useful feature for people who would like to share the same music while they are having a walk or a jog or even sleeping together. The idea and it's applications could be developed further once it is out there... Look forward to hear from you soon. Sam -- 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] Testing In-app billing
Hi there! I try to implement In-app billing in my app. So far, my implementation is going well and i would to test it with my real product ID. But I have a doubt about how to do it: My app is currently active and published on Google Play. My In-app billing implementation will be a part of the next update. The documentation says that: You do not need to publish your application to do end-to-end testing. You only need to upload your application as a draft application to perform end-to-end testing. Ok but as my app is already published, I cannot create another one with the same package name and save it as a draft. So my question is: Can I upload the new version of my app (with In-app billing implementation), leave it as desactivate and test it In-app billing successfully? Or do I must rename the main package and create a new draft application? 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] Android motors
I'am doing this with my Samsung Nexus. I use a USB to serial converter and the following drive system. http://www.robot-electronics.co.uk/acatalog/Drive_Systems.html Roy 2012/9/28 bob b...@coolfone.comze.com Have any of you used Android devices to control electrical motors? I'm thinking of maybe doing this, but I don't know what the state of the art is. -- 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] if apk have not been installed, how to get it's Context?
On Thu, Sep 27, 2012 at 9:42 PM, nick lee zzvc...@gmail.com wrote: If apk have not been installed, how to get it's Context? When i used createPackageContext, it just throw me NameNotFoundException. So, i need your suggest and help. Thanks. AFAIK, this is not possible. However, APK files are ZIP files, so certain contents may be accessible by using java.util.zip classes. -- 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.2 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-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] How to apply GPL license to Android App ?
Hi to all, I write this mail because I'd like to apply GPL license to my Android Apps. I read some step from [url ] www.gnu.org)http://www.gnu.org/licenses/gpl-howto.it.html[/url] and I understand I have to do the followings steps : 1. Every file should have a copyright line Esempio: /*Copyright 2012 Angelo Luciani*/ 2. Every file should have a reference to the license Esempio /* Nome-Programma is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Nome-Programma is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Nome-Programma. If not, see http://www.gnu.org/licenses/ */ 3. The code to be shared 4. A complete license shoud be present into the Project *IN REGARD OF THIS I HAVE THE FOLLOWING QUESTIONS !* D1. I wrote point 1 and 2 only to .JAVA files, what's about .XML files, I need to write them? D2. What's about the database ? I create a .db SQLITE database. Is it necessary insert GPL reference on it ? D3. apk packet is without .java files. Is it necessary to add them into the packet ? If I publish the application source on the net I need to write the link in every code source files ? D4. If you already use GPL license for Android Apps could you check if all steps are correct ? Thanks in advance. Angelo -- 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] An app developer is asking for my login credentials...
On Wed, Sep 26, 2012 at 10:51 AM, Sal Colascione III clazi...@gmail.comwrote: Wouldn't this also give them access to my Gmail, Adsense, Adwords, etcetera accounts? Yes. Or can Google Play have a separate login? It can if you create a different account for distributing apps. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] Re: Widget Layout Frustration
This can be difficult considering that: - 2.3 pushed home screen icons down relative to widgets (or was it the other way around?), except HTC devices, where 2.3 has a lot of 2.1-2.2 elements... - 4.0 and 4.1 surrounds widgets with additional padding (when it remembers to, and its memory is not perfect) - there are replacement launchers - there are manufacturer-specific launchers Now you really wanted to get a close match, I'd recommend you look in Launcher2 sources. However, IIRC, it uses a custom View subclass to render the shortcuts - something a 3rd party widget can't do (the set of views that can be used in a widget is limited). -- K 2012/9/28 Fred Jones fjones8...@gmail.com I'm having this exact problem.. was anyone ever able to come up with a way of doing this that is consistent across different home screens? It seems like the tCalendar app does it perfectly. Thanks. On Friday, October 30, 2009 12:40:59 AM UTC-4, Evan Ruff wrote: Hey Guys, I was hoping someone could help me with a home screen widget I'm trying to layout. Basically, I'm trying to layout my widget so it matched a standard home screen application shortcut perfectly. Basically, at this point, I'm about ~2px off and it's driving me crazy! Has anyone gotten this to match up just right? Should I be able to find this layout in the source somewhere? Any clues would be much appreciated. Here's my layout thus far: drawable/text_border.xml - For the black background around the text: shape xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android solid android:color=#9900/ padding android:left=5dp android:right=5dp android:bottom=1dp android:top=1dp / corners android:radius=7dp / /shape layout/widget.xml - The widget itself: ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.**android.com/apk/res/http://schemas.android.com/apk/res/ android android:layout_width=fill_**parent android:layout_height=fill_**parent android:layout_gravity=**center LinearLayout xmlns:android=http://schemas.** android.com/apk/res/ http://schemas.android.com/apk/res/ android android:orientation=**vertical android:layout_width=wrap_**content android:layout_height=wrap_**content android:layout_gravity=**center ImageView android:id=@+id/icon android:layout_gravity=**center android:src=@drawable/icon_**gray android:layout_width=wrap_**content android:layout_height=wrap_**content android:paddingBottom=5px android:paddingTop=5px / TextView android:id=@+id/message android:layout_width=wrap_**content android:layout_height=wrap_**content android:background=@**drawable/text_border android:textColor=# android:layout_gravity=**center android:text=Assistant android:textSize=12px / /LinearLayout /FrameLayout Thanks for any help tuning this badboy. Thanks! Evan -- 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] How to create a secure web service client in android(Mutual Certificates Security)
So I am unclear: what part of this is specific to Android that you don't have available. On Android you typically only run the client side of the service... kris On Thu, Sep 27, 2012 at 1:50 AM, sampath premarathna sampathpremarat...@gmail.com wrote: I have successfully tested a simple soap web service using ksoap2 in android.But actually what i need is to access a web service which implements secure web service given in this example .I have successfully run and tested this with java client.But is it possible to access this types of web service in android using ksoap2 or something else.I mean like giving client private key..etc.If it is possible please can anyone show me how to do it. 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] TextureView Canvas
Hi, If you were using SurfaceView's onDraw() method then you were not getting any benefit. You have to use lockCanvas()/unlockCanvasAndPost() and post on the underlying Surface. TextureView works in a similar way: you can call lockCanvas()/unlockCanvasAndPost(). However, it seems all you need is a View. It's easier to use and since you are not using SurfaceView properly anyway it will do the same thing. On Thu, Sep 27, 2012 at 2:19 PM, Ajit Vasudevan vasu.a...@gmail.com wrote: Hello, I am currently working on an app that requires computations/rendering based on a variety of user inputs. I have implemented the SurfaceView and things work as expected. But I started facing performance issues when I tried to put this inside a horizontal scroll view. Obviously it is not intended to work this way - but I tried anyway :) Based on what I have read - it appears like I have to move to TextureView. But i am unable to override the onDraw, and therefore cannot perform the necessary drawing using the Canvas. This might be a trivial question - but I wanted to know if we can use TextureView to draw primitives on the screen using a Canvas? The only examples I have seen thus far show the use of video/camera/openGL rendering on the TextureView. Any help on this would be great. Thanks much -Ajit -- 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 -- Romain Guy Android framework engineer romain...@android.com -- 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] Problems: How to use gdata Java library for android correctly?
What device are you running this on? -- Make sure this is a Google API capable device, though iirc your install would fail for other reasons if you didn't have that... -- Make sure your build path and linking configuration is set up properly... This error indicates it's not. kris On Fri, Sep 28, 2012 at 11:47 AM, Viktor Vologzanin wix...@gmail.com wrote: Hi experts, I have faced with the problem of implementing Youtube API to my android application. Tell you what I have already done for it: create Client and Developer ID, upload different jar files( servlet, mail, activation, gdata-core, gdata-youtube, gdata-youtube-meta, gdata-media, gdata-client, gdata-client-meta, guava-11.0.2, jsr305) and set up build path for them (after that app becomes to run in emulator very slowly I think it`s because of lot of jar files or not?). Set Internet permission and write a piece of code which is below. However, I have always get one exception that I didn`t initialize API but I did it or I did a mistake somewhere? Could you help me to implement it. import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import com.google.gdata.client.youtube.YouTubeService; import com.google.gdata.data.youtube.VideoEntry; import com.google.gdata.util.AuthenticationException; import com.google.gdata.util.ServiceException; import android.app.Activity; public class MainActivity extends Activity implements OnClickListener{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); init(); YouTubeService service = new YouTubeService(, X); try { service.setUserCredentials(xx...@x.com, ); String videoEntryUrl = http://gdata.youtube.com/feeds/api/videos/yC6OHdcqFk8;; VideoEntry videoEntry = service.getEntry(new URL(videoEntryUrl), VideoEntry.class); Log.e(Video Text: , videoEntry.getTitle().getPlainText()); } catch (AuthenticationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ServiceException e) { // TODO Auto-generated catch block e.printStackTrace(); } } Log: 09-24 11:39:48.521: D/dalvikvm(331): GC_EXTERNAL_ALLOC freed 56K, 53% free 2574K/5379K, external 1625K/2137K, paused 50ms 09-24 11:39:49.001: W/dalvikvm(331): Unable to resolve superclass of Lcom/google/gdata/util/common/net/UriParameterMap; (451) 09-24 11:39:49.001: W/dalvikvm(331): Link of class 'Lcom/google/gdata/util/common/net/UriParameterMap;' failed 09-24 11:39:49.001: W/dalvikvm(331): VFY: unable to find class referenced in signature (Lcom/google/gdata/util/common/net/UriParameterMap;) 09-24 11:39:49.001: W/dalvikvm(331): Unable to resolve superclass of Lcom/google/gdata/util/common/net/UriParameterMap; (451) 09-24 11:39:49.001: W/dalvikvm(331): Link of class 'Lcom/google/gdata/util/common/net/UriParameterMap;' failed 09-24 11:39:49.001: W/dalvikvm(331): VFY: unable to find class referenced in signature (Lcom/google/gdata/util/common/net/UriParameterMap;) 09-24 11:39:49.001: W/dalvikvm(331): Unable to resolve superclass of Lcom/google/gdata/util/common/net/UriParameterMap; (451) 09-24 11:39:49.001: W/dalvikvm(331): Link of class 'Lcom/google/gdata/util/common/net/UriParameterMap;' failed 09-24 11:39:49.011: W/dalvikvm(331): VFY: unable to resolve static field 3521 (EMPTY_MAP) in Lcom/google/gdata/util/common/net/UriParameterMap; 09-24 11:39:49.011: D/dalvikvm(331): VFY: replacing opcode 0x62 at 0x000a 09-24 11:39:49.011: W/dalvikvm(331): Unable to resolve superclass of Lcom/google/gdata/util/common/net/UriParameterMap; (451) 09-24 11:39:49.011: W/dalvikvm(331): Link of class 'Lcom/google/gdata/util/common/net/UriParameterMap;' failed 09-24 11:39:49.011: I/dalvikvm(331): Could not find method com.google.gdata.util.common.net.UriParameterMap.parse, referenced from method com.google.gdata.client.Service.computeQueryMap 09-24 11:39:49.011: W/dalvikvm(331): VFY: unable to resolve static method 11320: Lcom/google/gdata/util/common/net/UriParameterMap;.parse (Ljava/lang/String;)Lcom/google/gdata/util/common/net/UriParameterMap; 09-24 11:39:49.011: D/dalvikvm(331): VFY: replacing opcode 0x71 at 0x000d 09-24 11:39:49.011: D/dalvikvm(331): VFY: dead code 0x000c-000c in Lcom/google/gdata/client/Service;.computeQueryMap (Lcom/google/gdata/client/Service$GDataRequest;)Lcom/google/gdata/util/common/net/UriParameterMap; 09-24 11:39:49.011: D/dalvikvm(331): VFY: dead code 0x0010-0011 in Lcom/google/gdata/client/Service;.computeQueryMap
Re: [android-developers] Android and Z-Order
In all built-in layouts, the z-order is based on the index of the children. You can influence the z-order by overriding getChildOrder (see ViewGroup's documentation.) You can also use methods like bringToFront() or add/remove to move children around but these methods will cause relayouts. On Fri, Sep 28, 2012 at 10:48 PM, John j...@highvolumeseller.com wrote: How do you animate views around one another using the 3.0 animation framework when you can't influence the Z-ORDER? If the layout of elements isn't guaranteed and the z-order is based off the layout order, how can you change the z-order to do effective animations? -- 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 -- Romain Guy Android framework engineer romain...@android.com -- 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] Abusing accessibility property
I am currently investigating the possibilities for an app idea I recently had. One of the things I want the app to be able to do is read your notifications. However, this normally can't be done. My research has led me to believe that if I mark my app as an accessibility tool and have my users enable it as such. Is this correct? Are there any disadvantages to marking an app as an accessibility app when it isn't? (Besides having to explain to my users to turn it on as such, even though it actually isn't an accessibility tool.) -- 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] Testing In-app billing
On Fri, Sep 28, 2012 at 3:28 AM, Thomas Bouron tbou...@gmail.com wrote: Ok but as my app is already published, I cannot create another one with the same package name and save it as a draft. Yes, you can. Upload it but don't Activate it, I believe. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] OnKeyListener errors
On Thu, Sep 27, 2012 at 1:23 PM, EricW this.is.me@gmail.com wrote: I use Visual Studio 2010 SP1 with Monodroid Eval installed. That's probably what you're doing wrong. The official Android tool is Eclipse with the right plug ins. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] Hybrid App: Need some help with showing Listview.
On Thu, Sep 27, 2012 at 12:27 AM, Guru, Sowmya sowmyasg...@gmail.comwrote: I'm developing a hybrid app and I need to show a listview in my native code and the values for the view are fetched from a HTML. How do I achieve that? Write code to achieve what you described. If you need help, try asking a more specific question. - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] android login and registration using web services
On Thu, Sep 27, 2012 at 1:43 AM, Girish Sawant girish.sawan...@gmail.comwrote: how to do it? Do what? - TreKing http://sites.google.com/site/rezmobileapps/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
Re: [android-developers] OnBalloonTap problem!
On Fri, Sep 28, 2012 at 6:05 AM, Artemio Cienfuegos a.cienfueg...@gmail.com wrote: As you see, if you press over a place, you execute an intent, and it calls routing in Gmaps. That it works perfectly You are relying on a very specific app and very specific Activity name to exist. This is a bad idea. , but I wanted to know how can I pass from my main program, as a parametrer latitudd, latitudo, longitudd and longitudo. What, what, what, and what? What are those four words? The app should make, if you press over on balloon, the route since where you are (I have a location service, that it works perfectly) and until where you pressed (so you know both locations. Google Google Directions API - TreKing http://sites.google.com/site/rezmobileapps/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
[android-developers] Re: An app developer is asking for my login credentials...
You might want to create a user account for them so they can upload apps without giving them the keys to the kingdom. I also suggest that you do the final compiling, signing and uploading of the app yourself. Doing so will ensure you won't lose control to the app. -John Coryat On Wednesday, September 26, 2012 10:51:15 AM UTC-5, Sal Colascione III wrote: Hi there, I have a company building an app for me and they're asking for the login credentials to my Google Play account. Wouldn't this also give them access to my Gmail, Adsense, Adwords, etcetera accounts? Or can Google Play have a separate login? Thanks in advance, Sal C. -- 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: Fragment Transactions
Thanks Blake. The RouteCategoryFragment is not a splash screen. There is a separate splash screen activity with a button. Clicking that button launches another activity which has the RouteCategoryFragment. Please let me know what I need to do replace fragment and add it to backstack. Thanks Apurva On Fri, Sep 28, 2012 at 11:53 AM, G. Blake Meike blake.me...@gmail.comwrote: I think you've misunderstood the use of the Fragment Tag. It looks like RouteCategoryFragment is the splash screen, yes? When someone clicks you want to replace it with a CountyListFragment? If so you need to use the same tag (probably COUNTY_TAG). That is the unique identifier for the fragment. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- 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] Hardware reccomendations: Next development laptop
Since the hardware would primarily be used for developing Android, I think this is on topic. My three year old Vista laptop does do well at complex builds in Eclipse, I'd just like to do more than one per day. ;) What do you recommend for my next development laptop? I really don't enjoy hardware shopping any more than car shopping. . I have a vague idea that I want plenty of processor speed, plenty of memory, Solid State drive, and probably 15 inch screen. I do have a 17 inch screen now, and that was largely because I didn't even have an external monitor. Now it is docked to an external monitor most of the time, and is just too bulky when I actually do lug it somewhere. This would probably gain me an hour of productivity every day, so I can afford to sink a 1-2,000 or maybe more. I did have the idea of maybe getting a MacBook Pro, since it could do iOS development if I dabbled on the dark side, could possibly run Windows if I did some development on that side. Then again, getting a Windows Laptop and a Mac mini could also solve that problem. I haven't really gotten into Linux for a personal computer, though I do have a remote server running Debian now. Nathan -- 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