[android-developers] Cancel Subscription
Please to cancel my sub -- *Rami N. Makhamreh* -- 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] Cancel Subscription
To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com On Sun, Feb 19, 2012 at 10:54 AM, Rami Makhamreh rami.m...@gmail.com wrote: Please to cancel my sub -- Rami N. Makhamreh -- 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
[android-developers] Inserting Recorded Audio file (AMR) in another one
My Android app records audio in both AMR and WAV format. And my application needs to insert second recorded audio file inside the first one at a position where it is paused. I did it right with WAV files, but the AMR file after insertion is not able to be played in Android MediaPlayer, it gives some error when it reaches the inserted position.But the same file plays fine in AMR players. The steps i followed are: 1. Writing the data from file1 upto pause position: raf3=new RandomAccessFile(result,rw); raf3.setLength(0); int d=0; //Write data from record1 upto the pause position * while(d!=pos) { raf3.write(bytes[d]); d++; } 2. Writing the data to be inserted from file2 //write all the data from record 2 * int l=0; raf3.writeBytes( ); while(l!=bytesread1) { raf3.write(bytes1[l]); l++; } 3. Writing the remaining data from file1 after pause position while(d!=size) { raf3.write(bytes[d]); d++; } Is there anything wrong with what i have done? -- 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: Shy are things not sending/recieving correctly from this database?
On Sat, Feb 18, 2012 at 02:53:03PM -0800, Jeresam515 wrote: bump If you haven't gotten an answer, it's probably because your subject line makes absolutely no sense at all, and your post was proably never even read. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Tux (E Cat): DS B+Wd Y 6 Y L+++ W++ C++/C++ I+++ spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running FreeBSD 7.0 | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L-- W- C+++/C+ 30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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: Please provide me the Mediarecorder documentation?
Google Android MediaRecorder On Feb 18, 9:46 am, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- 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] Dynamic icon == widget?
Or maybe you can use a notification in the status bar? (and then on some event change that notification/icon). 2012/2/18 Kostya Vasilyev kmans...@gmail.com App icons (shortcuts) are drawn by *a* launcher, and there is no way to control / modify their appearance. So yes, if you need to display dynamic info, you build a widget. -- K 18 февраля 2012 г. 22:55 пользователь Ted Scott t...@hootinholler.com написал: I'm running a service that monitors a metric and I want it to colorize the app icon dependent on the values. Do I have to build a widget to interact with it or is there some way I can just replace the image? -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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: Please provide me the Mediarecorder documentation?
yes. even i am keen on this report. thanks in advance jk On Sun, Feb 19, 2012 at 5:15 AM, Chris Mawata chris.maw...@gmail.comwrote: Google Android MediaRecorder On Feb 18, 9:46 am, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- 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: Please provide me the Mediarecorder documentation?
hi shris, Thanks for your reply. I search Android Mediarecorder in Google that tells me how to programatically implemention, but i want the theoretical implementation (report on mediarecorder). I have to add this in my app project report. Thanks and Regards, umer Date: Sun, 19 Feb 2012 05:15:34 -0800 Subject: [android-developers] Re: Please provide me the Mediarecorder ? From: chris.maw...@gmail.com To: android-developers@googlegroups.com Google Android MediaRecorder On Feb 18, 9:46 am, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- 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: Please provide me the Mediarecorder documentation?
What do you have so far? Are you sure that such a document exists? (e.g. Do you have a citation or do you know who was supposed to write the report). The term theoretical implementation seems to be a contradiction. On Feb 19, 8:27 am, Muhammad UMER muhammad.ume...@hotmail.com wrote: hi shris, Thanks for your reply. I search Android Mediarecorder in Google that tells me how to programatically implemention, but i want the theoretical implementation (report on mediarecorder). I have to add this in my app project report. Thanks and Regards, umer Date: Sun, 19 Feb 2012 05:15:34 -0800 Subject: [android-developers] Re: Please provide me the Mediarecorder ? From: chris.maw...@gmail.com To: android-developers@googlegroups.com Google Android MediaRecorder On Feb 18, 9:46 am, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- 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- Hide quoted text - - Show quoted text - -- 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] get a code
hii, get a code by clicking on button which is having text as Via Email that will open inbuilt email application of android... Regards, Siddharth Chopra -- 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: Please provide me the Mediarecorder documentation?
hi chris, Sorry i don't clear you to much. I mean to say, e.g if i use encoder in media recorder so i have to mention what it does(how to encode the video) and all the other stuff. and sorry for my english.hope you will understand. Thanks and Regards, umer Date: Sun, 19 Feb 2012 06:11:35 -0800 Subject: [android-developers] Re: Please provide me the Mediarecorder documentation? From: chris.maw...@gmail.com To: android-developers@googlegroups.com What do you have so far? Are you sure that such a document exists? (e.g. Do you have a citation or do you know who was supposed to write the report). The term theoretical implementation seems to be a contradiction. On Feb 19, 8:27 am, Muhammad UMER muhammad.ume...@hotmail.com wrote: hi shris, Thanks for your reply. I search Android Mediarecorder in Google that tells me how to programatically implemention, but i want the theoretical implementation (report on mediarecorder). I have to add this in my app project report. Thanks and Regards, umer Date: Sun, 19 Feb 2012 05:15:34 -0800 Subject: [android-developers] Re: Please provide me the Mediarecorder ? From: chris.maw...@gmail.com To: android-developers@googlegroups.com Google Android MediaRecorder On Feb 18, 9:46 am, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- 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- Hide quoted text - - Show quoted text - -- 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: Please provide me the Mediarecorder documentation?
On Sun, Feb 19, 2012 at 07:55:42PM +0500, Muhammad UMER wrote: mean to say, e.g if i use encoder in media recorder so i have to mention what it does(how to encode the video) and all the other stuff. Sounds to me like this is something YOU are supposed to figure out, not ask others to do your homework for you Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | 1) Smoking habanero powder helps defeat that Running FreeBSD 7.0|off taste' quite nicely. spooky1...@gmail.com | 2) I figure a couple bong hits of [habanero] ICBM/Hurr.: / 30.44406N |powder would defeat just about anything! | 86.59909W--seen in Chile-Heads list Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] get a code
On Sun, Feb 19, 2012 at 06:55:34AM -0800, Siddharth Chopra wrote: get a code by clicking on button which is having text as Via Email that will open inbuilt email application of android... No, I think I'll stick with the e-mail app I already use. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Tux (E Cat): DS B+Wd Y 6 Y L+++ W++ C++/C++ I+++ spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running FreeBSD 7.0 | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L-- W- C+++/C+ 30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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] Please provide me the Mediarecorder documentation?
You can try to read the MediaRecorder source code and figure out what it does...:) good luck! On Sat, Feb 18, 2012 at 3:46 PM, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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: No text visible in edittext
thank you, Chris. I want to put on some color/style of text for individual characters to be displayed. I am using EditText.append() method (as u suggested). But all characters go to buffer and after all processing ,whatever style/color is attached with last characters : all the characters in buffer are displayed on screen with that style/color. But i need different style/color for different characters. Could you please help me solve this problem? On Feb 18, 7:39 pm, Chris Mawata chris.maw...@gmail.com wrote: The way you have written it that is what should happen -- you have a loop and you keep replacing the text with the substring. Generally in Jave setXXX methods will replace the current value of a property with the new value. Since this looks like homework check the docs for a method that will add to the string you currently have. On Feb 18, 7:45 am, mohit verma mohit89m...@gmail.com wrote: Hi guys, I am having a string containing some words. Now in a for loop , i traverse the string and according to some condition i set the color and try to display text in this way: while(not reached string length) { if(condition1) my_edittext.setColor(Color.RED); else if(condition2) my_edittext.setColor(Color.BLUE); and so on. } my_edittext.setText(substring); } Guys, i want my edittext to be filled-up by this colorfull string on activity startup(I mean without any actions yet performed on UI). When i do all this. in some string test cases , last word of my string appears in edittext but in other cases ... no string at all. Could someone please help me correct my way of implementation? Thanks in advance -- Mohit -- 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] Mechanism for collecting UDP Data
I'm trying to figure out a means to collect UDP packets as they come in. I have been able to successfully collect one packet using AsyncTask but it's not clear how to make this happen on an ongoing basis. I cannot see an obvious means to generate a callback when a packet arrives so I assume this is done by some means of polling. I tried using classes like ScheduledThreadPoolExecutor and creating a new thread but in all cases even though I'm trying to access the UDP buffer in another thread I'm getting the exception (cannot recall the exact name but it refers to trying to do network operations on the main UI thread). One way to make this work would be to run an AsyncTask on a timer but can anyone suggest why I may be having this issue or some ways to make this work. -- 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] Pseudo-unique device ID
This article (www.pocketmagic.net/?p=1662) presents some challenges and possible solutions to the problem of generating a pseudo-unique ID for a given Android device. I am particularly interested in the use of the following Build fields: Build.BOARD Build.BRAND Build.CPU_ABI Build.DEVICE Build.DISPLAY Build.HOST Build.ID Build.MANUFACTURER Build.MODEL Build.PRODUCT Build.TYPE For my purposes it is less important that the device ID be absolutely unique. It is more important that whatever I use be something that does not change when the user upgrades to a newer version of Android or changes cell phone carriers. Is it possible for any of the fields listed here to change over the normal lifetime of a device? -- 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] MediaPlayer - playing audio streaming
can anybody point me to the blog or website where i can find the sample code for playing audio file streaming using android mediaplayer? i have been looking but never get any luck. i am looking to display as control: Previous Play/Pause Next buttons and with seeker. any 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
Re: [android-developers] MediaPlayer - playing audio streaming
On Sun, Feb 19, 2012 at 01:14:45PM -0500, IS SOA wrote: can anybody point me to the blog or website where i can find the sample code for playing audio file streaming using android mediaplayer? i have been looking but never get any luck. http://develooer.android.com/guide/index.html. If you need help learning how to do a simple search, you need more help than anyone here can provide. It took me less than 10 seconds to find it, and that includes pulling up a web browser on my tablet and then going to the developers guide to do a search. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Someone ever tries to kill you, you try to kill 'em right back! --Mal (Firefly, 1x03, Our Mrs. Reynolds) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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: Changing ImageView background with a custom image
In case anyone tries to do this in the future, I figured it out. In hindsight, it is so bloody obvious... You simply specify both the android:src attribute of the ImageView and the android:background attribute as well. The android:src points to the image you want to display in the ImageView and the android:background points to the selector you are using to set different backgrounds depending on the state (pressed/focused/etc.) I don't know WHY I spent so long trying to accomplish this with only the android:src attribute. Dumb. On Feb 17, 11:31 am, Kookamonga site...@yahoo.ca wrote: Just in case I wasn't clear in what I wanted, let me try again. I basically want to accomplish the same effect as the latest GMail app does with its buttons at the bottom of the main Activity. If you click on the Compose button, it is highlighted in blue while it is pressed. My question is whether this is possible with a selector and a single actual image of the icon, or whether I necessarily need as many images as I have different backgrounds. Again, I realize that the selector itself requires separate images for each state, but my drawables in that case are simple... For example: ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle solid android:color=#FF / /shape It is much easier to create multiple such drawables for changing the background as long as there is a single icon image that can be applied on top of the changing background. Hopefully this is more clear. Thanks again for your help. On Feb 16, 10:53 pm, Kookamonga site...@yahoo.ca wrote: I have a clickable ImageView that contains an image, say an X, set by using the android:src attribute of the ImageView to a drawable/png file. Searching around, I've been able to figure out how to use a selector to change the background colour of an ImageView when it is pressed. But again, this uses the android:src attribute... So my question is whether there is an easy way to both set the image to an X AND use a selector to change the background when pressed? The obvious answer is to have the images in my selector all include the X with different backgrounds depending on the state... But I'm hoping that I don't have to go and create 2 versions of every image I want to have with different backgrounds (right now, the selectors point to simple drawables that are solid colours, so no image creation needed). Or do I just have to bite the bullet? -- 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] Hello Everyone, i just have a quick question:
Hello everyone, Can anyone explain to me what this following error means? have anyone faced the same? ERROR: 02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException: Unable to start activity ComponentInfo{android.mgo.helloandroid/ android.mgo.helloandroid.BTDdetecetwithV7Activity}: java.lang.NullPointerException -- 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] the listener only responses to last item added to main view.
here is the code .. package com.android.KickOffPro; import java.util.Random; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.widget.Button; import android.widget.TextView; public class KickOffActivity extends Activity implements OnClickListener { private Button GenerB; private Units e, e1, e2, e3, e4; private static int turn; private final LayoutParams Lpx = new LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // GenerB=(Button)findViewById(R.id.Generate); // GenerB.setOnClickListener(this); // turn=0; e = new Units(this, 100, 100); e1 = new Units(this, 100, 150); e2 = new Units(this, 100, 200); e3 = new Units(this, 100, 250); e4 = new Units(this, 100, 300); e.setOnClickListener(this); e1.setOnClickListener(this); e2.setOnClickListener(this); e3.setOnClickListener(this); e4.setOnClickListener(this); this.addContentView(e, Lpx); this.addContentView(e1, Lpx); this.addContentView(e2, Lpx); this.addContentView(e3, Lpx); this.addContentView(e4, Lpx); } public void onClick(View v) { // TODO Auto-generated method stub } } -onclicklistener doesnt acccept all elements package com.android.KickOffPro; import android.R.color; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class Units extends View { public int ypoint; public int xpoint; String txt; private Canvas canos; private Paint RedPen; public Units(Context context, int Xp,int Yp) { super(context); ypoint=Yp; xpoint=Xp; txt=; // TODO Auto-generated constructor stub } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); Rect unitSquare=new Rect(); unitSquare.union(xpoint, ypoint, xpoint+30, ypoint+30); RedPen=new Paint(); RedPen.setColor(Color.RED); RedPen.setStyle(Paint.Style.STROKE); canvas.drawRect(unitSquare, RedPen); canos=canvas; canos.drawText(txt, xpoint, ypoint+10,RedPen); } public void TxtToDraw(String txtx) { txt=txtx; invalidate(); } } -- 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] Every time I run any avd it hangs my windows 7 64bit system
Hello, I have windows 7 64bit, I just installed android sdk and created avd, when I ran it it hanged my system. I tried with different avds, always the same result. The last one I tried is based on Google APIs:8. Thanks for advance, any help is appreciated. -- 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] Anybody flashed a Linksys WIP-330 SIP phone?
I'm wondering if anyone has flashed some of the Linksys devices and dumped the old limited versions of Windows Mobile CE and replaced it with Android? Namely: I have an old Linksys WIP-330 SIP phone. I think it would be better with Android than LAME Windows. -- 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] DOUBT
Hai sir good morning. I hava a local microsoft sql server 2005. I am currently working on android project. in this I have to use the data in sql server.From te server i hava to access an existing table I am using java as the developing language.please send me the code how to connect sql server with java in android. please sir.make it fast. -- 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] is Card Emulation supported in Android with NFC?
hello everyone. I need to communicate over NFC (ISO14443) with some card reader (SDI 010) which is controlled by dektop application using SmartCard IO. when i put my nexus S on Reader, logcat shows messages 02-18 13:24:00.691: DEBUG/NfcService(278): SE FIELD ACTIVATED 02-18 13:24:00.691: DEBUG/NfcService(278): Broadcasting Intent or theese , when card reader is trying to read 02-18 13:25:00.718: DEBUG/NFC JNI(278): AID DETECTED 02-18 13:25:00.718: DEBUG/NFC JNI(278): AID: 010203040506070809 02-18 13:25:00.722: DEBUG/NfcService(278): Card Emulation message 02-18 13:25:00.722: DEBUG/NfcService(278): Broadcasting com.android.nfc_extras.action.AID_SELECTED I,ve tried to handle theese intents with no success; The reader i use supports NFCA, NFCB and RFID technologies. I Suppose SE is Secure Element am i Right? Is there any way to communicate with reader, without modyfing firmware? Or may be i can get access to secure element from native code (C) ? Is there any trusted java libraries/tools to handle nfc (NDEF f.e.) on desktop? 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] about SampleSyncAdapte
can i use login authentication like syncadapter for my own site login -- 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] What is the significance of main.xml.out file?
What is the significance of main.xml.out file? Sometimes while debugging the application, I am getting an error in the main.xml file -- 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] login authentication with remote db
Android login authentication with remote db (like mysql with php) sever -- 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: HTML5 for Mobile Apps Books
I will suggest the book building android apps published by oreilly. Here its link http://shop.oreilly.com/product/0636920022886.do Regards! On Feb 14, 9:32 pm, mduffy215 mduffy...@gmail.com wrote: We are starting a mobile project for multiple platforms. Our plan is to design in HTML5 and then use PhoneGap to create the individual apps for the different platforms. I am looking for books that specifically focus on using HTML5 for creating mobile apps. So far I have found one very good book: Build Mobile Websites and Apps for Smart Devices [Paperback] Earle Castledine (Author), Myles Eftos (Author), Max Wheeler (Author)http://www.amazon.com/Build-Mobile-Websites-Smart-Devices/dp/09870908... There is a PhoneGap book that publishes tomorrow. but with no detailed table of contents given and an entire chapter that may just be a reprint of the API, I am a little wary: Beginning PhoneGap: Mobile Web Framework for JavaScript and HTML5 [Paperback] Rohit Ghatol (Author), Yogesh Patel (Author)http://www.amazon.com/Beginning-PhoneGap-Mobile-Framework-JavaScript/... Any other suggestions? Mike P.S. Please see my next post if you want to comment on PhoneGap. -- 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] Gesture Recognition keyword
Is There A Gesture Recognition Keyword For Android? If So the What is the Minimum API Level Required? -- 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 improve MonkeyRecorder's low refresh rate?
Hi, all! Recently I'm working on a course project in which I need to show Android device's screen on PC dynamically. Besides, I also need to record user's operations and replay it on different devices. I looked into Android SDK, and found that MonkeyRecorder provided by the monkeyrunner tool can fulfill these two requirements. However, there are problems about it. Because the MonkeyRecorderFrame is implemented by Java AWT and Swing, it seems snapshots from device cannot be refreshed very quickly in MonkeyRecorderFrame (extends JFrame). So the PC cannot completely synchronizes with the device. How can this situation be improved? Need I to rewrite the MonkeyRecorder using some other efficient languages? I'd really appriciate if you could give me any advice. -- 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] tabs
hello every one.. i am new to android plz tell me... i make a web browser using webView... and also male tabs in the same project now how can i merge my browser to tab..i want the solution badly...reply... -- 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: please help to find out deleted or updated contact in android device contact list
You might be able to register as a sync adapter. This way you will be able to query the contacts database for deleted contacts, as your sync source will be expected to 'delete' them. See this - http://developer.android.com/resources/samples/SampleSyncAdapter/index.html -- 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] Troubles with Utils.matToBitmap
Hey everyone, I have s small app which takes a picture and i want to threshold it. for some reason the function Utils.matToBitmap crashes when I use it after the threshold, any thoughts on how to solve this? the Code: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == CAMERA_PIC_REQUEST) { try { Bitmap bitmap = (Bitmap) data.getExtras().get(data); this._Gray = Utils.bitmapToMat(bitmap); Mat tMat = thresholdPicture(); Bitmap tOutBitmap = Bitmap.createBitmap(tMat.cols(),tMat.rows(),Bitmap.Config.ARGB_); if (Utils.matToBitmap(tMat, tOutBitmap))//Crash here { this.setContentView(R.layout.picture_display); Drawable drawable =new BitmapDrawable(getResources(),tOutBitmap); SurfaceView tSurfaceView = (SurfaceView) findViewById(R.id.surfaceView1); tSurfaceView.setBackgroundDrawable(drawable);//TODO: not working if we picture vertically } else{ Log.i(OpenCV, Failed convert mat to bitmap); } } catch (Exception e) { Log.i(OpenCV, Failed to Use OpenCV + e.getMessage()); } } } private Mat thresholdPicture(){ Mat tMatThreshed = new Mat(); Imgproc.cvtColor(this._Gray, this._Gray, Imgproc.COLOR_RGB2GRAY); Imgproc.threshold(this._Gray, tMatThreshed, 100, 100,Imgproc.THRESH_BINARY); return tMatThreshed; } } 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
[android-developers] what features are used for gesture recognition on android?
the gesture recognition used in android gives a prediction score based on the similarity between a drawn gesture and the gestures stored in its library. the question is, what are the measures on which this similarity is calculated? http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/gesture/GestureUtils.java#GestureUtils.minimumCosineDistance%28float%5B%5D%2Cfloat%5B%5D%2Cint%29 in this link from the source code one can figure out that a minimum cosine distance is calculated between two float[] vectors. These arrays presumably store the features for each stroke. However what these features are and how the are calculated - couldn't figure that out from the code. Would someone pls help out on 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-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] Shy are things not sending/recieving correctly from this database?
On Sat, Feb 18, 2012 at 8:48 AM, Jeresam515 jeremyschiff...@gmail.comwrote: None of the notes are created and as such I can't do anything with them, help would be appreciated. You need to debug your application and whittle the problem down to something small and specific. No one is going to dig through that much code to try to figure out an answer to your vague question for you. - 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] Hello Everyone, i just have a quick question:
On Sun, Feb 19, 2012 at 1:26 PM, Soyer mblack...@gmail.com wrote: Hello everyone, Can anyone explain to me what this following error means? When you get an exception you don't understand, do this: http://bit.ly/yYw7F7 - 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] the listener only responses to last item added to main view.
On Sat, Feb 18, 2012 at 7:59 AM, furkan katman furkan.kat...@gmail.comwrote: here is the code .. Here is how to ask a better question. http://catb.org/esr/faqs/smart-questions.html - 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] Gesture Recognition keyword
On Fri, Feb 17, 2012 at 11:16 PM, Akhilesh Rai arsr...@gmail.com wrote: Is There A Gesture Recognition Keyword For Android? What is A Gesture Recognition Keyword? - 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: Shy are things not sending/recieving correctly from this database?
Thanks for the constructive criticism, I have deleted my posts, and will try to whittle the problem down my code and repost when I have that. -- 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] test cases are in a different package
At 11:56 AM 2/18/2012, you wrote: At 10:43 AM 2/18/2012, you wrote: ... That's not true. You want the unit tests (it's important to distinguish what kind of test we're discussing!) in the same package as the classes they test. yes. ... Put the test code in its own source tree, duh. project/ | | src/ | |--- test/ my core app is in a separate package. unit tests are in a separate source folder as described above. Ray Tayek Ã¥†™Ã© “: Å¡ ... is there some reason why the test cases are put into a separate package? No good one. placing them in the same package seems to work ok. am going to run into trouble by doing this? Not if you do it right. my android app is in the same package , but is in a different project (from the core app). the android tests are in the same package, but it is in a different project (from the android app). project: coreApp/ src/com.me.app tst/com.me.app project: androidApp/ src/com.me.app project androidTest/ src/com.me.app class AndroidAppTestCase extends ActivityInstrumentationTestCase2AndroidAppActivity i dumped ou the the dex files and was surprized. all of the tests from the core project *were* in the android app. looks like eclipse copied everything from the project. so introducing a jar for the core app is probably a good idea at this point only the test case for the android test project was in it's dex file. thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hello Everyone, i just have a quick question:
wow mate tht exactly what i needed, a genius to help me out, lol thanks for the advice mate but i already passed by that door ... On Mon, Feb 20, 2012 at 12:44 AM, TreKing treking...@gmail.com wrote: On Sun, Feb 19, 2012 at 1:26 PM, Soyer mblack...@gmail.com wrote: Hello everyone, Can anyone explain to me what this following error means? When you get an exception you don't understand, do this: http://bit.ly/yYw7F7 - 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 -- 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] Hello Everyone, i just have a quick question:
On Sun, Feb 19, 2012 at 4:12 PM, Mohamed Gougam mblack...@gmail.com wrote: wow mate tht exactly what i needed, a genius to help me out, lol thanks for the advice mate but i already passed by that door ... What more did you want? Anyone who's programmed in Java for more than a few days should have seen this exception: you've got a null reference somewhere, you're trying to deference it.. This means that something in your source code is not being set correctly. For example, you might not have allocated space for some variable, you might not have checked the return value from some function, etc.. kris -- 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] Why can't this database make rows?
This database has been unable to make any rows as illustrated by the fact that testcount always = 0. Here is my variable initialization: public static final String KEY_VALUE = x; public static final String KEY_ISROOT = y; public static final String KEY_ROWID = _id; public static final String KEY_REALROWID = _ids; public static final String KEY_ISPOWER = z; public static final String KEY_POWERORROOTNUMBER = b; public static final String KEY_ISDIVISOR = a; public static final String KEY_ISMULTIPLIER = c; public static final String KEY_ISADD = d; public static final String KEY_ISSUBTRACT = e; public static final String KEY_ISPS = f; public static final String KEY_ISPE = g; private static final String TAG = NotesDbAdapter; private DatabaseHelper mDbHelper; private SQLiteDatabase mDb; private static final String DATABASE_NAME = data; private static final String DATABASE_TABLE = notes; private static final int DATABASE_VERSION =20; private static final String DATABASE_CREATE = create table +DATABASE_TABLE+ ( +KEY_VALUE+ double, +KEY_REALROWID+ integer, +KEY_ROWID+ integer primary key autoincrement, +KEY_ISPOWER+ boolean, +KEY_ISDIVISOR+ boolean, +KEY_ISMULTIPLIER+ boolean, +KEY_ISADD+ boolean, +KEY_ISSUBTRACT+ boolean, +KEY_ISPS+ boolean, +KEY_ISPE+ boolean, +KEY_POWERORROOTNUMBER+ double, +KEY_ISROOT+ boolean);; Here is the create row: public void createNote(double value, boolean isroot, boolean ispower, boolean ismultiply, boolean isdivisor, boolean add, boolean issubtract, double roototpowerval, boolean paranthaseesend, boolean paranthaseesstart) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_VALUE, value); initialValues.put(KEY_ISROOT, isroot); initialValues.put(KEY_ISPOWER, ispower); initialValues.put(KEY_ISMULTIPLIER, ismultiply); initialValues.put(KEY_ISDIVISOR, isdivisor); initialValues.put(KEY_ISADD, add); initialValues.put(KEY_ISSUBTRACT, issubtract); initialValues.put(KEY_POWERORROOTNUMBER, roototpowerval); initialValues.put(KEY_ISPE, paranthaseesend); initialValues.put(KEY_ISPS, paranthaseesstart); long r= mDb.insert(DATABASE_TABLE, null, initialValues); int a = testCount(); ContentValues argsa = new ContentValues(); argsa.put(KEY_VALUE, value); argsa.put(KEY_ISROOT, isroot); argsa.put(KEY_ISPOWER, ispower); argsa.put(KEY_ISMULTIPLIER, ismultiply); argsa.put(KEY_ISDIVISOR, isdivisor); argsa.put(KEY_ISADD, add); argsa.put(KEY_ISSUBTRACT, issubtract); argsa.put(KEY_POWERORROOTNUMBER, roototpowerval); argsa.put(KEY_REALROWID, a); argsa.put(KEY_ISPE, paranthaseesend); argsa.put(KEY_ISPS, paranthaseesstart); mDb.update(DATABASE_TABLE, argsa, KEY_ROWID + = + r, null); } Finally, here is testCount(): public int testCount() { Cursor c = mDb.rawQuery(select count(*) from notes, null); int tst = 0; if (c.moveToNext()) { tst = c.getInt(c.getColumnIndex(count(*))); } return tst; } -- 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] Why can't this database make rows?
This database has been unable to make any rows as illustrated by the fact that testcount always = 0. Here is my variable initialization: public static final String KEY_VALUE = x; public static final String KEY_ISROOT = y; public static final String KEY_ROWID = _id; public static final String KEY_REALROWID = _ids; public static final String KEY_ISPOWER = z; public static final String KEY_POWERORROOTNUMBER = b; public static final String KEY_ISDIVISOR = a; public static final String KEY_ISMULTIPLIER = c; public static final String KEY_ISADD = d; public static final String KEY_ISSUBTRACT = e; public static final String KEY_ISPS = f; public static final String KEY_ISPE = g; private static final String TAG = NotesDbAdapter; private DatabaseHelper mDbHelper; private SQLiteDatabase mDb; private static final String DATABASE_NAME = data; private static final String DATABASE_TABLE = notes; private static final int DATABASE_VERSION =20; private static final String DATABASE_CREATE = create table +DATABASE_TABLE+ ( +KEY_VALUE+ double, +KEY_REALROWID+ integer, +KEY_ROWID+ integer primary key autoincrement, +KEY_ISPOWER+ boolean, +KEY_ISDIVISOR+ boolean, +KEY_ISMULTIPLIER+ boolean, +KEY_ISADD+ boolean, +KEY_ISSUBTRACT+ boolean, +KEY_ISPS+ boolean, +KEY_ISPE+ boolean, +KEY_POWERORROOTNUMBER+ double, +KEY_ISROOT+ boolean);; Here is the create row: public void createNote(double value, boolean isroot, boolean ispower, boolean ismultiply, boolean isdivisor, boolean add, boolean issubtract, double roototpowerval, boolean paranthaseesend, boolean paranthaseesstart) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_VALUE, value); initialValues.put(KEY_ISROOT, isroot); initialValues.put(KEY_ISPOWER, ispower); initialValues.put(KEY_ISMULTIPLIER, ismultiply); initialValues.put(KEY_ISDIVISOR, isdivisor); initialValues.put(KEY_ISADD, add); initialValues.put(KEY_ISSUBTRACT, issubtract); initialValues.put(KEY_POWERORROOTNUMBER, roototpowerval); initialValues.put(KEY_ISPE, paranthaseesend); initialValues.put(KEY_ISPS, paranthaseesstart); long r= mDb.insert(DATABASE_TABLE, null, initialValues); int a = testCount(); ContentValues argsa = new ContentValues(); argsa.put(KEY_VALUE, value); argsa.put(KEY_ISROOT, isroot); argsa.put(KEY_ISPOWER, ispower); argsa.put(KEY_ISMULTIPLIER, ismultiply); argsa.put(KEY_ISDIVISOR, isdivisor); argsa.put(KEY_ISADD, add); argsa.put(KEY_ISSUBTRACT, issubtract); argsa.put(KEY_POWERORROOTNUMBER, roototpowerval); argsa.put(KEY_REALROWID, a); argsa.put(KEY_ISPE, paranthaseesend); argsa.put(KEY_ISPS, paranthaseesstart); mDb.update(DATABASE_TABLE, argsa, KEY_ROWID + = + r, null); } Finally, here is testCount(): public int testCount() { Cursor c = mDb.rawQuery(select count(*) from notes, null); int tst = 0; if (c.moveToNext()) { tst = c.getInt(c.getColumnIndex(count(*))); } return tst; } -- 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] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps
I tried also to set the bitmap density before saving it to disk...just in case it made any difference...but it doesn't. No one has a solution to this issue? Thanks, Yuvi On Sat, Feb 18, 2012 at 3:07 PM, YuviDroid yuvidr...@gmail.com wrote: Hi Mark, I actually switched from setImageViewBitmap() to setImageViewUri() because sometimes I need to display large bitmaps which do not work if I use setImageViewBitmap(). Yuvi On Sat, Feb 18, 2012 at 2:57 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Feb 18, 2012 at 8:40 AM, YuviDroid yuvidr...@gmail.com wrote: thanks for your reply. The problem is that I'm using RemoteViews.setImageViewUri(), so I don't have a bitmap object to set the density. Then switch to setBitmap() or setImageViewBitmap(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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] MediaPlayer - playing audio streaming
the link does not work... i dont need help in learning how to search but probably you havent get what i am asking in my questions, never mind. On Sun, Feb 19, 2012 at 1:42 PM, Jim Graham spooky1...@gmail.com wrote: On Sun, Feb 19, 2012 at 01:14:45PM -0500, IS SOA wrote: can anybody point me to the blog or website where i can find the sample code for playing audio file streaming using android mediaplayer? i have been looking but never get any luck. http://develooer.android.com/guide/index.html. If you need help learning how to do a simple search, you need more help than anyone here can provide. It took me less than 10 seconds to find it, and that includes pulling up a web browser on my tablet and then going to the developers guide to do a search. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Someone ever tries to kill you, you try to kill 'em right back! --Mal (Firefly, 1x03, Our Mrs. Reynolds) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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] MediaPlayer - playing audio streaming
On Sun, Feb 19, 2012 at 06:29:38PM -0500, IS SOA wrote: the link does not work... i dont need help in learning how to search but probably you havent get what i am asking in my questions, never mind. You asked for sample code. I showed you where you will find your sample code (on the developers guide). But if you can't be bothered to do your part by looking for the answer on your own before posting here, that's not my problem...it's yours...and I'm done here. Maybe someone else will take the 5 seconds or so to do the search that you seem unwilling to do on the dev guide, but I'm done here. I have better things to do than feed someone their answers on a silver platter just because they're too lazy to get them on their own. Bye, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Tux (E Cat): DS B+Wd Y 6 Y L+++ W++ C++/C++ I+++ spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running FreeBSD 7.0 | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L-- W- C+++/C+ 30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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] MediaPlayer - playing audio streaming
On Sun, Feb 19, 2012 at 06:29:38PM -0500, IS SOA wrote: the link does not work UPDATE: I now see that I did make a typo in the link (but then, you should already have been to the developers guide so many times you don't NEED someone to post the link for you, so, we'll share the blame on that one). It SHOULD be http://developer.android.com/guide/index.html. (the 'p' somehow ended up being an 'o'). But then, since you are already so well familiar with the dev guide and the link to it (you probably already have it bookmarked all over the place), you already knew that much, so my previous response still stands. Bye, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Tux (E Cat): DS B+Wd Y 6 Y L+++ W++ C++/C++ I+++ spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running FreeBSD 7.0 | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L-- W- C+++/C+ 30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What is the significance of main.xml.out file?
On 2/17/2012 11:27 PM, Kedar wrote: What is the significance of main.xml.out file? Sometimes while debugging the application, I am getting an error in the main.xml file Basically it means that you have invoked some transformation on the main.XML file, possibly by having it selected and hitting the run button (there are configurations that control this behavior on the list within the last month) You should probably delete it since it will confuse the build of your project. -- 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] To make a separate tablet HD version or an Universal one?
I have an App support Android 1.5+ I want to extend this app to add Fragment for supporting tablet. The Android Compatibility library only starts from Android 1.6, that means if I want to build an Universal one, I need to abandon my 1.5 users. What should I 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
[android-developers] start at boot app gives instantiationException:
Hello All, I assembled the logic below which is supposed to start at boot and launch the Hello World program. What I get is an error 02-19 23:09:04.517: E/AndroidRuntime(3975): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.needham.startatboot/ com.needham.startatboot.StartAtBootActivity}: java.lang.InstantiationException: com.needham.startatboot.StartAtBootActivity Any help appreciated Best, Tom B --- program package com.needham.startatboot; import android.app.Activity; import android.os.Bundle; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; public abstract class StartAtBootActivity extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { PackageManager pm = context.getPackageManager(); Intent appStartIntent = pm.getLaunchIntentForPackage(com.needham.helloworld); if (null != appStartIntent) { context.startActivity(appStartIntent); } } } Android Manifest --- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.needham.startatboot android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=9 / uses-permission android:name =android.permission.RECEIVE_BOOT_COMPLETED / application android:icon=@drawable/ic_launcher android:label=@string/app_name activity android:name=.StartAtBootActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity receiver android:enabled=true android:name=.startatboot android:permission=android.permission.RECEIVE_BOOT_COMPLETED intent-filter action android:name=android.intent.action.BOOT_COMPLETED / category android:name=android.intent.category.DEFAULT / /intent-filter /receiver /application /manifest -- 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: ProgressDialog with Thread
Hi, Better use android asynctask (http://developer.android.com/reference/ android/os/AsyncTask.html) Moktarul On Feb 17, 3:13 am, dc dcone1...@gmail.com wrote: I am attempting to show a progress dialog while I am performing some actions. I am having troubles getting it to perform the way I would like. Here is what I want to do: click event of a button pop up a progress dialog showing a busy message. perform some action then once the action is complete, inflate a new layout into my main layout. (changing screens) It works fine except either I inflate the layout while the other actions are still processing (layout change is outside the thread) or if I put the layout change in the thread, it forces a close of the app, at the layout.removeallviews; line. private OnClickListener feeAcceptListener = new OnClickListener() { @Override public void onClick(View v) { progressBar = ProgressDialog.show(v.getContext(), Please Wait...,Communicating,true); new Thread(new Runnable() { @Override public void run() { GetWts(); //processes some action progressBar.dismiss(); } }).start(); Handler handle=new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); } }; LinearLayout layout = (LinearLayout)findViewById(R.id.main_view); layout.removeAllViews(); LayoutInflater inflater = getLayoutInflater(); layout.addView(inflater.inflate(R.layout.wts, null)); Button print = (Button)findViewById(R.id.btnPrintTic); Button done= (Button)findViewById(R.id.btnDone); print.setOnClickListener(wtsPrintListener); done.setOnClickListener(wtsDoneListener); } }; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re : Encryption
Hi members, I developed a login page application, in this application i passes the parameters to my database using executeHttpPost.I post my parameters like this postParameters.add(new BasicNameValuePair(password, pw.getText().toString())); .What my scenario is i need to send this as encrypted data is there any samples 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 : Encryption
use any encryption algorithm like SHA1 or DES -- 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] get adapter from OnItemSelectedListener?
hi, i have a bunch of spinners, each with it's own subclass of array adapter. each spinner has it's own OnItemSelectedListener. can one discover the array adapter for the spinner from the OnItemSelectedListener class? thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] CTS- android.core.vm-test failed
Hi All, I am running android CTS test on my setup. for most of the test cases it passed successfully but when I run android.core.vm-tests all 3096 test cases failed with error like... nullfailed to copy '/tmp/cts-adbpush-7367757895099569209.jar' to '/data/local/tmp/dexcore.jar': Too many open files return code: 1 for different test cases file name chnages but error remain same. can anyone help me in this as how can I solve this error. Thanks and regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eeagarding teating app
Before putting my app on market,i need to test my app. Is it required to test my app by making test project ...? Plz note: I have tested it on three different device. -- 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 Pdf files from some data
what is data? On Mon, Feb 20, 2012 at 1:50 PM, ANKUR GOEL ankur1...@gmail.com wrote: hi all how to create pdf from some data. 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] how to create Pdf files from some data
oh leave data ...just help me with hw to create pdf files On Mon, Feb 20, 2012 at 11:27 AM, James W. wjn...@gmail.com wrote: what is data? On Mon, Feb 20, 2012 at 1:50 PM, ANKUR GOEL ankur1...@gmail.com wrote: hi all how to create pdf from some data. 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] how to create Pdf files from some data
If you google the history of this group, I'm afraid you'll find a grim story on creating pdfs in Android. Basically the answer is if you have a lot of money, you can buy a third party library. There doesn't seem to be any open source alternative that will run on Android, so basically this leaves very expensive (for the indie developer, maybe not if you're a large firm) third party libraries that create pdfs for you. kris On Mon, Feb 20, 2012 at 1:03 AM, ANKUR GOEL ankur1...@gmail.com wrote: oh leave data ...just help me with hw to create pdf files On Mon, Feb 20, 2012 at 11:27 AM, James W. wjn...@gmail.com wrote: what is data? On Mon, Feb 20, 2012 at 1:50 PM, ANKUR GOEL ankur1...@gmail.com wrote: hi all how to create pdf from some data. 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: Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps
Could you not play with the xml settings of the ImageView itself? I think there are some attributes there that control how the image is displayed, whether or not it is scaled, centred etc. On Feb 18, 4:56 am, YuviDroid yuvidr...@gmail.com wrote: Hi, sorry to resurrect this post...but I got into a similar problem. And as the OP did, I'm using RemoteViews.setImageViewUri() to set my image on the appwidget. However I noticed that my image is being scaled according to the screen density. So, for example, on an XHDPI screen, if I have a bitmap which is 100x100 and I set it using setImageViewBitmap() I get the image to look as 100x100. However, if I store that bitmap into a png on disk, and then use setImageViewUri() my bitmap is displayed as 50x50. Do you know if there is a way to change this behavior? (i.e. if my image is 100x100 I'd like it to remain 100x100 also after it is decoded). Maybe there is a way to force some density on the ImageView itself? My only workaround (which sucks..) is to scale-up the bitmap before storing on disk so that when it is being decoded I get back my original size. But in this way I use more memory to save the image and I also loose image quality..:( I hope someone can help me! Thanks, Yuvi On Mon, Aug 1, 2011 at 8:05 PM, Ash McConnell ash.mcconn...@gmail.comwrote: Thanks Kostya and Dianne, setUri works as expected. I had to create the files using context.openFileOutput. Unfortunately that means I loose the ability to use directories. I can't see a Java way to set permission on files, it can be done with native methods, but that seems like overkill. I'll do some more googling. Thanks again for the help, I was worried that this problem might have been a show-stopper. Ash -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!)http://android.yuvalsharon.net- Hide quoted text - - Show quoted text - -- 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: DOUBT
What have you tried so far? And please note, a Doubt is a disbelief in something. It makes no sense whatsoever as a title. In English, Doubt != Question. On Feb 18, 2:33 pm, ramalakshmi krishna.veni...@gmail.com wrote: Hai sir good morning. I hava a local microsoft sql server 2005. I am currently working on android project. in this I have to use the data in sql server.From te server i hava to access an existing table I am using java as the developing language.please send me the code how to connect sql server with java in android. please sir.make it fast. -- 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: DOUBT
And please note, a Doubt is a disbelief in something. It makes no sense whatsoever as a title. http://www.imdb.com/title/tt0918927/ ?? To not be too upsetting, this question doesn't make too much sense. The last I heard there's not really JDBC support in Android, and typically what people do in these situations is provide a web interface to their database that allows you to send queries to it using something like JSON, etc.. kris -- 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 Button Customization
I tried it with image button also. now also i am getting the same problem On Fri, Feb 17, 2012 at 8:09 PM, fei ji ufo22940...@gmail.com wrote: I think image button can also be a good choice. You just need to set a attribute called android:src which reference to the image file you want to use. 在 2012-2-17 上午5:24,value makers shihabkv22...@gmail.com写道: Hi All, I am new in android development. I have one problem regarding with my button customization. i would like to customize a button in a semi circular form . -- 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] Customizing Button
I think this is the only solution for that. I can access the x and y cordinates of the image. But what kind of condtion i can give for activate the visible part ? On Fri, Feb 17, 2012 at 7:38 PM, TreKing treking...@gmail.com wrote: On Fri, Feb 17, 2012 at 6:46 AM, shihab shiha shihabkp.andr...@gmail.comwrote: i want to activate the onclick on the visible part of this image. the problem is if i click near to this image that means it takes as rectangle. How big is this image going to be in practice? It might not be worth the effort. i want to activate only that image potion itself. how can i do it without using canvas . pleas give a solution for this Roughly: you could use the View's touch events to get the exact X / Y touch coordinates, then use some fancy math to determine that the point is contained within the geometric area represented by the image in 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 -- 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 Button Customization
ارسل بواسطة تقنية بلاك بيري من زين -Original Message- From: shihab shiha shihabkp.andr...@gmail.com Sender: android-developers@googlegroups.com Date: Mon, 20 Feb 2012 12:36:38 To: android-developers@googlegroups.com Reply-To: android-developers@googlegroups.com Subject: Re: [android-developers] Android Button Customization I tried it with image button also. now also i am getting the same problem On Fri, Feb 17, 2012 at 8:09 PM, fei ji ufo22940...@gmail.com wrote: I think image button can also be a good choice. You just need to set a attribute called android:src which reference to the image file you want to use. 在 2012-2-17 上午5:24,value makers shihabkv22...@gmail.com写道: Hi All, I am new in android development. I have one problem regarding with my button customization. i would like to customize a button in a semi circular form . -- 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: how to create Pdf files from some data
No, you can use PDFJet. It's free. On Feb 20, 2:08 pm, Kristopher Micinski krismicin...@gmail.com wrote: If you google the history of this group, I'm afraid you'll find a grim story on creating pdfs in Android. Basically the answer is if you have a lot of money, you can buy a third party library. There doesn't seem to be any open source alternative that will run on Android, so basically this leaves very expensive (for the indie developer, maybe not if you're a large firm) third party libraries that create pdfs for you. kris On Mon, Feb 20, 2012 at 1:03 AM, ANKUR GOEL ankur1...@gmail.com wrote: oh leave data ...just help me with hw to create pdf files On Mon, Feb 20, 2012 at 11:27 AM, James W. wjn...@gmail.com wrote: what is data? On Mon, Feb 20, 2012 at 1:50 PM, ANKUR GOEL ankur1...@gmail.com wrote: hi all how to create pdf from some data. 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- Hide quoted text - - Show quoted text - -- 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: how to create Pdf files from some data
On Mon, Feb 20, 2012 at 2:19 AM, Zsolt Vasvari zvasv...@gmail.com wrote: No, you can use PDFJet. It's free. Zsolt, PDFJet's main license is for evaluation only, and that's the one I'd previously seen. However, I see that there is now (recently?) an open source version! Anyway, it's good to know there's an open source alternative now, I felt like I might had heard of it before, and it looks like it incorporates a fair amount of good stuff. Thanks for the heads up, and sorry for the misleading reference Ankur, kris -- 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: establish() function from android.net.VpnService.Builder
Nobody can help me? :( -- 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: how to create Pdf files from some data
Some more (open source) links: http://stefan.fenz.at/creating-pdfs-on-android-an-evaluation/ I suppose that many more of these have been ported to Android now (the last time I checked was I suppose around a year ago, and I suppose I either just missed these, or couldn't find ones that ran decently well!) kris On Mon, Feb 20, 2012 at 2:25 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, Feb 20, 2012 at 2:19 AM, Zsolt Vasvari zvasv...@gmail.com wrote: No, you can use PDFJet. It's free. Zsolt, PDFJet's main license is for evaluation only, and that's the one I'd previously seen. However, I see that there is now (recently?) an open source version! Anyway, it's good to know there's an open source alternative now, I felt like I might had heard of it before, and it looks like it incorporates a fair amount of good stuff. Thanks for the heads up, and sorry for the misleading reference Ankur, kris -- 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 Button Customization
public class cButton extends Button{ public OnPressButton(Context context) { super(context); } public OnPressButton(Context context, AttributeSet attrs){ super(context, attrs); } @Override protected void onDraw(Canvas canvas) { //sets the button image based on whether the button in its pressed state setBackgroundDrawable(getResources().getDrawable(isPressed()? R.drawable.btn_on : R.drawable.btn_off)); super.onDraw(canvas); } } Then instead of using the Button widget, use the above implementation of Button in your layout xml file. view class=com.mycompany.android.ui.OnPressButton android:background=@android:color/transparent android:layout_width=fill_parent android:layout_height=wrap_content android:text=My Button / http://bend-ing.blogspot.in/2008/10/android-how-to-implement-custom-button.html Moktarul On Feb 17, 1:53 pm, shihab shiha shihabkp.andr...@gmail.com wrote: 2. create cbutton extent Button and override onDraw method and then instate of button use cbutton Can you explain this one little widely. I tried the first one but it doesnt give the exact solution what i expect On Fri, Feb 17, 2012 at 1:08 PM, moktarul anam mokta...@gmail.com wrote: you can do this two way 1. set background 2 some drawable xml file and then customize there 2. create cbutton extent Button and override onDraw method and then instate of button use cbutton Enjoy Moktarul On Feb 16, 1:45 pm, value makers shihabkv22...@gmail.com wrote: Hi All, I am new in android development. I have one problem regarding with my button customization. i would like to customize a button in a semi circular form . -- 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