[android-developers] NFC demo example

2011-10-16 Thread ANKUR GOEL
Hi , i am going through the NFC example its using the mock tags ... IF i want to use the random NFC tag how to change and read that part ,, Someone please help Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] MotionEvent touch events

2011-10-16 Thread loril...@gmail.com
Hi I'm working on a drawing app and using openGL to draw the bitmaps on all touch points. So far I'm successful in drawing bitmaps on all touch points I get (including touch points in historical data) and the speed is good. But if I move my finger fast on the screen, I do not get all the touch p

[android-developers] Re: how to fix HTTPS error 404

2011-10-16 Thread skink
On Oct 17, 8:17 am, Naveen wrote: > Hello Sir, > > I have a web apache server with  URL  https://IPAddress/xmlrpc, > > It's contain XML-RPC api , in case of PHP and iphone/ipad , server > response fine with Post method. > > But in case of android SSL selfed signed cert is handled ,same server >

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-16 Thread emanuele
Putting the bitmap reference in the convertview tag and retrieve the tag when The getview is called could be a solution? On 17 Ott, 04:41, IcedNet wrote: > You should look into Romain Guy's 2009/10 Google I/O presentations on > UI -- he is the whip with ListViews/UI. > If you're looking for what

[android-developers] how to fix HTTPS error 404

2011-10-16 Thread Naveen
Hello Sir, I have a web apache server with URL https://IP Address/xmlrpc, It's contain XML-RPC api , in case of PHP and iphone/ipad , server response fine with Post method. But in case of android SSL selfed signed cert is handled ,same server url in android giving 404 server errror code. Some

[android-developers] Re: List View Focus Problem!

2011-10-16 Thread Studio LFP
This might be helpful: http://developer.android.com/reference/android/view/View.html#setOnFocusChangeListener%28android.view.View.OnFocusChangeListener%29 You can create one or implement it on your activity and link as many views to it as you want. You should receive an event for focus gained an

[android-developers] List View Focus Problem!

2011-10-16 Thread abi
Hi, I have a list view and a bottom bar in a layout. I can't focus the bottom bar after focusing the list view. How to find focus lost from list view. At that time I need to focus that bottom bar. Please Suggest... Regards, Abi -- You received this message because you are subscribed to the Goo

[android-developers] timer for implementing projectile motion

2011-10-16 Thread ruchira
Can anyone please suggest me the type of android's predefined timer to be used for implementing projectile motion or do I need to write a custom timer.Also please let me know the range of initial velocity V which can be used for assumption. -- You received this message because you are subscribe

[android-developers] Re: Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Larry/MavrickProductions
WOW!! I read that well over a dozen times and didn't catch that until you both pointed it out. Now it works just fine. THANK YOU!!! Really appreciate the assist! Best, -Larry On Oct 16, 11:09 pm, Nikolay Elenkov wrote: > On Mon, Oct 17, 2011 at 11:54 AM, Studio LFP wrote: > > > month the zero

Re: [android-developers] Re: Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Nikolay Elenkov
On Mon, Oct 17, 2011 at 11:54 AM, Studio LFP wrote: > > month the zero-based month number (in the range [0,11]) > > Took me a second to find this, but December is 11, not 12 like we think > about it. > > Tricky Android dev team! > That comes from java.util.Calendar/Date which have won multiple 'w

Re: [android-developers] Re: Add Admob in PreferenceScreen at LiveWallpaper setting screen

2011-10-16 Thread Nikolay Elenkov
On Mon, Oct 17, 2011 at 11:44 AM, Perry168 wrote: > I am very upset. The Admob haven't come out too. > Too bad :) Consider that your users will open the preferences activity at most a couple of times. Displaying ads there would serve little purpose other than to annoy people. In short: don't. --

[android-developers] Re: Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Studio LFP
Simple, they caught us all looking. Check out the API docs: http://developer.android.com/reference/android/text/format/Time.html#set%28int,%20int,%20int%29 And notice this part: *month the zero-based month number (in the range [0,11])* Took me a second to find this, but December is 11, not 12 l

[android-developers] Re: Add Admob in PreferenceScreen at LiveWallpaper setting screen

2011-10-16 Thread Perry168
I am very upset. The Admob haven't come out too. On 10月17日, 上午12時35分, Kostya Vasilyev wrote: > The listview is taking the entire activity width and height (because of > "fill_parent"), so the AdMob view is there, but is pushed beyond the > edge of the screen. > > Try this on the listview: > > and

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-16 Thread IcedNet
You should look into Romain Guy's 2009/10 Google I/O presentations on UI -- he is the whip with ListViews/UI. If you're looking for what I think you're looking to do -- which is speed up that list view -- he has a view holder pattern that will do just that. Peace, Dan On Oct 16, 10:08 pm, Studio

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-16 Thread Studio LFP
Based on the code there, you wouldn't have the chance to recycle the bitmap as you don't keep a handle to it anywhere. Then again, if the ListView discards that particular row and you aren't retaining any handles to the bitmap, then the bitmap should be scheduled for collection by the GC. If yo

[android-developers] Re: Android Tablet Internal Storage

2011-10-16 Thread ramya
oh ok..sounds good..will try this..thanks man:) On Oct 13, 11:33 pm, Studio LFP wrote: > See if this helps out: > > StatFs sfStats = new StatFs( this.getFilesDir().toString() ); > Log.i( "SpaceCheck", "Free (bytes): " + ( sfStats.getAvailableBlocks() * > sfStats.getBlockSize() ) ); > > That shoul

[android-developers] Re: VoiceRecognition.java

2011-10-16 Thread D_R_W
TreKing , Thanks for pushing me her to clarify. I'm wondering if there is a setting to add the commas to the results during the Voice Recognition process or if I need to code post VR process. Thanks! DRW -- You received this message because

[android-developers] Re: Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Larry/MavrickProductions
Found part of the problem: My time set line: TimerSet.set(12, 25, 2011); // set the date to Dec 25, 2011, 12AM was backwards - it should have been (25, 12, 2011). Once fixed, the numbers are a lot closer, but still off by 36 days. Still looking for help on where I've made a stupid math/code error.

Re: [android-developers] Re: Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Kostya Vasilyev
17.10.2011 1:26, Larry/MavrickProductions ?: Thank you both for the replies! Actually, the strings are not the problem. The "human" date/time to millisecond conversions are wrong. 12/25/2011 should equal 1324789200. In seconds, yes. In milliseconds, no, it's 1324789200 * 1000 which does

[android-developers] Re: Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Larry/MavrickProductions
Thank you both for the replies! Actually, the strings are not the problem. The "human" date/time to millisecond conversions are wrong. 12/25/2011 should equal 1324789200. My converted time (from the screen output) 12/25/2011 is -877432832. And when the drill-down is done it shows that Christmas i

[android-developers] Re: Custom compass image bounds in subclassed MyLocationOverlay

2011-10-16 Thread stephen
OK - so the answer isn't canvas.scale (that scales up the bitmaps). How can the canvas be manipulated to increase its size (i.e. provide more room to draw my images)? Thanks, Stephen On Oct 11, 9:23 am, stephen wrote: > Makes sense. So something like: > > canvas.save > canvas.scale > // do draw

Re: [android-developers] Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Kostya Vasilyev
The value from the JavaScript is in seconds. Converted to milliseconds, it does not fit in a 4-byte integer (0x*134*_7396F480_), that's why normally longs (8 bytes) are used for time stamps. You don't really need to convert the values to ints just for the sake of a number-to-string conversio

Re: [android-developers] Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Christopher Van Kirk
Possibly a signed/unsigned problem. Try using an unsigned long. On 10/17/2011 4:55 AM, Larry/MavrickProductions wrote: I am writing a program for my kids to count down to Christmas. I have been playing with android programming for a year, read books, look online for help, but this one is really

[android-developers] Time/CountDownTimer: Wrong millis returned for date/time - HELP PLEASE!!

2011-10-16 Thread Larry/MavrickProductions
I am writing a program for my kids to count down to Christmas. I have been playing with android programming for a year, read books, look online for help, but this one is really got me stumped. In the java, I use Time (var) .set(mm, dd, ) and long millis = (var) .toMillis(true) to convert 12/25

[android-developers] Recently released: Weather-Buddy

2011-10-16 Thread Ali Chousein
An Android weather application for travelers and commuters. More information at: http://weatherbuddy.blogspot.com/ http://twitter.com/weather_buddy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

Re: [android-developers] news app

2011-10-16 Thread Chris Stewart
What you want are two fragments, one for the article view and one for the article detail view. You then would have an activity (or two) to manage them based on phone versus tablet. The fragments would communicate back to the base activity when something happens, say a touch on the article view

Re: [android-developers] Re: Add Admob in PreferenceScreen at LiveWallpaper setting screen

2011-10-16 Thread Kostya Vasilyev
The listview is taking the entire activity width and height (because of "fill_parent"), so the AdMob view is there, but is pushed beyond the edge of the screen. Try this on the listview: android:layout_height="fill_parent" android:layout_height="0px" android:layout_weight="1" And specify orie

[android-developers] Re: Add Admob in PreferenceScreen at LiveWallpaper setting screen

2011-10-16 Thread Perry168
Hi all, Following is my new layout Admob XML file. And I use setContentView to call this layout in PreferenceActivity. But I don't know why the Admob can't show out. Who can teach me what's my wrong? It make me crazy because I wasted 2 days in this problem. http://schemas.android.com/apk/lib/c

[android-developers] Re: Undefined Reference - ffmpeg on android ndk

2011-10-16 Thread Gabriel Simões
I forgot to add my build script: NDK=/cygdrive/c/Gabriel/Desenvolvimento/SDKs/Android/android-ndk-r4- crystax PLATFORM=$NDK/build/platforms/android-8/arch-arm/ PREBUILT=$NDK/build/prebuilt/windows/arm-eabi-4.4.0 function build_one { ./configure --target-os=linux \ --prefix=$PREFIX \ --e

[android-developers] Re: Add Admob in PreferenceScreen at LiveWallpaper setting screen

2011-10-16 Thread Perry168
Because I tried too much solution within 2 days, following is a one of the solution. layout/ad_layout.xml http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> AdPreference.java publi

Re: [android-developers] Phone's camera facing given gps coordinates

2011-10-16 Thread lbendlin
or you let the Google Location API do the work for you. myLocation.bearingTo(theOtherLocation) -- 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 th

Re: [android-developers] Re: Can't respond to user comments

2011-10-16 Thread Nikolay Elenkov
On Sun, Oct 16, 2011 at 7:16 PM, Anil Jagtap wrote: > There are always some perverts writing irresponsible comments. > As Kostya Vasilyev  said, write to Google about it. Unfortunately, there are some 'security' apps that warn people about possibly dangerous apps, and some blow app permissions ou

[android-developers] setText for a TextView sometimes produces FC

2011-10-16 Thread Ben Lee
Hi, Very rarely, my app crashes in setText. Here is the detail: java.lang.ArrayIndexOutOfBoundsException: index=4 length=4 > at android.text.AndroidBidi.directions(AndroidBidi.java:65) > at android.text.StaticLayout.out(StaticLayout.java:680) > at android.text.StaticLayout.generate(StaticLayout.ja

[android-developers] Re: Add Admob in PreferenceScreen at LiveWallpaper setting screen

2011-10-16 Thread Perry168
Because I tried too much solution within 2 days, following is a one of the solution. layout/ad_layout.xml http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> AdPreference.java publi

[android-developers] Re: Can't respond to user comments

2011-10-16 Thread Anil Jagtap
There are always some perverts writing irresponsible comments. As Kostya Vasilyev said, write to Google about it. On Oct 15, 8:50 pm, rastyrori wrote: > Today a user posted a comment about my app claiming that it accesses > the user's phone numbers and calling history, which is completely > unt

[android-developers] Re: send SMS from adb without using mobilenetwork

2011-10-16 Thread Ali Chousein
Check the information at http://developer.android.com/guide/developing/devices/emulator.html#sms You can sent SMS messages to an emulator at least. I have never tried it, but maybe you can also send SMS messages to a phone by specifying the device ID. But as I said, I'm not sure if you can send it

[android-developers] listview adapter. Recycle bitmap

2011-10-16 Thread emanuele
Hello guys.. that s my baseAdapter getview implmentation: @Override public View getView(int position, View convertView, ViewGroup parent) { int type = getItemViewType(position); if (convertView == null) { switch (type) {

[android-developers] Re: ListView disappears after return from activity

2011-10-16 Thread Ali Chousein
My first wild guess is that you might a problem in your onStart or onResume of the activity which hosts your ListView. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com/ Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/

[android-developers] Re: Button Animation

2011-10-16 Thread F4L|{0
thanks for answer Yes I used android:fillAfter but this is used to fix the animation. can somebody help me? On 14 Ott, 17:14, Justin Anderson wrote: > Perhaps this is what you are looking for?  Never used it so I'm not sure, > but look at this animation property: > > http://developer.android.com

[android-developers] Re: Button Animation

2011-10-16 Thread F4L|{0
thanks for answer Yes I used android:fillAfter but this is used to fix the animation. can somebody help me? On 14 Ott, 17:14, Justin Anderson wrote: > Perhaps this is what you are looking for?  Never used it so I'm not sure, > but look at this animation property: > > http://developer.android.com