Re: [android-developers] Networking issues in idle mode

2013-11-24 Thread James W.
I heard that some devices allow app in background communicate but some devices not 在 2013-11-25 AM6:55,pierre pierre.rou...@gmail.com写道: I am having networking issues in idle mode (when the screen is off). I have attached a test program called BeepTester, in order to explain my difficulties.

Re: [android-developers] Re: What can't boot, which delete .git in kernel?

2012-05-15 Thread James W.
你可以下载,菲git版 或者将git,导出城tar版 On Tue, May 15, 2012 at 2:20 PM, wang nungchao nungc...@gmail.com wrote: I don't know. I follow TI website to build kernel and generate boot.img. make ARCH=arm uImage mkbootimg --kernel kernel --ramdisk ramdisk.img --base I think maybe Makefile of kernel

Re: [android-developers] cant enter bootloader in develop board (Dragon board)

2012-02-22 Thread James W.
开发板?还是产品? On Thu, Feb 23, 2012 at 12:58 PM, Kloze kloz...@sslab.cs.nthu.edu.tw wrote: Hello everyone, I'm trying to port ICS in my board, and i cant enter bootloader. I know it's useful put some bottom when device start, but i have no idea which bottom should I use(there is no document for

Re: [android-developers] adb logclear?

2012-02-21 Thread James W.
adb logcat -c On Tue, Feb 21, 2012 at 12:33 PM, bob b...@coolfone.comze.com wrote: What is the adb command to tell a device to clear its log? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] how to create Pdf files from some data

2012-02-19 Thread James W.
what is data? On Mon, Feb 20, 2012 at 1:50 PM, ANKUR GOEL ankur1...@gmail.com wrote: hi all how to create pdf from some data. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] 找工作

2012-02-12 Thread James W.
你找个,便宜一点的啊! 有了经验就好了 2012/2/13 fei ji ufo22940...@gmail.com: 为什么找得到工作 2012/2/13 ttgdz ttgdztu...@gmail.com android学了半年,没工作经验,本人在深圳,为什么找不到工作?悲苦啊 -- 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] Re: Hardware accleration slow down every Canvas app. Why?

2012-02-09 Thread James W.
ram too slow On Fri, Feb 10, 2012 at 11:23 AM, ji fei ufo22940...@gmail.com wrote: Seems that hardware acceleration will cost some ram. About 8m per app. On Fri, Feb 10, 2012 at 9:19 AM, bradgog gogat...@gmail.com wrote: They do say developer options and it is a developer phone so I would

Re: [android-developers] Android testing

2012-02-05 Thread James W.
And ? On Mon, Feb 6, 2012 at 9:06 AM, Jatin D Patel depo.ja...@gmail.com wrote: Hi all, Can somebody please provide me suggestions to test my application on various devices? Its targeted for all android mobile devices. -- Thanks, Jatin D N Patel You Got To Think HIGH to RISE. -- You

[android-developers] Re: Live wallpaper thumbnail 208x192?

2011-09-08 Thread James W
There doesn't appear to be any official documentation on the required size. However, from my testing on the emulator and real devices, it seems that the clearest/sharpest thumbnail images are obtained by doubling the resolution of the icon size for each density. So for HDPI which has an icon

[android-developers] Re: Install % not updating?

2011-06-28 Thread James W
What is the ranking that everybody it talking about? I don't see any ranking statistic on the Market App, or in the Developer Console for either of my apps. Where do you find the ranking number? Is it because they dont have sufficient downloads yet? My free one has 8000, which admittedly is not

[android-developers] Re: Install % not updating?

2011-06-28 Thread James W
And for what it is worth, the Active Installs and Total Installs as others have mentioned bear little relation to reality. I used to obsess about them updating until I realised they don't relate to actual sales. The only way to know your real sales numbers is to use one of the sales tracking

[android-developers] Cropping Images with Droid X

2011-04-27 Thread James W
There have been a number of threads here and on other resources regarding this issue, with no resolution I could see: http://groups.google.com/group/android-developers/browse_frm/thread/beb2d62035e424d6/7e12c2a7a1605f52?hl=enlnk=gstq=droid+++x#7e12c2a7a1605f52

[android-developers] Re: Cropping Images with Droid X

2011-04-27 Thread James W
will find it hard to use the same code to make it work on all the devices. On Apr 27, 6:52 pm, James W jpbwebs...@gmail.com wrote: There have been a number of threads here and on other resources regarding this issue, with no resolution I could see: http://groups.google.com/group/android

[android-developers] Re: Live Wallpaper Icon

2011-04-21 Thread James W
 pm, James W jpbwebs...@gmail.com wrote: Does anyone happen to know the official required resolutions of theLiveWallpaperthumbnail icons for the various densities? The documentation doesn't mention a specific size. The resolution used seems to be a lot larger than the launchericon resolution

[android-developers] Re: Live Wallpaper Icon

2011-04-20 Thread James W
Does anyone happen to know the official required resolutions of the Live Wallpaper thumbnail icons for the various densities? The documentation doesn't mention a specific size. The resolution used seems to be a lot larger than the launcher icon resolution, using 48 for medium or 72 for high gives

[android-developers] Re: MessageBox style Preference

2011-04-16 Thread James W
Just use a default Preference item rather than a derived ListPreference. All you need is to manually handle the click on the preference. I have exactly the same functionality.. final Preference reset = (Preference)findPreference(reset); reset.setOnPreferenceClickListener(new

[android-developers] Re: MessageBox style Preference

2011-04-16 Thread James W
Mark's method is also worth considering. I didn't do it that way because in my experience Menu options are not typically used in a Preference activity, so I wanted my users to be able to easily find it. For what its worth, I put it under a Utilities category at the bottom. On Apr 16, 9:55 pm,

[android-developers] Intent to choose a folder containing images rather than a particular image

2011-03-31 Thread James W
I wish to allow the user to choose a specific folder on their SD card which contains images. Later on I will use that particular folder as a data source. It is easy enough to select an single image from the folders, I use: Intent mAlbumSelectIntent; mAlbumSelectIntent = new

[android-developers] Re: Android Market Licensing: Now Available!

2010-08-03 Thread James W
, you can move to HK and still sell paid apps. On 2 August 2010 10:00:20 UTC+2, James W jpbwebs...@gmail.com wrote: Yes absolutely. Not really the ideal place to vent, but the delay in rolling out to other countries is beyond ridiculous and incredibly frustrating. It has got

[android-developers] Re: Android Market Licensing: Now Available!

2010-08-02 Thread James W
Yes absolutely. Not really the ideal place to vent, but the delay in rolling out to other countries is beyond ridiculous and incredibly frustrating. It has got to be self defeating also. I moved from England to Hong Kong, so now I cannot buy apps, I cannot sell my apps, because HK is not

[android-developers] Re: Scrolling text (marquee) in an AppWidget

2010-08-02 Thread James W
Use a LayoutAnimation around the textview you want, with a Marquee. The animation runs when the widget is added, and I guess if you set the Marquee to loop permanently, thats what it will do. On Jul 29, 4:38 am, Matt Quigley matthew.quig...@gmail.com wrote: Just thought I would post my solution,

[android-developers] Request for improved App Widget functionality

2010-07-13 Thread James W
I see a lot of requests for things like animations and EditText functionality within AppWidgets, which are currently either not supported or very difficult to do, hence created an enhancement request in the Android Code. http://code.google.com/p/android/issues/detail?id=9580 Please star this

[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-12 Thread James W
, Core Form coref...@gmail.com wrote: Excellent info James! FYI: I've seen the fading manifest in AppWidgets prior to froyo. Specifically Googles own 'News and Weather' AppWidget. sent from my Google Nexus One On 12 Jul 2010 15:45, James W jpbwebs...@gmail.com wrote: I reckon I know how

[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-12 Thread James W
Nice! That's a better solution than my duplicate XML files, and gives you more flexibility also. On Jul 12, 9:46 pm, metal mikey coref...@gmail.com wrote: oops, not quite. The LayoutAnimation IS only applied when the layout is added to the AppWidget, as James stated... ...so the trick is to:

[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-11 Thread James W
I reckon I know how to do it. :o) You can get Tween animations in an AppWidget by using the LayoutAnimation tag in your widget's layout xml, it supports all the standard Tween animations including Alpha fades. The first problem is that the animation only runs when you first add the Widget to the

[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-08 Thread James W
I think there may be some confusion here. Are you talking about an actual AppWidget that sits on the users home screen? I was not aware there was a widget for the market. I think you might be talking about the view at the top of a the Market application, which is not an AppWidget, but some sort

[android-developers] Re: Animating App Widgets

2010-06-29 Thread James W
When you talking about animating every 100ms, you mean a short term animation for a second or thereabouts, triggered by your 6 hour update, right? Similar to the occaisonal weather animation on the HTC Clock widget? If so, then you can use the ProgressBar in your widget layout, set to

[android-developers] Re: Animated widgets?

2010-06-22 Thread James W
You can have animations in App widgets. There are several ways to do it depending on what kind of animation is needed. For Ryan's particular example, using the Alarm Manager with a recurring alarm every second that calls OnUpdate() or some other routine which updates the view would do the job.

[android-developers] Re: Is it possible to draw to a home screen icon?

2010-06-08 Thread James W
, James W jpbwebs...@gmail.com wrote: Mark, regarding the battery comment, could you or someone elaborate? I have heard this countless times but with no justification. Is there something intrinsically inefficient about updating an appwidget with RemoteViews, more so than some other operation

[android-developers] AppWidget animation getting glitched by GC

2010-06-08 Thread James W
In the thread here I mentioned how you can get simple tween and frame animations working in AppWidgets. http://groups.google.com/group/android-developers/browse_thread/thread/d1b17d287ea4be2a/243ba27b3db34b58?hl=enlnk=gstq=appwidget#243ba27b3db34b58 I realise the usual caveat with AppWidgets

[android-developers] Re: Is it possible to draw to a home screen icon?

2010-06-06 Thread James W
Actually the appwidgets do support standard animations such as tweening and frame, but they are a bit of a hack job to get to work. For tweening, you get use the layoutAnimation tag in your widgets XML. It supports all the standard tween animations. When the remote views object for that widget is

[android-developers] Re: Scrollable widgets in alternative Home applications.

2010-06-01 Thread James W
or the framework. We are evaluating something for Gingerbread but at this point it's just an experiment, no promises at all. On Mon, May 31, 2010 at 6:11 AM, James W jpbwebs...@gmail.com wrote: Fantastic idea. The widgets on HTC Sense are not only great looking but the animation, scroll

[android-developers] Re: Scrollable widgets in alternative Home applications.

2010-05-31 Thread James W
Fantastic idea. The widgets on HTC Sense are not only great looking but the animation, scroll and gesture support (such as like flicking pictures in the album widget) add genuinely useful functionality. More importantly to Google, Home screen widgets are one of the great advantages of Android

[android-developers] Re: Can an AppWidget's RemoteViews be edited/created dynamically, or only from XML?

2010-05-29 Thread James W
for its own widgets (e.g. clock, weather...), but they might have changed Android to allow for this. Is there a way to do it with stock Android firmware? -- Kostya 2010/5/28 James W jpbwebs...@gmail.com I suspect the answer is no, but it only seems possible at the moment to update

[android-developers] Can an AppWidget's RemoteViews be edited/created dynamically, or only from XML?

2010-05-28 Thread James W
I suspect the answer is no, but it only seems possible at the moment to update an AppWidget via a RemoteViews object which is inflated from a static XML file. Is there any way to build a RemoteViews object on the fly, or edit the layout of one that is already there? The requirement is that I

[android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread James W
Those broadcast actions are definitely what you want: http://developer.android.com/reference/android/net/wifi/WifiManager.html Then just register for them in your widgets manifest, for example: intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / action

[android-developers] Re: Communicating between an app and a widget

2010-05-12 Thread James W
If you are talking about home screen AppWidgets, then yes it is possible. The place to get started is: http://developer.android.com/guide/topics/appwidgets/index.html Then have a look at some examples: http://www.helloandroid.com/tutorials/days-xmas-widget-tutorial

[android-developers] Re: AppWidget retrieving data from another Application

2010-05-09 Thread James W
this helps someone else along the way.. On May 4, 12:41 pm, James W jpbwebs...@gmail.com wrote: Ok, I can partially answer my own question, in between posting and getting past the moderators, I worked out that I need a Context to call getContentResolver(), and whilst the AppWidgetProvider

[android-developers] AppWidget retrieving data from another Application

2010-05-03 Thread James W
I have an AppWidget which provides a summary of some data stored and controlled by my main Application. (In a similar way to a Calendar AppWidget showing the next event from the main Calendar application). I want to know the best practice for retrieving the data to update my widget. I have

[android-developers] Re: AppWidget retrieving data from another Application

2010-05-03 Thread James W
a direct call to the app's ContentProvider was more appropriate than launching another thread for a service? On Apr 30, 6:32 pm, James W jpbwebs...@gmail.com wrote: I have an AppWidget which provides a summary of some data stored and controlled by my main Application. (In a similar way

[android-developers] Re: App name/icon problems on Hero after reboot

2009-10-31 Thread James W
For what its worth, I cannot reproduce this on a non-Sprint Hero. I have had mine for a couple of months now, a European version, and has been out in Asia for a while with no reported similar errors. I am a close follower of the XDA Developers board, and it has not been seen there either. Perhaps

[android-developers] Re: Android 2.0 SDK is here!

2009-10-27 Thread James W
A question about the Bluetooth functionality... it says that Bluetooth 2.1 is supported, and particularly the OPP (Object Push Profile). Specifically, does this mean that we will finally be able to send and receive files between other phones and PCs? OPP is I beleive based on OBEX, which is what

[android-developers] Re: HTC Hero, DDMS, and screen captures?

2009-10-20 Thread James W
I have been exclusively developing on the Hero since it came out, on the original stock ROM, and the recent offical ROM update. DDMS and screen captures worked from the start and continue to work now. The only caveat is that mine is the stock HTC Hero that has been available since August in

[android-developers] Re: How to force soft keyboard to be visible?

2009-10-01 Thread James W
that works on the G1, it doesn't work on the G2 (HTC Hero) or vice-versa. I'm expecting a nightmare when we have 12 devices out there instead of just 2. -DWass On Sep 25, 7:14 am, James W jpbwebs...@gmail.com wrote: Dwass, dont know if this helps, but I finally got it to work reliably

[android-developers] Anyone used performHapticFeedback()?

2009-09-28 Thread James W
I want to invoke the haptic feedback buzz when my ImageButton is pressed, but I am not sure the best way to do it. I first checked that my button was enabled for that, and isHapticFeedbackEnabled() returns true. Then I am calling performHapticFeedback() with the constant

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-24 Thread James W
Dwass, dont know if this helps, but I finally got it to work reliably for my particular needs. I have a dialog with a single edit, and I wanted to softkeyboard to automatically show when the dialog was opened, and be closed when the dialog was closed. In other words, identical behaviour to the

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-22 Thread James W
note that normally the system will not show the IME by default if it has to use panning on the target window (instead of resize), and the only way to get around this would be to explicitly show the IME when you receive focus. On Mon, Sep 21, 2009 at 6:13 AM, James W jpbwebs...@gmail.com

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-21 Thread James W
I have exactly the same requirement. Running on a Hero, which only has a soft keyboard. The above code is copied exactly, yet it doesnt work. The keyboard is not shown no matter where I put the code, before or after SetContentView(). This seems like a pretty standard thing to want to do, is