[android-developers] partial wakelock for 3G in Android

2011-01-08 Thread Tabman
Hello, Anyone from android development team confirm the answer to this: http://stackoverflow.com/questions/4628058/partial-wakelock-for-3g-in-android/ Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-08 Thread Dianne Hackborn
Yes then it will restart. You may want to have a look at the log when it goes away to see if anything interesting is printed. Also adb shell dumpsys activity services well tell you the state of currently active services (even if their process isn't running). Oh also check for crashing. If a

[android-developers] convert web page to pdf

2011-01-08 Thread kavitha b
Hi All, I have requirement in which I need to convert web page to pdf. How to do this in android? Please help. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Interaction with other apps

2011-01-08 Thread emafuma
Hi, I'm investigating if I can make an app that runs in background but is able to interact with others by enriching texts adding relevant information. For instance, interact with an existent twitter app or the mail app reading text and showing a popup with detected relevant words. Is there a way

[android-developers] Re: App Add-on

2011-01-08 Thread Brill Pappin
First, let me point you at this RFE: http://www.google.com/support/forum/p/Android+Market/thread?fid=2d69022f36ab6f460004994e8be08b82hl=en I've noticed the LVL library has (and talks about) using a double license check. You could actually use this kind of pattern to add license levels to your

[android-developers] Re: Drawing on a canvas like normal VS OpenGl

2011-01-08 Thread Tim
On Jan 8, 4:34 am, brian purgert brianpurge...@gmail.com wrote: So I was just wondering is openGL better in terms of making a 2dgame. does it render faster then if I were to draw on a Canvas I would definitely go with OpenGL. I've not used the canvas, but I seriously doubt it is as fast,

[android-developers] Re: Can't Uninstall

2011-01-08 Thread nextgen
Not the same package name. By keywords, I mean that they look for the app using the Market App Search function and find ours at the top of the list with a very similar name, so they assume it's the same. On Jan 7, 9:54 pm, Dianne Hackborn hack...@android.com wrote: What do you mean by similar

[android-developers] Use wireless networks setting not always available?

2011-01-08 Thread michael
Hello, I have an app that relies on wireless network location, i.e. which receives location updates from the NETWORK provider. In order for this to work, the phone must have Use wireless networks enabled under the Location security settings, and my app instructs the user on how to enable this.

Re: [android-developers] Re: How to access mail ?

2011-01-08 Thread Mark Murphy
On Sat, Jan 8, 2011 at 1:16 AM, Bob Kerns r...@acm.org wrote: But you'll note that my suggested minimal protocol side-steps the issue by not exposing anything about the email other than its arrival, except via an optional content provider URL. That's where the permissions would hook in. Off

Re: [android-developers] convert web page to pdf

2011-01-08 Thread Mark Murphy
On Sat, Jan 8, 2011 at 4:12 AM, kavitha b kkavith...@gmail.com wrote: I have requirement in which I need to convert web page to pdf. Whoever gives you these requirements desperately needs to get a grip. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

Re: [android-developers] Interaction with other apps

2011-01-08 Thread Mark Murphy
On Sat, Jan 8, 2011 at 4:13 AM, emafuma emanue...@gmail.com wrote: Hi, I'm investigating if I can make an app that runs in background but is able to interact with others by enriching texts adding relevant information. For instance, interact with an existent twitter app or the mail app reading

[android-developers] Re: HTTP parameter question

2011-01-08 Thread pedr0
You could use a StringBuilder but is very simple build it yourself without any help, I think. See this for stringbuilder :http://www.javadb.com/using-the- stringbuilder-class On 8 Gen, 02:08, John Lussmyer johnlussm...@gmail.com wrote: I don't think you understood my question. Given a list of

[android-developers] Re: What type of messaging would you use?

2011-01-08 Thread Kumar Bibek
Well, for reliable working, I think it would be best to use multiple channels. SMS, cloud and local network(wireless or LAN), one of these when the others are not available. On Jan 8, 3:52 am, Nathan critter...@crittermap.com wrote: A client might have a use case for peer to peer or group

[android-developers] Re: How to stop ADB server

2011-01-08 Thread Kumar Bibek
What do you mean by dynamically? From inside an app? What would you try to do that? Anyway, to shut down the adb server, you just have to use this commands adb kill-server adb start-server These are command line tools available for you to interact with adb. On Jan 7, 10:42 am, b_hirawat

[android-developers] About viewstubs

2011-01-08 Thread Pedro Duque
I'm trying to gasp viewstubs but I feel I'm missing something. As I understand, a viewstub only exists in a hierarchy until inflated or until made visible. After that is replaced by its referenced layout. This behaviour makes impossible to reinflate a inflated viewstub. Is this correct? The

[android-developers] First attempt at LVL Licensing

2011-01-08 Thread Neilz
Hi all. I'm implementing this into my app and reading through the docs. As I understand it I should be able to add a test email address (the one set up in my device) and it should return whatever response I set. However, all I'm getting back is Application error: NOT_MARKET_MANAGED Do I have to

[android-developers] Re: DNS WHOIS query support

2011-01-08 Thread JAlexoid (Aleksandr Panzin)
On 8 янв, 01:25, RAJ trra...@gmail.com wrote: Is there a android SDK API to get DNS name servers from given URL, using WHOIS query? Or We will have to implement our own code and parse to decode the response? Any links? thanks -- You received this message because you are subscribed to the

[android-developers] Re: DNS WHOIS query support

2011-01-08 Thread JAlexoid (Aleksandr Panzin)
http://www.dnsjava.org/ might help. Though, how it works on Android I don't know Record [] records = new Lookup(android.com, Type.NS).run(); for (int i = 0; i records.length; i++) { MXRecord mx = (MXRecord) records[i]; System.out.println(Host + mx.getTarget() + has

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

2011-01-08 Thread sdphil
okay, i finally got this to work, but it will only work if i use a unique scheme. if I try to do it without a standard http scheme, then i can't get it to work -- even if I specify mimeType. On Jan 7, 8:01 am, Kumar Bibek coomar@gmail.com wrote: I think yes.

Re: [android-developers] Drawing on a canvas like normal VS OpenGl

2011-01-08 Thread David Turner
On Sat, Jan 8, 2011 at 5:34 AM, brian purgert brianpurge...@gmail.comwrote: So I was just wondering is openGL better in terms of making a 2dgame. does it render faster then if I were to draw on a Canvas It really depends on what you're doing.There are certain things that are simply not

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

2011-01-08 Thread RobBln
On 19 Dez. 2010, 01:08, Dianne Hackborn hack...@android.com wrote: Except for NFC, I don't think there is much any other high-end Android device would be holding you back from doing. This applies also to the availability of Nexus One and ADP2: Why are they available as dev phone when every

[android-developers] Current state of PUSH notifications for apps?

2011-01-08 Thread John Lussmyer
I'm looking at an app where I will really need to support PUSH notifications. After a bunch of Google searches - I'm generally confused as to the state of PUSH support on Android. IS there a standard way of doing it yet? Preferably on 2.1? -- You received this message because you are subscribed

Re: [android-developers] Current state of PUSH notifications for apps?

2011-01-08 Thread Kumar Bibek
C2DM is only available for 2.2 and up. There is no direct way, or already cooked up apis in older versions which you can use. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 8, 2011 at 9:18 PM, John Lussmyer johnlussm...@gmail.comwrote: I'm looking at an app where

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

2011-01-08 Thread Mark Murphy
On Sat, Jan 8, 2011 at 10:34 AM, RobBln robert.jaemmr...@googlemail.com wrote: This applies also to the availability of Nexus One and ADP2: Why are they available as dev phone when every recent phone has the same or better features? Dev phones are for people devising alternative firmware. They

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

2011-01-08 Thread sdphil
okay, yeah, doesn't work -- intent-filter action android:name=android.intent.action.VIEW/ category android:name=android.intent.category.DEFAULT/ category android:name=android.intent.category.BROWSABLE/ data

[android-developers] Re: App Add-on

2011-01-08 Thread John Gaby
Thanks for the input. Your solution would be nice IF Google would implement it. They could also implement an in-app purchase mechanism like Apple's, which works quite well. However, I wouldn't hold your breath waiting for either of those to happen. As for having a content provider keep track,

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

2011-01-08 Thread JP
On Jan 8, 7:57 am, Mark Murphy mmur...@commonsware.com wrote: Dev phones are for people devising alternative firmware. They are not necessary for ordinary Android SDK development. ... but sure are a good idea to have. We've seen a selection of dogs where USB drivers weren't available or

Re: [android-developers] Drawing on a canvas like normal VS OpenGl

2011-01-08 Thread Miguel Morales
You should watch this: http://www.google.com/events/io/2009/sessions/WritingRealTimeGamesAndroid.html On Fri, Jan 7, 2011 at 8:34 PM, brian purgert brianpurge...@gmail.com wrote: So I was just wondering is openGL better in terms of making a 2dgame. does it render faster then if I were to draw

[android-developers] Using ProGuard

2011-01-08 Thread Neilz
Hi. The android docs at: http://developer.android.com/guide/developing/tools/proguard.html say: When you create an Android project, a proguard.cfg file is automatically generated in the root directory of the project. Am I missing something? I can't see this file. Do I have to install or

Re: [android-developers] Using ProGuard

2011-01-08 Thread Mark Murphy
At least for command-line development, the latest dev tools will create this file for new projects or projects you update (e.g., android update project -p .). On Sat, Jan 8, 2011 at 11:40 AM, Neilz neilhorn...@gmail.com wrote: Hi. The android docs at:

Re: [android-developers] Using ProGuard

2011-01-08 Thread Marcin Orlowski
On 8 January 2011 17:40, Neilz neilhorn...@gmail.com wrote: Am I missing something? I can't see this file. Do I have to install or download or configure something You have to create new project with recent ADT. Previous version had no proguard support and no proguard.cfg was created. If you

[android-developers] Trying to return to a previous screen

2011-01-08 Thread Anthony Barnes
Not sure if I am doing this right, but here is what I am trying to do. I got my CodeActivity(Code Below) that assigns a bunch of buttons. On button 4, I pull up another contentView to display some buttons under that particular button. Then on the button 4(or the back button) I want to return to

[android-developers] Re: Eclipse: Export signed application log

2011-01-08 Thread Xiaad.com
Hi, About adwhirl problems with proguard, here is what I have added to make it working (thanks to this post:http://www.andengine.org/forums/ tutorials/how-to-use-proguard-to-obfuscate-your-andengine-project- t738.html) : -ignorewarnings -keep public class com.adwhirl.adapters.AdMobAdapter {*;}

[android-developers] Re: Using ProGuard

2011-01-08 Thread Neilz
Thanks guys, I'm getting there. But I get the error that you mentioned Cannot find C:\Documents Everything is now under C:\android apart from the workspace itself, which is under Documents and Settings. Surely I don't have to completely move my workspace too? On Jan 8, 4:46 pm, Marcin Orlowski

[android-developers] Re: Using ProGuard

2011-01-08 Thread Neilz
To answer my own question, clearly I did have to move my workspace, as the project compiles now and Proguard has output all its files into the specified directory. I assume that if it didn't complain, and has output the files that the docs state, then it ran successfully and that's all I have to

Re: [android-developers] Trying to return to a previous screen

2011-01-08 Thread Kostya Vasilyev
Anthony, There is only one content view per activity. If you change it, then change back, then you need to obtain new UI element references by calling findViewById all over again. Second, if android.intent.action.CODE is your own action string, don't start it with android. Third, you can

[android-developers] Re: NFC Secure Element

2011-01-08 Thread nemik
I was able to enable a secure element the other day by messing around with this external/libnfc-nxp library. I enabled SMX (SmartMX) in the config headers, and upon booting and monitoring `adb logcat` during boot I saw 1 secure elements (a SmartMX one) had been enabled. I was then able to change

Re: [android-developers] Drawing on a canvas like normal VS OpenGl

2011-01-08 Thread brian purgert
Thanks I started watching that video, On Sat, Jan 8, 2011 at 8:37 AM, Miguel Morales therevolti...@gmail.comwrote: You should watch this: http://www.google.com/events/io/2009/sessions/WritingRealTimeGamesAndroid.html On Fri, Jan 7, 2011 at 8:34 PM, brian purgert brianpurge...@gmail.com

Re: [android-developers] Re: Using ProGuard

2011-01-08 Thread Marcin Orlowski
On 8 January 2011 20:02, Neilz neilhorn...@gmail.com wrote: To answer my own question, clearly I did have to move my workspace, as the project compiles now and Proguard has output all its files into the specified directory. My workspace is on path with spaces and moving SDK sufficed here.

[android-developers] RPC service with notification

2011-01-08 Thread Jackie G.
Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following...

Re: [android-developers] RPC service with notification

2011-01-08 Thread Kostya Vasilyev
Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as

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

2011-01-08 Thread Dianne Hackborn
There is no need to play tricks with schemes and intent filters matching hosts and paths and such. Just use this Intent.toUri() method to turn the actual Intent you want (such as one with a custom action of yours and the package set to your app's package name) into a URI you can use else where

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

2011-01-08 Thread Dianne Hackborn
On Sat, Jan 8, 2011 at 8:34 AM, JP joachim.pfeif...@gmail.com wrote: On Jan 8, 7:57 am, Mark Murphy mmur...@commonsware.com wrote: Dev phones are for people devising alternative firmware. They are not necessary for ordinary Android SDK development. ... but sure are a good idea to have.

Re: [android-developers] Drawing on a canvas like normal VS OpenGl

2011-01-08 Thread brian purgert
What about drawing multiple background layers On Jan 8, 2011 2:42 PM, brian purgert brianpurge...@gmail.com wrote: Thanks I started watching that video, On Sat, Jan 8, 2011 at 8:37 AM, Miguel Morales therevolti...@gmail.com wrote: You should watch this:

Re: [android-developers] Drawing on a canvas like normal VS OpenGl

2011-01-08 Thread Leigh McRae
Going with OpenGL increases the complexity of the game as you now have to deal with activity life cycle issues and drivers. You also now have to manage creating and loading textures. All these things can be managed of course but they will have to be managed and hence will require more

[android-developers] Re: class name (Dbi) does not match path (classes/Dbi.class)

2011-01-08 Thread Bob Kerns
The key part of the answer lies directly in the error message. You'll have to do the legwork to a solution yourself, I'm afraid. Note that the listed path includes the classes/ directory. This is VERY incorrect, and the proximate cause of your problem. Somewhere, you have something pointed at the

Re: [android-developers] About viewstubs

2011-01-08 Thread Kostya Vasilyev
If you're going to inflate all the stubs within one lifecycle of your activity, then there is almost no benefit to using them, since all of their respective view hierarchies will end up in memory. If you really wanted to go down this route, you could remove the unneeded parts of the hierarchy

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

2011-01-08 Thread Neilz
More info. I've now put my app up onto the market account, but haven't clicked 'Publish'. Now, the license check just returns 'LICENSING RESULT : Allow the user access' every time. I have even set the test response to say 'NOT_LICENSED' but I still get the above response. Anyone have any

[android-developers] Re: What type of messaging would you use?

2011-01-08 Thread Nathan
On Jan 8, 6:17 am, Kumar Bibek coomar@gmail.com wrote: Well, for reliable working, I think it would be best to use multiple channels. SMS, cloud and local network(wireless or LAN), one of these when the others are not available. It is the local network case I don't what to use. If it

[android-developers] Change the background of an AppWidget

2011-01-08 Thread Mark
I want to set the background of an appwidget at runtime with a dynamically generated image (skin) (which must fill the entire space of the widget). Approach 1: Use an ImageView and remoteViews.setImageViewUri() Problem: For the image to fit and look properly I need to know the exact pixel size of

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

2011-01-08 Thread mahesh singh
Hi.. How to integrate cryptsetup package to android source code .I placed the cryptsetup package in external folder of source code but when i compiled the source code it gave following error ... 1)Is it the correct way to integrate ?

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-08 Thread Jake Basile
I really doubt it's crashing, as the service doesn't do anything, really. It registers the BroadcastReceiver and then sits and holds a reference to it. It would sometimes get killed before, but it would then be restarted, re-register, and continue on. As it stands, the current code I have

[android-developers] MediaPlayer StreamVideo question.

2011-01-08 Thread Scott Deutsch
Hello Group, First question is. is it better to store the apps video as a resource on the phone? If yes, what format would you recommend. Or, would it be better to store the videos on a web server and stream the videos to the app when requested. My app is going to have lots of video's

Re: [android-developers] MediaPlayer StreamVideo question.

2011-01-08 Thread Mark Murphy
On Sat, Jan 8, 2011 at 8:24 PM, Scott Deutsch surger...@gmail.com wrote: First question is. is it better to store the apps video as a resource on the phone? I've heard of a lot of people having problems playing videos stored as resources. I haven't tried it myself, since IMHO shipping videos in

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

2011-01-08 Thread kahken
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 on the lines. How do I implement this? Thanks in advance. -- You

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-08 Thread Dianne Hackborn
I don't think the behavior of the broadcast has changed. It is pretty simple. Here is the code from GB. It is not ordered, so every registered receiver will get it. private final void sendIntent(int headset, int headsetState, intprevHeadsetState, String headsetName) { if

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

2011-01-08 Thread rsnider19
I am using an AlarmManager to trigger the following class so it will change the volume from say high to low: package com.test; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.AudioManager; public class ToRing extends

[android-developers] Start earning right now from home based online part time data entry jobs.

2011-01-08 Thread khushitiwari2...@rediff.com
Apply now to make a difference http://smartcareer.webs.com/graduatejobs.htm http://smartcareer.webs.com/dataentrywrok.htm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Trying to get my head around multi screen densities. With more info

2011-01-08 Thread Damien Cooke
Thanks all for your responses. It appears there was a knowledge gap in my understanding. I have it all sorted now. I really appreciate your assistance. Damien On 06/01/2011 9:53 PM, Damien Cooke cooke.dam...@gmail.com wrote: I have the following: supports-screens

Re: [android-developers] MediaPlayer StreamVideo question.

2011-01-08 Thread Scott Deutsch
I did what you said. Instead of a file for the local path, replaced it with HTTP://.../test.3gp .. = URI uri = Uri.parse(HTTP://./test.3gp); the file format i used was .3gp? Ignore the . I had a real domain name in there. mMediaPlayer.setDataSource(this,

[android-developers] TextView setCompoundDrawables inconsistent size

2011-01-08 Thread Henrik Lindqvist
I'am trying to use TextView's setCompoundDrawables feature because i wan't a button with a label above it. I set android:drawableBottom to my button drawable, which is a layer-list with a button background, an icon and a toggle indicator. First app launch every thing looks nice, close app, launch

[android-developers] Trying to play a ringtone and vibrate the phone at the same time

2011-01-08 Thread BarbieDahl
Hey Guys, I am trying to use the Vibrator service and the RingtoneManager to simultaneously vibrate the phone and play a ringtone. If I remove the code to vibrate the phone, my ringtone plays continuously but if I add the code to also vibrate, my ringtone plays for a short time until the vibrate

Re: [android-developers] TextView setCompoundDrawables inconsistent size

2011-01-08 Thread Romain Guy
You should use setCompoundDrawablesWithIntrinsicBounds() On Sat, Jan 8, 2011 at 6:40 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I'am trying to use TextView's setCompoundDrawables feature because i wan't a button with a label above it. I set android:drawableBottom to my button

[android-developers] Re: Current state of PUSH notifications for apps?

2011-01-08 Thread Brill Pappin
I was under the impression that it was still in lab mode. You can ask to join, which I did but I'm hesitent to release anything that uses it until its released. - Brill Pappin On Jan 8, 10:50 am, Kumar Bibek coomar@gmail.com wrote: C2DM is only available for 2.2 and up. There is no direct

[android-developers] Re: How to interrupt a blocking I/O operation?

2011-01-08 Thread Bob Kerns
Well, there's interrupting the IO loop, and there's backing out of the blocked IO system call. GENERALLY SPEAKING, you won't be able to force an ARBITRARY OS to give you back control if it's actually in a blocked IO system call. If you can on a specific OS, and it improves your app in some way

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

2011-01-08 Thread Nagaraj Ramarao
Hi Jose, Happy New Year 2011! No I haven't got back to testing this yet. I am busy with some other related issue. Hopefully I will be able to fix it soon before I can fix and test this issue. Thanks for your suggestions. I will try them as soon as I get a chance. I will keep you posted.

[android-developers] android developer tablet?

2011-01-08 Thread peter
Are there any plans to release an android dev tablet like the nexus one? I'm primarily concerned with getting something that will get the latest android builds over the air and is a stock android experience. -- You received this message because you are subscribed to the Google Groups Android

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

2011-01-08 Thread DebUggEr
I myself dont get what the situation is, the mediaplayer isnt seeking correctly because of it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] public static variables being reset across same package in different classes in the framework

2011-01-08 Thread Shafaq
I'm trying to keep track of home key button hit and touch event in the area of interest pressed within some fixed window of time. For that I'm using public static int COUNTER_HOME =0 in View.java under frameworks/base/ core/java/android/view/ I then increment the variable in

[android-developers] Re: HTTP parameter question

2011-01-08 Thread JAlexoid (Aleksandr Panzin)
Here's the full sample code for HttpClient 4 (Android version at API 8, at least): ListBasicNameValuePair pairsList = Arrays.asList(new BasicNameValuePair[] { new BasicNameValuePair(q, Search String for Google), new BasicNameValuePair(client, ubuntu) });

Re: [android-developers] public static variables being reset across same package in different classes in the framework

2011-01-08 Thread Dianne Hackborn
Applications each run in their own process, and do not run in the same process as the system process where the window manager service runs. Thus they all have their own independent static globals. What you are doing fundamentally won't work. To have a global across the system, you'd need to