Re: [android-developers] Re: Android:: Service::OnDestroy being called late..

2010-12-22 Thread Mark Murphy
On Wed, Dec 22, 2010 at 2:13 AM, JC j...@oriolesoftware.com wrote: thanks mark, I am starting service in myactivity::OnDestroy. That is a bad idea, since onDestroy() is not guaranteed to be called. When i am stopping service(2nd time activity get started and service running) I require

[android-developers] Re: Android:: Service::OnDestroy being called late..

2010-12-22 Thread JC
Thanks again Mark. I am exploring all 3 option one by one by searching examples on google. I will update here on status. Thanks JC On Dec 22, 1:00 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Dec 22, 2010 at 2:13 AM, JC j...@oriolesoftware.com wrote: thanks mark, I am starting

[android-developers] TextSwitcher and/or TranslateAnimation changed in API level 8 and upwards?

2010-12-22 Thread Leif
I am using a TextSwitcher and a TranslateAnimation to create a slotmachine reel effect. It works fine on API levels 4 through 7, but on API levels 8 and 9 it breaks down for some reason. Any clues as to why this is happening? The UI structure is like this: FrameLayout-TextSwitcher-TextViews

[android-developers] TabHost not working in Froyo

2010-12-22 Thread KG
Hi Everyone, I have a TabHost in my app that works on my test device running Android 2.1 (and all previous versions via the emulator). However, the tabs do not display when Running on Android 2.2 (Froyo) or later. All there is is the content of the first tab and a blank spot where the tabs

BLS: [android-developers] TabHost not working in Froyo

2010-12-22 Thread asns.dr...@gmail.com
I have busy with sme problems like your.. Maybe you can edit the xml and also working path Terkirim dari telepon Nokia saya -Pesan Asli- Dari: KG Terkirim: 22-12-2010 15.44.15 Subjek: [android-developers] TabHost not working in Froyo Hi Everyone, I have a TabHost in my app that works

Re: [android-developers] determine dimensiona of the screen in View's constructor?

2010-12-22 Thread Dianne Hackborn
You mean onSizeChanged()? Sorry, there is nothing earlier, that is the point where this has been figured out. On Tue, Dec 21, 2010 at 11:59 PM, Utumno lkoltun...@gmail.com wrote: Hello Android gurus, I am aware that when screen dimensions change, I get a call to onScreenChanged() and there

[android-developers] Scaling Down

2010-12-22 Thread cuil yahoo
Hello, I have an offline HTML content, with complete javascript and css embedded in it. I would like to put that up in android mobile browser, could anyone please help me with the scaling down ? Thanks. Cuil -- You received this message because you are subscribed to the Google Groups Android

[android-developers] How to add button to a listview

2010-12-22 Thread pramod.deore
I have one activity which is extends from ListActivity. Here I am displaying list of strings . I don't have .xml file I am showing list using ArrayAdapter. Now what I want is to add 2 buttons to this list. because I don't have xml file I am confused how to add buttons. Please help me. Thanks in

[android-developers] Re: Ant not building app properly

2010-12-22 Thread Bob Kerns
I would make sure you're running aapt as part of each and every build. And also aidl, if you use aidl files. These both need to run *before* you run javac, because they produce java files that need to be compiled. If you run them after, you'll always be picking up the version from your previous

[android-developers] Re: ADB USB Driver for MyTouch 4g

2010-12-22 Thread FrankG
Hello Sarwar, as this phone supports usb tethering I assume it supports a composite usb mode or different ones and it will require a spezialized driver for this. BTW .. another way to install an app is to download them via the browser from a provate webseite. Good luck ! Frank On 22 Dez.,

[android-developers] Re: determine dimensiona of the screen in View's constructor?

2010-12-22 Thread Utumno
Yes, I mean onSizeChanged(). Hmm, no way? Even if I have android:screenOrientation=landscape in my manifest ? This way screen dimensions will ( am I right? ) never change, and should be accessible anytime... Currently I initialize part of my View in its constructor, than I have to do all kinds

Re: [android-developers] Re: determine dimensiona of the screen in View's constructor?

2010-12-22 Thread Kostya Vasilyev
onSizeChanged, which gives the size of the view, is one thing. But you keep saying *screen* dimensions, which is quite another. If that's what you need, you can use DisplayMetrics: http://developer.android.com/reference/android/util/DisplayMetrics.html Check out widthPixels and heightPixels,

[android-developers] Re: Ant not building app properly

2010-12-22 Thread Bob Kerns
I should also point out that you can get the 'android' command to set up ant build files for you, and this is probably a better idea than doing it yourself. I have been doing it myself, based on what the android command did, because when I first did it, there were various serious flaws in how it

Re: [android-developers] How to add button to a listview

2010-12-22 Thread sujit panda
Hi, you have to create a custom ArrayAdapter class which will override the getView() method and using this you can pass a XML file to the list and you can put whatever you want in side list. follow this blog by me

Re: [android-developers] ADB USB Driver for MyTouch 4g

2010-12-22 Thread shareem sharif
useing that will not be usefull cause it can cause your phone to crash please respond if you want to know more On Sun, Dec 19, 2010 at 8:32 AM, djb dougbri...@gmail.com wrote: All I want to do is install a home grown app to my device, if I can do this without ADB google USB then that would

[android-developers] Re: determine dimensiona of the screen in View's constructor?

2010-12-22 Thread Utumno
Yes, I actually mean Screen dimensions - the view is fullscreen and will always be. Will check out, thanks. On Dec 22, 5:23 pm, Kostya Vasilyev kmans...@gmail.com wrote: onSizeChanged, which gives the size of the view, is one thing. But you keep saying *screen* dimensions, which is quite

[android-developers] How to get new input language in to the android? Who decides which new input languages for an IME should be added?

2010-12-22 Thread Lado Kumsiashvili
Hi. There are a lot of languages but not georgian in android. But I've implemented also this layout for other IME Projects. So who decied which new languages could be adopted to the IME of android? Do someone has an idea? With Regards, Lado Kumsiashvili -- You received this message because you

[android-developers] resultCode in onActivityResult returns 0

2010-12-22 Thread pramod.deore
Hi I have one activity which invoked another activity roomIntent.putExtra(roomName,roomNM ); roomIntent.setClass(AddScheduler.this,RoomList.class); startActivityForResult(roomIntent,Room_SELECT); protected void start(Intent intent) {

Re: [android-developers] resultCode in onActivityResult returns 0

2010-12-22 Thread Kumar Bibek
YEah, Why are you calling finish from onPause method? It will finish you application, even when you would not want it to. Try this. On a specific event, set the result and just call finish. That should do. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Dec 22, 2010

[android-developers] Show Application Version Number with .apk file

2010-12-22 Thread subrat kumar panda
Hello all, i would like to inform you all that i have been facing problem , that's : after run the android app, it gives us the ProjectName.apk. so, the problem is how could i get ProjectName-1.0/anything else depends upon your Project's version. if anybody have knowledge about the mentioned

[android-developers] Re: resultCode in onActivityResult returns 0

2010-12-22 Thread pramod.deore
Hey Bibek Thanks. Try this. On a specific event, set the result and just call finish. That should do. But on what event I call finish? Because here I am just selecting items from list. And how should I know that user had finished there selection? On Dec 22, 3:47 pm, Kumar Bibek

Re: [android-developers] Re: resultCode in onActivityResult returns 0

2010-12-22 Thread Kumar Bibek
If you are using a list view, then try onItemClickListener. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Dec 22, 2010 at 4:23 PM, pramod.deore deore.pramo...@gmail.comwrote: Hey Bibek Thanks. Try this. On a specific event, set the result and just call finish.

[android-developers] Re: resultCode in onActivityResult returns 0

2010-12-22 Thread pramod.deore
In my list view there are checkboxes and suppose user want to select multiple items if suppose he select 3 items then? Is that mean code execute between activities 3 times? On Dec 22, 3:54 pm, Kumar Bibek coomar@gmail.com wrote: If you are using a list view, then try onItemClickListener.

[android-developers] Re: Hudson and application signing

2010-12-22 Thread ezamur
Ok, I solved this one. It was some stupid typo in the pom.xml. On Dec 22, 8:21 am, ezamur eza...@gmail.com wrote: On Dec 22, 8:15 am, ezamur eza...@gmail.com wrote: I am aware the debug store is created automatically, but what is strange to me is that Hudson is installed on my local

[android-developers] How to disable back button..?

2010-12-22 Thread Abhilash baddam
Hi friends, Suppose i have an activity which displays a text like hello..when the user click on back button i don't want to work that key instead i want to display a toast which shows back button not works here . How can we disable that key programmatically. Any

Re: [android-developers] How to disable back button..?

2010-12-22 Thread vikram jain
use back.setVisible(false) On Wed, Dec 22, 2010 at 5:18 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi friends, Suppose i have an activity which displays a text like hello..when the user click on back button i don't want to work that key instead i

Re: [android-developers] How to disable back button..?

2010-12-22 Thread Kostya Vasilyev
Starting with API level 5, you can override onBackPressed(). For previous API levels, use something like: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { // your code here return true;

Re: [android-developers] How to disable back button..?

2010-12-22 Thread Abhilash baddam
Hi vikram, Thanks for the reply...what is the variable back there? On Wed, Dec 22, 2010 at 5:19 PM, vikram jain vikram.jain.ii...@gmail.comwrote: use back.setVisible(false) On Wed, Dec 22, 2010 at 5:18 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi

[android-developers] Online Training Sap,Data Warehousing,Testing,Oracle,Microsoft Technologies,SAS @BigClasses

2010-12-22 Thread big class
Knowledge doesn’t comes easily. It comes through cost, efforts and last of all but not least through a skilled craftsman. I represent Bigclasses. Bigclasses.com is a global online IT training company. We offer virtual online training on all major IT Technologies Like SAP/ Oracle/Data WH/Testing

[android-developers] Cognos Interactive Online Training at BigClasses.com

2010-12-22 Thread big class
* 100% JOB Oriented Training * Attend Two FREE Trail Classes * Affordable FEE with REAL TIME Trainers Cognos course content: http://bigclasses.com/cms/data-warehousing/cognos.html BigClasses.com is a Global Interactive Online Learning Portal started by Data Warehousing

[android-developers] DataStage Interactive Online Training at BigClasses.com

2010-12-22 Thread big class
* 100% JOB Oriented Training * Attend Two FREE Trail Classes * Affordable FEE with REAL TIME Trainers DataStage course content: http://bigclasses.com/cms/data-warehousing/data-stage.html BigClasses.com is a Global Interactive Online Learning Portal started by Data

[android-developers] Re: What is the structure of the Android PackageManagerService?

2010-12-22 Thread FrankG
But for that I need to understand how the installation happens, the sequence of steps being called. What Mark and Dianne wanted to point out is that all questions related to your solution are out of scope of this group. And that If you are not able to change the firmware for you devise, you

Re: [android-developers] How to disable back button..?

2010-12-22 Thread Abhilash baddam
Thanks kostya it's working fine... On Wed, Dec 22, 2010 at 5:27 PM, Kostya Vasilyev kmans...@gmail.com wrote: Starting with API level 5, you can override onBackPressed(). For previous API levels, use something like: @Override public boolean onKeyDown(int keyCode, KeyEvent event) {

[android-developers] SAX parsing problem..

2010-12-22 Thread Abhilash baddam
Hi friends, I am new to android. Can any one send me the example on sax parsing. I got the code but it's clumsy. So please send me the sample on Sax parsing Regards, Abhilash -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: Prevent an Android Service from getting destroyed after an unbind

2010-12-22 Thread Kalyan Akella
Thank you jotobjects, Kostya Streets of Boston for your replies. They were very helpful while fixing this problem. Here are the 2 important changes I made to get it working exactly the way I wanted: 1. Removed the SharedPreferences checks while calling startService() inside the activity A. It

[android-developers] UnsupportedOperationException: glGenFramebuffersOES

2010-12-22 Thread pedr0
Hi at all, when I try to use the function glGenFramebuffersOES I meet an UnsupportedOperationException, I am working with android 2.1 update 1 under a Samsung galaxy S. These function aren't supported on these platform or I am wrong somethings? This is my code (very simple): public void

[android-developers] Re: Encoding/decoding problem

2010-12-22 Thread ZeeZo
I am done with that part Sarwar before my last post.I can successfully write the JPG image on my sd card.But now problem is that when i transfer my processed byte[] to my PC through TCP,it writes a whole black image.I don't know if its some kind of compression issue or what. On Dec 22, 5:46 am,

Re: [android-developers] Inputs from the Android Camera

2010-12-22 Thread Marcin Orlowski
On 22 December 2010 04:02, Vikram vikram.bodiche...@gmail.com wrote: We want to get some simple information from the user (in the form of checkboxes) for a few seconds before he starts using his camera. Can we somehow present our checkbox list over his camera app? I understand that the Camera

Re: [android-developers] How to get new input language in to the android? Who decides which new input languages for an IME should be added?

2010-12-22 Thread Marcin Orlowski
On 22 December 2010 11:29, Lado Kumsiashvili herrl...@gmail.com wrote: Hi. There are a lot of languages but not georgian in android. But I've implemented also this layout for other IME Projects. So who decied which new languages could be adopted to the IME of android? Do someone has an idea?

Re: [android-developers] Game pretty much like mine

2010-12-22 Thread Marcin Orlowski
On 20 December 2010 08:22, brian purgert brianpurge...@gmail.com wrote: So yesterday I,m looking around on the app market and I noticed that there is a game very similer to the game I've been working on for months now, so now im pretty bummed out I thought I would be the first to bring this

Re: [android-developers] Re: Encoding/decoding problem

2010-12-22 Thread Kostya Vasilyev
Sounds like you have your own server, and seems like bug is possibly there. Modify your Android code to do both: write to the memory card *and* send to the server. Then compare the files you get on the phone and on the server. -- Kostya 22.12.2010 16:03, ZeeZo пишет: I am done with that

[android-developers] Re: Inputs from the Android Camera

2010-12-22 Thread Atik
hi, so i have downloaded the source of camera app of android. and finally i need app only it should perform the zoom in out and brightness bar as implemented in the camera.it should not capture the image.. can i do the same.. i have done lot of changes in the code and i m able to do it ..but

[android-developers] Offline maps

2010-12-22 Thread Nikola
Hi, I need a map for my application, so I have few questions (any additional info is welcome): 1) I saw applications like mTrip for Iphone that are having google maps but offline, how is it possible? 2) Is there anything good enough like alternative for google maps? Thanks. -- God is Real,

Re: [android-developers] Offline maps

2010-12-22 Thread Mark Murphy
On Wed, Dec 22, 2010 at 8:25 AM, Nikola nikola1...@gmail.com wrote: 1) I saw applications like mTrip for Iphone that are having google maps but offline, how is it possible? AFAIK, it's not possible. 2) Is there anything good enough like alternative for google maps? Check out OpenStreetMap.

Re: [android-developers] Show Application Version Number with .apk file

2010-12-22 Thread Mark Murphy
That information is available via PackageManager. On Wed, Dec 22, 2010 at 5:52 AM, subrat kumar panda evergreen.sub...@gmail.com wrote: Hello all, i would like to inform you all that i have been facing problem , that's : after run the android app, it gives us the ProjectName.apk. so, the

Re: [android-developers] How to Build Modofied launcher source code

2010-12-22 Thread Mark Murphy
If you are referring to the Launcher application from source.android.com, that can only be built as part of an entire firmware build. It is not designed to be built as an SDK application. On Mon, Dec 20, 2010 at 8:21 PM, sri dsriva...@gmail.com wrote: Hi, As per my requirement i have to modify

[android-developers] Web Server

2010-12-22 Thread perumal316
Hi All, Is it possible to host a web server within an Android phone itself? Similar to Apache. I want to access the web server from the mobile browser itself. Couldn't find any reference online. Is this possible? Thanks In Advance, Perumal -- You received this message because you are

Re: [android-developers] how to include resource files in a static java library?

2010-12-22 Thread Mark Murphy
You cannot have Android resources in a JAR. Use Android library projects for this: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject On Mon, Dec 20, 2010 at 9:18 PM, Feng Qian feng.qian.web...@gmail.com wrote: Hi, I am using a third-party jar as a prebuilt static

Re: [android-developers] No Activity found to handle Intent for ACTION_DATA_ROAMING_SETTINGS

2010-12-22 Thread Mark Murphy
http://stackoverflow.com/questions/4407818/error-opening-mobile-network-settings-menu On Tue, Dec 21, 2010 at 3:42 AM, dacky harvey.dac...@gmail.com wrote: Hi everyone, Can anyone verify if this is some kind of a documentation error? ACTION_DATA_ROAMING_SETTINGS seems to appear on the

Re: [android-developers] Web Server

2010-12-22 Thread Mark Murphy
Sure. You need a Java-based Web server (iJetty, NanoHTTPD, etc.), or possibly a C-based one you can attach to your app via the NDK. Bear in mind that this will really only be useful on a WiFi LAN, since the phone will not have a publicly routable Internet address in most (if not all) cases. On

[android-developers] Re: TextSwitcher and/or TranslateAnimation changed in API level 8 and upwards?

2010-12-22 Thread Leif
Digging a little deeper reveals that there seems to be a difference in how the textviews are sized (i.e. the children of the TextSwitcher). On API levels 4-7 the height is 2904 pixels, while on API levels 8 and 9 the height is only 58 pixels. So, something seems to have happened in terms of how

Re: [android-developers] Re: Does someone have a galaxy tab to test my game?

2010-12-22 Thread Damien Cooke
It worked a treat on mine. Nice game very smooth On 22/12/2010 4:50 PM, Brill Pappin br...@pappin.ca wrote: Just tried it on my gt, no problems at all. Its a Rogers GT (Canada). - Brill On Dec 21, 8:18 pm, ACR acr...@gmail.com wrote: Hey Damien, Thanks for the quick reply. The game is

[android-developers] Re: Proguard problem after 2.3 update

2010-12-22 Thread licorna
I've tried different setting with no success: - I've set PROGUARD_HOME AND proguard.dir (in local.properties) to: a) proguard included with SDK, b) proguard 4.5 --stable-- c) proguard 4.6 --beta-- both HOME and /lib directories - I'm using ant 1.8.1 (ant -version) After changing proguard.dir

Re: [android-developers] Offline maps

2010-12-22 Thread Nikola
On Wed, Dec 22, 2010 at 2:41 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Dec 22, 2010 at 8:25 AM, Nikola nikola1...@gmail.com wrote: 1) I saw applications like mTrip for Iphone that are having google maps but offline, how is it possible? AFAIK, it's not possible. 2) Is

[android-developers] Re: Setting up development environment on windows 7

2010-12-22 Thread gcstang
Is your Windows 7 32 or 64bit? Ensure you're using the Oracle JDK should be 1.6.0_23 32bit Not sure installing 64bit will help much either way unless you have a pretty beefy machine, so I would uninstall the 64bit JDK. What path did you install the AndroidSDK to? Did you setup your JAVA_HOME,

Re: [android-developers] Re: Setting up development environment on windows 7

2010-12-22 Thread Kostya Vasilyev
Developing on Win7 64-bit here without any issues. Using 32-bit Java Dev Kit update 23, with Eclipse Galileo SR2, also 32-bit. Eclipse Helios 3.6.1 32-bit also worked fine (but had issues with code completion freezing, so I went back to 3.5.2). -- Kostya 22.12.2010 17:37, gcstang пишет: Is

[android-developers] Re: Anybody seen a slowdown in sales?

2010-12-22 Thread Sam
Hi everyone The slow down is not related to the market ranking, my app has not moved market ranking. I have seen sales drop from 15-20 per day to 3-4 per day. The app actually had more publicity in december than any month previously. The obvious changes are the market app changes - has something

[android-developers] Re: Setting up development environment on windows 7

2010-12-22 Thread bagelboy
I'm using windows 7 64 bit and although it wasn't 100% straighforward there are no dealbreakers. I'm using 64 bit java and it works fine although my java_home is c:\glassfishv3\jdk. Eclipse doesn't install anywhere, you simply run the executable from wherever it's unzipped, so put it in program

[android-developers] Thread problems

2010-12-22 Thread Schoel
I have a function call from a large engine (which I can not change) which asks the user whether to save or not. Before this function call returns, I need an answer from the user whether to save. There is, as far as I know, no way to start an activity (or show a dialog) that synchronously returns

[android-developers] Internal refresh of app

2010-12-22 Thread Leon Moreyn-Android Development
So I am working on an app that is memory intensive. Currently I can only go back and forth 18 times before my cause a critical memory crash. I have tried putting in onStop and onPause and releases onBack. Instead of releasing Process and threads, is there a way to quietly reset the app in memory

[android-developers] Re: Proguard problem after 2.3 update

2010-12-22 Thread licorna
Is there any way to disable this functionality. I just want to keep working so I think I will disable proguard for now. -- 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

[android-developers] Re: Encoding/decoding problem

2010-12-22 Thread ZeeZo
Hi Kostya, To be honest,i was waiting for your reply.I have seen a lot of your replies here related to data sending on network.Actually,my scenario is that i am making my HTC desire as server and my PC as client.I start my camera on HTC desire and then gets frames in the form of byte[] from on

[android-developers] Re: rawQuery selection args?

2010-12-22 Thread Bob Kerns
go through this?. You mean, you'd rather go through the process of constructing SQL by hand, including handing all the quoting rules? How about It makes your code smaller, easier to read, and more easily inspected for correctness? This is a bit of basic SQL usage best practice that

[android-developers] Re: rawQuery selection args?

2010-12-22 Thread Bob Kerns
It should defend against Bobby's mom just fine. If not, it's broken. On Dec 21, 11:50 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Dec 21, 2010 at 2:46 PM, Tobiah t...@tobiah.org wrote: Oh I see, so that would eliminate any worries of say, sql injection attack right off? I doubt

[android-developers] Providing EXTRA_AUTHORITIES when showing the ACTION_ADD_ACCOUNTS in order to show restricted account types to the user.

2010-12-22 Thread Tejas
The description for EXTRA_AUTHORITIES in android.provider.Settings says : This can be passed as an extra field in an Activity Intent with one or more syncable content provider's authorities as a String[]. This field is used by some intents to alter the behavior of the called activity. Example:

[android-developers] icons graphics in android app

2010-12-22 Thread crem
Hi, I have a question: What is the common approach when using icons in an android app (buttons, etc...) ? Android offers these hdpi, ldpi and mdpi folders for images in different resolutions. How good does this work for all different displays? Or is it more common to create the icons

Re: [android-developers] icons graphics in android app

2010-12-22 Thread Kostya Vasilyev
It works very well. Image resources are packaged as PNG files, lossless compression. Some useful links: http://developer.android.com/guide/practices/ui_guidelines/icon_design.html http://developer.android.com/guide/practices/screens_support.html

[android-developers] Custom View with Children Implemented onGestureListener

2010-12-22 Thread argon gold
Hi, I have a custom View with Children and it has also implemented OnGestureListener. In custom view class I have also overridden onSingleTapUp() function as below. @Override public boolean onSingleTapUp(MotionEvent e) { // TODO Auto-generated method stub return false; }

[android-developers] InetAddress and the isReachable method

2010-12-22 Thread clarkbriancarl
Hello, A few years ago, I developed a free server monitor (bMonitor) that has ping, port, and http(s) monitor capabilities. It has required very little maintenance to keep up with the rapidly evolving Android OS. However, in the last several months I have noticed more and more users are

[android-developers] OOP objects + complex view

2010-12-22 Thread sisko
Hi guys, I am developing an app that need to display information on the stock of a store. Each activity will have upto 100 items. My plan is to layout this information in a 10 * 10 grid. Each box in the grid represents an item of stock. Each of these items will be represented by an icon and a

[android-developers] OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread pedr0
Please see the link and reply inside this post if you have not an account on OpenGL forum, the question is over there. http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflatNumber=288188#Post288188 Thanks a lot. -- You received this message because you are subscribed to the

Re: [android-developers] OOP objects + complex view

2010-12-22 Thread Kostya Vasilyev
Sure, that's possible: http://developer.android.com/reference/android/view/LayoutInflater.html#inflate(int, android.view.ViewGroup) You'd also need a way to position these views. You could use a TableLayout, instantiating TableRows from code as needed, and adding inflated (as per the above

Re: [android-developers] Internal refresh of app

2010-12-22 Thread Dianne Hackborn
You are almost certainly leaking memory. You need to fix the leaks. There are some blog posts and discussions on this list about fixing leaks. On Wed, Dec 22, 2010 at 7:16 AM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: So I am working on an app that is memory intensive.

[android-developers] How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Hans-Erik
hi In the gallery I have added my Item to the share menu. But i can only get one image and making my Activity start. This code give me the URL for one image. Is it possible to set up the Gallery or the share menu so that user can select one or many pictures? if (Intent.ACTION_SEND.equals(action))

Re: [android-developers] Thread problems

2010-12-22 Thread Dianne Hackborn
startActivity() always runs the activity on the main thread. How about just looking at your app in the debugging to see where the threads are stuck? On Wed, Dec 22, 2010 at 7:11 AM, Schoel samuelsson.j...@gmail.com wrote: I have a function call from a large engine (which I can not change)

[android-developers] How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Hans-Erik
hi In the gallery I have added my Item to the share menu. But i can only get one image and making my Activity start. This code give me the URL for one image. Is it possible to set up the Gallery or the share menu so that user can select one or many pictures? if (Intent.ACTION_SEND.equals(action))

[android-developers] Re: uninstall command is undocumented for ADB

2010-12-22 Thread andrew_esh
adb help gives: adb uninstall [-k] package - remove this app package from the device ('-k' means keep the data and cache directories) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Thread problems

2010-12-22 Thread Kostya Vasilyev
Just to add my two cents: You didn't include information on what s_Semaphore is, but I'm guessing it's from java.concurrent. Although I'm not too familiar with this package, the docs say this: http://download.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/Semaphore.html Conceptually,

[android-developers] Bitmap Matrix Rotate

2010-12-22 Thread nirm
Hello, I have a bitmap that i want it to rotate all the time. This bitmap is placed in a SurfaceView. My question is: Do i have to create the bitmap every time i want it to rotate? here is my code it is placed is the on draw method: leftMatrix.setRotate(degrees++,

Re: [android-developers] Thread problems

2010-12-22 Thread Kostya Vasilyev
Oh, and one more thing: the activity not getting displayed likely has something to do with the thread going into a wait state right after you call startActivity. Since the call to queryUserSave comes from background thread (as I understand from your email), you could use runOnUIThread() with

[android-developers] Re: Internal refresh of app

2010-12-22 Thread Leon Moreyn-Android Development
ok. Would there be a way to track memory to determine where the leak is coming from? On Dec 22, 12:34 pm, Dianne Hackborn hack...@android.com wrote: You are almost certainly leaking memory.  You need to fix the leaks.  There are some blog posts and discussions on this list about fixing leaks.

[android-developers] Re: Bitmap Matrix Rotate

2010-12-22 Thread Robert Green
No. Load it once and reuse it, otherwise you will suffer some nasty performance. On Dec 22, 10:35 am, nirm nirmi...@gmail.com wrote: Hello, I have a bitmap that i want it to rotate all the time. This bitmap is placed in a SurfaceView. My question is: Do i have to create the bitmap every

Re: [android-developers] Re: Internal refresh of app

2010-12-22 Thread Mark Murphy
On Wed, Dec 22, 2010 at 1:44 PM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: ok. Would there be a way to track memory to determine where the leak is coming from? Use DDMS's track-allocations feature, or use DDMS to dump the heap to an HPROF file for analysis with Eclipse MAT.

Re: [android-developers] Thread problems

2010-12-22 Thread Mark Murphy
On Wed, Dec 22, 2010 at 10:11 AM, Schoel samuelsson.j...@gmail.com wrote: I have a function call from a large engine (which I can not change) which asks the user whether to save or not. Before this function call returns, I need an answer from the user whether to save. Ask the save/no-save

Re: [android-developers] How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Mark Murphy
ACTION_SEND only supports sending one item. On Wed, Dec 22, 2010 at 12:45 PM, Hans-Erik erikswed...@gmail.com wrote: hi In the gallery I have added my Item to the share menu. But i can only get one image and making my Activity start. This code give me the URL for one image. Is it possible to

[android-developers] Re: How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Hans-Erik
On 22 Dec, 20:17, Mark Murphy mmur...@commonsware.com wrote: ACTION_SEND only supports sending one item. Thanks for your reply Do you know any other way to do this? My Activity is dormant and awaken by the user selecting images. There has to be another way to do this right? -- You received

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread Robert Green
pedro, your problem has nothing to do with android. I think you may need a 3D refresher to solve it. Normals are not UVs. Your UVs will depend on how you want to map, but the easiest way to do it is to map from the sphere center out using angles, like this. Since GL has 2D texture coordinate

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread Robert Green
Also I should add that your sphere normal should be (sphereCenter - point).Normalize() and will be a 3D vector. Normals are 3D, UVs are 2D. On Dec 22, 9:09 am, pedr0 pulsarpie...@gmail.com wrote: Please see the link and reply inside  this post if you have not an account on OpenGL forum, the

[android-developers] Re: How to disable back button..?

2010-12-22 Thread Prateek Jain
Hi, If you just want to disable the back button and do nothing, you can try this - @Override public void onBackPressed() { // Your code here, If you wish to write any, else no need. :-) } Thats it !!! Cheers, Prateek On Dec 22, 5:06 pm, Abhilash baddam

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-22 Thread Robert Green
Oh here is a faster method - http://www.mvps.org/directx/articles/spheremap.htm For each point (Assuming Y=up): 3DVec normal = (sphereCenter - point).normalize(); float U = asin(normal.x)/PI + 0.5 float V = asin(normal.y)/PI + 0.5 for z=up: float U = asin(normal.x)/PI + 0.5 float V =

[android-developers] Re: How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread bruce
What you want is ACTION_SEND_MULTIPLE. You will receive a set of Uris. Something like if (Intent.ACTION_SEND_MULTIPLE.equals(action)) Intent.hasExtra(Intent.EXTRA_STREAM)) { ArrayListParcelable list = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); for (Parcelable p : list)

[android-developers] Re: How do i multi select images in the Gallery and send there URL to my activity?

2010-12-22 Thread Hans-Erik
On 22 Dec, 20:48, bruce palant...@gmail.com wrote: What you want is ACTION_SEND_MULTIPLE. You will receive a set of Uris. Thanks Bruce! Coming from Java, Any book you can recommend learning android infrastructure? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Thread problems

2010-12-22 Thread Kostya Vasilyev
22.12.2010 22:15, Mark Murphy пишет: activity run on the main application thread (which you are blocking) Mark, I don't believe this is the case. In fact, Schoel wrote this in his original message: I've checked the thread id of the thread in which queryUserSave is called and the thread id

[android-developers] Re: NFC Demo errors?

2010-12-22 Thread JoeSchmoe
If you're using Eclipse, just right click on the projectBuild Path- Add External Library On Dec 8, 10:00 am, phillin77 philli...@gmail.com wrote: Dear Dominik, I'm new to Android development, I use Eclipse and had opened the NFCDemo project which Android 2.3 provided Can you kindly

[android-developers] Re: TabHost not working in Froyo

2010-12-22 Thread KG
Shameless self bump On Dec 22, 12:44 am, KG kevinconca...@gmail.com wrote: Hi Everyone, I have a TabHost in my app that works on my test device running Android 2.1 (and all previous versions via the emulator).  However, the tabs do not display when Running on Android 2.2 (Froyo) or later.

[android-developers] Re: Bitmap Matrix Rotate

2010-12-22 Thread nirm
OK, Thats my question how do i reuse it? Can you provide me an example? Thanks Nir On Dec 22, 9:05 pm, Robert Green rbgrn@gmail.com wrote: No.  Load it once and reuse it, otherwise you will suffer some nasty performance. On Dec 22, 10:35 am, nirm nirmi...@gmail.com wrote: Hello,

[android-developers] Re: Inputs from the Android Camera

2010-12-22 Thread ko5tik
You can put whatever you like as overlay over camera surface view (except another surface view ) See our android sample in javaocr project: http://sourceforge.net/projects/javaocr/ On Dec 22, 2:20 pm, Atik atik0...@gmail.com wrote: hi, so i have downloaded the source of camera app of android.

[android-developers] Re: Proguard problem after 2.3 update

2010-12-22 Thread mukgup
I am also getting problem with compiling the project with combination of linux (sdk updated r8), android-2.2, ant (1.8.1 ant -version says compiled on April 30 2010 ) and proguard. The problem i am getting from ant script is: .../ant/main_rules.xml:430: Expecting class path separator ':'

Re: [android-developers] Thread problems

2010-12-22 Thread Mark Murphy
Ah, sorry, I missed that. On Wed, Dec 22, 2010 at 2:58 PM, Kostya Vasilyev kmans...@gmail.com wrote: 22.12.2010 22:15, Mark Murphy пишет: activity run on the main application thread (which you are blocking) Mark, I don't believe this is the case. In fact, Schoel wrote this in his

[android-developers] Re: Proguard problem after 2.3 update

2010-12-22 Thread jtoolsdev
I disabled the Proguard build from Eclipse by commenting out the proguard.cfg reference in default.properties. Then did a Refresh from the project's menu so it would take effect. On Dec 22, 7:20 am, licorna lico...@gmail.com wrote: Is there any way to disable this functionality. I just want to

  1   2   >