[android-developers] Set 2 EmptyView in ListView

2011-04-28 Thread smokerpg
hi guys. i try to set 3 empty view to ListView. at first, i try to set LinearLayout to EmptyView. but it doesn't work. so, i try this code. listView.setEmptyView(findViewById(R.id.emptyImage)); listView.setEmptyView(findViewById(R.id.emptyButton));

[android-developers] Re: Fragmentation-resistant product design

2011-04-28 Thread Vikram Bodicherla
So coming back to my question, any advice on design for now? The android developers blog suggests abstracting APIs like the Contacts API. But it is not practical to go around abstracting all system APIs. Neither would be want to put in model-specific if-else clauses at different places in the

[android-developers] code on how to detect where a person is using android

2011-04-28 Thread wami321
am trying to come up with a code that can detect wher a person is and show the location on google maps please help -- 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

[android-developers] Re: Widget tables

2011-04-28 Thread Niall
I got a solution... I think. My widget layout is defined in a file called main.xml. In this I put in a vertically orientated LinearLayout ID'd as tableRowContainer. I then added a row.xml layout definition. This only contains another linear layout, ID'd as tableColContainer. I furthermore

[android-developers] encryption give different result in android and jsp

2011-04-28 Thread me mine
Hi all, I use encryption method like at post: http://groups.google.com/group/android-developers/browse_thread/thread/091d69976f4b9362. public class SimpleCrypto { public static String encrypt(String seed, String cleartext) throws Exception { byte[] rawKey =

[android-developers] how do i change search location in android browser

2011-04-28 Thread YY
I'm in malaysia, when i type keyword at address bar. The search result is .uk. I want a .my result. In chrome, i can choose the option show pages in malaysia. I could not find the same menu in android browser -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Ang.: Re: 2.3 Platform Google APIs missing Licensing Service..?

2011-04-28 Thread Jan Skarvall
I get the same error, can not bind to service on AVD's running level 9 and 11 of Google API, and that level 8 works. I have not tested level 10. -- 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] Android Slideshow view of my photos

2011-04-28 Thread Droid_Newbie
Hi, http://code.google.com/p/android-slideshow/downloads/list - I downloaded the code and ran the APK for the android slideshow. However, it does not perform a slideshow. Any pointers on what needs to be done to enable a slideshow is much appreciated. Thanks Sri -- You received this message

[android-developers] Question

2011-04-28 Thread PortfolioBuilder
I have been trying to figure out what framework to build an app in. Every development framework seems to have pros/cons and finding answers to questions I have so that I can evaluate the pros/cons have been a bit difficult. I was referred to appcelerator by a friend, not because of the software

[android-developers] Is Lg Optimus One P500 a good phone to dev?

2011-04-28 Thread Tiago Mesquita
Hi friends, I'm thinking about this optimus one p500, but i don't know much about this cell phone, i just know that it support a good overclock that let him with more than 800mhz, but i don't tried anything and i just want to know if this is a good phone to develop games and apps in android 2.2

[android-developers] Android widget--table display

2011-04-28 Thread Niall
Hi all, I have an android widget that scraps information from a website. I want to display the data that I have gotten in a table form that's shown on my widget, but I don't know how. I have tried the following (but they don't appear to work)... First I tried adding in a table in my widget, but

[android-developers] Re: How do I remove the background of a image button?

2011-04-28 Thread Andy Fung
setBackground to null or on xml file Background=@null On 4月26日, 下午5時02分, shyme shym...@gmail.com wrote: Dear :     I use a d circle image button. I had set the picture with no backgrounf. But it will display a rectacle pricture with the white color around the circle button. How can I remove

[android-developers] Unfinished Prototype. Is That All I Need?

2011-04-28 Thread PortfolioBuilder
This sounds like a silly question but I really need an answer. I just want to know if I have to create an actual functional app on the backend if I am only demonstrating a prototype of the app so that I can sell the intellectual property? In other words, can create the front end to simulate data

[android-developers] Widget tables

2011-04-28 Thread Niall
Hi all, I'm making a widget and on it want to display some data in an NxM table or some sort. Eclipse (or rather limitations of the widget?) doesn't permit me to have a table layout on my widget.xml file (gives a problem loading widget) on my emulator. Are there any alternatives/workarounds

[android-developers] J2ab bridge showing error

2011-04-28 Thread swami nathan
HI Thanks for notification i am trying to convert j2me application into android i am seeing following site http://www.assembla.com/wiki/show/j2ab/Converting_From_J2ME/8; but i am ending up with Dalvkit Conversion failed i also tried clean and build method it would be helpfull if u help me --

[android-developers] Why did you chose this OS platform over other ones?

2011-04-28 Thread Theo Sam
Hey guys, I am considering developing for a mobile OS and I am not sure which one to choose out of BlackBerry Windows phone 7 or Android. ( I know there are other ones including IOS but I don't want develop for them.) I was wondering if you could tell me why you guys have chosen Android over the

Re: [android-developers] Mapactivity

2011-04-28 Thread kaushik p
I have almost gone through all the pages on web to get information on intent mapactivity , i have not found anything that solves my problem . Does anyone know about it ?any help is greatly appreciated On Thu, Apr 28, 2011 at 4:43 PM, kaushik p kaushiks...@gmail.com wrote: no , i have used

Re: [android-developers] Mapactivity

2011-04-28 Thread Mohammed Hossain Doula
Which emulator you are using? Does the emulator has the Google API enabled? You have to enable the Google Map from another Activity as I did. Are you placing the *Key *properly or not in the layout XML file? Just check those things again and again. Surely you would find out the problem. On Thu,

Re: [android-developers] Mapactivity

2011-04-28 Thread Mark Murphy
On Thu, Apr 28, 2011 at 7:30 AM, kaushik p kaushiks...@gmail.com wrote: I have almost gone through all the pages on web to get information on intent mapactivity , i have not found anything that solves my problem . Does anyone know about it ?any help is greatly appreciated Use adb logcat, DDMS,

[android-developers] Re: encryption give different result in android and jsp

2011-04-28 Thread DanH
Have you tried simply running the same string through the same algorithm on the same platform more than once? It appears to me that you're calculating a new key every time, so obviously the results would be different. On Apr 26, 10:58 pm, me mine triplezerofo...@gmail.com wrote: Hi all, I use

[android-developers] Re: what is possibly wrong in this SIMPLE animation???

2011-04-28 Thread Rakib
so, this is something irritatingly buggy. after moving line no. 2 which is *myAnimationSet.setDuration(2000);* down to the line right before line no. 6 which is * v.startAnimation(myAnimationSet);* it worked hence, before, AnimationSet myAnimationSet = new AnimationSet(true);

Re: [android-developers] Google Map 5 for Android development

2011-04-28 Thread Mark Murphy
On Wed, Apr 27, 2011 at 1:59 AM, bappa ritwik0...@gmail.com wrote: I want to implement google map 5 3D API in my application. I have updated the goole map to 5 in my target device. Can you please tell me what I have to do to accomplish this? You cannot accomplish this. The Google Maps

Re: [android-developers] how do i change search location in android browser

2011-04-28 Thread Mark Murphy
This list is for questions regarding developing applications with the Android SDK. End user questions should go to some place like http://android.stackexchange.com. On Thu, Apr 28, 2011 at 5:32 AM, YY y.yu...@gmail.com wrote: I'm in malaysia, when i type keyword at address bar. The search result

Re: [android-developers] Phone for development

2011-04-28 Thread Raghav Sood
Thanks a lot Pepijn On Thu, Apr 28, 2011 at 12:14 PM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: I agree with that review. As I already said in the set of devices I have available, that one's my 'favorite'. A couple of my colleagues have one for personal use as well and are very

[android-developers] Re: Mapactivity

2011-04-28 Thread Fina Perez
check the manifest, to see if you have the library and the mapactivity there. But as Mark says, look at the stack treace in the logcat, it's really helpful On Apr 28, 1:42 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Apr 28, 2011 at 7:30 AM, kaushik p kaushiks...@gmail.com wrote: I

Re: [android-developers] Re: Acer Iconia A500

2011-04-28 Thread Marcin Orlowski
On 28 April 2011 11:09, Zsolt Vasvari zvasv...@gmail.com wrote: It can't be any worse than using the emulator -- that's for sure. Yep, but that's common knowledge :) I mostly wonder if it needs any special drivers or other crap which does not work right with adb or causes other problems I am

[android-developers] changing Font Size on Selection

2011-04-28 Thread Samuh
I am working on theming my application, and I would like to add effects to a listview item when it is selected. While I have successfully accomplished theming the text color, I would also like to make changes to the text size itself while pressed/selected. What are the alternatives to do this? Do

Re: [android-developers] Re: dispatch key events to other activities.

2011-04-28 Thread Dianne Hackborn
You can count on either getting onKeyUp(), onFocusChanged(), or onWindowFocusChanged(). On Thu, Apr 28, 2011 at 6:50 AM, Nguyen Dat nguyenda...@gmail.com wrote: Dear all, Relate with question can't dispatch event when change Activity, i have litle concern about Long press key event have

Re: [android-developers] Non-US buyers still charged in US$.

2011-04-28 Thread Marcin Orlowski
On 28 April 2011 11:36, Zsolt Vasvari zvasv...@gmail.com wrote: I have prices set in all the different currencies supported by the Android Market, but still, frequently, I got buyers who get charged in US$ even though they are in a country that has a supported currency. It seems to happen the

Re: [android-developers] How to Set 2 EmptyView in ListView

2011-04-28 Thread Dianne Hackborn
No. There is only one empty view. If you want an empty view with multiple things in it, use a layout manager and put your views inside and set the top-level layout manager as the empty view. On Wed, Apr 27, 2011 at 11:15 PM, kenichi kato smokerpg...@gmail.comwrote: hi guys. i try to set 3

Re: [android-developers] Basic Question

2011-04-28 Thread Marcin Orlowski
On 27 April 2011 17:07, Prayag prayag.d.pat...@gmail.com wrote: I am a Newbie and I have a basic question for which I couldnt get any answer yet. Did try reading docs first? What is the need to use two keywords to express that the given activity is the main activity. No. You need just

[android-developers] Downloading image from URL with spaces in the path in Android

2011-04-28 Thread shtkuh
Hi, I want to download image from the path. This is my code: String urlString = http://www.hospimedica.com/images/stories/articles/article_images/_CC/20110328 - DJB146.gif; url = new URL(urlString.replaceAll( , %20)); bm = BitmapFactory.decodeStream(url.openConnection().getInputStream()); But

Re: [android-developers] How to Set 2 EmptyView in ListView

2011-04-28 Thread Dianne Hackborn
Btw you can pretty uniformly take a function that starts with set on Android to mean replace whatever you previously had with the new value being supplied. On Thu, Apr 28, 2011 at 8:39 AM, Dianne Hackborn hack...@android.comwrote: No. There is only one empty view. If you want an empty view

[android-developers] Re: Basic Question

2011-04-28 Thread Peter Webb
Not sure of your question, but http://android-er.blogspot.com/2009/08/exercise-intent-bundle.html and the previous article in the series show different ways in which multplie activities can be managed. On Apr 28, 1:07 am, Prayag prayag.d.pat...@gmail.com wrote: Hi guys, I am a Newbie and I

RE: [android-developers] Re: license fees / royalties for players using audio video codecs offered by Android or device manufactures

2011-04-28 Thread bmjg
@Dianne Hackborn, Update: Vialicensing (AAC) replied: If you will be leveraging the native AAC support in Android so that your apps don't include an AAC encoder or decoder, then you wouldn't have a need/obligation for a license - your products wouldn't infringe. So this confirms

[android-developers] Re: Unfinished Prototype. Is That All I Need?

2011-04-28 Thread Adam Ratana
You should consult an intellectual property attorney with these questions, or find some books out there which cover the business aspect of developing software. Generally your needs will be specific to you and this question is probably beyond the scope of this list. If it helps, I think you have

[android-developers] Re: Android Developer console not updating

2011-04-28 Thread Peter Webb
Yes. I complained via the help page after 7 days, and received an email response saying they were diligently working on it. One app updated 2 days later, the other the next day. Probably a co-inicidence. On Apr 28, 8:11 pm, AI Factory jeff.rolla...@aifactory.co.uk wrote: It is a source of

Re: [android-developers] How to run application at startup (Java app)

2011-04-28 Thread Marcin Orlowski
On 27 April 2011 20:43, dani maoz maoz.d...@gmail.com wrote: Hi I have created an APK of java application and i have 2 questions 1. After APK installation what is the installed directory where application located use PackageManager API to find out 2. I would like to run the application at

[android-developers] Not able to write a file completely with fileinputstream and fileoutputstream?

2011-04-28 Thread Hitendrasinh Gohil
hi, Below is my code that i am writing the file. FileOutputStream fileOutput = new FileOutputStream(filepath); InputStream inputStream = urlConnection.getInputStream(); int[] key = {123,456}; int totalRead

Re: [android-developers] Re: license fees / royalties for players using audio video codecs offered by Android or device manufactures

2011-04-28 Thread Dianne Hackborn
I am not a lawyer, and I am not involved with licensing, so please don't take anything I say as a definitive answer. However. Seriously. You are calling an API and asking the system to play some audio file from somewhere. You don't need to pay a license to do this. Why in the world do you

Re: [android-developers] Not able to write a file completely with fileinputstream and fileoutputstream?

2011-04-28 Thread Daniel Drozdzewski
Hitendrasinh, you have to call FileOutputStream.flush() after every write, but before you get there, you have to stop writing 1 integer for every buffer read. In other words you are calling wrong FileOutputStream.write() method. You need the one that takes buffer, not a single byte. Daniel

[android-developers] Activities from widget

2011-04-28 Thread Niall
I have a widget with a few buttons. I want one button to open preferences, and the second to start an AlarmManager according to the preferences that have been set. A click of either button on the widget will go the same activity, but I wish to distinguish between the clicks via extra

Re: [android-developers] Activities from widget

2011-04-28 Thread Mark Murphy
You will need to use two distinct Intents, ones that route to the same activity but differ by something more than just the extras. For example, on one, add an action string that you won't be using. It will not affect the routing (you're specifying the class name, which trumps everything else). On

Re: [android-developers] Activities from widget

2011-04-28 Thread Kostya Vasilyev
Probably the easiest way is to use two distinct action string values. Another way is to use two distinct request codes when you create PendingIntent objects: one for each operation. So you'd have: PendingIntent pendingIntentForPrefs = PendingIntent.getActivity( context, 1, intentForPrefs,

Re: [android-developers] Activities from widget

2011-04-28 Thread Niall
Thanks for the quick replies, you two! I got it working :) Kostya's solution seemed quickest to use so I tried that. I think it was the setting of the different values of the second parameter to getActivity that did it. Does this make sense? I had two pendingIntent.getActivity( context, 0,

[android-developers] Re: Changing the row color in ListView

2011-04-28 Thread ColdForged
With list views you'll likely want to keep your state variable (e.g. boolean mDownloading) in the data structure of your element. When that state changes, perform a notifyDataSetChanged() on the adapter and have your getView() method in your adapter reflect the appropriate state for the object

Re: [android-developers] Activities from widget

2011-04-28 Thread Kostya Vasilyev
28.04.2011 19:14, Niall ?: Thanks for the quick replies, you two! I got it working :) Cool. Kostya's solution seemed quickest to use so I tried that. I think it was the setting of the different values of the second parameter to getActivity that did it. Does this make sense? I had two

[android-developers] Re: nfc read not working

2011-04-28 Thread Michael Roland
Hallo John, the manifest file have the following filters:  intent-filter    action android:name=android.nfc.action.TECH_DISCOVERED/  /intent-filter The program can't go through reading process because the follwoing condition is always false: if

Re: [android-developers] How can I handle Exception message internationalization

2011-04-28 Thread TreKing
On Tue, Apr 26, 2011 at 2:56 PM, Guilherme Matsumoto guih.matsum...@gmail.com wrote: I'd like it to show a message in other language in a beautiful way Then don't show the exception message. What will the average do with that? If you know what the exception is and know what it means for you

Re: [android-developers] Re: android nfc tech API help

2011-04-28 Thread Michael Roland
Hallo, What exactly is low level access? With low-level access (as compared to APDU based access) I mean some vendor specific (proprietary) protocol according to the ISO/IEC 14443-3 standard. Thus, instead of sending high-level APDU commands a more simple protocol is used (such a protocol is

Re: [android-developers] ViewFlipper and ScrollView animation

2011-04-28 Thread Rick Cook
Thanks Kostya. My solution was in fact to have two different scrollviews rather than placing it around the viewflipper. The problem was actually with my animation, which had the primary view set transition from position 0, this caused the jarring jump back to the top of the screen. 2011/4/26

Re: [android-developers] Re: Sending data continuously over NFC in mode P2P

2011-04-28 Thread Michael Roland
Hallo Azahara, thanks for your answer. So that means Android 2.3.3 does not provide the possibility to send many messages per connection established, however internally it uses a more complex scheme to communicate in p2p mode that is not available yet?. Right. Actually it is internally it

Re: [android-developers] Re: Developer console: payments not charged, application statistics not updated

2011-04-28 Thread TreKing
On Thu, Apr 28, 2011 at 12:14 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Pssst, let's not tell Google and see how long it will take before somebody takes a notice. Like reporting issues makes a difference? :-P

Re: [android-developers] Re: Fragmentation-resistant product design

2011-04-28 Thread Brill Pappin
Not sure I can change the project name at the point short of setting up a new one :) - Brill Pappin On Thursday, April 28, 2011 3:55:22 AM UTC-4, Bob Kerns wrote: I do have one little quibble -- 'defect'. While detecting defects is perhaps the most important use case, I don't think we want

Re: [android-developers] What exactly happens during an upgrade?

2011-04-28 Thread TreKing
http://groups.google.com/group/android-developers/browse_thread/thread/9015b34873800229/9286fc65be7afc33 On Thu, Apr 28, 2011 at 12:39 AM, Robert Macaulay robert.macau...@gmail.com wrote: I have Acra in my app to report on crashes(I will be removing it in favor of the market one soon). Why

Re: [android-developers] GMaps launching problem

2011-04-28 Thread TreKing
On Thu, Apr 28, 2011 at 1:44 AM, kaushik p kaushiks...@gmail.com wrote: But my application crashes each time i click the button . Please help me solve this problem Please debug your application. Or at least post a stacktrace of the error if you expect anyone to do anything more than guess at

Re: [android-developers] Re: Fragmentation-resistant product design

2011-04-28 Thread Brill Pappin
I've copied your post to to a Wiki page in the project re design patterns so we don't drop it (we should maybe talk other discussion out of the group). I'm going to upload some simply code that we use in one of our keyboards. We know it is not correct, but it will give us the kernel from which

Re: [android-developers] Re: install android sdk tools on windows 7

2011-04-28 Thread Mark Murphy
I have had little luck with the self-installing EXE version of the Android setup. I use the ZIP archive instead. Just unZIP it somewhere. On Thu, Apr 28, 2011 at 11:48 AM, freecoder rajuljain...@gmail.com wrote: help me guys On Apr 27, 11:21 pm, freecoder rajuljain...@gmail.com wrote: hello

[android-developers] Re: Missing USB driver for WiFi Galaxy Tab?

2011-04-28 Thread Droid
I used the usb driver supplied by Samsung. Cannot remember if I went to their website or got it from the SDK installation manager but it works very well on my Vista machine. I remember I used about 20 minutes up to locate and install it. -- You received this message because you are subscribed to

[android-developers] Re: install android sdk tools on windows 7

2011-04-28 Thread freecoder
help me guys On Apr 27, 11:21 pm, freecoder rajuljain...@gmail.com wrote: hello everyone when i try to install android sdk tools it says java se devolopment kit(JDK) not found  so i insall jdk-6u25-windows-i586.exe(I have 32 bit windows) from

[android-developers] Re: install android sdk tools on windows 7

2011-04-28 Thread Steve Graham
I had the same problem and in the archives I found a fellow saying to hit the back key and then the next key (or something like that) and then it would find it. Worked for me. Steve --- On Apr 27, 12:21 pm, freecoder rajuljain...@gmail.com wrote: hello everyone when i try to install android

Re: [android-developers] Re: Setting Widget Background via RemoteView

2011-04-28 Thread Kostya Vasilyev
Jake, I haven't done a blog post about widget transparency, because my code uses an internal API. Nonetheless, my implementation is basically like this: 1 - I have a view group with a background image, which is the main widget (sans the Launcher-style text label below). 2 - In widget

[android-developers] Re: NDK CRC errors

2011-04-28 Thread Steve Graham
Tried a different decompression utility and had no problems. On Apr 28, 2:54 am, Steve Graham solitary.wandere...@gmail.com wrote: I just downloaded the latest NDK and got multiple CRC errors when extracting it using Power Archiver 2011.  Has anyone else has this experience?  Is it safe to

Re: [android-developers] Issues on Samsung Galaxy S - Android app crashes

2011-04-28 Thread TreKing
On Wed, Apr 27, 2011 at 11:00 AM, shiva prakash...@gmail.com wrote: Whereas the same app crashes and some times facing trouble in receiving data If tested on Samsung Galaxy S phone under the same test conditions. I went through the logs and No clue what's happening. Try debugging the app

Re: [android-developers] Hi all

2011-04-28 Thread TreKing
On Wed, Apr 27, 2011 at 12:59 AM, Muhammad Nabeel Arif nabeel.arif...@gmail.com wrote: That is, I want to create a hidden folder on sdcard. This has nothing to do with Android, beyond getting the path to the SD card. Can anybody please share a piece of code to do that. There is plenty of

Re: [android-developers] Fix calender

2011-04-28 Thread TreKing
On Wed, Apr 27, 2011 at 3:39 PM, Shushu sdorlea...@gmail.com wrote: My calender is not working! I have deadlines to meet This is not a tech support group but try turning your calendar off then back on. If not, turn it sideways and blow into it really hard then try again.

[android-developers] Re: JSon parsing has been taking more time on Android

2011-04-28 Thread Indicator Veritatis
The Jackson JSON parser is reputed to be quite fast. I believe it is faster than the one built into Android. Download the JAR from http://jackson.codehaus.org/, include it in Eclipse ADT under the project's properties, i.e. ProptertiesJava Build PathLibrariesAdd External JARs. On Apr 27, 10:28 

Re: [android-developers] Set 2 EmptyView in ListView

2011-04-28 Thread TreKing
On Thu, Apr 28, 2011 at 12:22 AM, smokerpg smokerpg...@gmail.com wrote: at first, i try to set LinearLayout to EmptyView. but it doesn't work. Define doesn't work. so, i try this code. listView.setEmptyView(findViewById(R.id.emptyImage));

Re: [android-developers] Calling menu from an item in a ListView

2011-04-28 Thread TreKing
On Wed, Apr 27, 2011 at 5:59 PM, Rpuccini renatoppucc...@gmail.com wrote: But I couldnt find a way to call the menu since I click on one item from the ListView. Try reading the documentation for Activity ...

Re: [android-developers] code on how to detect where a person is using android

2011-04-28 Thread TreKing
On Wed, Apr 27, 2011 at 2:26 AM, wami321 wamirw...@gmail.com wrote: am trying to come up with a code that can detect wher a person is and show the location on google maps please help http://www.catb.org/~esr/faqs/smart-questions.html

Re: [android-developers] Why did you chose this OS platform over other ones?

2011-04-28 Thread TreKing
On Thu, Apr 28, 2011 at 4:21 AM, Theo Sam soccerw...@gmail.com wrote: I was wondering if you could tell me why you guys have chosen Android over the other OSs. G1 was the first smartphone I got. I have no experience in writing code and maybe you could also help me to find some courses

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-28 Thread Indicator Veritatis
Eric is not the first to observe that the documentation on these topics is too confusing. But where should he make this 'contribution' you suggest? Is the documentation somewhere under the Android Open Source project at http://source.android.com/? On Apr 27, 10:23 pm, Dianne Hackborn

[android-developers] Re: Help for installig android sdk tool

2011-04-28 Thread Steve Graham
Try hitting the back button and then the next button. Worked for me. On Apr 27, 1:25 pm, freecoder rajuljain...@gmail.com wrote: hello everyone when i try to install android sdk tools it says java se devolopment kit(JDK) not found  so i insall jdk-6u25-windows-i586.exe(I have 32 bit windows)

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-28 Thread Indicator Veritatis
Eric is not over-thinking. Rather, he is showing a mindset towards software quality that has become all too rare these days. That mindset is: if the documentation says one thing, but the software does another, then it is a bug. Now I know that in today's FOSS atmosphere, that sounds quaint, even

[android-developers] Re: DalvikVm issue

2011-04-28 Thread himanshu jain
@Indicator There is not any support for doing certificate creation directly in the JCA? How can i create my own certificate and signed it? thanks On Apr 26, 3:32 pm, Indicator Veritatis mej1...@yahoo.com wrote: javax.crypto alone is not enough, unless he wants to do a lot of extra work

Re: [android-developers] monkeyrunner with different android versions

2011-04-28 Thread Tiago Maluta
Apparently the problem was in frameworks/base/core/java/android/view/KeyEvent.java where LAST_KEYCODE weren't pointing to latest item in KEY_NAMES [1]. [1] development/cmds/monkey/src/com/android/commands/monkey/MonkeySourceRandom.java thanks. --tm On Wed, Apr 27, 2011 at 3:07 PM, Tiago

[android-developers] Syntax to reference a drawable from a library project

2011-04-28 Thread Joan Pujol
Hi, What's the syntax to reference a drawable from a library project? My library project package name is: cat.joanpujol.eltemps.android.base And I tried to reference that way: ImageButton android:src=@cat.joanpujol.eltemps.android.base:drawable/minus But it doesn't works. Is t'hat the way? A

Re: [android-developers] Syntax to reference a drawable from a library project

2011-04-28 Thread Mark Murphy
Reference it as you would normally: @drawable/minus On Thu, Apr 28, 2011 at 3:00 PM, Joan Pujol joanpu...@gmail.com wrote: Hi, What's the syntax to reference a drawable from a library project? My library project package name is: cat.joanpujol.eltemps.android.base And I tried to reference that

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-28 Thread Dianne Hackborn
All of the documentation comes from the source code. The documentation in the Activity class comes from Activity.java in the source code. I don't need a lecture about the importance of documentation and the history of Java fragmentation. I am well aware of these things. You are also

[android-developers] Re: Why did you chose this OS platform over other ones?

2011-04-28 Thread Pent
Google had a developer competition and I didn't have an Apple computer :-) If I was picking these days, I'd also pick Android because I believe it has the brightest future. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Layout related

2011-04-28 Thread Brad Stintson
How to add buttons that sticks to the bottom of layout and rest part of layout is scrollable (Same as add event of calendar)? -- 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] Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Eric
My application is full of Activities that are absolutely dependent on a connection to a financial data server (trading system). The Activity has the following requirements: - a user needs to be logged into the server in order to have permission to view data - the Activity has to query methods on

Re: [android-developers] Layout related

2011-04-28 Thread Kumar Bibek
LinearLayout android:layout_height=fill_parent android:id=@+id/baselayout android:layout_width=fill_parent android:orientation=vertical ListView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Hhhmmm, I'm not exactly sure what is wrong with your syntax. I have another blog which gives a full fledged example, in which newUpdate is used. I'm sure that, the example with newUpdate in that blog works. Maybe you may try to follow the syntax there. The address is:

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Thank you Phuong, sharing information is what we do. -- 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] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Streets Of Boston
It really depends on what you want. In my app, the request to the server is made first. If this is successful (connection is OK, login is OK), then the data from the server is assigned to an Intent and this Intent is used to start an Activity to show that data. If the connection is wrong, a

[android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Eric
On Apr 28, 3:28 pm, Streets Of Boston flyingdutc...@gmail.com wrote: It really depends on what you want. In my app, the request to the server is made first. If this is successful (connection is OK, login is OK), then the data from the server is assigned to an Intent and this Intent is used

Re: [android-developers] Re: Click event on Edit-Text's Right Drawable.

2011-04-28 Thread Sunil Lakhiyani
Thank you Zsolt, Finally I have made it. On Sun, Apr 24, 2011 at 5:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Have 2 Views in your layout next to each other and set their backgrounds so it looks like you have a single control. On Apr 24, 7:07 am, Sunil Lakhiyani

Re: [android-developers] Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Dianne Hackborn
For a first cut I would assume writing your activity to deal correctly with asynchronously binding to the service and filling in its UI once it has a connection. This is basically the same as any other situation where you need to populate your UI from some data source -- from a content provider,

Re: [android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Dianne Hackborn
On Thu, Apr 28, 2011 at 3:31 PM, Eric e...@alum.mit.edu wrote: How do you handle when user hits the HOME button, user leaves the app, Android kills the process, and they return back into that Activity? That is why all activities that are using the service must at the least support the case

Re: [android-developers] Re: Debugging a separate thread.

2011-04-28 Thread Tobiah
On 04/27/2011 05:11 PM, Indicator Veritatis wrote: The Eclipse debugger does support multi-thread debugging, but I can't say I am all that impressed with the support for it. When, for example, you set a breakpoint, you have no control over which thread is running when it hits it. Whatever thread

[android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Streets Of Boston
I parse the data from the service into data that can be persisted. If the data is small enough, the data is translated into a class that implements Parcelable. This parcelable is then assigned to the Intent that starts the Activity (using 'Extras'). When the process is killed and the user

[android-developers] Build 2 apk same time?

2011-04-28 Thread Sunil Lakhiyani
Hello Developers, I am building an app using jenkins/ hudson. My application is using 2 URLs, first for lab testing and another one is for production. We have 2 teams one is in US and another one is in JAPAN for testing. So I need to create 2 apks same time. Right now what I am doing is I

Re: [android-developers] Re: Debugging a separate thread.

2011-04-28 Thread Kumar Bibek
During Run, it should not halt. Perhaps you are having multiple instances, one of them is still in debug mode Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Apr 29, 2011 at 1:13 AM, Tobiah t...@tobiah.org wrote: On 04/27/2011 05:11 PM, Indicator Veritatis wrote:

[android-developers] Hybrid Eclipse/Command line environment now stuck wanting debugger

2011-04-28 Thread Tobiah
I developed my app using only command line tools. Now, to check out debugging, I tried to get my scripts and eclipse to coexist. I got debugging through eclipse working ok, but now, whether eclipse is running or not, when I try to compile, install and launch my app from the command line, it

Re: [android-developers] Build 2 apk same time?

2011-04-28 Thread Kumar Bibek
Do you know ant scripts? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Apr 29, 2011 at 1:16 AM, Sunil Lakhiyani slakhiyaniandr...@gmail.com wrote: Hello Developers, I am building an app using jenkins/ hudson. My application is using 2 URLs, first for lab testing

Re: [android-developers] Hybrid Eclipse/Command line environment now stuck wanting debugger

2011-04-28 Thread Kumar Bibek
Its an intermittent problem. Shutdown eclipse, kill emulator/disconnect device, try again. It should be fine. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Apr 29, 2011 at 1:17 AM, Tobiah t...@tobiah.org wrote: I developed my app using only command line tools. Now,

[android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Eric
On Apr 28, 3:43 pm, Dianne Hackborn hack...@android.com wrote: Another way you can approach this is to have a singleton that arbitrates access to the service -- it binds through the application context, and has a reference count of the current activities using it, to know when to unbind.  

[android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Eric
On Apr 28, 3:46 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I parse the data from the service into data that can be persisted. If the data is small enough, the data is translated into a class that implements Parcelable. This parcelable is then assigned to the Intent that starts the

[android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Streets Of Boston
Yes and no. As long as your Extra in the Intent implements Parcelable properly, it works. Calling getIntent() in onCreate or in onNewIntent gets you the data that was used in the Intent that (originally) started the Activity. If the user interacts with the Activity and thus *changes *the

<    1   2   3   >