[android-developers] IsolatedContext and AndroidTestCase.getContext()

2011-01-09 Thread Mattias Svala
Hello! I'm writing some tests to test my database code. Can someone here explain if there would be a difference writing those tests using the context I get from AndroidTestCase.getContext() or using an IsolatedContext. Speaking of IsolatedContext, what is the easiest way to create one if I just

Re: [android-developers] Re: NFC Secure Element

2011-01-09 Thread Ajith Kamath
Hi Nemik I'm running over the libnfc code. I can see these 4 files to be prominent for communication with SE phHciNfc_CE_A.c phHciNfc_CE_B.c I am thinking the above two might be used for R/W into SE from App Processor. And the below two is used for communication between NFC Controller and SE. p

Re: [android-developers] Re: What is the name of this widget?

2011-01-09 Thread MerlinBG
Thank you for the help, the proposed widget looks good. metal mikey, I am interested not in date/time entering, but in a way to enter numbers - something like the NumberPicker, which seems to be internal, and for the means I need it - the wheel looks cooler. Having this in mind and since while

[android-developers] Re: How to exit the application..?

2011-01-09 Thread Sarwar Erfan
On Monday, January 10, 2011 12:52:25 PM UTC+6, dilu wrote: > > ... if due to some reason application is not > able to connect to the service then I want to exit the application > completly so tht he can restart the app again. > > If you think that the "some reason" of not being able to connect

Re: [android-developers] Re: How to exit the application..?

2011-01-09 Thread Kumar Bibek
Calling finish, essentially exits your app. Whatever you need to initialize for your next start of your application, can be againd done in the onCreate or onResume method. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com 2011/1/10 dilu > I know the android architecture.Accordi

[android-developers] Re: How to exit the application..?

2011-01-09 Thread dilu
I know the android architecture.According to that there is no "exit application" option recommended... But if we have to do then how to do? I am working on a webservice based application.In case if due to some reason application is not able to connect to the service then I want to exit the applica

Re: [android-developers] Re: How to exit the application..?

2011-01-09 Thread Abhilash baddam
Hi Dilu, check the below link definitely it'l be useful for u.. http://androidsnips.blogspot.com/2010/08/finish-application.html On Mon, Jan 10, 2011 at 12:12 PM, dilu wrote: > Even I tried with System.exit(0). > But its not working .So question is that how to completly exit the > a

Re: [android-developers] Re: How to exit the application..?

2011-01-09 Thread Kumar Bibek
There is no concept of Exiting an application. You app should just call finish whenever you want to close your app. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Mon, Jan 10, 2011 at 12:12 PM, dilu wrote: > Even I tried with System.exit(0). > But its not working .So quest

[android-developers] Re: How to exit the application..?

2011-01-09 Thread dilu
Even I tried with System.exit(0). But its not working .So question is that how to completly exit the application if we want to do . On Dec 29 2010, 11:10 am, Dianne Hackborn wrote: > No, it doesn't, it exits the process, but leaves whatever activity stack is > being maintained by the system. > >

Re: [android-developers] Re: What is the name of this widget?

2011-01-09 Thread Dianne Hackborn
One nice thing about using the standard widget is that if it improves you will automatically get the improvements. That said, the current standard widget pretty much sucks rocks. We also know it sucks rocks, and have desperately wanted to redo it since 1.0. It would be nice to fix that as part o

[android-developers] Re: NFC Secure Element

2011-01-09 Thread nemik
Ajith, According to http://discussion.forum.nokia.com/forum/showthread.php?199442-6212-device-how-to-work-with-the-secure-element the CN072 is a secure element in the Smart MX family. I'm not sure the same one is in the Nexus S, but I presume the one in there is at least very similar. Here is th

[android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Zsolt Vasvari
I've been down the road with my widgets when I tried them on 2.3. I wasted about a week of my development time on this problem. Remember my thread? http://groups.google.com/group/android-developers/browse_thread/thread/6fa088c7640ca9b2/9bba78001843642b It's very frustrating that the widget cell

Re: [android-developers] Re: What's new in honeycomb?

2011-01-09 Thread Dianne Hackborn
In fact since the APIs for this have been in the platform since 1.6, by the simple act of saying you are targeting 1.6 or later (with android:targetSdkVersion="4" or larger), you are telling the platform you know about different screen sizes and will get the full available space. You already see t

[android-developers] Re: resource not found when building application for passion

2011-01-09 Thread raja
Detail Description. I'm using Froyo source code base. The application is pretty simple, just few buttons. >From the XML layout, using android:background attribute to set the background of the LinearLayout. The background image is a PNG file under the res/drawable, not using images under framework-

[android-developers] Re: What is the name of this widget?

2011-01-09 Thread Zsolt Vasvari
I would think long and hard before putting such a widget in my app. IMHO, forcing the user to have to swipe a bunch to set a date is freaking annoying. Besides, you should probably try hard to make your app work without having to use the touch screen. Who knows in the future (hello, Google TV) th

[android-developers] Re: Application Back button not working

2011-01-09 Thread Zsolt Vasvari
> Its weird the code working on one machine and not on other It sure is, but I am sure it's nothing that cannot be resolved with the use of the built-in debugger. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] RTSP streaming with mediaplayer

2011-01-09 Thread mayank bisht
I am playing the media player on rtsp url its playing fine but it is not pausing and playing again and again.while if i am using VideoView to play the stream it paused but it is showing error in resume the video I am using samsung galaxy 3 with android 2.1.Can anyone help me please on this topic ?

Re: [android-developers] Re: NFC Secure Element

2011-01-09 Thread Ajith Kamath
Hi Nemik * I have small doubt with current implementation. Is SmartMX a Secure Element ?If so can you give me examples? * I have checked libnfc-nxp , enabling P2P parameter was at phnfcconfig.h. what needs to be done to enable Secure element? what are MifarePlus, Desfire, Topaz . Is it a Card typ

Re: [android-developers] Re: Application Back button not working

2011-01-09 Thread Robin Talwar
The code is there and is still running fine on my office machine. But on other machines it is not. The back button has simple intent call defined to the home.class. Its weird the code working on one machine and not on other On Mon, Jan 10, 2011 at 10:35 AM, Sarwar Erfan wrote: > You should look i

Re: [android-developers] Does Market support installing multiple apks

2011-01-09 Thread TreKing
On Sun, Jan 9, 2011 at 10:41 PM, xeagle wrote: > My application contains several apks. > That doesn't make sense and I don't see how that's actually possible possible. > I'd like upload my app to android Market. > In the Android Market one app is represented by one APK file. > If user downl

[android-developers] Re: Application Back button not working

2011-01-09 Thread Sarwar Erfan
You should look into your code and verify that you emailed yourself the latest code (and not a backup from few days earlier). If you believe that the code for the back button event is there but not working exists, manually open the file and find that code. If you can find it, put a break point t

Re: [android-developers] resource not found when building application for passion

2011-01-09 Thread Kumar Bibek
I guess you are using some images/resources from the SDK. If the particular resource is not available on the device's build, you would get this error. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Mon, Jan 10, 2011 at 8:57 AM, raja wrote: > Hi, > I have a new application

[android-developers] Re: Does Market support installing multiple apks

2011-01-09 Thread Sarwar Erfan
1 apk per application please. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups

[android-developers] Does Market support installing multiple apks

2011-01-09 Thread xeagle
Hi, My application contains several apks. I'd like upload my app to android Market. If user download my app, can all of these apks be installed? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to an

Re: [android-developers] resource not found when building application for passion

2011-01-09 Thread TreKing
You really need to provide more information. Like the resource it's complaining about, how your files are laid out, and the layout in question, for starters. - TreKing

Re: [android-developers] Zoom on canvas.drawLine(), is that possible?

2011-01-09 Thread brian purgert
Scale the entire canvas, On Jan 8, 2011 8:39 PM, "kahken" wrote: > Hi guys, > > I have a view object with series of lines drawn on it by using > canvas.drawLine(). However, the lines were too big to be fitted on the > screen. So, the lines have to be scaled down and user can zoom in and > zoom out

Re: [android-developers] Zoom on canvas.drawLine(), is that possible?

2011-01-09 Thread brian purgert
Yeah if you explain it better I bet I can answer your question because I'm doing alot of stuff like this right now. On Jan 9, 2011 9:36 PM, "TreKing" wrote: > On Sat, Jan 8, 2011 at 7:39 PM, kahken wrote: > >> How do I implement this? > > > By doing a lot of math. And by programming. > > If you w

Re: [android-developers] Need help in using DRM protection module for a ebook reader project.

2011-01-09 Thread Sarwar Erfan
On Sunday, January 9, 2011 11:43:11 AM UTC+6, Sunil Deshpande wrote: > > Hi, > > I am trying to develop ebook reader application with DRM content protection > for the each book downloaded. So I want to know is there any already > available module in Android SDK so that directly I can use the mo

[android-developers] resource not found when building application for passion

2011-01-09 Thread raja
Hi, I have a new application. If I build it for generic, and install it to the device, it works fine without any issue. If I build it for passion, it would show drawable resource not found when Inflating XML layout. Did I miss to set something? Thanks -- You received this message because you are

[android-developers] Re: Custom Keyboard for an App

2011-01-09 Thread Justin Glaeser
Thanks for the help. I would like to modify the keyboard for certain UI's within my app and inherent the functionality of the Android soft keyboard. Could you point me to any posts or documentation that might help? On Jan 9, 4:21 pm, Dianne Hackborn wrote: > Hi, no of this keyboard is only for

[android-developers] Re: Launching an application from a email. Is that possible?

2011-01-09 Thread sdphil
interesting. so I made that call got the string back, and plugged that string into here -- Test Link and it still tried to browse to that page within the browser... On Jan 8, 12:21 pm, Dianne Hackborn wrote: > There is no need to play tricks with schemes and intent filters matching > hosts an

Re: [android-developers] Application Back button not working

2011-01-09 Thread TreKing
On Sun, Jan 9, 2011 at 2:02 AM, Abhishek Talwar < r.o.b.i.n.abhis...@gmail.com> wrote: > Did i do something wrong or is it android SDK ?? Without more information, if those are the options you're presenting, then you did something wrong. -

Re: [android-developers] Need help in using DRM protection module for a ebook reader project.

2011-01-09 Thread TreKing
On Sat, Jan 8, 2011 at 11:43 PM, sunil wrote: > So I want to know is there any already available module in Android SDK so > that directly I can use the module. Nope, AFAIK. > If some one has already used DRM module in their project, please send me > sample code to use that. Realistically, t

Re: [android-developers] Re: What's new in honeycomb?

2011-01-09 Thread Romain Guy
It depends on how your app is setup. Depending on how applications declare how they support multiple screens and densities the app might be boxed, scaled or simply fill the screen and rely on layout to look correct. On Sun, Jan 9, 2011 at 6:09 PM, Craig Mitchell wrote: > And you all have done a

Re: [android-developers] Zoom on canvas.drawLine(), is that possible?

2011-01-09 Thread TreKing
On Sat, Jan 8, 2011 at 7:39 PM, kahken wrote: > How do I implement this? By doing a lot of math. And by programming. If you want a better, more detailed answer, you'll have to ask a better, more detailed question. ---

Re: [android-developers]How to Integrate cryptsetup package with android source code

2011-01-09 Thread TreKing
On Sat, Jan 8, 2011 at 6:47 PM, mahesh singh wrote: > i need help to solve these type of error . > Try a group dedicated to building or modifying the source code. - TreKing

[android-developers] Re: RPC service with notification

2011-01-09 Thread Jackie G.
Thanks so much for taking so much time to try and help me out. Here is how I create the Notification private Notification notification; private static final int NOTIFICATION_ID=1; protected Context context; @Override public IBinder onBind(Intent arg0) {

[android-developers] Re: What's new in honeycomb?

2011-01-09 Thread Craig Mitchell
And you all have done a fantastic job at that. However, I'm not a fan of boxing an app for large screens. I would much prefer an app to be expanded to the full screen size and look a little pixelated, then only take up a small section of the screen. ...apologies that this comment is off topic.

[android-developers] Re: What is the name of this widget?

2011-01-09 Thread metal mikey
Why not use something that provides the same results, yet with a more intuitive user interface? i.e. DatePicker http://developer.android.com/resources/tutorials/views/images/hello-datepicker.png http://developer.android.com/resources/tutorials/views/hello-datepicker.html On Jan 10, 8:03 am, Marcin

Re: [android-developers] Custom Keyboard for an App

2011-01-09 Thread Dianne Hackborn
Hi, no of this keyboard is only for your app, this is really not what the IME architecture is for, which is for separate input methods to be implemented independently of applications. On Sun, Jan 9, 2011 at 4:12 PM, Justin Glaeser wrote: > Hello, > > I have created a simple custom keyboard based

Re: [android-developers] Re: c2DM error when third-party server sends data to push

2011-01-09 Thread Nagaraj Ramarao
Hi Jose, No luck for me I guess. I remove the '\n' from the Auth= value and followed the advice you had given but I got the following response: Jan 9, 2011 6:18:47 PM org.apache.http.impl.client.DefaultRequestDirector handleResponse WARNING: Authentication error: Unable to respond to any of th

[android-developers] Custom Keyboard for an App

2011-01-09 Thread Justin Glaeser
Hello, I have created a simple custom keyboard based of the SoftKeyboard Example in the Android SDK. Assuming the user allows the keyboard to be used, I would like the following behavior: My app: My keyboard All others: Default keyboard Is there any kind of for my service I can use to accompli

Re: [android-developers] Re: layout editor in 2.3 SDK sucks! Sorry but it does.

2011-01-09 Thread Xavier Ducrohet
Hi Tim, sorry for the delayed answer. On Mon, Dec 27, 2010 at 1:55 PM, Tim H. wrote: > Preview 2 is much improved - being able to drag views up and down the > list (and into child layouts) is great, no need for the up/down button > now. Again, can still use some work, but it's getting back to the

Re: [android-developers] Re: What's new in honeycomb?

2011-01-09 Thread Dianne Hackborn
We try hard to not break apps in newer versions of the platform, as long as they are written correctly. On Sun, Jan 9, 2011 at 2:40 PM, sblantipodi wrote: > I would like to know if our applications written for 2.2 and 2.3 > tablets will work > on honeycomb without modifications. > > On Jan 7, 1:2

Re: [android-developers] Waiting for debugger force close (when USB is not attached)

2011-01-09 Thread Dianne Hackborn
Did you select your app to be debugged in the Development app preferences? (Same place you can set animation speed etc.) It is just that setting that causes an app to wait for a debugger (or being explicitly launched that way from adb like the dev tools do.) On Sun, Jan 9, 2011 at 2:06 PM, akay

[android-developers] Re: What's new in honeycomb?

2011-01-09 Thread sblantipodi
I would like to know if our applications written for 2.2 and 2.3 tablets will work on honeycomb without modifications. On Jan 7, 1:27 am, Dianne Hackborn wrote: > On Thu, Jan 6, 2011 at 3:39 PM, sblantipodi > wrote: > > > Obviously this new android will grant compatibility to olter apps > > righ

[android-developers] Waiting for debugger force close (when USB is not attached)

2011-01-09 Thread akay
Hi All, My app is in debuggable mode. On some occasions it crashes with the message: "Waiting for debugger to attach..." This happens when my Tmobile G2 is not attached to computer. When I plug inthe USB the message goes away. Does anyone come across this problem with their app? Regards, AK -

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Kostya Vasilyev
Exactly. Causing even more trouble if you're trying to make widgets that: - Fit into the home screen grid; - Look good; - Don't take up the entire screen width. Replacement home screens and different Android versions add even more uncertainty (Mark posted exact numbers on how 2.3 vs. previous

Re: [android-developers] howto receive all broadcast messages

2011-01-09 Thread Mark Murphy
On Sun, Jan 9, 2011 at 4:03 PM, A Curtis wrote: > According to the SDK documentation, it should be possible to create a > BroadcastReceiver that receives all messages. Um, no. > It looks like you create > an intent-filter with a blank activity entry. I have not been able to > find an example of

[android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Mark
I am fine with that. I have different images and layouts for each orientation. But please tell me if there is a way to determine the exact size. Would be glad to have different values for portrait/landscape. On 9 Jan., 22:39, Dianne Hackborn wrote: > This is not simple.  Even for a single widget

[android-developers] Re: Google Nexus S - Please provide as DEV phone, asap :-)

2011-01-09 Thread gjs
Hi, And yes I like to be able to say my apps are tested on Google Nexus devices, so I do regard them as reference devices. Nexus devices get lastest Android releases before most other vendors, so far. Nexus devices don't have the sense(less) UI tweaks? or try to send data back constantly to the ca

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Dianne Hackborn
This is not simple. Even for a single widget instance in a specific widget host, its dimensions can (and typically do) change slightly when the screen switches between landscape and portrait. On Sun, Jan 9, 2011 at 1:26 PM, Kostya Vasilyev wrote: > That's not it, this is backwards - the widget

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Kostya Vasilyev
That's not it, this is backwards - the widget telling the home screen its minimal size. The size here is specified in units that are independent of launcher version or its actual implementation (replacement). -- Kostya 10.01.2011 0:21, String ?: On Sunday, January 9, 2011 12:30:07 PM UT

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread String
On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: It's really too bad there is no way to query widget cell size or use it > http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#minHeight String > -- You received this message because you are sub

[android-developers] SGS Lag while auto-brightness on?

2011-01-09 Thread miniondev
Hi there, Since the release of the game "Squibble", we've had reports from some users with Samsung Galaxy S phones about fairly serious lag during gameplay. Not all SGS users report this, but a large number do - enough that it's clear that there is a real problem with the game on the SGS. One cu

Re: [android-developers] What is the name of this widget?

2011-01-09 Thread Marcin Orlowski
On 9 January 2011 20:34, Kostya Vasilyev wrote: > Someone wrote a component just like this for Android, and made it accessible > - I believe it's somewhere up on Google Code, with sources. > > It's called something like "iPhone style wheel". http://code.google.com/p/android-wheel/ -- You receiv

[android-developers] howto receive all broadcast messages

2011-01-09 Thread A Curtis
Hello, According to the SDK documentation, it should be possible to create a BroadcastReceiver that receives all messages. It looks like you create an intent-filter with a blank activity entry. I have not been able to find an example of this. Can someone problem a sample? Also, is there a way to

Re: [android-developers] What is the name of this widget?

2011-01-09 Thread Dianne Hackborn
On Sun, Jan 9, 2011 at 11:22 AM, MerlinBG wrote: > Not even internal? There is no such widget in the current platform, internal or external. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide priv

Re: [android-developers] Re: RPC service with notification

2011-01-09 Thread Kostya Vasilyev
onCreate looks good. A couple things jumped at me just now in your original code: Intent notificationIntent = new Intent(AndroidService.this,*AndroidServiceImpl.class*); The second parameter is not a class known to Android, so the Intent is not valid. Just because you can use a Java .class r

[android-developers] Re: RPC service with notification

2011-01-09 Thread Jackie G.
private Notification notification; private static final int NOTIFICATION_ID=1; public void onCreate(){ super.onCreate(); NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notification = new

[android-developers] Re: First attempt at LVL Licensing

2011-01-09 Thread jtoolsdev
I first tested with the Android LVL example app and had no problems. Inconsistent results might be due to other things such as newer SDK emulators seem to need faster machines to run on and whether they are getting a reliable Internet connection. I had a devil of a time getting a 2.3 emulator to c

[android-developers] Re: Making cross-thread blocking/sync calls

2011-01-09 Thread Bob Kerns
Yes. The assumption here is that you are not interrupting it yourself (there's no need here), and someone else interrupting it would be bad. You could log it, but it's a rather remote possibility. If, on the other hand, you're making a library, you might want to take a different option at that poi

Re: [android-developers] Re: RPC service with notification

2011-01-09 Thread Kostya Vasilyev
How are you creating "notification" ? 09.01.2011 22:33, Jackie G. пишет: Also double checked and it is hitting the breakpoint. On Jan 9, 11:35 am, Kostya Vasilyev wrote: I don't see code in getAndroidText that would initialize "notification". It should be something like: notification = new

Re: [android-developers] What is the name of this widget?

2011-01-09 Thread Kostya Vasilyev
Someone wrote a component just like this for Android, and made it accessible - I believe it's somewhere up on Google Code, with sources. It's called something like "iPhone style wheel". -- Kostya 09.01.2011 22:22, MerlinBG пишет: Not even internal? -- You received this message because you are

[android-developers] Re: RPC service with notification

2011-01-09 Thread Jackie G.
Also double checked and it is hitting the breakpoint. On Jan 9, 11:35 am, Kostya Vasilyev wrote: > I don't see code in getAndroidText that would initialize "notification". > > It should be something like: > > notification = new Notification(R.drawable.status_icon, "Hello", > System.currentTimeMil

[android-developers] Re: RPC service with notification

2011-01-09 Thread Jackie G.
I set this in my Service onCreate method and then share it through a global variable. Should I create a new notification within the Impl.Stub class? Do I need to remove the old notification? Thanks again for all your help. On Jan 9, 11:35 am, Kostya Vasilyev wrote: > I don't see code in getAndro

Re: [android-developers] Market console doesn't support Chrome

2011-01-09 Thread TreKing
On Sun, Jan 9, 2011 at 9:05 AM, Eong wrote: > I don't know where I should report to, Market or Chrome? > Based on their track record, my money would be on it being the Market being broken (you know, again). > But I think both of them are from Google, right? They don't work well > together? Thi

Re: [android-developers] What is the name of this widget?

2011-01-09 Thread MerlinBG
Not even internal? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For mo

[android-developers] Re: onBufferingUpdate What is the progress argument

2011-01-09 Thread Dimitris
I believe it means that the MediaPlayer is currently buffering and the progress of buffering is indicated by the 'progress' variable. If it reaches 100 it means the MediaPlayer has buffered enough and it can continue playing... -- You received this message because you are subscribed to the Go

[android-developers] Re: create mutable Bitmap directly from file/stream?

2011-01-09 Thread Streets Of Boston
I doubt there is, Matthew. I've been looking for this answer a long time. But if someone knows how to do this, this would be great! Please, let us know! :-) On Jan 9, 12:44 pm, Matthew Fleming wrote: > Hi, > > I want to draw in a bitmap by creating a Canvas from it. Currently I > use BitmapFacto

[android-developers] create mutable Bitmap directly from file/stream?

2011-01-09 Thread Matthew Fleming
Hi, I want to draw in a bitmap by creating a Canvas from it. Currently I use BitmapFactory.decodeStream() to load an immutable bitmap, do a bitmap.copy() to make a mutable copy, and then create the Canvas from the mutable copy. However, this means that I have two copies of the bitmap in memory at

[android-developers] Re: TextView setCompoundDrawables inconsistent size

2011-01-09 Thread Henrik Lindqvist
I set the drawable using xml android:drawableBottom so setCompoundDrawablesWithIntrinsicBounds should be used. I've it now also tried setting it programmatically, same result. I'am going back to using nested LinearLayout's for label and button, this is to much of a hassle. On Jan 9, 4:04 am, Roma

[android-developers] NoClassDefFoundError when starting an AIDL service

2011-01-09 Thread Lazarus 101
I have two projects, the first one has the aidl files and other classes that will be shared with the client aps, and the second one has the implementation for aidl. First project is set as a dependency for the second one, everything compiles just fine and run. But when I try to access the service f

[android-developers] Re: First attempt at LVL Licensing

2011-01-09 Thread John Gaby
It has been my experience that LVL CANNOT be fully tested before publishing. Like you, I found that an unpublished app returns inconsistent results. If I set the response to denied, for example, on some phones I got the correct result, and on others I did not. After I published the app, it did se

Re: [android-developers] SQLite Database Issues

2011-01-09 Thread Ilya Shinkarenko
I have the same strange story. Notably all the reports come from "OTHER" platforms. Will fix it with a retry after a small delay. On Fri, Oct 15, 2010 at 1:36 AM, Albert wrote: > Hi all, > > I can see from some user's logs that my app randomly gets the > following SQLiteException: > > android.dat

Re: [android-developers] Re: RPC service with notification

2011-01-09 Thread Kostya Vasilyev
I don't see code in getAndroidText that would initialize "notification". It should be something like: notification = new Notification(R.drawable.status_icon, "Hello", System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya

Re: [android-developers] Re: MediaPlayer StreamVideo question.

2011-01-09 Thread Mark Murphy
On Sun, Jan 9, 2011 at 11:20 AM, Scott Deutsch wrote: > Ok, so now it streams the video. Thanks. > > But now the problem is, how can I put a buffering bar on top of the > surfaceview so they know when it will play. Use a ProgressBar. Put it and the SurfaceView in RelativeLayout, with the Progress

[android-developers] Re: MediaPlayer StreamVideo question.

2011-01-09 Thread Scott Deutsch
Ok, so now it streams the video. Thanks. But now the problem is, how can I put a buffering bar on top of the surfaceview so they know when it will play. Also, how can I make it so that it doesn't skip like crazy. Like check how muched buffered and if it is 10% resume play and if it catches up...pa

[android-developers] Re: RPC service with notification

2011-01-09 Thread Jackie G.
Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroi

Re: [android-developers] update app without deleting DB

2011-01-09 Thread Mark Murphy
On Sun, Jan 9, 2011 at 10:37 AM, Alex wrote: > Simple question : > I published an app (2months ago). It uses a DB to retrieve > information, and the user saves some parameters in the DB. > Now, I want to update my app, that means : I want to put more > information in the DB but without erasing par

[android-developers] update app without deleting DB

2011-01-09 Thread Alex
Simple question : I published an app (2months ago). It uses a DB to retrieve information, and the user saves some parameters in the DB. Now, I want to update my app, that means : I want to put more information in the DB but without erasing parameters set by the user. How can I do that ? Thanks --

[android-developers] Market console doesn't support Chrome

2011-01-09 Thread Eong
Hi, I installed Firefox and Chrome on my computer. I used to use FF to upload new apps into market. But I'm using Chrome to upload a new app today. I found the upload page doesn't work well in Chrome. I uploaded everything needed, but the page said no screenshots..etc.. Then I just open firefox and

[android-developers] TLS socket reuse hangs on device (works in emulator)

2011-01-09 Thread Derek
Hi all, We're trying to reuse an existing plain socket with TLS for FTPES purposes: SSLSocket socket = (SSLSocket) ssf.createSocket(_socket_, ip, port, true); and it hangs on: socket.startHandshake(); See full code snippet below. This code works fine on emulator (Android 2.2) but it fails on Nexu

[android-developers] Re: First attempt at LVL Licensing

2011-01-09 Thread Neilz
The app is new, and is a saved draft. I've just discovered a thread buried deep in this forum where a Google rep states that the testing only works with fully published apps (not drafts)... and that they would update the documentation to reflect this. That post was made in August, and the docs nev

[android-developers] Re: First attempt at LVL Licensing

2011-01-09 Thread MarcoAndroid
Is it an existing app published before? Then make sure you have pressed Save. Also watch the version nr you are using. Some more pitfalls etc you can find here: http://ttlnews.blogspot.com/2010/11/my-experience-with-android-market.html On 8 jan, 23:55, Neilz wrote: > More info. > > I've now put

[android-developers] Re: Google Nexus S - Please provide as DEV phone, asap :-)

2011-01-09 Thread gjs
Hi I now have a Nexus S as well as a Nexus One. Nexus One has better back camera with zoom and more pixels. Nexus One has better framerate on my 2d game 58fps vs 52fps Nexus S. Nexus S has 2.3 vs 2.2 (not for long). Nexus S has front camera + gyro + nfc (nfc is not much use here without tags). Not

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Kostya Vasilyev
It's really too bad there is no way to query widget cell size or use it as a sizing unit. -- Kostya 09.01.2011 15:17, Mark пишет: The problem is it does NOT look good because the scaling is unpredictably uneven. 480/678 1:1.41 480/633 1:1.32 So what is round on one screen is elongated on an

[android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Mark
The problem is it does NOT look good because the scaling is unpredictably uneven. 480/678 1:1.41 480/633 1:1.32 So what is round on one screen is elongated on an other. On Jan 9, 1:12 pm, Kumar Bibek wrote: > Hmm, IF you are generating the Bitmap at runtime, and setting it as the > source to an I

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Kumar Bibek
Hmm, IF you are generating the Bitmap at runtime, and setting it as the source to an ImageView, whose scale type is fitXY, that should be ok I guess. The images will stretch and might look odd. So, you can select the maximum resolution of the image and use it. For smaller sizes, the ImageView will

Re: [android-developers] android developer tablet?

2011-01-09 Thread Mark Murphy
On Sun, Jan 9, 2011 at 1:34 AM, peter wrote: > Are there any plans to release an android dev tablet like the nexus > one? You will not know the answer to that until such a thing is announced. Such a thing has not been announced. Simply monitor the Android Developers blog, and I'm sure it'll be me

Re: [android-developers] Legal questions - protecting apps from being redistributed

2011-01-09 Thread Mark Murphy
On Sun, Jan 9, 2011 at 7:03 AM, brindy wrote: > I have a couple of free apps up on the Google Market Place but over > the last few weeks I've seen those apps appearing on alternative > market places.  Even though they are free, I am not really happy about > this because, amongst other reasons, I w

[android-developers] Legal questions - protecting apps from being redistributed

2011-01-09 Thread brindy
Hi, I have a couple of free apps up on the Google Market Place but over the last few weeks I've seen those apps appearing on alternative market places. Even though they are free, I am not really happy about this because, amongst other reasons, I want the Google Market Place to be my central point

Re: [android-developers] Accessing AudioManager within a class which extends BroadcastReceiver

2011-01-09 Thread Mark Murphy
BroadcastReceiver does not inherit from Context. AUDIO_SERVICE is a constant on Context. getSystemService() is a method on Context. Hence, you need to adjust your code to use the Context class and supplied Context object. On Sat, Jan 8, 2011 at 9:01 PM, rsnider19 wrote: > I am using an AlarmManag

[android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Mark
>setBitmap() I think I tried that already, but it's the same problem as using it with file URIs. It doesn't stretch properly because it's not a NinePatch, just a flat image. There is something mentioned about NinePatchChunk but I never saw anyone getting it to work. Assigning NinePatch PNGs via URI

Re: [android-developers] MediaPlayer StreamVideo question.

2011-01-09 Thread Mark Murphy
Step #1: Use lowercase http in URLs. Step #2: Don't use an emulator, use hardware. Step #3: Make sure the extension matches the actual file format. Step #4: Use LogCat (via DDMS or adb logcat) to look at any warnings that might be emitted by the multimedia subsystem. On Sat, Jan 8, 2011 at 9:25

[android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Mark
Yes, this is my Approach 1. For that you also need to know the size, at least roughly. But it does not look nice because I can only assume the correct size so it will get stretched unevenly. Just using the emulators for 2.1 and 2.3 using the WVGA resolution I have a change from 480x678 to 480x633.

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Kumar Bibek
I am not sure, but have you tried this method? http://developer.android.com/reference/android/widget/RemoteViews.html#setBitmap%28int,%20java.lang.String,%20android.graphics.Bitmap%29 Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Jan 9, 2011 at 5:21 PM, Mark wrote: >

[android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Mark
> As written in my Approach 2, I don't see a way to use any of the > RemoteViews.set...() methods with a NinePatch. As far as I see it only works with resource IDs which point to drawables in the apk. But I have files outside the apk. -- You received this message because you are subscribed to th

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Kumar Bibek
Oh, sorry about that. I missed those few lines. In that case, you might try setting the scale type of the image view to perhaps fitXY. But I guess, you would have tried that too. Any problems with that? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Jan 9, 2011 at 5:11

[android-developers] Re: Change the background of an AppWidget

2011-01-09 Thread Mark
They would, if there were a way to use them. As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. Do you? On Jan 9, 12:05 pm, Kumar Bibek wrote: > 9 patch pngs should solve you problem, if I understand your problem > correctly. > > Kumar

  1   2   >