Re: [android-developers] HOW TO GET THE TRASACTION NOTIFICATION WHILE NETWORK GOES.
/caps /ignore On 11 April 2011 08:57, bins bins1...@gmail.com wrote: hi, while the transaction is in process and my application crashes.So how will get the information about that transaction.As I am just waiting for the confirm notification.How can I test this scenario with the Static Values.? Can any one please help.. thanks bins -- 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] help me pleaseeeeee
vote +1 for worst title ever... at least the question makes sense ah dermarage is not a word sorry dude - try again a On 19 March 2011 00:33, jaafar zbeiba jaafarinformati...@gmail.com wrote: hello I just created a code to input area password c is to say in dermarage of the android must put his onscreen user password but the problem in the code that I have no errors when I type in the edit text area and I click ok nothing happens AC that can help me thank you here is the code ublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); editText= (EditText)findViewById(R.id.editText); ok= (Button)findViewById(R.id.ok); ok.setOnClickListener(this); editText.setOnClickListener(this); public void sendFeedback(View button) { String name=1234; String name1 =chaine; //nameField.getText().toString(); if(name.equals(name1)) Toast.makeText(this,Mot de passe orrect,Toast.LENGTH_SHORT).show(); else Toast.makeText(this,Mot de passe Incorrect,Toast.LENGTH_SHORT).show(); // Do click handling here } @Override public boolean onKey(View arg0, int arg1, KeyEvent arg2) { // TODO Auto-generated method stub return false; } @Override public void onClick(View v) { // TODO Auto-generated method stub } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Live Wallpaper canvas gradient banding
the problem afaik is that the bitmap used in the canvas is argb_ which has quite a shallow pool of colours to choose from and to get a decent gradient you need argb_ or a decent amount of dithering - neither of which i'm achieving best a On 14 February 2011 23:13, Mark markstevenengl...@gmail.com wrote: I am also experiencing this issue. The code I am using to apply a gradient is as follows... Canvas DestinationCanvas = new Canvas(); DestinationCanvas.setBitmap(DestinationBitmap); //Gradient is going from very transparent black to fully black at the bottom GradientDrawable grad = new GradientDrawable(Orientation.TOP_BOTTOM, new int[]{0x0200, 0x2a00, 0x5b00, 0x9000, 0xc900, 0xcc00}); grad.setBounds(0, 0, DestinationBitmap.getWidth(), RequiredHeight); grad.draw(DestinationCanvas); Calling grad.setDither(true) or setFilter(true) does not help. Regards, Mark England -- 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] NFC Concerns
at the moment nfc chips on the nexus 1 is only enabled to read a link and display it for you to act upon (much like a qr code). I'm sure this will expand to payments down the line but nobody outside of japan is ready for that and Google knows it a On 9 February 2011 23:00, Leon Moreyn-Android Development lmor...@earthcam.com wrote: I have my reservations about the NFC features on new phones. 1.) Does it read any NFC? Like say my Amex cards RDIF tag? 2.) The writer for the NFC chip in the phone does it write whatever I tell it to write? 3.) What is the security on this technology? -- 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] Live Wallpaper canvas gradient banding
Hey guys First time i'm posting. I was hoping that one of you might have had some experience with this. I am painting to the canvas on every Runnable.run call with a changing colour and i'm hoping to put a gradient over the top but the gradient i'm creating is banding horribly. After Googling around for a day I came up with 2 solutions: set the dither to true set the canvas bitmap to ARGB_ i've tried doing the first one (set dither to true) on the getWallpaper() and the Paint object but it's not helped (I can't see any dithering at all) so I've tried changing the canvas bitmap but i'm not sure how to actually display it // _canvasBmp = Bitmap.createBitmap(metrics.widthPixels, metrics.heightPixels, Bitmap.Config.ARGB_); _shadowPaint.setStyle(Paint.Style.FILL); _shadowPaint.setShader(new RadialGradient(metrics.widthPixels / 2, metrics.heightPixels / 2, metrics.heightPixels / 2, 0x, 0x3300, Shader.TileMode.CLAMP)); _shadowPaint.setDither(true); // this hasn't seemed to have done anything // my main rendering method is this (based on the Google live wallpaper example) void drawFrame() { final SurfaceHolder holder = getSurfaceHolder(); Canvas c = null; try { c = holder.lockCanvas(); // this was my attempt to update the bitmap to one that was ARGB_ but it didn't render at all //c.setBitmap(_canvasBmp); if (c != null) { // draw something drawBackground(c); drawTouchPoint(c); drawShading(c); drawBorder(c); getWallpaper().setDither(true); // yet another attempt to get some kind of dithering going to no avail } } finally { if (c != null) holder.unlockCanvasAndPost(c); } _handler.removeCallbacks(_drawClock); if (_isVisible) { _handler.postDelayed(_drawClock, 1000 / 25); } } private void drawShading(Canvas c) { c.drawRect(_screenBounds, _shadowPaint); } Thanks in advance for your time best alz -- 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