[android-developers] How to make a View touchable visually?

2009-10-15 Thread Farproc
When we touch a Button in android, the button highlighted(background turns yellow). This visual change is very friendly to users. I want the same effect on a View object(for example a TextView or ImageView) but I can't figure it out. Somebody help me?

[android-developers] Re: How to make a View touchable visually?

2009-10-15 Thread Farproc
:50 am, Farproc farp...@gmail.com wrote: When we touch a Button in android, the button highlighted(background turns yellow). This visual change is very friendly to users. I want the same effect on a View object(for example a TextView or ImageView) but I can't figure it out. Somebody help

[android-developers] Re: Porting Java app to Android--the basics

2009-10-15 Thread Farproc
GUI porting can never be a easy job! Different APIs, you need rewrite almost all the GUI code IMO. Non-GUI part should be much easier, but it depends. You should do a test: 1. Create an android project 2. Reconstruct a small part of your GUI. 3. Copy some .java files related to the small GUI

[android-developers] Re: ListView problem

2009-10-15 Thread Farproc
Maybe some bugs in your code or in Android framework. Post your code, let's examine. On 10月16日, 上午10时47分, 楊健 y...@cycomtech.co.jp wrote: Dears, When I try to show a list with items and labels,I create item and labels with different layout by inflater. The problem is when i scroll the list

[android-developers] Re: How to start a service without using any activity??

2009-10-16 Thread Farproc
First, you do not have to start/stop a service from a Activity. You can do that in anywhere via a Context object(which is very easy to retrieve). If you want to start a service, just call Context.startService(), form then on the service will keep running in background until you explicitly

[android-developers] Re: Google wave invitations...?

2009-10-16 Thread Farproc
Am I lucky? ;) On 10月16日, 上午11时41分, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Who wants to be in Google wave? I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Change button color on Focus and on click

2009-10-16 Thread Farproc
Set button's background to a StateListDrawable object or xml resource. Here is a sample to use StateListDrawable resource. It's very easy you event do not need to write the listeners!!! On 10月16日, 下午5时43分, Shoby shoby.su...@wipro.com wrote: Hi i am developing an application that has a button

[android-developers] Re: Change button color on Focus and on click

2009-10-16 Thread Farproc
set are pics you are actually set the shape! On Oct 16, 6:39 pm, Shoby shoby.su...@wipro.com wrote: Hi Farproc, Could you please provide a sample code or a link to a sample code for the same? Thanks, Shoby On Oct 16, 3:04 pm, Farproc farp...@gmail.com wrote: Set button's

[android-developers] Re: R.drawable

2009-10-16 Thread Farproc
It's impossible but you can load an image using BitmapFactury at runtime. On Oct 16, 8:49 pm, nisha.devit nisha.de...@gmail.com wrote: Hi, How we can store image files(*.png) to the folder R.drawable at runtime? -- Regards, n!$h --~--~-~--~~~---~--~~ You

[android-developers] Re: Change button color on Focus and on click

2009-10-17 Thread Farproc
Farproc, Could you please provide a sample code or a link to a sample code for the same? Thanks, Shoby On Oct 16, 3:04 pm, Farproc farp...@gmail.com wrote: Set button's background to a StateListDrawable object or xml resource. Here is a sample to use StateListDrawable resource

[android-developers] Re: How to start a service without using any activity??

2009-10-17 Thread Farproc
You can try to code, and then post the problem you encounter. On 10月17日, 下午1时10分, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can you give me a example . On Oct 16, 2:55 pm, Farproc farp...@gmail.com wrote: First, you do not have to start/stop aservicefrom a Activity

[android-developers] Re: How to make a View touchable visually?

2009-10-18 Thread Farproc
java code wherever u please. stae_focused, state_pressed are used in this example. There is another state_selected .. try combinations of true, false for each. On Oct 15, 10:50 am, Farproc farp...@gmail.com wrote: When we touch a Button in android, the button highlighted(background turns

[android-developers] Re: Marketplace urls

2009-10-18 Thread Farproc
market://search/?q=pname:FULL_QUALIFIED_PACKAGE_NAME for example: market://search/?q=pname:com.farproc.wifi.analyzer On 10月19日, 上午7时40分, siliconeagle rrmu...@gmail.com wrote: Hi, Sorry for the rather obvious post(to some) I've been searching round for 3 hours for how to make a marketplace

[android-developers] Re: How to make a View touchable visually?

2009-10-18 Thread Farproc
any idea? On 10月18日, 下午11时45分, Farproc farp...@gmail.com wrote: Thank you very much! Background works fine!!! But I want the text color of a View inverted (white-black, etc) when pressed/focused. I think there is a handy way to do so, but what is it ... On 10月15日, 下午6时23分, RS rajeshs

[android-developers] Re: Establishing WiFi connection to a chosen hotspot

2009-10-19 Thread Farproc
A final comment: WifiManager.AddNetwork(conf) will fail if the the AP you're trying to connect is protected by password and the password you set in `conf` is incorrect I have been debugging AddNetwork() failure for half a day, MY GOD!!! On 8月22日, 上午7时40分, Roman ( T-Mobile USA)

[android-developers] Re: how?

2009-10-19 Thread Farproc
interesting! On 10月20日, 上午8时46分, Dan Sherman impact...@gmail.com wrote: http://lmgtfy.com/?q=how+to+become+a+programmer On Mon, Oct 19, 2009 at 2:15 PM, kmr classroo...@gmail.com wrote: How can I become a programmer? --~--~-~--~~~---~--~~ You received this

[android-developers] Doc of java.util.Formatter. %$ available or not?

2010-01-20 Thread Farproc
http://d.android.com/reference/java/util/Formatter.html In the doc above there is The two characters $ immediately following the % sign indicate that the previous value should be used again instead of moving on to the next value argument. I tested it as String.format(It is %d and %$ again!, 10)

[android-developers] WifiManager.getScanResults() reports out-fo-date values after AP settings changed.

2009-12-03 Thread Farproc
After changing the settings of the wireless router(SSID, frequency, securities) Android won't report the correct values until you reboot your android device!! http://code.google.com/p/android/issues/detail?id=5178can=4colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Does anyone know any

[android-developers] Re: Android 1.5 - setIntent / getIntent broken?

2009-12-03 Thread Farproc
It's a bug maybe. But you can save the intent in SharedPreference if you want to modify it and remember it. IMO. On 12月4日, 上午8时15分, sdphil phil.pellouch...@gmail.com wrote: on Android 1.5, is setIntent / getIntent broken? Here's my scenario. I have an activity and it does some action based

[android-developers] Re: Starting Intent from BroadcastReceiver

2009-12-03 Thread Farproc
Clues: 1. android:launchMode attribute of you Activity. 2. Intent.FLAG_ACTIVITY_NEW_TASK should not be set if you do not want to see multi-instances. On 12月4日, 上午8时32分, csyperski csyper...@gmail.com wrote: I have a problem with starting an intent from a BroadcastReceiver, where everytime

[android-developers] Re: WifiManager.getScanResults() reports out-fo-date values after AP settings changed.

2009-12-04 Thread Farproc
Nobody care? On Dec 4, 8:28 am, Farproc farp...@gmail.com wrote: After changing the settings of the wireless router(SSID, frequency, securities) Android won't report the correct values until you reboot your android device!! http://code.google.com/p/android/issues/detail?id=5178can=4colspec

[android-developers] Re: WifiManager.getScanResults() reports out-fo-date values after AP settings changed.

2009-12-04 Thread Farproc
reboot. or, partially restart the modem side. 2009/12/4 Farproc farp...@gmail.com Nobody care? On Dec 4, 8:28 am, Farproc farp...@gmail.com wrote: After changing the settings of the wireless router(SSID, frequency, securities) Android won't report the correct values until you reboot

[android-developers] Re: How does Email app switch its 'main' activity

2009-12-04 Thread Farproc
I have an idea: check whether account has been steup in onResume() of your main activity if not start the wizard activity. On Dec 5, 9:58 am, hap 497 hap...@gmail.com wrote: Hi, In android Email app, when I first launch it, it will shows me the 'account setup wizard' activity. But when I

[android-developers] Problem of debug build.

2010-12-09 Thread Farproc
I have upgraded to Android SDK 2.3(with Android SDK Tools, version 8 Android SDK Platform-tools, version1) and ADT/DDMS Version: 8.0.1.v201012062107-82219. But I can't use the debug build feature. I remove debuggable attribute in the AndroidManifest.xml of my project because the doc says

[android-developers] Please pay attention to the Android porting issues.

2010-10-19 Thread Farproc
Please pay attention to the Android porting issues. Android is growing fast nowadays with more and more devices, but there is a very serious problem that is going more and more serious meanwhile: manufactures are not porting Android very well. Here are some examples I found: 1. On HTC G1

[android-developers] Re: The life cycle of a static

2010-03-07 Thread Farproc
I thought if I set a static field then that will stay set as long as the VM is alive. I agree with you. But you can't make such an assumption that MyActivity.onCreate() will be always executed in the same VM process as MyActivity.COMPLEX_OBJ = myComplexObj; // which is definitely NOT . The

[android-developers] Re: How to end the Application?

2010-03-07 Thread Farproc
try { System.exit(0); } catch (SecurityException e) { } On Mar 4, 7:29 pm, vinoth vinothso...@gmail.com wrote: How to exit from the whole application.?(Not from the Activity) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Need a Nexus One tester with logcat

2010-03-08 Thread Farproc
Really sorry to hear the half star thing! I do not have a Nexus One but I think you can help yourself by writing code to catch all the uncaught exceptions and send the error information to your gmail!! Step 1: Write a class that implements java.lang.Thread.UncaughtExceptionHandler: code public

[android-developers] Re: Activity restart crash after OS kills it

2010-03-08 Thread Farproc
I have posted something about static field at http://groups.google.com/group/android-developers/browse_thread/thread/029cf8179a476aad# Hope it helps!! Good luck! On Mar 9, 2:02 am, jgostylo jgost...@gmail.com wrote: This is what I am doing: Activity SplashScreen is the launching activity for

[android-developers] Re: Need a Nexus One tester with logcat

2010-03-09 Thread Farproc
. Mike On 03/09/2010 02:44 AM, Farproc wrote: Really sorry to hear the half star thing! I do not have a Nexus One but I think you can help yourself by writing code to catch all the uncaught exceptions and send the error information to your gmail!! Step 1: Write a class

[android-developers] Re: Tool to synchronize String properties betweens differents languages

2010-03-09 Thread Farproc
Sounds good! On Mar 8, 10:29 pm, chris christ.pe...@gmail.com wrote: Hi all Just a word to tell you that i put a tool to help you synchronize your strings properties files here :http://propertysync.appspot.com/synchronize.htm You can zip your res directory , send it to the server and you

[android-developers] Re: Stopped unexpectedly on a real phone but not on the simulator

2010-03-09 Thread Farproc
Plug you phone, debug in eclipse but select your real phone as target! On Mar 9, 11:20 am, CMF manf...@gmail.com wrote: Hi, my app didn't die on the simulator, it works fine. But it crashed on a real mobile phone. On Mar 9, 12:06 am, spachner stefanpach...@googlemail.com wrote: Hi,

[android-developers] Re: Howto:read configured networks and display WPA-PSK as String

2010-03-09 Thread Farproc
I think it is impossible to retrieve the PSK(password) via current SDK. Security reason maybe. On Mar 10, 5:04 am, zero zeroo...@googlemail.com wrote: is there ANY way to do this ? WifiConfiguration actually holds that information as a string, but so far i had no luck accessing the field, even

[android-developers] Re: Activity without ANY screen output possible?

2010-03-09 Thread Farproc
1. If you really want to hide an activity, try Activity.setVisible(false) or windowNoDisplay attribute of the activity's theme. 2. PendingIntent is not restricted to start an activity. PendingIntent.getBroadcast(), PendingIntent.getService() etc. On Mar 10, 9:45 am, klausa2

[android-developers] Re: Need a Nexus One tester with logcat

2010-03-09 Thread Farproc
I would have to add INTERNET permission No, you do not need this permission for just sending emails. Because you can starting an email app(def exists in almost every android phone) to send email, it is the email app who needs INTERNET not your app!!! This is why I prefer this to 3rd party log

[android-developers] Re: Number of ratings decreased??

2010-03-10 Thread Farproc
Do you notice the Clear my review option menu of Market app? On Mar 11, 11:10 am, Justin jtgi...@gmail.com wrote: Since 9:00am on March, 10, the ratings for one of my apps has DECREASED by 6, from 45 ratings down to 39.  What would the cause of this be?  Is this a sign of another breakage of

[android-developers] Re: Attn: Devs running games or apps in compatibility modes

2010-03-12 Thread Farproc
Spare Parts the one from Google? Stock in emulator? On Mar 12, 1:56 pm, Robert Green rbgrn@gmail.com wrote: I know several of you wrote your apps and games before 1.6 was out or before you had a trusty N1 or Droid to test on.  This led to many apps that rely on compatibility mode, that is,

[android-developers] Re: how to implement progress bar as same as windows loader bar

2010-03-12 Thread Farproc
Write your own subclass of View. Override it's onDraw() method. You need a Timer or Handler to call invalidate() periodically. On Mar 12, 4:01 pm, mike kiranbollepa...@gmail.com wrote: hai, i struck in implementing progress bar functionality of my splash screen. i know horizontal progress

[android-developers] Re: Update application in market

2010-03-12 Thread Farproc
Just do anything you need in your update but leave the package name and signature untouched. A increasment of version code is required(not limited to one). Version name is your own concern. All the user installed you app will receive an update notification if they have data connection. On Mar

[android-developers] Re: How to use Java Runtime class in Android for starting another application from mine

2010-03-12 Thread Farproc
If the notepad is an Android app, you should use Activity.startActivity(). On Mar 12, 4:44 pm, Sudheendra sudhindra.ma...@gmail.com wrote: basically i want to start Notepad application in android from my application , can i do this in android using runtime.exec() method of RuntimeClasss and

[android-developers] Re: very urgent.. problem in writing file..

2010-03-12 Thread Farproc
Basically you can not modify the resources of your app. They are read-only after build. You can write data to sd card and modify it then use. On Mar 12, 10:07 pm, RV ravivyas...@gmail.com wrote: Hi, I am stuck on this for a very long. I have my txt file in res/raw/myfile.txt. I want to

[android-developers] Re: write/read log files in res folder

2010-03-13 Thread Farproc
What is the res folder? /sdcard/res? On Mar 13, 3:07 pm, aswani kumar tholeti ensisinf...@gmail.com wrote: Hi all, how to write/read log data into txt file in res folder Thanks in advance Aswan -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Do the latest SDKADT not support Cupcake(1.5)?

2011-03-17 Thread Farproc
I rebuilt my Android app with the latest SDK(3.0) and targeted it to API level 10 with min SDK 3(uses-sdk android:targetSdkVersion=10 android:minSdkVersion=3/) recently. The apk installs and works well on my old G1 with cupcake, but I can't download it form Market with that phone after I uploaded

[android-developers] Android SDK, Market and Cupcake compatibility.

2011-03-18 Thread Farproc
Apps built with API level 10 and android:minSdkVersion=3 can not be downloaded by Cupcake phone via Android Market. These apps can be seen in Market of my old Cupcake G1, but it says Not found: The requested item could not be found when I click to install them. These apps work fine if I manually

[android-developers] Re: Android SDK, Market and Cupcake compatibility.

2011-03-18 Thread Farproc
Thanks. I'll try that in the next release. What I mean here is letting Google know this issue. On 3月19日, 上午10时54分, TreKing treking...@gmail.com wrote: On Fri, Mar 18, 2011 at 9:49 PM, Farproc farp...@gmail.com wrote: Apps built with API level 10 and android:minSdkVersion=3 can

[android-developers] Re: Android SDK, Market and Cupcake compatibility.

2011-03-19 Thread Farproc
Thank you. Yes, it's good and I'm young. ;) On 3月19日, 下午1时19分, Zsolt Vasvari zvasv...@gmail.com wrote: What I mean here is letting Google know this issue. Good one, young padawan. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Error inflating class com.android.internal.widget.ActionBarContainer on some Sony devices.

2015-06-17 Thread Farproc
Hi, I've got a lot of error reports from Sony devices with Android 5.0.2 in the past few weeks. It seems that a ArrayIndexOutOfBoundsException occurs when inflating ActionBarContainer. ActionBarContainer is an internal class, never used directly in my code. The only line of my code in the