[android-developers] Re: Database insertion timings

2010-04-13 Thread Bob Kerns
It is often better to insert all the data and THEN create the indexes. I couldn't tell you about Sqlite. You may want to create the primary index, but create all the other indexes later. On Apr 12, 5:33 pm, Zsolt Vasvari zvasv...@gmail.com wrote: No, database writing is extremely slow

[android-developers] Re: To save resources, should services use the android:process attribute?

2010-04-13 Thread Bob Kerns
There are a few exceptions. First, let's distinguish between a service which continuously runs, vs one for which there is a continuing need. You NEVER want a service to be continually running, or even frequently running. You'd even strongly prefer to not have it maintain a process. My own app

[android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-13 Thread Bob Kerns
My impression, not well investigated, is that your service is NOT likely to be killed while it is actually running on the main thread doing processing. I'm guessing you're doing this on a separate thread? Your process may be killed, but is less likely to be killed, if you start the service, and

[android-developers] 411 length required for HttpPost in Calendar protocol

2010-04-13 Thread Sameer AM
I'm trying to implement the create calendar protocol from Google Calendar. For that I'm supposed to do a HTTPPost to owncalendar url, with auth header and content-type given. After performing HttpPost, i get a response saying 411 length required.. But when I checked packets using wireshark, the

[android-developers] Re: Android Phones

2010-04-13 Thread String
On Apr 13, 5:27 am, nubh.bhargava nubh.bharg...@gmail.com wrote: I need a good phone and a fast one too, and the only thing on my mind is not to shell out $570 To point out the obvious, good + fast = expensive. You get what you pay for. For leading-edge hardware, $500+ is the going price.

Re: [android-developers] Re: Android Phones

2010-04-13 Thread nubh bhargava
ya thats true but can look out for cheaper option, Thats all my intention as I am a student [?] Thanks NUBH -- 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] Problems with mipmaps + non-square textures on MSM7200?

2010-04-13 Thread Robert Green
Just wondering if anyone else has come across this. The MSM7200 (G1,Mytouch,Eris,Hero,Cliq,etc...) supports mipmapping but not hardware mipmap generation. That's not a big deal as you can just divide the texture by 2 a bunch of times til you're at 1x1 and it works fine. That works for square

[android-developers] Re: Progress Bar in every row of ListView

2010-04-13 Thread Bob Kerns
I had various issues with progress bars -- sliders in my case -- and even replaced ListView with my own implementation. But I have a guess what my problem was, and of my own making. Just for illustration purposes, here's my code replacing ListView: ViewGroup sliders =

[android-developers] Re: Audio Mixing

2010-04-13 Thread ani
I agree with everyone here that low latency audio is still far-fetched idea for android. For low latency audio we need to have very good designed audio framework which i guess at this point of time is not ready in android. However i have been told in one of the answers from google that they are

[android-developers] Re: How to parse JSON in Java?

2010-04-13 Thread ko5tik
On Apr 12, 11:33 am, vworld4u vworl...@gmail.com wrote: You can use JSON Parser readily available for this purpose. Since Android platform is compliant with standard J2SE JDK, you can use the readily available open source JSON parsers. You do not need any 3rd party JSON parsers, as android

Re: [android-developers] Re: Database insertion timings

2010-04-13 Thread Alok Kulkarni
I do not have any indices for my tables at all. Each of the tables Artist, Albumn and Songs has 4,5,5 columns respectively. Using Raw query as Yahel said improves the speed to some extent . Inserting 7000 records takes 18 seconds instead of 22 but thats not much as in total , i am going to insert

Re: [android-developers] Re: Database insertion timings

2010-04-13 Thread Alok Kulkarni
@mobDev, Ending transaction On Tue, Apr 13, 2010 at 12:59 PM, Alok Kulkarni kulsu...@gmail.com wrote: I do not have any indices for my tables at all. Each of the tables Artist, Albumn and Songs has 4,5,5 columns respectively. Using Raw query as Yahel said improves the speed to some extent .

Re: [android-developers] Re: Database insertion timings

2010-04-13 Thread Alok Kulkarni
@mobDev, I have followed some links , example http://www.higherpass.com/Android/Tutorials/Accessing-Data-With-Android-Cursors/3/ where they were doing setTransactionSuccessful before ending transaction. Removing that statement does not have an effect. Even if i do say String tempName = Artist;

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2010-04-13 Thread Alex Cohn
I wholeheartedly agree with Guillaume that Android lib projects would be a good feature. But maybe the case I have in mind requires something different. I have ported to Android an LGPL library, libdmtx. This library has native code and JNI wrapper. I created an org.libdmtx APK which installs the

[android-developers] Re: DrawableBitmap, Canvas and OR

2010-04-13 Thread Kaj Bjurman
It does also make sense for some color images. Take an image that only has information in the red channel, and OR it with an image that only has information in e.g. the blue channel and you'll see what I want to do. On 12 Apr, 21:38, Bob Kerns r...@acm.org wrote: And just what useful visual

[android-developers] TabActivity and startAcitivtyForResult

2010-04-13 Thread oriharel
can make the TabActivity start it's childs activities for result? I need it because I can't make result code from a tab to propagate all the way up in the chain (it's reset in the TabActivity) thanks, Ori -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Android Phones

2010-04-13 Thread MobDev
Sure you can look out for a cheaper option, but you specifically asked for other places to buy a testing device outside of the market... So I guess the options would be to buy a second hand device, paying the going second hand price... If that is too much for you then I simply guess thats also

[android-developers] Re: Problem accessing Layer-List items

2010-04-13 Thread MobDev
hhmm, are you sure they are getting a layer-id if they are not specified as layers ? I have no experience in that but I see that those already have a R-id and you are trying to use that same id as a layer-id ? On 12 apr, 15:48, Alok Kulkarni kulsu...@gmail.com wrote: Hi guys I have a Style

[android-developers] Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread westmeadboy
I have a service which, when started, does some stuff (like downloading files) typically taking about 2-3 minutes. If I start this service and then immediately use the power button to switch off the screen, then I would expect the phone, at some point, to fall asleep. But it never seems to fall

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread Sławek
Strange, I don't think it's a problem to deliver 2000 small packages... 5 weeks, I'm still waiting, Poland. On Apr 12, 8:55 pm, Teo [GD API Guru] teomina...@gmail.com wrote: Hi guys, i don't want to be a smart-ass or anything :) It may seem to people looking at this thread that some are

[android-developers] Re: DrawableBitmap, Canvas and OR

2010-04-13 Thread skink
Kaj Bjurman wrote: It does also make sense for some color images. Take an image that only has information in the red channel, and OR it with an image that only has information in e.g. the blue channel and you'll see what I want to do. i'm not sure but maybe its what you are looking for:

[android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread MrChaz
iirc, that flag means the system gets a wake lock for the life of the activity for you. On Apr 13, 9:52 am, westmeadboy westmead...@yahoo.co.uk wrote: I have a service which, when started, does some stuff (like downloading files) typically taking about 2-3 minutes. If I start this service and

[android-developers] timeout for HistoryRecord

2010-04-13 Thread Anzi
Hi, Some times when i start my activity from, i am not able see my activity on screen(I am able see a black screen and a status bar). While facing this problem i found Activity idle/pause timeout for HistoryRecord{... message in the logcat. Can anybody help me how to handle the above situation.

[android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread westmeadboy
Oh I see. So if the user presses Home and then uses the power button, then it *could* fall asleep (in the case where the activity has been killed by the system)? On Apr 13, 11:16 am, MrChaz mrchazmob...@googlemail.com wrote: iirc, that flag means the system gets a wake lock for the life of the

[android-developers] How to resize the RelativeLayout or any other Layout in Android ?

2010-04-13 Thread javame_android
Hi, I have a RelativeLayout defined in xml and I call the setContentView(R.layout.relativeLAyout) for displaying in Activity. Now, if I want to resize this RelativeLayout then can it be done and if yes, then can someone let me know how? The inner components can be resized relatively to the

[android-developers] ListView and Scroll

2010-04-13 Thread oriharel
I need to show a list that is scrolled to a specific item. how can I do it? Ori -- 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

[android-developers] Re: ListView and Scroll

2010-04-13 Thread Kumar Bibek
On the ListView, there are two methods, a. scrollBy b. scrollTo You can also use the setSSelection method to select an item in the ListView You can use these two methods to scroll to any position. Thanks and Regards, Kumar Bibek On Apr 13, 3:22 pm, oriharel ori.ha...@gmail.com wrote: I need

[android-developers] disable sleep/standby mode

2010-04-13 Thread Paolo
How to can to avoid my app goes in stand by while it's running? -- 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: disable sleep/standby mode

2010-04-13 Thread Nithin
use this flag WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON On Apr 13, 3:31 pm, Paolo brand...@gmail.com wrote: How to can to avoid my app goes in stand by while it's running? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Bluetooth stack becomes dead

2010-04-13 Thread Rafał Grzybowski
After Bluetooth connection is lost. Bluetooth stack on HTC Legend is messed up. Nothing works till Bluetooth is turned off and on. Here is the sample, the problem is blocking read on the thread but InputStream.available call always returns 0 and cannot be used to implement some ugly, busy-waiting

[android-developers] Re: How to apply different textures on different faces of a cylinder

2010-04-13 Thread Lance Nanek
Put all the images needed for texturing all the faces into a single texture. Then refer to coordinates inside the texture to use different parts of it in different places. This is called an atlas texture. I suppose it is also possible to draw the different parts in separate draw calls with a

[android-developers] Progress Dialog Status Bar

2010-04-13 Thread Sasikumar.S
Hi , - In my application i'm loading 40 images in background from web. - At the time i need to progress dialog or progress bar in status bar (not title bar ). - How to show it ? - I tried so much sample programs. - All are showing only images not progress. - Any one have any

[android-developers] Moving two views together

2010-04-13 Thread Sonic..
Hello, I currently have one Scrollview which contains a table layout and one list in my activity. Now my problem is that I wanted to move both of them(Scrollview and list) together and with proper synchronization... So if scrollview is being scrolled then listview should also scroll with the same

[android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread MobDev
My idea would be to use asynctask... In tthis specific case you can do some lengthy task (for example in another Thread) and in the menatime show a progress bar... On 13 apr, 13:20, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi ,    - In my application i'm loading 40 images in background

[android-developers] Re: how to read database of one application in another application using contentproviders

2010-04-13 Thread kiran
Hi sreehari thanks for your reply. But i didn't solved my problem. I will give some more inputs to you Application1 Manifest file looks like this ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.mytable

[android-developers] Re: Augmented Reality, getRotationMatrix, Camera overlay

2010-04-13 Thread Paolo
Hi! I'm develop an AR app, too. Do you have solved this problem? On 24 Feb, 02:07, nikola.borisof nikola.bori...@gmail.com wrote: Hi all, I spend two weeks now trying to get this working with no success. Here is what I want to do: I have several geo points around the user and his phone. I

Re: [android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread Sasikumar.S
Ya that's right. My problem is i can't able to set progress bar in Status bar. Progress bar working is Second thing. On Tue, Apr 13, 2010 at 5:00 PM, MobDev developm...@mobilaria.com wrote: My idea would be to use asynctask... In tthis specific case you can do some lengthy task (for example

Re: [android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread Mark Murphy
westmeadboy wrote: Oh I see. So if the user presses Home and then uses the power button, then it *could* fall asleep (in the case where the activity has been killed by the system)? If you eliminate your parenthetical expression, then yes. The activity being killed/not-killed has no impact

Re: [android-developers] Re: disable sleep/standby mode

2010-04-13 Thread Mark Murphy
That assumes that my app is an activity and that the device can go to sleep if that activity is not in the foreground. Nithin wrote: use this flag WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON On Apr 13, 3:31 pm, Paolo brand...@gmail.com wrote: How to can to avoid my app goes in stand by

Re: [android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread Mark Murphy
Sasikumar.S wrote: Ya that's right. My problem is i can't able to set progress bar in Status bar. Progress bar working is Second thing. You cannot indicate progress in the status bar. Please use a ProgressDialog, ProgressBar, progress indicator in the title bar, or a custom animation. --

Re: [android-developers] Re: Progress Dialog Status Bar

2010-04-13 Thread Sasikumar.S
ok... Thank you i will try it. On Tue, Apr 13, 2010 at 5:22 PM, Mark Murphy mmur...@commonsware.comwrote: Sasikumar.S wrote: Ya that's right. My problem is i can't able to set progress bar in Status bar. Progress bar working is Second thing. You cannot indicate progress in the status

[android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread westmeadboy
Hmmm, so in that case, why does the device not sleep after the user has used the power button to turn off the screen? Or do you mean that the activity is still considered in the foreground even after that? On Apr 13, 1:50 pm, Mark Murphy mmur...@commonsware.com wrote: westmeadboy wrote: Oh I

Re: [android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread Mark Murphy
westmeadboy wrote: Hmmm, so in that case, why does the device not sleep after the user has used the power button to turn off the screen? Or do you mean that the activity is still considered in the foreground even after that? My guess is that it is still considered the foreground until a real

[android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?

2010-04-13 Thread grace
yes..u can do it by giving the values to width and height of the layout. but this is always not advisable. On Apr 13, 2:56 pm, javame_android su...@softwebsolutions.com wrote: Hi, I have a RelativeLayout defined in xml and I call the setContentView(R.layout.relativeLAyout) for displaying in

[android-developers] Memory profiling for my Android application

2010-04-13 Thread SAM
Hi, I have a requiirement of finding out the max RAM usage of my application. I tried installing the Memory Profilers in eclipse but I was not able to use it with my application. Please let me know how can I find the RAM usage of my application on the 'emulator'. Thanks Sam -- You received

[android-developers] System Server process not starting my activity but giving ANR?

2010-04-13 Thread pink 444
Hi all, I have started my application and did some orientation changes and clicked back button from my application's main activity. I went to application launcher and tried to launch my application. I got blank black screen and clicked menu button it gave me ANR. And the logcat

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread fhucho
I agree, I find it very weird that such a big company like Brightpoint has problems with delivering this amount of packges. On Apr 13, 11:10 am, Sławek slawe...@gmail.com wrote: Strange, I don't think it's a problem to deliver 2000 small packages... 5 weeks, I'm still waiting, Poland. On

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread JDS
I also agree, especially since the phones to the US developers already have been delivered which makes the total amount of phones to be delivered to europe perhaps just a couple of thousand. Even a very small webshop can deliver 2000 packets in 6 weeks to any adress in the worldbut perhaps

[android-developers] Huge UI

2010-04-13 Thread Ajay
Hi, I have a huge UI, in which I have about 300 to 500 rows of data (Horizontal LinearLayout), with each row containing 3 to 4 views. If I load all the UI at once, it takes a long time. Can anyone suggest how best I can display this UI? Thank you, AJ -- You received this message because you

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread fhucho
By the way did anyone try to contact BrigtPoint? On Apr 13, 3:02 pm, JDS jesper.d.svens...@gmail.com wrote: I also agree, especially since the phones to the US developers already have been delivered which makes the total amount of phones to be delivered to europe perhaps just a couple of

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread Arnon
Yes, I contacted them last week. They promised me an answer the next day, but since then I haven't heard from them... Something is not right about all this... On Apr 13, 4:16 pm, fhucho fhu...@gmail.com wrote: By the way did anyone try to contact BrigtPoint? On Apr 13, 3:02 pm, JDS

[android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?

2010-04-13 Thread javame_android
HI, I know it can be done by giving height and width in xml layout file. But, I want it to be done by the Java Code. For example, I have a Layout file A.xml. In this, I have RelativeLayout with layout_width = fill_parent and layout_height=fill_parent. Now this layout should be resized to

Re: [android-developers] Huge UI

2010-04-13 Thread Mark Murphy
Ajay wrote: Hi, I have a huge UI, in which I have about 300 to 500 rows of data (Horizontal LinearLayout), with each row containing 3 to 4 views. If I load all the UI at once, it takes a long time. Can anyone suggest how best I can display this UI? Use a ListView. -- Mark Murphy (a

[android-developers] Re: Dynamically load jar files in android runtime

2010-04-13 Thread Mark Murphy (a Commons Guy)
Look at DexClassLoader in the SDK. On Mar 30, 7:19 am, Mihai Dumitrache mmd...@gmail.com wrote: Still no answer to this problem ? -- 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] Re: Huge UI

2010-04-13 Thread Ajay
Thanks for a super quick reply!! I doubt if I could use a ListView because it has to scroll horizontally as well as vertically. Thank you, AJ On Apr 13, 6:25 pm, Mark Murphy mmur...@commonsware.com wrote: Ajay wrote: Hi,    I have a huge UI, in which I have about 300 to 500 rows of data

Re: [android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?

2010-04-13 Thread social hub
relativeLayout.getLayoutParams().height=200 relativeLayout.requestLayout(); On Tue, Apr 13, 2010 at 8:22 AM, javame_android su...@softwebsolutions.comwrote: HI, I know it can be done by giving height and width in xml layout file. But, I want it to be done by the Java Code. For example,

Re: [android-developers] Re: Huge UI

2010-04-13 Thread Mark Murphy
Ajay wrote: Thanks for a super quick reply!! I doubt if I could use a ListView because it has to scroll horizontally as well as vertically. Then I hope you have staff-years of engineering time to create your own framework for efficiently handling this scenario. Or you can redesign your UI to

Re: [android-developers] Memory profiling for my Android application

2010-04-13 Thread social hub
did u check out DDMS On Tue, Apr 13, 2010 at 7:29 AM, SAM gulati...@gmail.com wrote: Hi, I have a requiirement of finding out the max RAM usage of my application. I tried installing the Memory Profilers in eclipse but I was not able to use it with my application. Please let me know how can

[android-developers] Petition: Google, please improve the Android Market.

2010-04-13 Thread Rob Irondad
Hello, fellow developers, Just a quick update on the petition that was posted 2 months ago now, As of now it has been signed by 1174 people. Since the petition was made public, there has been no improvement of the Market app / website / developer console, and all the points in the petition

[android-developers] Sending especial caracters (pause = ,) when calling with ACTION_CALL

2010-04-13 Thread Gustavo
I'm trying to place a call with Intent.ACTION_CALL and a tel uri including pauses and dtmf codes to be sent when the call is established (i.e. tel:+17,,555). Android strips all the special characters and place the call to the rest of the uri (i.e. tel:+17555) Any

Re: [android-developers] Disable scroll in webview

2010-04-13 Thread murali raju
You mean you have a large HTML. But you want to show content in a single screen. For user, it seems there are several pages. User only needs to click your button to change page. Right? No. suppose i have 500 lines in a html file( which is too large, so the scroll bar appears). I want

Re: [android-developers] Moving two views together

2010-04-13 Thread social hub
hack into onmove onscroll onfling methods and pass them to other view On Tue, Apr 13, 2010 at 6:25 AM, Sonic.. abhishek.bansal1...@gmail.comwrote: Hello, I currently have one Scrollview which contains a table layout and one list in my activity. Now my problem is that I wanted to move both

Re: [android-developers] Re: Disable scroll in webview

2010-04-13 Thread murali raju
But they don't seem to work for webview. the scroll bar still remains. On Tue, Apr 13, 2010 at 8:55 AM, grace grace.a...@wipro.com wrote: ya u can do that.. using methods like public void setHorizontalScrollBarEnabled (boolean horizontalScrollBarEnabled) and public void

Re: [android-developers] Sending especial caracters (pause = ,) when calling with ACTION_CALL

2010-04-13 Thread Mark Murphy
Gustavo wrote: I'm trying to place a call with Intent.ACTION_CALL and a tel uri including pauses and dtmf codes to be sent when the call is established (i.e. tel:+17,,555). Android strips all the special characters and place the call to the rest of the uri (i.e.

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread Willem Stoker
I havae contacted Brightpoint Netherlands by email. The reply was: Goede morgen, Nee we verkopen niet de Nexus One sorry Eric Feyder Which means Good morning, We don't sell the Nexus One... He probably did not understand the question? I stated in my question very clear that i was receiving the

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread JDS
No I don't think he misunderstood your question. Brightpoint in Sweden does not sell N1 either and since they don't have N1 in stock and not even in their ordering system google can't use them. I would guess they either use Brightpoint in the nearest country that do have them in stock to send

[android-developers] Re: Database insertion timings

2010-04-13 Thread Walter
Use SQLiteStatement.compileStatement, I do believe it should be faster with my 10 years database programming experience, though I didn't test, Let me know if you have a result. Here is some code from my Remote RDP program for importing data to the table: SQLiteStatement

[android-developers] Re: Generating a static HashMap from resources?

2010-04-13 Thread Walter
Why not just use two arrays and put them in your hashmap. There is no hashmap definition in resouce as I know. Sometimes, simple way is the best way. On Apr 12, 7:55 pm, HippoMan hippo.mail...@gmail.com wrote: My main reason is that I want to have public static final mapped values available to

[android-developers] Customizing the Gallery Control

2010-04-13 Thread Mark Hansen
I'm interested in customizing the Gallery control by adding a text description below each image. I've created a view as such: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content

[android-developers] Re: AudioRecord fails on Android 2.1

2010-04-13 Thread Walter
I think emulator is ok for developing. One thing you need to pay attention for using AudioRecord is: you'd better use AudioRecord.getMinBufferSize() * X to set up the buffer size, otherwise it may not always work properly. I'm not sure that can resolve your problem, hope it helps. On Apr 12, 1:47 

[android-developers] How to know whether Activity/service is running or stopped

2010-04-13 Thread guru
Hi All, When I do various operations on bluetooth application ... scanning, renaming and discoverable after some time non of these works... if I try to change name, it is not reflecting. is it problem with Activity/service? How to check whether these are still running? How to debug such cases?

[android-developers] Overlays Erased on Screen Orientation Change

2010-04-13 Thread JFrog
I have modified the manifest file to keep the orientation at 'Portrait' view while my Activity is running. However, when the keyboard is opened, the screen still flickers slightly and the overlays that were drawn disappear. It is not stopping the activity from refreshing. If there is a field

[android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?

2010-04-13 Thread javame_android
Hi, Thanks a lot. It worked out. But the inner views are not resized with this. Do we need to resize each and every component. I mean RelativeLayout has TextViews or Buttons as its child. Now, on button click event the view is resized but then TextView and Buttons just disappears. How can we

[android-developers] BUG in SQLite? Cannot use Long Integers in Cache Database

2010-04-13 Thread Jeff
Has anyone been able to get Long Integers to work with a SQLite DB on Android? In particular, I am noticing some odd behavior with Webkit's Cache Database. The expires column is always 0. After doing some testing, I realized that SQLite will accept a value in the expires column up to (2^31 - 1).

[android-developers] Re: Huge UI

2010-04-13 Thread MobDev
hehe, thats one answer I should give to my boss when he comes with his n-th ingenious plan which implies years of work :P On 13 apr, 15:31, Mark Murphy mmur...@commonsware.com wrote: Ajay wrote: Thanks for a super quick reply!! I doubt if I could use a ListView because it has to scroll

Re: [android-developers] BUG in SQLite? Cannot use Long Integers in Cache Database

2010-04-13 Thread Justin Giles
Here is a list of data types that are allowed in SQLite 3: http://www.sqlite.org/datatype3.html Note that there is no official long data type. It would be classified as INTEGER or REAL. For actual long data types that don't seem to be stored well in SQLite you might do better to store as TEXT

Re: [android-developers] BUG in SQLite? Cannot use Long Integers in Cache Database

2010-04-13 Thread Jeff Thorn
I spent 2 days trying to figure this out, and wouldn't you know it...2 minutes after posting to the group, I think I have figured out what I was doing wrong. In order to check my work, I was exporting the database to my local computer and opening it with SQLite Administrator. The values were

Re: [android-developers] Petition: Google, please improve the Android Market.

2010-04-13 Thread Kevin Duffey
What a bummer. :( You left out a couple of big ones in my opinion. Games and audio apps make up almost 50% of the apps on iPhone, and the current state of the audio engine and the gaming capabilities are really not that good on Android. As well, the communication by google about what is coming is

[android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-13 Thread Streets Of Boston
Does Android even do anything with thread priority? In my experience: Yes. You can set a Thread's priority and it has an effect. Note, however, that the actual priority will never be higher than the groups priority. When i change a background thread's priority and set it very high, the UI

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread Thomas Riley
Google are using Brightpoint Holland to delivery to anyone in the EU and NOT your local brightpoint warehouse. Tom. On Apr 13, 2:55 pm, JDS jesper.d.svens...@gmail.com wrote: No I don't think he misunderstood your question. Brightpoint in Sweden does not sell N1 either and since they don't

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread fhucho
What is Google using then? On Apr 13, 5:46 pm, Thomas Riley tomrile...@googlemail.com wrote: Google are using Brightpoint Holland to delivery to anyone in the EU and NOT your local brightpoint warehouse. Tom. On Apr 13, 2:55 pm, JDS jesper.d.svens...@gmail.com wrote: No I don't think

[android-developers] twitter and facebook intent : suggestion for the community

2010-04-13 Thread zehunter
Hi everyone, this message is mainly for all dev that already done a FaceBook or Twitter client. i would like to know if they can create/manage a capability for their APK to define a possibility with intent (or any other mechanism) to manage/take care of any message to update Profile on Twitter

Re: [android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?

2010-04-13 Thread social hub
In the same way get each child set its height to whichever u want or set to wrap_content if u prefer and call invalidate layout. I would just set to wrap_content for the child so i can see whether its getting resized as the first step On Tue, Apr 13, 2010 at 9:17 AM, javame_android

[android-developers] SYSV-IPC support not available in android

2010-04-13 Thread ari
Hi All, I was using the linux system calls such as msgget,msgrcv. I found that this system calls are nt available in the latest android source code.previously one can find the same under sys/msg.h. But now there is no msg.h under sys directory. I found one documentation file called

[android-developers] Conflict between seek bar and gesture effect

2010-04-13 Thread umesh chalwetkar
Hi, I want to implement gestures (left and right swipes action) and seek bar( for which the action is similar too) on the same screen, But when I try to drag the seek bar thumb the events being taken as gesture and the rate intensity bar is not moving. Please suggest if anybody has solution to

Re: [android-developers] Re: ListView and Scroll

2010-04-13 Thread Romain Guy
scrollBy and scrollTo won't work in ListView. You have to use setSelection(). FroYo will provide better support for programmatic scrolling by letting you start smooth scrolls. On Tue, Apr 13, 2010 at 3:26 AM, Kumar Bibek coomar@gmail.com wrote: On the ListView, there are two methods, a.

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread fhucho
Sorry, I misread your post. On Apr 13, 5:50 pm, fhucho fhu...@gmail.com wrote: What is Google using then? On Apr 13, 5:46 pm, Thomas Riley tomrile...@googlemail.com wrote: Google are using Brightpoint Holland to delivery to anyone in the EU and NOT your local brightpoint warehouse.

Re: [android-developers] How to Validate the Data

2010-04-13 Thread ~ TreKing
On Mon, Apr 12, 2010 at 11:44 PM, nubh.bhargava nubh.bharg...@gmail.comwrote: How to validate the data in EditText, i.e. on the time of input. I hope now you get it what I mean to say for e.g. we are entering the value of some email id, the validation is required in the login id of the

[android-developers] Re: Audio Mixing

2010-04-13 Thread k_day
Kevin- I agree that the basics of audio mixing are pretty simple (adding byte arrays), though its the other things you mentioned that I don't have much experience with and am having trouble finding good resources about (overflow, volume adjustment, etc.). If anyone has any resources or code they

Re: [android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-13 Thread Mariano Kamp
Ok, I'll explain in detail. There are two issues in this story: (a) killability of the service (b) execution prio of the service In the good old days I just used Process.setThreadPriority(Process.THREAD_PRIORITY_LOWEST) in my service and things went wonderfully. My sync service ran and took as

[android-developers] Re: Service questions

2010-04-13 Thread zehunter
hi, about knowing a service is running of not, i'm using preference to store if i alreaydy launch the service. you can also use sqlite3 for that. didn't find any other solution :-( On 6 avr, 08:51, rizwan rizcs...@gmail.com wrote: Hi, I have few question regardingrunningaservicein background

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-13 Thread gnugu
Figured it out. Thanks Mark for looking into it. The picture I serve comes from encrypted database. I have kept the picture in memory until it was requested and immediately deleted it from memory, so no other requests can get it. The problem was that this new cooliris viewer kept coming and

Re: [android-developers] Overlays Erased on Screen Orientation Change

2010-04-13 Thread ~ TreKing
On Tue, Apr 13, 2010 at 9:16 AM, JFrog jeremiah.paul.sna...@gmail.comwrote: I have modified the manifest file to keep the orientation at 'Portrait' view while my Activity is running. Is this because your app design requires it, or because you're trying to avoid handling restoring your

[android-developers] about adb reject shell command

2010-04-13 Thread Hee Seong Moon
Hi. I make a setwallpaper function. It does work well. but after setwallpaper(go to main) DDMS console print error like this [2010-04-06 09:11:47 - ddms]ADB rejected shell command (ls -l /): and adv emulator dead.(with Microsoft crash detection dialog) how can i get a information this error. --

[android-developers] Re: Cannot cast from Bitmap to byte[]

2010-04-13 Thread Dipo Fasoro
Assuming a Bitmap called bmp; I think if you want the raw bytes, this should work: java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocate(bmp.getHeight() * bmp.getWidth()); bmp.copyPixelsToBuffer(buffer); byte[] bdata = buffer.array(); -- You received this message because you are subscribed

[android-developers] Re: Activity Being Killed (onDestroy) on Orientation Change

2010-04-13 Thread bulletgani
thats how android works. Please read android activity lifecycle. you can save state before the activity is destroyed and restore it after it is created. -g On Apr 4, 10:50 pm, Gaurav Vaish gvaish.i...@gmail.com wrote: Hi, I am working on a MVC implementation for Android (to be subsequently

[android-developers] Weird OpenGL performance in Nexus one

2010-04-13 Thread lixin China
I'm preparing code a game. So I need benchmark the OpenGL find a good way render my 2d stuffs. And I found a project have done that. http://code.google.com/p/apps-for-android/ SpriteMethodTest I only have nexus one. The following it's the test result from my phone.

[android-developers] sms messaging

2010-04-13 Thread ranjit R
hi... how to send an automatic scheduled sms ?? -- 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] is there any limitation on glTranslatef or vertex coordinate system?

2010-04-13 Thread Jong Min Lee
Hello~ comrade! I am developing opengl based application. something mysterious happened. I've tested it with simple triangle. I moved triangle's x coordinate and I also moved coordinate system itself using glTranslatef It looks well before triangle's x coordination approach around 8100.. But

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-13 Thread heedrox
Spain. Confirmation on 6th. Fedex Spain didn't want to give me any info without the tracking nr. No phone yet ;S On 6 abr, 14:48, JDS jesper.d.svens...@gmail.com wrote: Talked to Fedex, sweden, today also, no package to my address or anybody with my name :-( Also got my confirmation the 6th.

  1   2   3   4   >