Re: [android-developers] net install accuracy
On Thu, Dec 29, 2011 at 9:32 AM, FiltrSoft kri...@gmail.com wrote: How accurate are the number of net installs in my developer console? Usually, not very. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: uploading to the google cloud service
On Thu, Dec 29, 2011 at 2:53 PM, John Goche johngoch...@googlemail.comwrote: The other thing I was wondering was, if I write an android application to use appengine and my phone has a web browser, what would make me want to deploy the service as a data connection to my android application when I could just deploy a web service that does the same thing? The only difference I see is that the web has a set of UI widgets, and android UI has another but very similar API, but allowing access from a web browser seems more flexible because it means PCs can access it as well. If you're asking why make a native Android app versus a web app, the answer is access to the Android SDK and device features, like location, sensor, camera, etc, that you can't access from a web app. (I might be wrong about some of those ...) Plus with a native app you don't absolutely need an internet connection to just run. Also, people who use the application I am planning to design will want to associate themselves into groups with each group of people having their own private data space on the web server. How do I cater to the creation of such groups? Do I get them to register a name on my servlet and configure a password for them to share? What strategy should I use? This is a web-site configuration and administration question. If you're going to use AppEngine, they have their own group where you can ask about how to do this specifically on that platform. - 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] net install accuracy
Hi, Is that a fact? I would've expected it's pretty close to actual installs. But then again, I'm quite sure it used to be current installs just a week or so ago. -- H On Jan 2, 2012, at 10:16 AM, TreKing wrote: On Thu, Dec 29, 2011 at 9:32 AM, FiltrSoft kri...@gmail.com wrote: How accurate are the number of net installs in my developer console? Usually, not very. - 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] Using contacts picker with filtering
No, afraid not... Not to say you couldn't write your own contacts picker which did this and then catch a similar intent, however, for the contacts picker that comes default on android. kris On Sun, Jan 1, 2012 at 10:43 PM, Eric ehm...@gmail.com wrote: Hi all, I'm using the following code to launch the Contacts Picker: Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); //another display style: //intent.setType (android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); startActivityForResult(intent, 1); It works, but I would like to add filtering such that some contacts are not shown. My desired display criterion is: - Only show contacts that have Home phone, Work phone, Mobile phone or Pager. Contacts that have only Work Fax, E-mail, etc etc should not be shown. Is it possible to add such filtering? Thank you. Regards, Eric -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] compiler compliance problem
I thought I was doing pretty good getting everything installed correctly to follow the examples in the book, Android for Programmers. But when it came to importing the first example I got this meesage: [2011-12-29 21:42:57 - Doodlz] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools Fix Project Properties. I really have no idea what tool to use or where exactly I might find it. Any ideas? Bruce -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Packaging Problem
I know this is a rookie mistake or issue to resolve, but I'm wrecking my brains trying to fix it. I use eclipse and I fixed any problem with the Manifest file that arose thinking initially that the problem was there. -- See total noob. The problem that has arisen is 'Debug Certificate Expiration 'date'' and other notes relate to Android Packaging. A simple fix I know. I've tried updating all SDK and revisions. Created new ADTs and new run configurations as well as restarting Eclipse after revisions for ADB had been installed. Other errors that have arose in the course of compiling have been 'Unknown Command - Crunch'. Be gentle with this noob and any assistance would be appriciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Text to Speech sent through bluetooth
I had a Windows CE phone (T-Mobile Shadow). If the bluetooth was on, it would read various things to me over the bluetooth, such as - text messages - who was calling - email message subject I now have a MyTouch 4G Android phone, and all I can find are apps that will read similar information, but only over the phones speaker, not to the bluetooth/ I've tried 4 different apps that sounded promising, but none would send sound to the bluetooth! If MS could do this over a normal bluetooth headset 3 yrs ago, then Android should be capable of the same. Anyone know of an app that does this, or one that is in development? Thanks! Jon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] problem: play pre recorded audio in out going call
Dear I Am developing one application in which i need following : when receiver party pickup call then he should hear pre recorded audio file,existed in my phone. I am using android 2.2. Plz give me a way.it will complete my whole application thanks in advance :) Dhaval varia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] code folder(pjsua) is missing in the folder(CsipSimple-src-org-pjsip)
Hi all, Thanks for great development. I am using csipsimple project,but when today i checkout the project from trunk (http://csipsimple.googlecode.com/svn/trunk/) and ported in the eclipse i got the errors. i searched that error and compare with other checkout code the one code folder(pjsua) is missing in the folder(CsipSimple-src-org- pjsip).The pjsua folder is not presnt from that i am gotting error in project. Please update the code on the http://csipsimple.googlecode.com/svn/trunk/ of pjsua folder in the path CsipSimple-src-org-pjsip Thanks Amit Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get gapless playback in android?
Hi Developers, I am developing a video on demand application. I am trying to play continuous stream using android mediaplayer. But i am not able to avoid gap in playback while updating the datasource file of mediaplayer.How can i overcome this problem?. Essentially i want to have a seamless video playback. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Access denied error while trying to install new API
Hi, Not sure if this thread is still relevant but if it is, I had the same issue on windows and I was able to solve it by running the Android SDK Manager as Administrator. regards, On Dec 21, 5:15 am, Anil Jagtap anil.so...@gmail.com wrote: This is just an try to figure out what is going on. It looks like you are installing on Windows and the file which is giving problem is for Linux. On Linux I would have checked permissions for all the folder tree for such an error. Have no slightest idea about file permissions on Windows, can you check permissions on folders? Cheers -- anil jagtap Android Application Developer On Dec 14, 4:26 pm, Uday (Dave) uday...@gmail.com wrote: Hi, I have installed the android sdk 16 on my Windows7 machine I have installed the Android2.1 API initially without any glitch. But then again when I try to install the other APIs using the SDK manager, it gives me: Downloading SDK Platform Android 2.3.3, API 10, revision 2 File not found: C:\Program Files (x86)\Android\android-sdk\temp \android-2.3.3_r02-linux.zip (Access is denied) Downloading Samples for SDK API 10, revision 1 File not found: C:\Program Files (x86)\Android\android-sdk\temp \samples-2.3.3_r01-linux.zip (Access is denied) Skipping 'Google APIs by Google Inc., Android API 10, revision 2'; it depends on 'SDK Platform Android 2.3.3, API 10, revision 2' which was not installed. Done. Nothing was installed Thanks, Dave -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] adding menu to Linear layout
Dear Android Masters, I want to make customized menu which kind of popup menu not vertically but horizontally. so, i created linear layout with horizontal orientation. also created the menu using Menu Inflater. the problem is how i can add menu to linear layout. the method addView() doesn't work. I don't want add menu item one by one. want to use menu XML file. would you pls give me an advice to solve this issue? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Measuring applied pressure.
Is there any way to measure the amount of applied pressure from a finger touch? For example, if I were to develop a driving application on a touch sensitive screen and I wanted to determine how hard the user was pressing down on the accelerator (screen), how might I go about determining 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] can use ATM cum debit card of State Bank of India (SBI) for registration.
On Sat, Dec 31, 2011 at 2:47 PM, Mohd Arshi Khan arshikha...@gmail.comwrote: I'm student. so i don't have credit card. so it is possible to use ATM cum Debit Card of State Bank of India (SBI) for registration on android Market for publish my App. Not possible to pay via Debit Card. Aamir Khan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 android unable to develop any driver for any 3g usb dongle for tablets
Dear android developer, Now the technologies and know how are enough advanced. but why android platform unable to recognise any driver for any 3g usb dongle for tablets. so that we can use 3G usb dongle for internet. why we have to depend on WiFi only. WiFi is not available in majority places in the developing country. tablets is for ease use during travel but without 3g we can access the internet. Even in USA also, until unless u make your mobile phone as wifi hotspot. thats not the solution. android developers are doing so many things, - but sorry to say unable to do this work? i do not believe itprobably they do not want to do itto make difference in wif and 3g model... hope, we will get any solution in near future. A K Das -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GraphicsActivity - XML Layouts -
Hello; This is my first post here. I am a BlackBerry developer trying to move to Android before my BlackBerry sales totally dry up. I gone through many samples and have read quite a few post about the subject of determining the size of the area I have to perform GraphicsActivity commands, title bar height, etc. I feel even more lost now. I am hoping someone will not mind helping me out to find the proper path to head down. I want to be able to display; the systems title bar, my applications title bar, a drawable canvas for Android.graphics.Canvas functions, and buttons at the bottom of the screen. The GraphicsActivity and Android.graphics.Canvas functions look like the ones I want to use. However, I have run into a few road blocks and concerns. 1. The only samples I have found so far that use GraphicsActivity use setContentView(new MyView(this)). I have not found one that uses an XLM layout to deal with different screen sizes and buttons. 2. If I use do a custom View using setContentView(new MyView(this)), I have not found a way to get the size of the area I have available for the Graphics Activity/Canvas functions, which is the screen size minus the size of the system title bar and my title bar. I have found several post on title bar/screen size and they seem to have gotten into some heated discussions with no resolution. Therefor I have no way of knowing the size of the area for the Canvas functions is. This brings up several concerns. 1. How I can place my buttons at the bottom of the screen if I am using setContentView(new MyView(this)) in liue of the XML layout files or how can I use XML layout files with the GraphicsActivity? 2. How can I scale a bitmap to the size of the view available for the Android.graphics.Canvas functions if I do not know the size of the area it is going in. My only other concern at this point is weather or not I can save the resulting Canvas to a picture file like a Jpeg. However, I have not researched this issue yet. Can someone point me in the right direction for accomplishing my goals of: 1. Display the System title bar, my title bar, a row of buttons at the bottom of the screen and the rest of the space is used for the Android.graphics.Canvas functions. I will need to be able to determine the dimensions of the area used for the Android.graphics.Canvas functions so I can draw objects and scale them. Ultimately I would like to save the final Canvas to a Jpeg file. Thanks for the assistance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Simple trace like in FlashDevelop
Hi Happy new year to all.. Sorry very new into Java Android. Any simple way of tracing to console or somewhere in Java Android? I find it a bit confusing the info from google 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] Simple trace in Eclipse Android
Hi to all Sorry i'm stuck with a simple trace to console in Eclipse Android.. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What percentage of users lack the ability to install from outside the Droid marketplace ?
Does anyone know What percentage of users lack the ability to install from outside the Droid marketplace ? My app polls my website and requires customization prior to downloading. The important point here is my app needs to be customized prior to installation - not after. Therefore selling the app in the marketplace will not work. If I had a private URL in the Droid marketplace that allowed my users to install a trusted app - that would work - but thats not going to happen. Therefore it looks like I'm going to sell it outside of the marketplace. Here are some pros and cons I've come up with. Pros / Droid marketplace installation : 1. Seller keeps 100% of revenue 2. 100% of users have the ability to install Cons / Droid marketplace installation : 1. 30% of revenue goes to google 2. Users need to log into the droid marketplace with thier google account. Users not logged in may not complete the sign in process. Pros / non - marketplace installation : 1. Users don't have to be logged into their google account to install Cons / Droid marketplace installation: 1. Some users cannot install apps from non trusted locations. I welcome feedback and debunking of my observations. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 start my anroid developer carrier and from where to start?
I m New to this one, so need guidance for starting my anroid carrier plz...help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] video record
hi does any one try to record video using tom gibara solution to capt live camera thanks for help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onUpdate function is never being called from widget
Hi all I try create a clickable widget. I saw that the clickable notification is not configured because onUpdate function is never being called (so I cannot set the notification) * I did not saw the log in the LogCat so I assume that the function is never being called * The Log in the onRecieve is being execute when I add the widget to the screen, and once in 30 minutes. Can anyone help me? Thanks Eyal public class AnimationWidget extends AppWidgetProvider { public static int imageNumber = 0; private static final String ACTION_WIDGET_RECEIVER = ActionRecieverWidget; /** Called when the activity is first created. */ @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Log.i(print from main, widget id: ); } @Override public void onReceive(Context context, Intent intent) { Log.i(print from main, onReceive + intent.getAction()); } manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.animation.widget android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 android:targetSdkVersion=7/ !-- Broadcast Receiver that will process AppWidget updates -- application android:icon=@drawable/pic android:label=@string/ app_name receiver android:name=.AnimationWidget android:label=@string/app_name intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / /intent-filter meta-data android:name=android.appwidget.provider android:resource=@xml/widget_info / /receiver service android:name=.AnimationWidget$UpdateService / /application uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.WAKE_LOCK / /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] Unable to establish loopback connection
On starting Eclipse I get Failed to initialize Monitor Thread: Unable to establish loopback connection Any subsequent attempts to run give Connection with adb was interrupted See several have had this problem and have tried the various suggestions: 1) Turning off firewall 2) Doing an adb kill-server and then adb start-server. 3) Starting the SDK manually. 4) Starting the SDK before starting Eclipse. 5) Running Eclipse with -clean option. None of these work. Any other ideas? Thanks for any replies. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using image from gallery in application
This is the code I´m using for an app and it is working fine: public void onImageClick(View view){ Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType(image/*); startActivityForResult(photoPickerIntent, 1); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1) if (resultCode == Activity.RESULT_OK) { Uri selectedImage = data.getData(); img.setImageURI(selectedImage); } on the layout: ImageView android:id =@+id/pictureViewer2 android:contentDescription=@string/imagen android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:onClick=onImageClick android:adjustViewBounds=true android:scaleType =fitCenter / To avoid cropping the important thing is the scaleType and adjustViewBounds tags. Hope this helps. On 31 dic 2011, 20:12, mr.winky mr0wi...@gmail.com wrote: I am writing an intent to allow the user to pull an image from the gallery: Intent getImage = new Intent(Intent.ACTION_GET_CONTENT); getImage.setType(image/*); getImage.putExtra(outputX, width); getImage.putExtra(outputY, height); getImage.putExtra(aspectX, width); getImage.putExtra(aspectY, height); getImage.putExtra(noFaceDetection, true); getImage.putExtra(scale, true); getImage.putExtra(crop, true); getImage.putExtra(setWallpaper, false); startActivityForResult(Intent.createChooser(getImage, Select Background Image), 0x10); Everything is working fine and a new image is generated from the gallery except it looks like the image that comes back cropped is in a lower quality format from the original image, like 16 bit color format instead of 32 bit. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: emulator: WARNING: Unable to create sensors port: Unknown error
I am also getting the same response. Unable to run the code. Please help anyone! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] view.getId() does not match R.id.myView
I'm trying to make a single onClickListener for several views. I have successfully done this for buttons that do the same thing (such as change the background image of the button clicked), but I want to be able to refer to what button has been pressed for some actions within the onClick() method. My understanding of views suggested that R.id.myClickedView should equal view.getId() inside of the onClick() method, but my if(R.id.myClickedView == view.getId()) { } loop is never entered, and the debugger shows these two values to be different. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Best animation type for my app
Hi I would like some advice regarding the best type of Animation to use (Background, Transition or SurfaceView - or any other) to use for my app. My app's gui will be divided in two, the bottom half will remain unchanged and just listen for touch events, the top half will have an animated band scrolling from left to right at the top of the screen. Ideally I would like to be able to alter the speed of the animation, and stop, start, rewind or fast forward it by swiping. The animated bands could be stored as images or generated on the fly, but since they aren't editable from the user's point of view then I'm guessing it would be better to store them as images to avoid having to generate the same list of images each time the app is run. Any advice on this matter would be gratefully received as well. So to recap, which animation type would be best for the animated band, and should I generate the animated band on the fly or store them as images? Any help gratefully received Julio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting app launch/switching to an app
I'm writing an app similar to app protector - it prompts the user to authenticate himself when a protected app is launched. Since Android doesn't provide a way to use BroadcastReceiver on explicit intents, I'm detecting app launches by monitoring logcat. For most apps, I'm listening for something like Starting activity... and then throwing an intent to my own authentication activity. However, there seems to be a loophole in this when a protected app A is launched via another App B. App A is only launched once(and hence will only have one Starting activity... entry in logcat, and if I switch to App B from my activity, it will re-route to App A, and this time, I won't be able to detect it since logcat doesn't show its launch. An example would be package installer being a protected app, and a file manager launching package installer upon tapping an apk file. While my authentication activity is called up the first time, if I switch to the file manager again, it will automatically display package installer, and this time my app doesn't detect it. I've tried a few app protector apps such as App Protector Lite and Smart App Protector, and they don't seem to have this problem. They have similar permissions as well - GET_TASKS, READ_LOGS, RECEIVE_BOOT_COMPLETED, and SYSTEM_ALERT_WINDOW. Does anyone know what can be done to solve my problem? 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] project namespace not getting resolved after importing from ubuntu to windws
Hello, I am finding error in src/java file while importing a android project developed in ubuntu to window. Android sdk version is 2.1 in both the machine. The project is getting imported successfully (new project-create project from existing source) but all android classes are not able to finding their references and showing underlines. The import are not getting resolved. The same thing is working fine from windows to windows import. Look forward for help... Best regards, Kedar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need help on referncing response from WCF REST service.
I created a simple WCF REST service that is returning a list of data rows from a SQL Server. I've been trying to get my android application to be able to refernce the returned data for a few days now and finally feel like I am getting somehwere. The below code is working and the toast text displays the entire response from the web call in a comma deliminated format (see bottom for example) but the question is how I can individually reference each returned item and how can I fill a listview with the results? public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.runlist); //displayRunList(null); //call the displayRunList function on create try { //call our rest service call through httpGet HttpGet request = new HttpGet(http://www.mydomain.com/webserv/ Service1/getVehicles); request.setHeader(Accept, application/json); request.setHeader(Content-type, application/json); DefaultHttpClient httpClient = new DefaultHttpClient(); HttpResponse response = httpClient.execute(request); HttpEntity entity = response.getEntity(); Returned = EntityUtils.toString(entity); Toast.makeText(this, Returned, Toast.LENGTH_LONG).show(); Log.i(Test,response.getStatusLine().toString()); } catch (IOException ioe) { } } // **END When I run the REST service in browswer I am returned with the following XML; - clsVehicles xmlns=http://schemas.datacontract.org/2004/07/ WcfRestService xmlns:i=http://www.w3.org/2001/XMLSchema-instance; carNoA1/carNo invNo262901/invNo makeFORD/make mileage117894/mileage modelRANGER/model saleDate12/30/2011 12:00:00 AM/saleDate soldTrue/sold style / year1994/year /clsVehicles The Toast text returns the data like this: {carNo:A1, invNo:262901, make:FORD...etc} -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] seeking basic advice for developing a tiny app on Sony Ericsson phone
dear Android-dev-group, i am looking for the answer to these simple questions: ## 1. how much effort does it take to implement a tiny application (details see below) for the first time and make it run on a Sony Ericsson (W660) phone ?? 2. which are the starting steps i need to take ?? ## i am NOT asking anyone to implement the app for me. i am moderately experienced with programming and most probably could do this myself. however, i would like to get an estimate of the effort that awaits me, before i dive into the progress, since this is a really tiny app that does some simple stuff. details to the app: i basically want to have private phone data (sms, calendars, contacts, ...) exported to the memory card, so i can download this data without any 3rd party software. it seems to me that the mobile phones OS strongly separates memory data and phone data, and the latter can only be accessed with a 3rd party software (such as MyPhoneExplorer). my idea is to write my own tiny application, execute it on the phone and let it write the data onto the memory card. is this even possible ?? thanks in advance to any useful answers, f-- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth error
hi, after clean buiild of ICS AOSP (4.0.3) and deploying on Galaxy Nexus (Maguro) device i get this error in logcat: I/bluedroid( 208): bt_enable: ret: -1, errno: 19 and bluetooth doesnt work. Can anyone help ? Thx, kAmMa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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's best action when my app received onTrimMemory callback?
When my app received onTrimMemory callback, what am i to do? i wrote some code for release java object, but that's no effect. for total free Memory. 1. How to use the onTrimMemory interface? 2. What's benifit when an app implement onTrimMemory interface? i'm sorry my poor english. Thank you for reading. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] view.getId() does not match R.id.myView
Try this, in your our create method of the Activity, Give the reference of your button listener. findViewById(R.id.horizontallistview).setOnClickListener(this); findViewById(R.id.search).setOnClickListener(this); findViewById(R.id.facebook).setOnClickListener(this); findViewById(R.id.twitter).setOnClickListener(this); And Below is your onclick. Note for you. 1st. Make sure the buttons which are using in this Activity is the part of the view or xml 2n.Make sure your Activity class implements OnClickListener @Override public void onClick(View v) { switch (v.getId()) { case R.id.horizontallistview: Toast.makeText(this, On horizontallistview ,Toast.LENGTH_LONG).show(); break; case R.id.search: Toast.makeText(this, On Search,Toast.LENGTH_LONG).show(); break; case R.id.facebook: Toast.makeText(this, On facebook ,Toast.LENGTH_LONG).show(); break; case R.id.twitter: Toast.makeText(this, On twitter ,Toast.LENGTH_LONG).show(); break; default: break; } } Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Sun, Jan 1, 2012 at 5:38 AM, Daniel greywanderer012...@gmail.com wrote: I'm trying to make a single onClickListener for several views. I have successfully done this for buttons that do the same thing (such as change the background image of the button clicked), but I want to be able to refer to what button has been pressed for some actions within the onClick() method. My understanding of views suggested that R.id.myClickedView should equal view.getId() inside of the onClick() method, but my if(R.id.myClickedView == view.getId()) { } loop is never entered, and the debugger shows these two values to be different. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] BlueTooth SCO BlackList
Hi , At the Gingerbread version there was a BALCKLIST mechanization (at the android_bluetooth_ScoSocket.cpp file), I have noticed that this mechanization is removed at the ICS version. Does someone know why ? or maybe it got transfer to different location ? Thanks, Ram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TelephonyManager.getLine1Number() returns null always
Hi All, I am trying to fetch the telephone number of the device. I am calling TelephonyManager.getLine1Number() it always returns null. Thank you in advance Regards Upendra Reddy.V -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need help on referncing response from WCF REST service.
Design issue Mate :(, Let's say you are receiving some around 20 records and you might wanted to bind in the Listview, you need to do the following things. 1. Write a class which actually parses your data and bind it to the Model Class. 2. Create a Class with setters and getters of the fileds you required. 3. While parsing the data make sure you are coping it to the Array Instances of the model class, below is some syntax. private YourModelClass[] mymodelclass; //which actually holds the data private ArrayAdapterPlanet listAdapter;//fils this listadapter with the above model instant and set the adapater to the view. I would love to give more suggestion in terms of Design. Kindly let me know , if i can contribute more on this. -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Sun, Jan 1, 2012 at 7:20 AM, Shawn energysh...@gmail.com wrote: I created a simple WCF REST service that is returning a list of data rows from a SQL Server. I've been trying to get my android application to be able to refernce the returned data for a few days now and finally feel like I am getting somehwere. The below code is working and the toast text displays the entire response from the web call in a comma deliminated format (see bottom for example) but the question is how I can individually reference each returned item and how can I fill a listview with the results? public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.runlist); //displayRunList(null); //call the displayRunList function on create try { //call our rest service call through httpGet HttpGet request = new HttpGet(http://www.mydomain.com/webserv/ Service1/getVehicles); request.setHeader(Accept, application/json); request.setHeader(Content-type, application/json); DefaultHttpClient httpClient = new DefaultHttpClient(); HttpResponse response = httpClient.execute(request); HttpEntity entity = response.getEntity(); Returned = EntityUtils.toString(entity); Toast.makeText(this, Returned, Toast.LENGTH_LONG).show(); Log.i(Test,response.getStatusLine().toString()); } catch (IOException ioe) { } } // **END When I run the REST service in browswer I am returned with the following XML; - clsVehicles xmlns=http://schemas.datacontract.org/2004/07/ WcfRestService xmlns:i=http://www.w3.org/2001/XMLSchema-instance; carNoA1/carNo invNo262901/invNo makeFORD/make mileage117894/mileage modelRANGER/model saleDate12/30/2011 12:00:00 AM/saleDate soldTrue/sold style / year1994/year /clsVehicles The Toast text returns the data like this: {carNo:A1, invNo:262901, make:FORD...etc} -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TelephonyManager.getLine1Number() returns null always
Some devices just do this, what device are you using? Also, you should have the read phone state permission for this, though if you didn't have it the result should be a security exception rather than this null behavior (unless I'm forgetting that the api silently checks for the permission, however, I think this is not the case...) kris On Mon, Jan 2, 2012 at 6:13 AM, Upendra Reddy Vuyyuru upendraredd...@gmail.com wrote: Hi All, I am trying to fetch the telephone number of the device. I am calling TelephonyManager.getLine1Number() it always returns null. Thank you in advance Regards Upendra Reddy.V -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using image from gallery in application
Hi Mates, I have done a Image cropping applicaton and below is the flow i had used it. App Launch- Goes to -- Camera--- Takes Pictures---Goes to Gallery--- Select Image--- Goes to Cropped Intent--- FTP Module. In order to cropped the image, please find the below link. http://www.walletapp.net/crop-image Cheers :) -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Sun, Jan 1, 2012 at 3:22 PM, xuanon jvidal611...@gmail.com wrote: This is the code I´m using for an app and it is working fine: public void onImageClick(View view){ Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType(image/*); startActivityForResult(photoPickerIntent, 1); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1) if (resultCode == Activity.RESULT_OK) { Uri selectedImage = data.getData(); img.setImageURI(selectedImage); } on the layout: ImageView android:id =@+id/pictureViewer2 android:contentDescription=@string/imagen android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:onClick=onImageClick android:adjustViewBounds=true android:scaleType =fitCenter / To avoid cropping the important thing is the scaleType and adjustViewBounds tags. Hope this helps. On 31 dic 2011, 20:12, mr.winky mr0wi...@gmail.com wrote: I am writing an intent to allow the user to pull an image from the gallery: Intent getImage = new Intent(Intent.ACTION_GET_CONTENT); getImage.setType(image/*); getImage.putExtra(outputX, width); getImage.putExtra(outputY, height); getImage.putExtra(aspectX, width); getImage.putExtra(aspectY, height); getImage.putExtra(noFaceDetection, true); getImage.putExtra(scale, true); getImage.putExtra(crop, true); getImage.putExtra(setWallpaper, false); startActivityForResult(Intent.createChooser(getImage, Select Background Image), 0x10); Everything is working fine and a new image is generated from the gallery except it looks like the image that comes back cropped is in a lower quality format from the original image, like 16 bit color format instead of 32 bit. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sending a backup file to the cloud
This isn't exactly an answer to your technical question but one to your conceptual one: http://code.google.com/intl/nl/android/c2dm/ there is a mechanism build in into android to backup data to the cloud, I suppose this will do... grtz, S. 2011/12/27 John Goche johngoch...@googlemail.com Hello, I have an application which saves important data to disk. I would like to allow the user to backup the data by emailing themselves the data. For this I need to open up a web browser activity from within the application and allow the user to browse the file system for the attachment (how else would I transfer the data from a file in the application's sandbox to a user specified server (such as a google mail server) on the web. Can someone please offer some suggestions on how to achieve this operation of transfering data from the phone to a backup file in the cloud. Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 start my anroid developer carrier and from where to start?
You start here : http://developer.android.com/index.html Good luck! Terry On 30 Des 2011, 05:20, Vansh vans...@gmail.com wrote: I m New to this one, so need guidance for starting my anroid carrier plz...help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Develop a Google tv appliction for Auto turn on off
Hi..all, recently i have started the google tv app development. i have configured sdk and addons. But My question is that we have an option for normal tvs to turn off(sleep) and turn on by pressing remote on/off button. my intention is to turn on the tv programatically and also turn off the tv programatically for different time intervels through my application in the google tv. i have written some code by using alarm manager to put time intervels for tv on/off. But i am unable to do how to write the code to access tv on/off button functionality. If anybody knows can you please help me out in this area. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to start my anroid developer carrier and from where to start?
If you're serious about starting a carrier then perhaps you should look into the various wireless control authorities in whichever country it's going to be based in, for a start. And, BTW, you're on the wrong list for starting a carrier. Thanks On Fri, Dec 30, 2011 at 9:50 AM, Vansh vans...@gmail.com wrote: I m New to this one, so need guidance for starting my anroid carrier plz...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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help me....
Under Windows-Preferences, click on Android, put in the SDK location. On Sat, Dec 31, 2011 at 7:35 AM, RAJU V kathiriraj...@gmail.com wrote: pls help me.. how to fix this issues in eclipse pls [2011-12-31 17:58:34 - DDMS] DDMS files not found: D:\Eclipse\eclipse\platform-tools\adb.exe D:\Eclipse\eclipse\tools\hprof-conv.exe D:\Eclipse\eclipse\tools\traceview.bat ~~RAJU~~ ~~www.itdoall.co.cc~~ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloskey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help whit SurfaceView initialization!
Hi guys Happy new year :) I started the year whit a little problem, and I'll be glad if someone help me tnks ! So, I am trying to spawn a specific .bmp in my Android screen at the initialization of the program, but the metod .getHeight() arent created yet when I create my bitmap! What I am doing: public class GameView extends SurfaceView { public GameView(Context context) { blablabla surface created{ gameLoopThread.start(); }, destroyed, changed sprites = new SpriteCreation(this); //here I make ALL the sprites o/ ( I think its the best way to optimize my program ) } and the constructor of the class sprites: public SpriteGood(GameView gameView, Bitmap bmp) { this.gameView=gameView; this.bmp=bmp; rnd = new Random(System.currentTimeMillis()); this.width = bmp.getWidth() / BMP_COLUMNS; this.height = bmp.getHeight() / BMP_ROWS; xSpeed = rnd.nextInt(10) - 5; ySpeed = rnd.nextInt(10) - 5; x=0; y=gameView.getHeight(); //THIS DOESNT WORK! the function returns 0 -.- I think its because the system didnt create it yet when I call... } I want the value of y be 2/3 the height of the screen! :( I am afraid to put a random value, like 500, and in some phones the screen height be less than that ! Someone help me ? If you guys didnt understand anything, you should make questions... I dont know if I was clear enough.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 should one delete all of the table(but not the table itself without making the thread using that database give an error
In your original delete method: public boolean deleteAllNotes() { return mDb.delete(DATABASE_TABLE,1, null) 0; } Is there any reason you are passing the value 1 as the whereValue for the mDb.delete(...) method? You could try simply using the value null. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] onDraw not being called
Hi everyone! I am trying to make a custom component, so for testing purposes I made a view that draws a white line. The code for the component follows: public class CGrafico extends SurfaceView implements SurfaceHolder.Callback{ public CGrafico(Context context) { super(context); } public CGrafico(Context context, AttributeSet attrs) { super(context, attrs); } public CGrafico(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Paint estilo = new Paint(); estilo.setARGB(255, 50, 55, 55); canvas.drawLine(0.0f, 0.0f, 10.0f, 10.0f, estilo); } @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, intheight) { } @Override public void surfaceCreated(SurfaceHolder holder) { } @Override public void surfaceDestroyed(SurfaceHolder holder) { } } I declared it on the xml layout just with the android:layout_width and the android:layout_height properties defined, both set to fill_parent, and the main class of the application just calls setContentView with the XML layout as an argument. My problem is that I have tested and the line the custom view was supposed to draw is not appearing, in fact, the onDraw function is not even being executed. I have tried to understand the example codes, and the developer page on Canvas and drawing, but I am too much of a newbie to see what I am doing wrong. Anyone have an idea on how to make it work? Ricardo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exception libcairo-2.dll Not Found (Mono.Cairo Error) in MonoAndroid
Now this time I am using the Cairo.Matrix dll in my monoandroid application to load the some System.Drawing.Drawing2D.Matix Class Methods it works fine at build time but at run time the Matrix class from Cairo.Matrix gives an error System.NullReferenceException: Object reference not set to an instance of an object. when I intialize the Cairo.Matrix Class error is Exception in loading dicom filelibcairo-2.dll. This below code I am trying.. using System; using System.Drawing; using Medsynaptic.Common; using Medsynaptic.Imaging1.Mathematics; using Matrix = Cairo.Matrix; public class SpatialTransform : ISpatialTransform { private Cairo.Matrix _cumulativeTransform; private Cairo.Matrix _transform; public PointF ConvertToDestination(PointF sourcePoint) { double x = 0.0, y = 0.0; this.CumulativeTransform.TransformPoint(ref x, ref y); PointF point = new PointF((float)x, (float)y); return point; } Here it show Null Ref Exception:Object reference not set to an instance of an object public Cairo.Matrix CumulativeTransform { get { Calculate(); return _cumulativeTransform; } } protected virtual void Calculate() { if (!this.RecalculationRequired) return; ERROR @ if condition:- Object reference not set to an instance of an object if (_cumulativeTransform == null) _cumulativeTransform = new Cairo.Matrix(); // _cumulativeTransform.Reset(); _cumulativeTransform.InitIdentity(); } } so please help me for this it's very urgent. Regards Pritish M. Deshmukh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android @ Home development project
hey buddys, I am seeking the Android @ home development stuff in the site. But I could not find anthing more, their detailed information a lot. I am worrying about their development so frustrating like the Android App Inventor. The project has modified in a stratnge format to MIT school. I am not sure why they are spending valuable time and money to the School. They aren't engough to make a real innovation, i think. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Samsung Galaxy S2 (2.3.4) and Arduino ADK
Any news? I have the same problem :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] A screen filter app.
Hey, It would be amazing if anyone can help me... I am trying to make an app rather like the Screen Filter app (http://www.appbrain.com/app/ screen-filter/com.haxor). My main questions are 1) How to make an app like this, in particular 2) How is the filter applied and... 3) How to click through the filter. Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android SDK Manager unable to install
Android SDK manager is not able to install many packages. In fact when I try to install the android SDK platforms it starts downloading it after a hour or so, it says downloading finished with wrong size. Expected *** bytes but got bytes. And eventually it says Not installed. Till now, I have been able to successfully install the Tools (Android SDK Tools and Android SDK Platform Tools), and some extras like Android Support Package. All other Android (say 4.0.3 or 3.0 or even 1.5) platforms and API's are not being installed due the above mentioned reason. Please HELP!! I have tried to download this a dozen times with absolutely no luck. I have changed my proxy settings accordingly and have also selected the Force https to be used as http://; option. Waiting for your 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
Re: [android-developers] compiler compliance problem
You are doing fine. I guess you are using Eclipse so within Eclipse: Right Click you project (in the Package Explorer view) and select Android Tools Fix Project Properties :) Hope this helps /Yaron On 12/30/2011 07:59 AM, brucenow wrote: I thought I was doing pretty good getting everything installed correctly to follow the examples in the book, Android for Programmers. But when it came to importing the first example I got this meesage: [2011-12-29 21:42:57 - Doodlz] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools Fix Project Properties. I really have no idea what tool to use or where exactly I might find it. Any ideas? Bruce -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one
Android does not play all streams. The supported streams and format are given in android documentation http://developer.android.com/guide/appendix/media-formats.html On Sat, Dec 31, 2011 at 8:31 AM, yaqub ahmad yaqubon...@gmail.com wrote: Please see the code i am using for streaming shoutcast stream, it works with one URL but NOT with the other one. This one works: Uri myUri = Uri.parse(http://fr3.ah.fm:9000/;); But not with this one: Uri myUri = Uri.parse(http://ib3.islambox.tv:8011/;); SimpleMusicStream.java import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class SimpleMusicStream extends Activity implements MediaPlayer.OnCompletionListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnBufferingUpdateListener { private String TAG = getClass().getSimpleName(); private MediaPlayer mp = null; private Button play; private Button pause; private Button stop; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); play = (Button) findViewById(R.id.play); pause = (Button) findViewById(R.id.pause); stop = (Button) findViewById(R.id.stop); play.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { play(); } }); pause.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { pause(); } }); stop.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { stop(); } }); } private void play() { Uri myUri = Uri.parse(http://fr3.ah.fm:9000/;); try { if (mp == null) { this.mp = new MediaPlayer(); } else { mp.stop(); mp.reset(); } mp.setDataSource(this, myUri); // Go to Initialized state mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.setOnPreparedListener(this); mp.setOnBufferingUpdateListener(this); mp.setOnErrorListener(this); mp.prepareAsync(); Log.d(TAG, LoadClip Done); } catch (Throwable t) { Log.d(TAG, t.toString()); } } @Override public void onPrepared(MediaPlayer mp) { Log.d(TAG, Stream is prepared); mp.start(); } private void pause() { mp.pause(); } private void stop() { mp.stop(); } @Override public void onDestroy() { super.onDestroy(); stop(); } public void onCompletion(MediaPlayer mp) { stop(); } public boolean onError(MediaPlayer mp, int what, int extra) { StringBuilder sb = new StringBuilder(); sb.append(Media Player Error: ); switch (what) { case MediaPlayer.MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK: sb.append(Not Valid for Progressive Playback); break; case MediaPlayer.MEDIA_ERROR_SERVER_DIED: sb.append(Server Died); break; case MediaPlayer.MEDIA_ERROR_UNKNOWN: sb.append(Unknown); break; default: sb.append( Non standard (); sb.append(what); sb.append()); } sb.append( ( + what + ) ); sb.append(extra); Log.e(TAG, sb.toString()); return true; } public void onBufferingUpdate(MediaPlayer mp, int percent) { Log.d(TAG, PlayerService onBufferingUpdate : + percent + %); } } main.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent Button android:text=Play android:id=@+id/play android:layout_width=wrap_content android:layout_height=wrap_content/Button Button android:text=Pause android:id=@+id/pause android:layout_width=wrap_content android:layout_height=wrap_content/Button Button android:text=Stop android:id=@+id/stop android:layout_width=wrap_content android:layout_height=wrap_content/Button /LinearLayout The Log-cat shows errors: NuHTTPDataSource(33): Server did not give us the content length! Media Player Error: Unknown (1) -2147483648 Can someone help me to fix it? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received
[android-developers] How to remove delay in playing streaming links like rtsp??
I used videoview to play rtsp streaming link.But the streaming is late by about 10-20seconds. I am streaming using vlc in Desktop computer.Is there any way that i can reduce this delay?? I want this delay to be removed...I am ready to change other factors - streaming protocol ...ie, rtsp to any other android supported protocol - vlc streaming server to any other streaming server - videoview to play the streaming link What i understand is that videoview is buffering for that time...But i want a better live stream and play Please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
HI, I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE 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
[android-developers] No custom attributes for included layout?
Hi, all! I try to use custom xml attribute for customize included layout content. But instead of ordinary widgets for layouts there are no custom attributes in constructor sent. I mean that context.obtainStyledAttributes(attrs, R.styleable.CellLayout) returns empty array (with length = 0). Is it normal? Code: com/xxx/CellLayout.java: ( public class CellLayout extends LinearLayout { public CellLayout(Context context, AttributeSet attrs) { super(context, attrs); setWillNotDraw(false); TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.CellLayout); final int N = attributes.getIndexCount(); // N = 0 !!! } ... ) values/attrs.xml: ( ?xml version=1.0 encoding=utf-8? resources declare-styleable name=CellLayout attr name=header format=string / /declare-styleable /resources ) layout/cell.xml: ( ?xml version=1.0 encoding=utf-8? com.xxx.CellLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ... /com.xxx.CellLayout ) layout/main.xml: ( ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:cell=http://schemas.android.com/apk/res/com.xxx; android:id=@+id/layoutBackground android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical include android:id=@+id/Time android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 layout=@layout/cell cell:header=Time / ... /LinearLayout ) Well, if there realy no chance to get custom attribute values then how to customize included layout widged text (for example) without hardcoding findViewById() + findViewById() + setText() in main activity constructor? Thanks, Uri. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ftp problem
Hello , currently I'm writing an android application that needs a file on a ftp-server (drivehq) to operate properly . Because the ftpclient of sun doesn't work for android ,I used the ftpclient of apache.commons . When i debug up my app on the device (htc wildfire) , it gives me an IO-message who just says : ERROR: ftp.drivehq.com ; I don't understand this problem an I'm pretty new to developping android apps . package me.Test.test; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.net.UnknownHostException; import android.app.Activity; import org.apache.commons.net.ftp.*; import android.os.Bundle; import android.widget.TextView; public class TestActivity extends Activity { private String serverIP ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { FTPClient ftpclient = new FTPClient() ; TextView tv = new TextView(this) ; tv.setText(Looking for server ip-address...); setContentView(tv); InetAddress ftpaddr = InetAddress.getByName(ftp.drivehq.com); ftpclient.connect(ftpaddr ) ; ftpclient.login(username,password ) ; setContentView(tv) ; ftpclient.changeWorkingDirectory(/ServerAddress); String[] name = ftpclient.listNames() ; tv.setText(name[1]) ; setContentView(tv) ; } catch (IOException e) { TextView tv1 = new TextView(this) ; tv1.setText(ERROR: + e.getMessage()) ; setContentView(tv1) ; System.out.println(e.getMessage()) ; e.printStackTrace() ; } } public void getServerIp() { } } Greetings Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Compatibility Package ... sample not compatible ?
Sorry if this is obvoius but I am quite new to android development. I am currently trying to learn about using fragments and using fragments for different screen sizes and screen orientations. So, I intend learn about and use the Android Compatibility Package. With that comes a sample, Support4Demos, which I import to my Eclipse workspace. If I set project build target to API level 15 (4.0.3) everything looks fine, but if I set build taget to something like API level 10 (2.3.3) Eclipse will report an error for one of the files. The file is styles.xml under directory values-v11 and one of the errors are reported for the following: !-- For API level 11 or later, the Holo theme is available and we prefer that. -- style name=ThemeHolo parent=android:Theme.Holo /style The comment indicates that this should be used for API level 11 or later. But if it does not compile what is the file doing in a sample for a compatibility package supposed to be used for API levels earlier than API level 11. This leads me to think that I do something wrong with my project setup. If I intend to have my app be compatible for all versions from 2.3.3 and later should I not set project build target to API level 10 (2.3.3) ( and correspondingly the min sdk attribute)? Or can it be OK to set project build taget to the latest API level and still use it on earlier builds? Thank you in advance from a confused beginner. Sven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reverse Geocoder null locality and wrong city
Hi, I've used reverse geocoding address locality to determine the city, and it worked fine before. However, just recently the returned locality is now often null. Example: query for location 59.436871, 17.932348 returns address: Address[addressLines=[0:Heikkiläntie 14,1:01900 Helsinki,2:Finland],feature=14,admin=null,sub-admin=null,locality=null,thoroughfare=Heikkiläntie,postalCode=null,countryCode=FI,countryName=Finland,hasLatitude=true,latitude=60.4626323,hasLongitude=true,longitude=24.8192246,phone=null,url=null,extras=null] Here locality is null and what is worse, the address line 01900 Helsinki is wrong, should be 01900 Nurmijärvi. Helsinki is reported as the city in the address for all cities next to Helsinki, actually quite far away. The same happens at least near Oulu and Tampere. Null localities appear to occur also at least in London and Stockholm. Any ideas what is going on? Has the geocoding service changed somehow? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android: value of one spinner depends on value of other spinner
I have a problem on Android Spinner.In my application I created two Spinner on main layout. 'State' Spinner and 'District' Spinner. All the data on Spinner are stored in SQLite database. I want do display list of 'District' on second spinner depending on selection of particular 'State' in the first spinner. Example: Suppose when I select Karnataka in the first spinner then application first retrieve all the district from SQLite database related to karnataka state and then it display on second Spinner. For this I do all the database activity correctly means creating two table 'state' and 'district' in which one column in district table is foreign key which is refereed to one of the primary key of 'state table' db.execSQL(create table +STATE_TABLE+ (+ STATE_ID+ integer primary key autoincrement not null, + STATE_NAME+ text+)); db.execSQL(create table +DISTRICT_TABLE+ (+DISTRICT_ID+ integer primary key autoincrement not null,+DISTRICT_NAME + text,+STATE_ID+ integer, FOREIGN KEY( +STATE_ID+) REFERENCES +STATE_TABLE +(+STATE_ID+)+)); Now in the Activity Class: spinnerState = (Spinner)findViewById(R.id.spinner1); spinnerDistrict = (Spinner)findViewById(R.id.spinner2); stateList = new ArrayListString(); districtList = new ArrayListString(); **Suppose all the data are all ready stored in database.** Now I need to retrieve all the 'State' data from database and add it in the statelist which is ArrayList. Cursor stateCursor = database.query(STATE_TABLE, new String[] {STATE_ID, STATE_NAME}, null, null, null, null, STATE_NAME); stateCursor.moveToFirst(); if(! stateCursor.isAfterLast()){ do{ int id = stateCursor.getInt(0); String stateName = stateCursor.getString(1); stateList.add(stateName); }while(stateCursor.moveToNext()); } stateCursor.close(); after this I create one ArrayAdapter and put this state list into this. spinnerState.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_spinner_item, stateList)); Next i put the following code in the activity class: spinnerState.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView? parent, View v, int pos, long id) { } @Override public void onNothingSelected(AdapterView? arg0) { // TODO Auto-generated method stub } }); **Now My problem is here:** 1. How I get the StateId for executing the select query for taking all the district related to particular state. 2. How the adepter will generate for District. 3. where I put all these code. Here what I need creating the districtList after getting the value from state Spinner. Similar Question which asked earlier in this website, what they do: they already create two adapter for two spinner and then apply setOnItemSelectedListener. Please Help me because here my mind totally stop working. I refer lot of book and website but not they even mention these type of problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Open Feint SDK Errors
Hey can anyone help me with these errors to get the Open Feint SDK Working? I tried installing it on Eclipse Classic, here are the errors: #1: Description ResourcePathLocationType Project 'MyOpenFeintSample' is missing required Java project: 'GameFeed' MyOpenFeintSample Build path Build Path Problem #2: Description ResourcePathLocationType Project 'MyOpenFeintSample' is missing required Java project: 'OpenFeintAPI' MyOpenFeintSample Build path Build Path Problem #3: Description ResourcePathLocationType The project cannot be built until build path errors are resolved MyOpenFeintSample Unknown Java Problem #4: Description ResourcePathLocationType Unable to resolve target 'android-8'MyOpenFeintSample Unknown Android Target Problem Can anyone help me with 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
[android-developers] How can I capture text in an EditText and replace it with a ClickSpan
I am working on an application where the used enters text into an EditText. I want to make the text clickable to perform actions relevant to the application. I am thinking to capture the text as the user is entering it, and replace it with a ClickSpan, so that the text the user enters is clickable. I imagine there should be a way to hook in a Filter so that I can capture the entered text, and replace it with te ClickSpan, but I am not sure how to do so. Any ideas would be greatly 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
Re: [android-developers] Re: Clarification on DPI
im sorry i just got lost i'm new to android developement On Sun, Jan 1, 2012 at 8:51 PM, jc jroma...@gmail.com wrote: On Dec 29 2011, 10:06 pm, Jonathan jlani...@gmail.com wrote: And how in the world do they get a 2/3 scaling factor? HDPI density is 240 dpi, see http://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_HIGH if dp = px / (dpi/160) and dp = px * scaling factor then scaling factor = 1 / (dpi/160) hence, hdpi scaling factor is 1 / (240/160) or 160/240 resulting in 2/3 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: single_apk_On_multiple_devices
where do I get the Hidefinition images? On Sun, Jan 1, 2012 at 11:38 PM, VenomVendor™ yoganandh2...@gmail.comwrote: Remove images from the Folder drawable-mdpi, drawable-ldpi, Just put High Definition images in drawable-hdpi. i wld suggest u to test the APK file directly in the Tab, if u dont have, atleast configure the emulator Properly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exception libcairo-2.dll Not Found (Mono.Cairo Error) in MonoAndroid
I am sure, you are missing .so files which is a part of your library. you need the .so files Add to build path and things will work. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Sat, Dec 31, 2011 at 12:57 PM, Pritish pritishdeshm...@gmail.com wrote: Now this time I am using the Cairo.Matrix dll in my monoandroid application to load the some System.Drawing.Drawing2D.Matix Class Methods it works fine at build time but at run time the Matrix class from Cairo.Matrix gives an error System.NullReferenceException: Object reference not set to an instance of an object. when I intialize the Cairo.Matrix Class error is Exception in loading dicom filelibcairo-2.dll. This below code I am trying.. using System; using System.Drawing; using Medsynaptic.Common; using Medsynaptic.Imaging1.Mathematics; using Matrix = Cairo.Matrix; public class SpatialTransform : ISpatialTransform { private Cairo.Matrix _cumulativeTransform; private Cairo.Matrix _transform; public PointF ConvertToDestination(PointF sourcePoint) { double x = 0.0, y = 0.0; this.CumulativeTransform.TransformPoint(ref x, ref y); PointF point = new PointF((float)x, (float)y); return point; } Here it show Null Ref Exception:Object reference not set to an instance of an object public Cairo.Matrix CumulativeTransform { get { Calculate(); return _cumulativeTransform; } } protected virtual void Calculate() { if (!this.RecalculationRequired) return; ERROR @ if condition:- Object reference not set to an instance of an object if (_cumulativeTransform == null) _cumulativeTransform = new Cairo.Matrix(); // _cumulativeTransform.Reset(); _cumulativeTransform.InitIdentity(); } } so please help me for this it's very urgent. Regards Pritish M. Deshmukh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Why android unable to develop any driver for any 3g usb dongle for tablets
On Sat, Dec 31, 2011 at 11:34:28AM -0800, A K Das wrote: Now the technologies and know how are enough advanced. but why android platform unable to recognise any driver for any 3g usb dongle for tablets. Is that a question or a statement? Based on the lack of a question mark, we'll assume it's a statement (and an incorrect oone, at that). But first, wrong group. This group is for developing apps FOR the Android using the SDK. You need to post this on the appropriate vendor's support forum for whatever tablet you bought that doesn't support a 3G dongle and ask them. Second, some tablets support a 3G dongle, some don't. So your statement above is incorrect. 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 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) 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] MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
look Console and logcat 2012/1/1 Vinu vinu.d...@gmail.com HI, I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ftp problem
Hey Tom, Try my modified code, you will get succeeded. boolean isImgUploaded = false; FTPClient imgUploadClient = new FTPClient(); imgUploadClient.setDefaultTimeout(1000*180); int reply = 0; try { imgUploadClient.connect(AppHelper.FTP_SERVER_HOST, AppHelper.FTP_SERVER_PORT); if (imgUploadClient.login(AppHelper.FTP_USER, AppHelper.FTP_USER_PWD)) { Log.i(AppHelper.APP_TAG, Login successful.); } else Log.i(AppHelper.APP_TAG, Login failed.); reply = imgUploadClient.getReplyCode(); Log.i(AppHelper.APP_TAG, Reply from server - + reply); if (FTPReply.isPositiveCompletion(reply)) { Log.i(AppHelper.APP_TAG, Connected to online storage successful.); imgUploadClient.setFileType(FTP.BINARY_FILE_TYPE); imgUploadClient.setFileTransferMode(FTP.BINARY_FILE_TYPE); FileInputStream imgIpStream = new FileInputStream( request.getImgFile()); long startTime = System.currentTimeMillis(); imgUploadClient.enterLocalPassiveMode(); isImgUploaded = imgUploadClient.storeFile(request.getImgFile().getName(), imgIpStream); long endTime = System.currentTimeMillis(); Log.e(AppHelper.APP_TAG, String.format( File uploaded in %s seconds, TimeUnit.SECONDS.toSeconds(endTime - startTime))); if (isImgUploaded) { imgIpStream.close(); Log.i(AppHelper.APP_TAG, Image upload to online storage successful.); Log.i(AppHelper.APP_TAG, Local copy of the image removed.); response = AppHelper.getErrResponse(AppHelper.SUCCESS, AppHelper.ERR_CODE_, AppHelper.ERR_MSG_); } else { imgIpStream.close(); reply = imgUploadClient.getReplyCode(); response = AppHelper.getErrResponse( AppHelper.FAILURE, AppHelper.ERR_CODE_1002 + _ + reply, AppHelper.ERR_MSG_1002 + imgUploadClient.getReplyString()); } } else { Log.e(AppHelper.APP_TAG, Failed to connect to online storage successful.); response = AppHelper.getErrResponse(AppHelper.FAILURE, AppHelper.ERR_CODE_1000 + _ + reply, AppHelper.ERR_MSG_1001); } } catch (SocketException e) { Log.e(AppHelper.APP_TAG, AppHelper.ERR_MSG_1008+ - +e.getMessage()); e.printStackTrace(); } catch (IOException e) { Log.e(AppHelper.APP_TAG, AppHelper.ERR_MSG_1009+ - +e.getMessage()); e.printStackTrace(); } finally { if(isImgUploaded){ response = AppHelper.getErrResponse(AppHelper.SUCCESS,AppHelper.ERR_CODE_, AppHelper.ERR_MSG_); }else{ response = AppHelper.getErrResponse(AppHelper.FAILURE, AppHelper.ERR_CODE_1000, AppHelper.ERR_MSG_1000); } if (imgUploadClient != null imgUploadClient.isConnected()) { try { imgUploadClient.logout(); imgUploadClient.disconnect(); } catch (IOException e) { Log.e(AppHelper.APP_TAG, AppHelper.ERR_MSG_1010+ - +e.getMessage()); e.printStackTrace(); } } } Let me know if it works. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Sat, Dec 31, 2011 at 1:26 AM, tbellens tom.bell...@gmail.com wrote: Hello , currently I'm writing an android application that needs a file on a ftp-server (drivehq) to operate properly . Because the ftpclient of sun doesn't work for android ,I used the ftpclient of apache.commons . When i debug up my app on the device (htc wildfire) , it gives me an IO-message who just says : ERROR: ftp.drivehq.com ; I don't understand this problem an I'm pretty new to developping android apps . package me.Test.test; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.net.UnknownHostException; import android.app.Activity; import org.apache.commons.net.ftp.*; import android.os.Bundle; import android.widget.TextView; public class TestActivity extends Activity { private String serverIP ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { FTPClient ftpclient = new FTPClient() ; TextView tv = new TextView(this) ; tv.setText(Looking for server ip-address...); setContentView(tv); InetAddress ftpaddr = InetAddress.getByName( ftp.drivehq.com); ftpclient.connect(ftpaddr ) ; ftpclient.login(username,password ) ; setContentView(tv) ; ftpclient.changeWorkingDirectory(/ServerAddress); String[] name = ftpclient.listNames() ; tv.setText(name[1]) ; setContentView(tv) ; } catch (IOException e) { TextView tv1 = new TextView(this) ; tv1.setText(ERROR: + e.getMessage()) ; setContentView(tv1) ; System.out.println(e.getMessage()) ; e.printStackTrace() ; } } public void getServerIp() { } } Greetings Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
Yes. Providing a few details and typing normally will go a long way in getting you some help. On Mon, Jan 2, 2012 at 7:14 AM, Vinu vinu.d...@gmail.com wrote: HI, I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Notification Background Color (ICS)
On 31 Dez. 2011, 11:10, Zsolt Vasvari zvasv...@gmail.com wrote: Maybe it's a 4.0.2 vs 4.0.3 problem. You could try it in an emulator and if it's a regression in 4.0.3, create a bug report. It seems to be a 4.0.3 bug. I've got the same bug both on the 4.0.3 emulators (4.0.0 don't work for me - stuck at the Android logo) and with an AOSP 4.0.3 ROM (Kang) on Galaxy Nexus. But as we know, some devices will probably still run the buggy 4.0.3 in two years even if Google fixes the code immediately. So how to work around? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
error may be in the xml or manufest. even error is there it wont show -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Stop service before the work completes
Dear All, I would want to stop the service before the work completes . For instance , when the user wishes to cancel, i want to stop the service . Is it possible to do so? Regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Stop service before the work completes
Hey, Are you talking about AsyncTask with a progress Dialog on a Cancel button ? or ? A Service Class ? Please clarify Secondly, Service runs in the background without user interface, so not sure, which Asynchronous you are taking about. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad On Mon, Jan 2, 2012 at 5:37 PM, elham elhamna...@gmail.com wrote: Dear All, I would want to stop the service before the work completes . For instance , when the user wishes to cancel, i want to stop the service . Is it possible to do so? Regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] problem: play pre recorded audio in out going call
On Sat, Dec 31, 2011 at 09:51:10PM -0800, dhaval wrote: when receiver party pickup call then he should hear pre[-]recorded audio file I'm 99% sure that I've read, around a dozen or so times in this list over the last month or two, that you can't, period, as you don't have access to the audio stream for the call. If I'm wrong about that, someone please correct me. Plz ...is not a word in the English language. 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 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) 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] MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
Use Debug as - Android Application 2012/1/2 midhun midhunvp midhu...@gmail.com error may be in the xml or manufest. even error is there it wont show -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: single_apk_On_multiple_devices
You mean images of big size put in drawable-hdpi or any thing else. I checked my emulator is properly configure but still display is not proper.. On Mon, Jan 2, 2012 at 10:46 AM, taylor ringo taylorri...@gmail.com wrote: where do I get the Hidefinition images? On Sun, Jan 1, 2012 at 11:38 PM, VenomVendor™ yoganandh2...@gmail.comwrote: Remove images from the Folder drawable-mdpi, drawable-ldpi, Just put High Definition images in drawable-hdpi. i wld suggest u to test the APK file directly in the Tab, if u dont have, atleast configure the emulator Properly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
On Sun, Jan 01, 2012 at 05:44:05PM -0800, Vinu wrote: I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE HELP ME . 1) Please don't shout here...not only is it rude, it makes your text hard to read. There is a key on your keyboard labelled (in English, anyways...you may need to translate) Caps Lock. Please use this key to turn Caps Lock off (the little LED that says Caps Lock will go off). 2) Nobody can help you if you don't post some useful information about what's happening. Post the relevant portion (only) of the Logcat data AND the section of the code that's causing the problem. Then someone might help you. 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 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) 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] PRINTING DOCS
Hi, i'm developing a apps and I want to print directly from my app. is some API what i can use for this? I tried http://android10.org/index.php/articleslibraries/140-api-for-printing-from-android-applications, but it doesn't work. Anyone know something. How to print directly? some class like Print.print() Thank YOU!! Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] problem: play pre recorded audio in out going call
Dear jim thanx for reply.. I m making one application,where i required to do it. without it i have to close this app devlopment. I m really depressed by hearing this... Pls ,is there any othee way? On Jan 2, 2012 5:43 PM, Jim Graham spooky1...@gmail.com wrote: On Sat, Dec 31, 2011 at 09:51:10PM -0800, dhaval wrote: when receiver party pickup call then he should hear pre[-]recorded audio file I'm 99% sure that I've read, around a dozen or so times in this list over the last month or two, that you can't, period, as you don't have access to the audio stream for the call. If I'm wrong about that, someone please correct me. Plz ...is not a word in the English language. 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 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) 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] PRINTING DOCS
There is no native printing capability in Android, largely because Android has no concept of printers. You are welcome to attempt to use some third-party printing service (e.g., Google Cloud Print). On Mon, Jan 2, 2012 at 7:34 AM, Doberman ocara...@gmail.com wrote: Hi, i'm developing a apps and I want to print directly from my app. is some API what i can use for this? I tried http://android10.org/index.php/articleslibraries/140-api-for-printing-from-android-applications, but it doesn't work. Anyone know something. How to print directly? some class like Print.print() Thank YOU!! 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming 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
Re: [android-developers] Android Compatibility Package ... sample not compatible ?
On Mon, Jan 2, 2012 at 4:54 AM, senglund sven.m.engl...@gmail.com wrote: Sorry if this is obvoius but I am quite new to android development. I am currently trying to learn about using fragments and using fragments for different screen sizes and screen orientations. So, I intend learn about and use the Android Compatibility Package. With that comes a sample, Support4Demos, which I import to my Eclipse workspace. If I set project build target to API level 15 (4.0.3) everything looks fine, but if I set build taget to something like API level 10 (2.3.3) Eclipse will report an error for one of the files. Of course. You set your build target to be the lowest level of the capabilities that you are using explicitly. Setting it lower than that will result in compile errors, by definition. The file is styles.xml under directory values-v11 and one of the errors are reported for the following: !-- For API level 11 or later, the Holo theme is available and we prefer that. -- style name=ThemeHolo parent=android:Theme.Holo /style The comment indicates that this should be used for API level 11 or later. But if it does not compile what is the file doing in a sample for a compatibility package supposed to be used for API levels earlier than API level 11. This leads me to think that I do something wrong with my project setup. Set your build target to API Level 11. The resulting app can still run on earlier versions of Android. If I intend to have my app be compatible for all versions from 2.3.3 and later should I not set project build target to API level 10 (2.3.3) ( and correspondingly the min sdk attribute)? Not necessarily. You set your build target to be the lowest level of the capabilities that you are using explicitly. Or can it be OK to set project build taget to the latest API level and still use it on earlier builds? Yes. What you lose is compile-time sanity checks. For example, if your reference to Theme.Holo was in res/values/, not res/values-v11/, that will cause a problem on API Level 10 (and lower) devices. With the build target set to API Level 10, you would catch this at compile time; with a build target of API Level 11 or higher, you would catch this at runtime when testing your app on the older device. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming 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
Re: [android-developers] How to Develop a Google tv appliction for Auto turn on off
On Mon, Jan 2, 2012 at 6:35 AM, Ganesh Vadlakonda ganesh.v.ko...@gmail.com wrote: But My question is that we have an option for normal tvs to turn off(sleep) and turn on by pressing remote on/off button. my intention is to turn on the tv programatically and also turn off the tv programatically for different time intervels through my application in the google tv. This is not possible AFAIK. For example, there is no way for my Sony Google TV device to somehow power off my LG television. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming 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
[android-developers] Re: MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
hi, below is the log from the Log Cat: 01-02 15:00:25.455: W/dalvikvm(300): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 01-02 15:00:25.564: E/AndroidRuntime(300): FATAL EXCEPTION: main 01-02 15:00:25.564: E/AndroidRuntime(300): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{vinayak.android.tipcalculator/ vinayak.android.tipcalculator.tipcalc}: java.lang.ClassNotFoundException: vinayak.android.tipcalculator.tipcalc in loader dalvik.system.PathClassLoader[/data/app/ vinayak.android.tipcalculator-1.apk] 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2585) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.os.Handler.dispatchMessage(Handler.java:99) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.os.Looper.loop(Looper.java:123) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.reflect.Method.invokeNative(Native Method) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.reflect.Method.invoke(Method.java:521) 01-02 15:00:25.564: E/AndroidRuntime(300): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 01-02 15:00:25.564: E/AndroidRuntime(300): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-02 15:00:25.564: E/AndroidRuntime(300): at dalvik.system.NativeStart.main(Native Method) 01-02 15:00:25.564: E/AndroidRuntime(300): Caused by: java.lang.ClassNotFoundException: vinayak.android.tipcalculator.tipcalc in loader dalvik.system.PathClassLoader[/data/app/ vinayak.android.tipcalculator-1.apk] 01-02 15:00:25.564: E/AndroidRuntime(300): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2577) 01-02 15:00:25.564: E/AndroidRuntime(300): ... 11 more Now can anybody help me in resolving the problem, as i am new to android. Regards, Vinayak On Jan 2, 5:22 pm, Jim Graham spooky1...@gmail.com wrote: On Sun, Jan 01, 2012 at 05:44:05PM -0800, Vinu wrote: I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE HELP ME . 1) Please don't shout here...not only is it rude, it makes your text hard to read. There is a key on your keyboard labelled (in English, anyways...you may need to translate) Caps Lock. Please use this key to turn Caps Lock off (the little LED that says Caps Lock will go off). 2) Nobody can help you if you don't post some useful information about what's happening. Post the relevant portion (only) of the Logcat data AND the section of the code that's causing the problem. Then someone might help you. 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 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing athttp://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] Measuring applied pressure.
http://developer.android.com/reference/android/view/MotionEvent.html#getPressure() On Sun, Jan 1, 2012 at 11:05 PM, DrewBob drew.donald.d...@gmail.com wrote: Is there any way to measure the amount of applied pressure from a finger touch? For example, if I were to develop a driving application on a touch sensitive screen and I wanted to determine how hard the user was pressing down on the accelerator (screen), how might I go about determining 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming 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
Re: [android-developers] Re: MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR
Android cannot find the class. Most likely you made a mistake in typing its name or there is an error in your AndroidManifest.xml Thanks On Mon, Jan 2, 2012 at 6:36 PM, Vinu vinu.d...@gmail.com wrote: hi, below is the log from the Log Cat: 01-02 15:00:25.455: W/dalvikvm(300): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 01-02 15:00:25.564: E/AndroidRuntime(300): FATAL EXCEPTION: main 01-02 15:00:25.564: E/AndroidRuntime(300): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{vinayak.android.tipcalculator/ vinayak.android.tipcalculator.tipcalc}: java.lang.ClassNotFoundException: vinayak.android.tipcalculator.tipcalc in loader dalvik.system.PathClassLoader[/data/app/ vinayak.android.tipcalculator-1.apk] 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2585) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.os.Handler.dispatchMessage(Handler.java:99) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.os.Looper.loop(Looper.java:123) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.reflect.Method.invokeNative(Native Method) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.reflect.Method.invoke(Method.java:521) 01-02 15:00:25.564: E/AndroidRuntime(300): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 01-02 15:00:25.564: E/AndroidRuntime(300): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-02 15:00:25.564: E/AndroidRuntime(300): at dalvik.system.NativeStart.main(Native Method) 01-02 15:00:25.564: E/AndroidRuntime(300): Caused by: java.lang.ClassNotFoundException: vinayak.android.tipcalculator.tipcalc in loader dalvik.system.PathClassLoader[/data/app/ vinayak.android.tipcalculator-1.apk] 01-02 15:00:25.564: E/AndroidRuntime(300): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 01-02 15:00:25.564: E/AndroidRuntime(300): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 01-02 15:00:25.564: E/AndroidRuntime(300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2577) 01-02 15:00:25.564: E/AndroidRuntime(300): ... 11 more Now can anybody help me in resolving the problem, as i am new to android. Regards, Vinayak On Jan 2, 5:22 pm, Jim Graham spooky1...@gmail.com wrote: On Sun, Jan 01, 2012 at 05:44:05PM -0800, Vinu wrote: I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES. CAN ANY ONE HELP ME . 1) Please don't shout here...not only is it rude, it makes your text hard to read. There is a key on your keyboard labelled (in English, anyways...you may need to translate) Caps Lock. Please use this key to turn Caps Lock off (the little LED that says Caps Lock will go off). 2) Nobody can help you if you don't post some useful information about what's happening. Post the relevant portion (only) of the Logcat data AND the section of the code that's causing the problem. Then someone might help you. 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 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing athttp://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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,
Re: [android-developers] addFooterView(view,data,isSelectable) Explanation
On Sun, Jan 1, 2012 at 10:51 PM, Alex Fu faint...@gmail.com wrote: Can someone provide an example as to how this function, http://developer.android.com/reference/android/widget/ListView.html#addFooterView(android.view.View, java.lang.Object, boolean), would work? As with a ListView, you need an adapter. Which adapter does this function uses? The same adapter for your ListView? It wraps the adapter you provide via setAdapter() in its own adapter that adds in the header and footer views. If so how would you determine if the footer view is being passed, assuming your footer view has a different view structure compared to the rows in your ListView. You will not receive the footer view for recycling in getView()/bindView(). If you wish to update the footer, hold onto your footer view and update it directly. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming 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
[android-developers] onlocation not calling in location listener
HI all, To find my current location i tried the below code but not working can any one please help me what i did wrong or where i need to change In AndroidManifest.xml: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / From Activity on create im calling setLocation() method , it calling that method then it printing the log of setLocation 1,setLocation 2A4 it even not calling onStatusChanged, onlocationchange, it only calling onProviderEnabled() so help me please. private void setLocation() { Log.e(setLocation, setLocation 1); LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener locationListener = new mylocationlistener(); Log.e(setLocation, setLocation 2A4); locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); if (lat == 0.0) { Log.e(setLocation, getLastKnownLocation); Location location = locationManager .getLastKnownLocation(LocationManager.GPS_PROVIDER); makeUseOfNewLocation(location); } } private class mylocationlistener implements LocationListener { public void onLocationChanged(Location location) { if (location != null) { Log.e(inside onlocation change, inside onlocation chang); lat = location.getLatitude() * 1E6; lng = location.getLongitude() * 1E6; } } public void onProviderDisabled(String provider) { Log.e(onProviderDisabled, 1); } public void onProviderEnabled(String provider) { Log.e(onProviderEnabled, 2); } public void onStatusChanged(String provider, int status, Bundle extras) { Log.e(onStatusChanged, =+status); } } protected void makeUseOfNewLocation(Location location) { Log.e(setLocation, setLocation 3); if (location != null) { Log.e(setLocation, success); lat = location.getLatitude(); lng = location.getLongitude(); Log.e(lat, + lat); Log.e(lng, + lng); } } -- Regards, Perumal.N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Compatibility Package ... sample not compatible ?
Thank you very much for your explanation. Much less confused now :-) Best Regards Sven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android unit testing with ContentProviders and databases
Thanks Diego. I have that book on order - still waiting for it to arrive! Barry On 2 January 2012 06:18, Diego Torres Milano dtmil...@gmail.com wrote: The best solution is probably a RenamingDelegatingContext, that will allow your tests to use a different database than your 'live' one. There are examples of RenamingDelegatingContext and other mock injections in Android Application Testing Guide [http:// www.packtpub.com/android-application-testing-guide/book]. On Dec 31 2011, 2:20 am, Stephan Wiesner testexpe...@googlemail.com wrote: I guess you gave the obvious answer yourself: Don't hardcode the name. Use a variable, maybe a system setting or something from a config file that can be accessed by all your apps and put an if/else block in your provider Greetings from Berne, Stephan On 31 Dez., 01:05, barry barry.drinkwa...@gmail.com wrote: I have an app that uses a ContentProvider to serve data instead of directly accessing the database. The application is working as expected but I have a problem with unit tests: how can I force the ContentProvider to use a test database rather than a 'live' one? If I wasn't using a ContentProvider I could pass a different database name to the Constructor of my `SQLiteOpenHelper` sublass, but now the database is created with a call to onCreate() in my ContentProvider: @Override public boolean onCreate() { UKMPGDataProvider.init(getContext(), Constants.DATABASE_NAME); return (UKMPGDataProvider.getWritableDatabase() == null) ? false : true; } As you can see, the database name is hardcoded. Is there a way to pass a test name into the ContentProvider? -- Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Target
In my avd manager, Target is shown as disabled. This is happenning only for android 4.0. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SyncAdapter - error SettingNotFoundException: roaming_auto_sync_enabled
Back from Holidays. Problem is solved after SDK-Update. On 23 Dez. 2011, 16:05, pravin kadam pravinkadam2...@gmail.com wrote: Hi, Thank you very much for your reply. i will search on this. if in future if you got solution please let me know. it would be a great help from you... Have nice Christmas and happy new year With Regards, pravin. On Fri, Dec 23, 2011 at 3:32 PM, Fugee hannes.wij...@bps-software.dewrote: Hello, i have written my own syncadapter. This is working without any problems on a motorola defy (Android 2.1) and a zte blade (Android 2.3.5). But on a Samsung Galaxy S (GT I9000 - Android 2.3.3) the syncoperation breaks with this error: android.provider.Settings$SettingNotFoundException: roaming_auto_sync_enabled at android.provider.Settings$Secure.getInt(Settings.java:2257) at com.android.server.enterprise.RoamingPolicy.isRoamingSyncEnabled(RoamingPolicy.java: 121) at android.app.admin.DevicePolicyManager $RoamingPolicy.isRoamingSyncEnabled(DevicePolicyManager.java:**) at com.android.settings.ManageAccountsSettings.onSyncStateUpdated(ManageAccountsSettings.java: 177) at com.android.settings.ManageAccountsSettings.onAccountsUpdated(ManageAccountsSettings.java: 269) at android.accounts.AccountManager$11.run(AccountManager.java:1153) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at com.android.server.ServerThread.run(SystemServer.java:641) i searched for info about this, but i got no results. Maybe someone has some infos about this error ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to join Android Media query search suggest
I will explain a little more my scenario. I'm extending the default music player with other features and informations. So I've a sqlite db where I store those informations in addiction of the MediaStore. I want to extend the default search suggestions (for audio) with suggestions from my databse. How can I do it? I think that the 2 easiest ways are to: - Join the default search suggestion to add my results - Or understand where Android is doing the dirty work and merge the actual cursor with mine. For the second solution I need to know where is the source code of those functions. I really prefear the second solution because I also want to learn how to do that things! Thank you very much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] onUpdate function is never being called from widget
Do you have a widget configurator activity? if so the first onUpdate() is not going to get called but subsequent onUpdates() will. Also if you were to overload onReceive() make sure you call the parent onReceive() otherwise you are disabling yourself from calling the rest of the widget callbacks. Good luck with your debugging Satya On Fri, Dec 30, 2011 at 12:31 PM, Eyal T elt...@gmail.com wrote: Hi all I try create a clickable widget. I saw that the clickable notification is not configured because onUpdate function is never being called (so I cannot set the notification) * I did not saw the log in the LogCat so I assume that the function is never being called * The Log in the onRecieve is being execute when I add the widget to the screen, and once in 30 minutes. Can anyone help me? Thanks Eyal public class AnimationWidget extends AppWidgetProvider { public static int imageNumber = 0; private static final String ACTION_WIDGET_RECEIVER = ActionRecieverWidget; /** Called when the activity is first created. */ @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Log.i(print from main, widget id: ); } @Override public void onReceive(Context context, Intent intent) { Log.i(print from main, onReceive + intent.getAction()); } manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.animation.widget android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 android:targetSdkVersion=7/ !-- Broadcast Receiver that will process AppWidget updates -- application android:icon=@drawable/pic android:label=@string/ app_name receiver android:name=.AnimationWidget android:label=@string/app_name intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / /intent-filter meta-data android:name=android.appwidget.provider android:resource=@xml/widget_info / /receiver service android:name=.AnimationWidget$UpdateService / /application uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.WAKE_LOCK / /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 -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.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] Re: How to get picture path from camera capture, the known method is not working for all devices???
Did you solved it? I face the same problem.. On 29. Dec. 2011, 10:10 h., Lidia lidyp...@yahoo.com wrote: Or, at least how to known which type of answer to expect? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: deletable-assets
Is there any kind of notification that is sent when a program is installed? I could get a notification that my program was installed or updated and then save this date/time to use later. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: deletable-assets
You can listen for ACTION_PACKAGE_REPLACED to determine if your application has been updated. On Mon, Jan 2, 2012 at 10:52 AM, guich guiha...@gmail.com wrote: Is there any kind of notification that is sent when a program is installed? I could get a notification that my program was installed or updated and then save this date/time to use later. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming 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
[android-developers] ICS and getAuthToken() problem - using Google APIs
Hi all Just got my new Galaxy Nexus phone with ICS before New Years and have been playing around with the old and new (in development) versions of my app on it. Whilst doing so, I've come across a problem that has me stumped: if I call getAuthToken() in my app to authenticate a new account to my Google API of choice and approve the request then everything works fine. If I disallow or hit the back key from the 'Permission request' dialog then the app goes into a tailspin and eventually fails with a leaked window. I spent a couple of hours looking at this and as far as I can tell ICS does not seem to be throwing the OperationCanceledException from the system-generated Permissions request dialog as it should. To verify the problem I've downloaded and replicated the issue with the Android Picasa Sample and the google-meeting-scheduler. The projects are set to API Level 14 Build Target. Has anyone else seen a similar behavior - or can anyone confirm that they don't have the same problem with their apps? I feel I must have had too much turkey over xmas and my addled brain has missed something obvious. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: can use ATM cum debit card of State Bank of India (SBI) for registration.
Register your debit card to 'verified by visa'. After registration, you can generate 'Net Safe' virtual card of desired amount to pay online fees. It just works like credit card. Cheers On Dec 31 2011, 7:34 am, Aamir Khan ak4u2...@gmail.com wrote: On Sat, Dec 31, 2011 at 2:47 PM, Mohd Arshi Khan arshikha...@gmail.comwrote: I'm student. so i don't have credit card. so it is possible to use ATM cum Debit Card of State Bank of India (SBI) for registration on android Market for publish my App. Not possible to pay via Debit Card. Aamir Khan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] net install accuracy
2012/1/2 Harri Smått har...@gmail.com Is that a fact? Go to the Android Market support forum: https://groups.google.com/a/googleproductforums.com/forum/#!categories/android-market/technical-help Search for Active Installs. Gleam from that what you will. - 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