[android-developers] Re: How to trace contentProvider
Hi, Before you continue to study the code, you need to know the Java language more. Go find a Java book and study it first. On 3月17日, 上午10時24分, a a harvey.a...@gmail.com wrote: Dear All, I am now reading contentProvider.java( under the base/core/java/android/content) Ln 127 looks following: public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { enforceReadPermission(uri); return ContentProvider.this.query(uri, projection, selection, selectionArgs, sortOrder); } I'm really confused about that contentProvider invoke this.query() Ln 444 public abstract Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder); Ln444 is Nothing to do the query(), it seams this is only declare, not yet implement. where is it implement? How can i find it? anyone can tell me? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Gallery Documentation
Is there any documentation for Architecture of Gallery application in Android 2.0/2.1 ? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] [Android-developers] Overlay in Views. Please suggest
Hii All I need your help/suggestion on this issue. In my application, i have a surfaceView and a videoView which are occupying the full screen. SurfaceView is on the top and thus VideoView is hidden below. But i need to see both SurfaceView and VideoView together. How do i achieve this? I tried giving surfaceholder.setFormat(PixelFormat.RGBA_); and tried even this: surfaceholder_push.setFormat(PixelFormat.TRANSLUCENT); But nothing seem to bring my VIdeoView on my SurfaceView :( Can anyone please suggest something. I would appreciate your help. thanks in advance, Latha -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: 答复: 答复: [android-developers] Where is th e source project location of YouTube in Eclair?
Don't think you are in a English group so people don't know Chinese... On 3月12日, 下午1時40分, a a harvey.a...@gmail.com wrote: 吹毛求疵 2010/3/12 Dianne Hackborn hack...@android.com: Please not that hard-coding package names is fragile and can cause your app to break. For things on market, you are somewhat safe, but none of these are. And I can guarantee you for sure that things like the contacts app package name will vary across devices. If it isn't defined in the SDK, it is NOT a supported API. On Thu, Mar 11, 2010 at 7:12 PM, a a harvey.a...@gmail.com wrote: Dear Bibek, it's works very well, thanks. But i have another question: Why is intent.putExtra(query, Android); // how do you know the key is query ?? But not intent.putExtra(user_query, Android); ?? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: onFling
Finally I found a way to synchronize the scrolls. I was using a gesture listener to listen for scrolls/flings which did not give me accurate results. Now I simply pass the onTouch events from one view to the other view. This makes both the views to scroll perfectly in sync. On Mar 18, 5:26 pm, Ajay aja...@gmail.com wrote: Hi, I am having two horizontal scroll views in my app. If I do a scroll/ fling in one view, I have to scroll/fling the other view. It does work, but it has a minor mismatch sometimes in the amount of scroll. I suspect this might be because theonFlinglistener callback has a float velocity, whereas the call method fling() takes an integer parameter. Any idea why is this mismatch? Thank you, AJ -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] How to build libwebcore.so ?
I am unable to complete the system build since libwebcore.so is not found: -- target Strip: libwebcore (out/target/product/generic/obj/lib/ libwebcore.so) build/tools/soslim/main.c(130): open(out/target/product/generic/ symbols/system/lib/libwebcore.so): No such file or directory (2) make: *** [out/target/product/generic/obj/lib/libwebcore.so] Error 1 make: *** Waiting for unfinished jobs -- Is there a way to build libwebcore.so ? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Stop an Activity (Urgent)
Hello Community, My application contains three-four pages. On click of button in first page, I start a new activity which redirects to another page and second page redirects to third page and so on. Now I want to include one button which On click will redirect to first page by stopping all activities. So how to achieve that? -- Warm Regards, Chirayu Dalwadi -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Strategies for using Touchscreen MotionEvent Coordinates
If your game is not a very time sensitive, you may as well use ImageViews for tiles - then you will get honest touch events from them. If you are using SurfaceView , there is Callback surfaceChanged - there you will get hones resolution and can determine size and position of yout tiles On Mar 19, 2:37 am, Rocco roc...@gmail.com wrote: Hey Robert, Thanks so much for your reply! I think you might be right that this IS in fact a scaling issue. I'm sure I can run some tests by actually drawing a dot at the actual screen coordinates and comparing where I expect it to land. I got the jist of the issue right away when you mentioned it but I also appreciate the additional suggestions. Now I just have to drum up a couple thousand bucks for the rest of the android phones :-). Rocco On Mar 18, 10:48 am, Robert Green rbgrn@gmail.com wrote: Rocco, you're experiencing basic 2d scaling dilemma. There are several ways you can go, each with its compromises. The gist of it is that your game will need to work correctly on screens ranging from 320x240 to 854x480 if you want to support every android device. If you take off the qvga screens, you still need 480x320 (G1) to 854x480 (Droid). You should decide if you will always show the same game to every size screen. If so, you'll want to set a target resolution (say 480x320 if you're landscape on a G1) and use that as a scaling factor to get the correct display on a different sized screen. At that point, your game world will need to operate as if it's always that resolution. You will need to scale the vital game components, such as player pieces, enemies, projectiles, anything collideable, really. If you don't care about consistency across devices, you at least need consistency with your input. When you calculate the touch vector from down, move to up, you will want to scale that so that the physics in the game are consistent. I always use a reference width (when portrait) or a reference height (when landscape) that looks like this: int referenceWidth = 320; float drawScale2d = actualWidth / referenceWidth; float inputScale2d = referenceWidth / actualWidth; Use inputScale2d to get a consistent screen input value across devices (swiping 10 pixels will always be 10 pixels even when the actual device is 15, because you scaled.) Use drawScale2d to make objects draw to the same dimensions as they would have on a lower resolution screen. If you're in opengl it's just a projection you use, but if using a Canvas you can actually set the matrix to use that and then draw. That will make it fairly easy to get the desired scale. The stuff I'm talking about doing is density-independent, that is, it won't matter what density the screen is because the goal of a portable game is to give a consistent experience across multiple devices. That's all you need to do that. Hope this helps. Test on many devices. On Mar 17, 2:16 pm, Rocco roc...@gmail.com wrote: Hi, I'm writing a simple tile based game using a canvas and a 5X5 grid of tiles. To determine if a tile is clicked I look at the MotionEvent supplied by onTouch. I get the coordinates when MotionEvent.event is ACTION_UP and translate to tiles. This works great on the emulator but when I touch on a device the actual coordinates of the touch register higher than I'd expect as a end user. I'm wondering what strategies people have used to get a closer to expected result. Do you use a simple Y offset? Do you average the coordinates over the life of the touch? Do you use other methods? Thanks! Rocco -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] App not visible in Australia
I've had a couple of Australian users this week contact me saying that one of my paid apps isn't visible. Has anyone else had specific trouble down under? And yes, I've confirmed that AU is selected for publishing the app on my Developer Console. Thanks, String -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to choose connection type
Ok, so can say that phone is in two states: 1) wifi 2) GSM GSM means - umts, edge, gprs etc Right? And it's not possible to have wifi on and gsm on and sometimes use wifi, sometimes gsm? I don't want to turn off wifi permanently, because for other application it is useful. I just want use only GSM in my application and wifi in browser and other ones. Is it possible? On 18 Mar, 21:39, spachner stefanpach...@googlemail.com wrote: Hi, when Wifi is on, GSM (which means UMTS or what mobil network you are using) is off and vice versa. If GPRS or other transmission types are used is not determined by the protocol (HTTP or whatever) you use. Bluetooth is never used by by HTTP since there is no IP used below. regards Stefan On 18 Mrz., 14:10, badzio bad...@gmail.com wrote: Hi, in my application I need sometimes send data via http (using HttpClient, HttpGet and HttpPost). Can I choose (from source code) connection which is used? For example, I'd like to use only gprs, not wifi, not bluetooth. Or only wifi, not gprs. Thanks for replies :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to choose connection type
Another question - how can I switch off wifi? Of course I mean from source code :) On 18 Mar, 21:39, spachner stefanpach...@googlemail.com wrote: Hi, when Wifi is on, GSM (which means UMTS or what mobil network you are using) is off and vice versa. If GPRS or other transmission types are used is not determined by the protocol (HTTP or whatever) you use. Bluetooth is never used by by HTTP since there is no IP used below. regards Stefan On 18 Mrz., 14:10, badzio bad...@gmail.com wrote: Hi, in my application I need sometimes send data via http (using HttpClient, HttpGet and HttpPost). Can I choose (from source code) connection which is used? For example, I'd like to use only gprs, not wifi, not bluetooth. Or only wifi, not gprs. Thanks for replies :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] how to get the total size of sdcard?
Hi all, In my application i want to display all the properties of the sdcard like sizeof sdcard, used space in sdcard , free space etc.. I'm able to get the used space of sdcard, but unable to get the total size of sdcard ( size given at the creation time of AVD ). How can i do that? Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Functional retrieval of strings?
Let me get this straight - you would rather have a runtime exception that you just catch and ignore than a compile time error that will quickly identify your problem and allow you to fix it on the spot? Why exactly would you prefer this? I want to change the behavior of my app by means of the presense or absence of some items in strings.xml. This allows me to control this behavior by simply adding or deleting the items, and then clicking the Save icon in Eclipse (which automatically rebuilds). This allows me to quickly test certain features during development. Java doesn't have an equivalent to the C preprocessor. In C, I sometimes put sections of code within #ifdef blocks and change the program's behavior during development by commenting out or uncommenting certain #define lines in a header file. I would do this early in my app's development process. Later, once I was more sure about the structure of my app, I'd dispense with this procedure. Yes, I know that there are other ways to achieve this same purpose. I was just wondering if I could make use of the method I outlined. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Add calendar item through Intent?
Hi all, I'm developing an app that displays a list of events and would like to know if there's any standard way to add an item to the (Google) calendar, preferably by sending an Intent? I'm developing for Android 1.5. Thanks for any hint! Regards, Sven -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to choose connection type
Ok, I've found http://almondmendoza.com/2009/10/17/turn-off-turn-on-wifi-in-android-using-code-tutorial/ :) On 19 Mar, 09:21, badzio bad...@gmail.com wrote: Another question - how can I switch off wifi? Of course I mean from source code :) On 18 Mar, 21:39, spachner stefanpach...@googlemail.com wrote: Hi, when Wifi is on, GSM (which means UMTS or what mobil network you are using) is off and vice versa. If GPRS or other transmission types are used is not determined by the protocol (HTTP or whatever) you use. Bluetooth is never used by by HTTP since there is no IP used below. regards Stefan On 18 Mrz., 14:10, badzio bad...@gmail.com wrote: Hi, in my application I need sometimes send data via http (using HttpClient, HttpGet and HttpPost). Can I choose (from source code) connection which is used? For example, I'd like to use only gprs, not wifi, not bluetooth. Or only wifi, not gprs. Thanks for replies :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Functional retrieval of strings?
Resources has getIdentifier() for this. However, this is significantly less efficient than just using the R static data member. Use it if you have to (and cache the lookups), but avoid compile errors doesn't strike me as a great reason to do so. Thank you. As I described in more detail in my previous reply, I want to utilize this method of resolving certain identifiers during development. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Add calendar item through Intent?
There's no documented way. You will find some folks have found undocumented ways (for example, http://jimblackler.net/blog/?p=151 - read the comments too). In my own experimentation, I managed to make the Calendar app on the device completely non-functional, so I became disillusioned with the undocumented approach. Richard On Mar 19, 9:00 am, Sven Jacobs sven.jac...@web.de wrote: Hi all, I'm developing an app that displays a list of events and would like to know if there's any standard way to add an item to the (Google) calendar, preferably by sending an Intent? I'm developing for Android 1.5. Thanks for any hint! Regards, Sven -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] How to build the system AP in EClipse?
How to build the system AP in EClipse? For example, I want to trace Camera AP. I tried to import the Camera folder to make a new project and build it, but I failed. Anyone can teach me to setup it and build it? THanks a lot. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Are primitive types garbage collected in Android?
As a rule of thumb: everything you have to use the new operator for to get a hold of it is going to get garbage collected at some point. Note that this is also true for primitive arrays like int[], float[] etc. Local primitive type variables within methods don't need to get garbage collected. On 19 Mrz., 02:58, snctln catlin.s...@gmail.com wrote: I know this may be a dumb question, but my background is more in c++ and managing my own memory. I am currently cutting down every single allocation that I can from one of my games to try and reduce the frequency of garbage collection and perceived lag, so for every variable that I create that is an Object (String for example) I am making sure that I create it before hand in my constructor and not create temporary variables in simple 10 line functions... (I hope that makes sense) Anyways I was working though it some more tonight and I realized that I a may be completely wrong about my assumption on garbage collection and primitive types (int, boolean, float) are these primitive type variables that I create in a 10 line function that gets called 20 times a second adding to my problem of garbage collection? Thank you for any responses. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: how to get the total size of sdcard?
Something like this should work: StatFs stat = new StatFs(Environment.getExternalStorageDirectory().getPath()); long bytesAvailable = (long)stat.getBlockSize() * (long)stat.getBlockCount(); long megAvailable = bytesAvailable / 1048576; the cast to long is necessary for cards larger than 4Gig. On Mar 19, 8:36 am, mmkr manutd...@gmail.com wrote: Hi all, In my application i want to display all the properties of the sdcard like sizeof sdcard, used space in sdcard , free space etc.. I'm able to get the used space of sdcard, but unable to get the total size of sdcard ( size given at the creation time of AVD ). How can i do that? Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Stop an Activity (Urgent)
Use finish() function of class Activity. On Mar 19, 12:29 pm, Chirayu Dalwadi chirayu.dalw...@gmail.com wrote: Hello Community, My application contains three-four pages. On click of button in first page, I start a new activity which redirects to another page and second page redirects to third page and so on. Now I want to include one button which On click will redirect to first page by stopping all activities. So how to achieve that? -- Warm Regards, Chirayu Dalwadi -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Button in ListView
Hi! Thanks for the help! I have now implemented it the way you suggested, but the onSingleTapUp is not firing. This is what i have done: // defined my own gesture detector: class MyGestureDetector extends SimpleOnGestureListener { @Override public boolean onSingleTapUp(MotionEvent e) { Log.d(Config.LOG_TAG, TABTAB); return super.onSingleTapUp(e); } } // created the gesture listener: GestureDetector gestureDetector = new GestureDetector(new MyGestureDetector()); View.OnTouchListener gestureListener = new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { boolean b = gestureDetector.onTouchEvent(event); Log.d(Config.LOG_TAG, PLAY: + b); return b; } }; // add the gesture listener to my button: ToggleButton playBtn = (ToggleButton)v.findViewById(R.id.btn_list_play); playBtn.setClickable(false); playBtn.setOnTouchListener(gestureListener); The onTouch() in gestureListener is fired. The call to gestureDetector.onTouchEvent() always returns false. The onSingleTapUp() in MyGestureDetector is never fired. If i implement a onDown() in MyGestureDetector it IS fired. Can anyone explain me why? Thanks, Anton On Mar 15, 10:03 am, NapoleonLiu liuwa...@neusoft.com wrote: Hi I have the same problem , at last i do it like this I write two GestureListener, implement onSingleTapUp method. set both the button and other view's clickable to false and set them OnTouchListener(NOT onClickListener) with GestureListener. if you haven't used GestureListener, you can learn it from ApiDemos. On Mon, 15 Mar 2010 16:26:32 +0800,AntonPirker an...@ignaz.at wrote: Hello List! I have a problem that some other people on this list (and other android sites) also have/had, but was unable to find a solution. I have a ListView with a custom view for the row which looks like this: RelativeLayout ToggleButton/ TextView/ /RelativeLayout Its basically a list of songs that i show. What i want to achieve: If the user clicks on the ToggleButton the song should be played. If the user clicks somewhere else on the row, the details intent of the song should be launched. So I want to have two events on every row, event1: the button click, event2: click somewhere except on the button. Right now i have a custom adapter where i call .setOnClickListener() on the button. Now the button works (event1 works), the song is played, but the rest of the row is not clickable (event2 does not work). If i remove the call to setOnClickListener() the row is clickable (event1 works) and the details are displayed as suppossed, but the button is not working. (event1 does not work) There are apps out there, that have buttons in lists so this must be possible. Could someone please tell me how to have more than one click event on a lists row? I have found a solution that reads: You have to use TouchDelegate But i do not have a clue how! If someone knows how a solution with TouchDelegate looks like, please explain it to me! Thanks, Anton --- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] hi
On Thu, Mar 18, 2010 at 1:21 PM, akshu aksharanadaha...@gmail.com wrote: i don't know about pc. Have you tried turning it off and on again? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Unable to set the maps program working
Hello, I tried a lot, read most of the tutorials on the web but still unable to run the program. The moment i run, it its says, the process stopped and closes. Please let me knwo what is wrong...the code is as below main.xml ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:layout_width=fill_parent android:layout_height=fill_parent android:apiKey=have used the key what i obtained from the md5 generator on google page / /RelativeLayout manifest.xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.gmaps android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.GMaps android:label=@string/app_name uses-library android:name=com.google.android.maps / intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.INTERNET/uses- permission /manifest GMaps.java package com.gmaps; import com.google.android.maps.MapActivity; import android.app.Activity; import android.os.Bundle; import android.widget.Toast; public class GMaps extends MapActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toast.makeText(getBaseContext(),1, Toast.LENGTH_SHORT).show(); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } The environment path variable has both jdk and android sdk path same with the classpath. I dont know where I am going wrong. Could some one please correct me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Overlay in Views. Please suggest
You need to use FrameLayout and than you can overlap the VideoView on top of SurfaceView On Mar 19, 1:46 am, Latha Shivanna latha...@gmail.com wrote: Hii All I need your help/suggestion on this issue. In my application, i have a surfaceView and a videoView which are occupying the full screen. SurfaceView is on the top and thus VideoView is hidden below. But i need to see both SurfaceView and VideoView together. How do i achieve this? I tried giving surfaceholder.setFormat(PixelFormat.RGBA_); and tried even this: surfaceholder_push.setFormat(PixelFormat.TRANSLUCENT); But nothing seem to bring my VIdeoView on my SurfaceView :( Can anyone please suggest something. I would appreciate your help. thanks in advance, Latha -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Big difficult to develop in Android :( (I'm italian)
It would help if you asked about a specific first step.. On Mar 18, 2:23 pm, massimo maxloveg...@gmail.com wrote: Hi, I'm italian boy. I see that I have big big difficult to start to develop with android. I know Java and I have all the Eclipes and Android SDK installed. But for me undestand this SDK is very impossible. Online the Google Docs about SDK is too less complete and I see that is difficult to make something of realistic like a little videogame. I have difficult too to put an image inside. How I can do? Someone could help me to start? For example by MSN? Pls I need help because I would like make a little videogame. Thank you -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to use scroller in an application?
Does anyone have solution on scroller? pls help On Thu, Mar 18, 2010 at 8:03 PM, satish bhoyar getsatonl...@gmail.comwrote: Hello all, How to use Scroller in an application? do anyone have any reference? please help . Thanks, satish -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Big difficult to develop in Android :( (I'm italian)
I agree with Fred, explain what problems you are having. Don't just say something vague like I'm finding it difficult, we need to know exactly what things you are finding difficult to help you. The SDK docs are actually very comprehensive, but you need to use the tutorials to learn Android. Check out the on-line tutorials: http://developer.android.com/intl/de/guide/tutorials/hello-world.html. Or alternatively buy a book on Android development, there are a lot of good ones available these days. On Thu, Mar 18, 2010 at 7:23 PM, massimo maxloveg...@gmail.com wrote: Hi, I'm italian boy. I see that I have big big difficult to start to develop with android. I know Java and I have all the Eclipes and Android SDK installed. But for me undestand this SDK is very impossible. Online the Google Docs about SDK is too less complete and I see that is difficult to make something of realistic like a little videogame. I have difficult too to put an image inside. How I can do? Someone could help me to start? For example by MSN? Pls I need help because I would like make a little videogame. Thank you -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Google Analytics for Android: Dispatcher thinks it finished, but there were 65 failed events
There is also a discussion going on here: http://stackoverflow.com/questions/1607822/android-what-does-this-google-analytics-dispatcher-warning-mean Unfortunately with no solution so far. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Optimize ScrollView
Hi, I have a big scroll view with lot of child views. Is there any way I could optimize it similar to a ListAdapter getView()? Thank you, AJ -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Can't connect to SPP device
I guess this is kind of tricky. The device i'm trying to connect is a GP-GC021 made by Sure electronics, the documentation is really weak. In the documentation, it's a slave device. So that would mean it acts has a server listening for connection, and my android would be the client ... ? I can't use connect() without having a socket initialized, and using the listenRfcomm is for server apps, and mine is a client, so creatRfcomm is the right method to call...no? On Mar 18, 2:57 pm, moneytoo m...@seznam.cz wrote: createRfcommSocketToServiceRecord() is used for creating server socket, you can only call connect() on client socket. What mode does the device use you are trying to connect to? Please be aware that these unofficial API for 1.x doesn't work in server mode. On Mar 18, 5:00 pm, Gui gui.ouel...@gmail.com wrote: Hi, I currently run android 1.5 on a HTC magic. I'm trying to communicate from my phone to a bluetooth device that supports SPP. I can't seem to be able to connect to the device. I have tryed two ways to connect: 1- via the official 2.0 API using the backport-android to make it work on android 1.5 2- via the unofficial bluetooth api 0.3 Both method give me an error around the same connection process. With API 2.0, I can discover devices and pair with them. Then i create a socket which seems to work, but when I use the .connect() method, I get this error in CatLog: IOException Unable to start Service Discovery. This is related to doSdp() in public class BluetoothSocket. Searching the web, it seems this error is related to a wrong UUID ... but I am using the SPP UUID properly. So, I thought the problem could be backport android, so I tried with the unofficial API from Gerdavax (http://code.google.com/p/android-bluetooth/ ) To connect to a device with this API you first create a socket, then you connect using the .openSocket( port number) method. The weird thing is, if I try with a new port, it connects, if I try a second time, it wont work, unless I change the port. I get a similar related error of SDP. Here is my code for API 2.0, but im pretty sure its ok. public class RegulVoile extends Activity { private BluetoothAdapter adapteurGen= null; private BluetoothDevice moduleDistant = null; public String adressTrouver = null; private BluetoothSocket socketBt = null; private static final UUID MON_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //final TextView modeText= (TextView)this.findViewById(R.id.txt_state); //final TextView infoText= (TextView)this.findViewById(R.id.txt_name); Button connectionBt = (Button)this.findViewById(R.id.btn_connexion); adapteurGen = BluetoothAdapter.getDefaultAdapter(); connectionBt.setOnClickListener(new OnClickListener(){ public void onClick(View v){ //make SURE there is not a discovery going on. adapteurGen.cancelDiscovery(); moduleDistant = adapteurGen.getRemoteDevice(00:1D: 43:00:D1:0D); try{ socketBt = moduleDistant.createRfcommSocketToServiceRecord(MON_UUID); } catch (IOException e) { } //try the connect try { socketBt.connect(); } catch (IOException e) { try { e.printStackTrace(); socketBt.close(); } catch (IOException e2) { } } } }); } @Override protected void onStop() { try { socketBt.close(); } catch (IOException e1) { e1.printStackTrace(); } super.onStop(); } @Override protected void onDestroy() { try { socketBt.close(); } catch (IOException e1) { e1.printStackTrace(); } super.onDestroy(); } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] Re: Java OpenGL ES 2.0 bindings project
Hi, i just updated the library. I forgot to add support for VBOs für vertices and indices by introducting proper glVertexAttribPointer and glDrawElements variantes that take an int instead of direct Buffers. All is fixed now. You can download the latest library from http://gl2-android.googlecode.com/files/androidgl2-0.2.zip, the source is located at http://code.google.com/p/gl2-android/source/checkout. Check out the example code that shows you how to decide wheter OpenGL ES 2.0 is supported, how to setup a GLSurfaceView20 and how to create shaders and VBOs for vertex and index data at http://code.google.com/p/gl2-android/source/browse/trunk/src/com/badlogic/gdx/GL2Test.java. Have fun. On 13 Mrz., 17:48, MichaelEGR foun...@egrsoftware.com wrote: On Mar 13, 7:50 am, Mario Zechner badlogicga...@gmail.com wrote: Cool. Thanks for the flowers. The thing is apache 2 licensed so you are free to do with it whatever you want. It's not rocket science after all :). I'm not such a big fan of lwjgl but the more libraries there are out there forandroidthe better. Perhaps add the license to the source code as I missed it. What you came up with may not be rocket science per se, but it was just one more thing tacked onto a long list I'm trying to work through, so it's excellent to see this get cleared away to enough satisfaction that work can continue into 2.x land with no delay. And do send on that Paypal email if you'd like; your effort saved me more than $50 of my time! :) The uncertainty factor for 2.x support with all the other anxiety/ stress in getting the project I'm working on out adds up. I'm pretty impartial regardingbindingsas I support JOGL, LWJGL, andAndroidOpenGLES with Typhon (the middleware I'm releasing for desktop Android), but I do like the history and community in general surrounding LWJGL and that perhaps has something to do with being a part of JGO (www.javagaming.org) for quite some time. Having a separate community driven binding is always a good thing and keeps the big corps on their toes at least a little. On 13 Mrz., 16:19, MichaelEGR foun...@egrsoftware.com wrote: Figured I'd repost in this thread and include the variable time kill frag test... Awesome! Got it up and running here. You are myAndroiddev hero for the month if not longer! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Application taking over Phone app call
Brion, Thank you very much for the reply, in general terms it helps a lot (now I know it is feasible). From within the app in development there is a need to initiate the phone call. If I understand it clearly what you said is that once the app gets the proper permissions declaration the Phone.apk will get the number passed and place the phone call? On Mar 18, 3:17 pm, Brion Emde brione2...@gmail.com wrote: You can set up the dialer so it is ready to make a call when the user hits the Send key. That does not take any extra permission. You can also initiate a phone call via the Dialer, but you have to declare a permission to do that. On Mar 17, 4:38 pm, Fabio lfr...@gmail.com wrote: Hello all, I have a task at sight but need some expert help: is it possible to place a phone call within an Activity without bringing up the native Phone app? I need to place a call from the app I am developing, so what I would like to do is to pass a phone number through an Activity that may or may not bring the Phone app up to screen. Any ideas? Thanks in advance Fabio -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Application taking over Phone app call
Fabio wrote: Brion, Thank you very much for the reply, in general terms it helps a lot (now I know it is feasible). From within the app in development there is a need to initiate the phone call. If I understand it clearly what you said is that once the app gets the proper permissions declaration the Phone.apk will get the number passed and place the phone call? If you hold the CALL_PHONE permission and you call startActivity() on an ACTION_CALL Intent with a tel:... Uri, Android will place the phone call. There may be limits in terms of calling emergency numbers this way (9-1-1 here in the US). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid
Matt (preinvent) wrote: Still no nearer getting this fixed... I rooted my Droid and can see that the /data/data/myapp/lib directory was created some time ago - that implies to me that the main app directory has not been deleted since it was installed some time ago, therefore it's unlikely that android is simply automatically uninstalling/reinstalling the app (assuming that the entire data dir is removed when this happens). Yes, the dir should be removed when you do an uninstall. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] removing all items of a listview
Hi All, How to remove all Items in a ListView in android. I want to remove all items in list view and populate with new items dynamically from a background thread. Please tell,,this is very urgent. Thanks Kavitha -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to use scroller in an application?
This largely depends on what you want to do with the spinner. The example below will let the user select from 4 pre-defined values (you'll have to put this into your own class; YourClass): The obvious disclaimers apply, but it should work (toast the value you have spun to). public String[] spPos = { ONE, TWO, THREE, FOUR }; sp_pos = (Spinner) findViewById(R.id.spinner_name_in_main_xml); ArrayAdapterString aspnPos = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, spPos); aspnPos.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); sp_pos.setAdapter(aspnPos); sp_pos.setSelection(1); // make default spinner value show ONE sp_pos.setOnItemSelectedListener(new OnItemSelectedListener() { public void onNothingSelected(AdapterView? parent) { // do nothing } public void onItemSelected(AdapterView? parent, View v, int position, long id) { int pos = sp_pos.getSelectedItemPosition(); String str = spPos[pos]; Toast.makeText(YourClass.this, You have selected: + str,Toast.LENGTH_LONG).show(); } }); On Mar 19, 12:22 pm, satish bhoyar getsatonl...@gmail.com wrote: Does anyone have solution on scroller? pls help On Thu, Mar 18, 2010 at 8:03 PM, satish bhoyar getsatonl...@gmail.comwrote: Hello all, How to use Scroller in an application? do anyone have any reference? please help . Thanks, satish -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] removing all items of a listview
kavitha wrote: Hi All, How to remove all Items in a ListView in android. I want to remove all items in list view and populate with new items dynamically from a background thread. Please tell,,this is very urgent. Replace the adapter used by the ListView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: How to use scroller in an application?
dude thanks for the help man ... but i was looking for scroller... any ref will also do which tells hw to use it.. thannks, satish On Fri, Mar 19, 2010 at 6:19 PM, Tor tor.hough...@gmail.com wrote: This largely depends on what you want to do with the spinner. The example below will let the user select from 4 pre-defined values (you'll have to put this into your own class; YourClass): The obvious disclaimers apply, but it should work (toast the value you have spun to). public String[] spPos = { ONE, TWO, THREE, FOUR }; sp_pos = (Spinner) findViewById(R.id.spinner_name_in_main_xml); ArrayAdapterString aspnPos = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, spPos); aspnPos.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); sp_pos.setAdapter(aspnPos); sp_pos.setSelection(1); // make default spinner value show ONE sp_pos.setOnItemSelectedListener(new OnItemSelectedListener() { public void onNothingSelected(AdapterView? parent) { // do nothing } public void onItemSelected(AdapterView? parent, View v, int position, long id) { int pos = sp_pos.getSelectedItemPosition(); String str = spPos[pos]; Toast.makeText(YourClass.this, You have selected: + str,Toast.LENGTH_LONG).show(); } }); On Mar 19, 12:22 pm, satish bhoyar getsatonl...@gmail.com wrote: Does anyone have solution on scroller? pls help On Thu, Mar 18, 2010 at 8:03 PM, satish bhoyar getsatonl...@gmail.com wrote: Hello all, How to use Scroller in an application? do anyone have any reference? please help . Thanks, satish -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Inserting WIdgets in Custom View
Hi, I created a custom view extending android.view.View class. Now in this class can I add a widget like button or imageView. Any idea about this. Nithin -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Inserting WIdgets in Custom View
On Mar 19, 12:22 pm, Nithin nithin.war...@gmail.com wrote: Hi, I created a custom view extending android.view.View class. Now in this class can I add a widget like button or imageView. Any idea about this. Nithin you cannot do this extending View class. you have to extend ViewGroup instead. pskink -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: onFling
Oops!! I still have the problem. Any thoughts anyone? Thank you, AJ On Mar 19, 11:54 am, Ajay aja...@gmail.com wrote: Finally I found a way to synchronize the scrolls. I was using a gesture listener to listen for scrolls/flings which did not give me accurate results. Now I simply pass the onTouch events from one view to the other view. This makes both the views to scroll perfectly in sync. On Mar 18, 5:26 pm, Ajay aja...@gmail.com wrote: Hi, I am having two horizontal scroll views in my app. If I do a scroll/ fling in one view, I have to scroll/fling the other view. It does work, but it has a minor mismatch sometimes in the amount of scroll. I suspect this might be because theonFlinglistener callback has a float velocity, whereas the call method fling() takes an integer parameter. Any idea why is this mismatch? Thank you, AJ -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: onFling
have u tried passing onfling and onscroll events also. that might solve some of ur problems. On Fri, Mar 19, 2010 at 8:40 AM, Ajay aja...@gmail.com wrote: Oops!! I still have the problem. Any thoughts anyone? Thank you, AJ On Mar 19, 11:54 am, Ajay aja...@gmail.com wrote: Finally I found a way to synchronize the scrolls. I was using a gesture listener to listen for scrolls/flings which did not give me accurate results. Now I simply pass the onTouch events from one view to the other view. This makes both the views to scroll perfectly in sync. On Mar 18, 5:26 pm, Ajay aja...@gmail.com wrote: Hi, I am having two horizontal scroll views in my app. If I do a scroll/ fling in one view, I have to scroll/fling the other view. It does work, but it has a minor mismatch sometimes in the amount of scroll. I suspect this might be because theonFlinglistener callback has a float velocity, whereas the call method fling() takes an integer parameter. Any idea why is this mismatch? Thank you, AJ -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Stop an Activity (Urgent)
1 - Why is this so (Urgent)? On Fri, Mar 19, 2010 at 2:29 AM, Chirayu Dalwadi chirayu.dalw...@gmail.comwrote: Now I want to include one button which On click will redirect to first page by stopping all activities. So how to achieve that? 2 - One idea - start each page with startActivityForResult(). When you click the button set a variable in the results that indicate the button was pressed and they all should cancel and then just have each activity finish() itself when it gets the flag in the result and pass it along backwards down the chain. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] How to start Activity from Service (if not already started)?
I've successfully implemented a BootReceiver, AlarmManager, and Service per the code here: http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm Inside the doWakefulWork method of the Service I am instantiating a few classes, but some of them require my Activity to be running. How do I actually start the Activity? The code above only starts the AlarmManager and Service. There are also times where the Activity *is* already started, like if the user manually opened it. So I also need to start the Activity only if it's not already running. Hows that work? And what about the situation where the user first installs your application and may not even reboot their phone for a week. In that case, do you have to start the Service from the Activity? But then the Service will die with the Activity. Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Functional retrieval of strings?
On Fri, Mar 19, 2010 at 3:53 AM, HippoMan hippo.mail...@gmail.com wrote: I want to change the behavior of my app by means of the presense or absence of some items in strings.xml. This allows me to control this behavior by simply adding or deleting the items, and then clicking the Save icon in Eclipse (which automatically rebuilds). This allows me to quickly test certain features during development. Interesting. Personally, I would just use static constants ... but that's just me. Good luck. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] How to start Activity from Service (if not already started)?
AuxOne wrote: I've successfully implemented a BootReceiver, AlarmManager, and Service per the code here: http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm Inside the doWakefulWork method of the Service I am instantiating a few classes, but some of them require my Activity to be running. On the whole, that's not a good idea. Popping up an Activity in the middle of whatever the user is doing will not be popular. There are certain circumstances where this is appropriate -- incoming VOIP calls, etc. -- but should not be done in general. Users will attack you with sharp pointy things. How do I actually start the Activity? The code above only starts the AlarmManager and Service. startActivity() from some Context (e.g., the Service). And what about the situation where the user first installs your application and may not even reboot their phone for a week. In that case, do you have to start the Service from the Activity? Probably not. You probably schedule your alarm from the Activity. So, on first run, you set up your alarm when the user fires off the Activity for the first time. After that, you let the BOOT_COMPLETED receiver handle scheduling the alarms. The hole in this plan is dealing with task killers, since they wipe out alarms along with shutting down any bits that were in memory. I don't have a good solution for that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to load a Typeface from an Inputstream
Sorry to revive this thread. But i was just fooling around with a 1.5 project where i wanted to load a Typeface from a file given as a filename. Am i correct that this is not possible in 1.5? That is kinda unfortunate :/ On 16 Mrz., 00:53, Dianne Hackborn hack...@android.com wrote: Sorry I don't believe so -- the FreeType library is native code that needs a real fd to deal with. On Mon, Mar 15, 2010 at 4:42 PM, Mario Zechner badlogicga...@gmail.comwrote: The class Typeface has a couple of static factory methods which take different inputs. However, Inputstreams are not among themn (there is a way to load a file though). Is there a way around this apart from copying the font to a temporary file? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Accessing External Database
Hey Bob,, Tell me one thing...instead of using Webservices,it is easy if we r using Drivers.. If we know which type of database they r using on server side,then we can access that database using related driver...so that the headache willl be reduced am i right??? what is the difference of using driver in place of Webservices On Mar 19, 1:16 am, Bob Kerns r...@acm.org wrote: On Mar 18, 2:37 am, uday kiran uday.pic...@gmail.com wrote: - So for communicatingdatabase(On remote server) from our application - it is compulsory to write a driver like odbc??? No, ODBC (or JDBC) is at the wrong level. You do not want to be doing SQL over the network. Instead, you want to create a web server that does the SQL -- and you just ask it questions (via HTTP GET) or give it commands (PUT, POST, DELETE). If you already know Java well, a Java Servlet would be the easiest way to go -- running in a servlet engine line Tomcat. Tools like Ruby on Rails are supposed to make this even easier, but will involve learning a new language. You're going to have to go and do some studying, and look at a number of examples. I'm not going to look for a pointer to an example for you, because if you do it yourself, you can chose ones that more closely relate to what you're trying to do, or better fit your style of learning. But you can start on the server side by writing a unit test that simply takes a URL, interprets the parameters, and does the corresponding SQL query, and returns the result as either XML or JSON. Once you have that, it's a simple matter to embed that in the appropriate bit of code for your web server technology (e.g. a Servlet, in the case of Java). The client side just requests the data from that URL and reads it. Once you get that far for one kind of data, and the GET operation, the next steps will be both easier and more clear to you. Part of your problem right now is you're trying to deal with the entire question at once. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Inserting WIdgets in Custom View
ok skink.. Thanks.. Nithin On Mar 19, 6:37 pm, skink psk...@gmail.com wrote: On Mar 19, 12:22 pm, Nithin nithin.war...@gmail.com wrote: Hi, I created a custom view extending android.view.View class. Now in this class can I add a widget like button or imageView. Any idea about this. Nithin you cannot do this extending View class. you have to extend ViewGroup instead. pskink -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to start Activity from Service (if not already started)?
On the whole, that's not a good idea. Popping up an Activity in the middle of whatever the user is doing will not be popular. There are certain circumstances where this is appropriate -- incoming VOIP calls, etc. -- but should not be done in general. Users will attack you with sharp pointy things. The reason I need the Activity is because I'm making some queries to the Contact database and I need to the ContentResolver. Is there a better way? Can't it launch minimized? How do I actually start the Activity? The code above only starts the AlarmManager and Service. startActivity() from some Context (e.g., the Service). Do you mean the AppService class? I'm trying to do startActivity() from the doWakefulWork but there doesn't appear to be a Context. OnAlarmReceiver seems to have a context though. And what about the situation where the user first installs your application and may not even reboot their phone for a week. In that case, do you have to start the Service from the Activity? Probably not. You probably schedule your alarm from the Activity. So, on first run, you set up your alarm when the user fires off the Activity for the first time. After that, you let the BOOT_COMPLETED receiver handle scheduling the alarms. Your example code has the Alarm scheduled from the BootReceiver, how do I make the Activity schedule it? And what about issues were I'm trying to start an Activity that is already running, like the second time they launch the app. Thanks again -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: How to load a Typeface from an Inputstream
Mario Zechner wrote: Sorry to revive this thread. But i was just fooling around with a 1.5 project where i wanted to load a Typeface from a file given as a filename. Am i correct that this is not possible in 1.5? That is kinda unfortunate :/ Yes, I believe that was added in 1.6, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Online Training: 26-30 April 2010: http://onlc.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Deleting a View from its Parent
I tried your method, but it still does not work. GridView g = (GridView)findViewById(R.id.gridview1); g.removeAllViews(); It still gives the same exception, as 'removeAllViews() is unsupported' On Mar 18, 5:36 pm, social hub shubem...@gmail.com wrote: what is the parent for the view u r fetching. if its the parent (gridview) then I think will throw exception. I did removeviews before I had linearlayout android:id=@+id/layout imgview1 imgview2/linearlayout bascilly oncreate u get reference to lineralayout using LinearLayout l=findviewbyid(r.id.layout) then lets say onclick event of button u call l.removeviews(); this shud work. you can try working along these lines. in your case you have to check what is the parent before u try to remove. This is based on my understanding of your problem. I can be wrong . On Thu, Mar 18, 2010 at 2:59 PM, tilo1583 tilo1...@gmail.com wrote: Hi Everyone, I am very new to Android development, but I am not new to develoment of UIs. I am trying to run this piece of code. Basically, there is a GridView which contains a bunch of ImageViews. To each of these image views I have added this onTouchListener as given below. However, the removeView statement throws an exception - Unsupported operation. It is important for me to remove this view, because I need to attach it to another layout. Any help is really appreciated! this._pieceTouchListener = new OnTouchListener(){ public boolean onTouch(View v, MotionEvent event) { if(view != null) { switch(action) { case MotionEvent.ACTION_DOWN: try { ViewGroup vg = (ViewGroup)v.getParent(); //this line throws an exception vg.removeView(v); } catch (Exception exc) { exc.printStackTrace(); } .. } } } } -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: How to start Activity from Service (if not already started)?
AuxOne wrote: On the whole, that's not a good idea. Popping up an Activity in the middle of whatever the user is doing will not be popular. There are certain circumstances where this is appropriate -- incoming VOIP calls, etc. -- but should not be done in general. Users will attack you with sharp pointy things. The reason I need the Activity is because I'm making some queries to the Contact database and I need to the ContentResolver. Call getContentResolver() in your Service. Can't it launch minimized? There is no such concept in Android. Do you mean the AppService class? I'm trying to do startActivity() from the doWakefulWork but there doesn't appear to be a Context. The Service is a Context. Your example code has the Alarm scheduled from the BootReceiver, how do I make the Activity schedule it? Put the alarm-scheduling code in a static method somewhere, and call it from both places. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Online Training: 26-30 April 2010: http://onlc.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] In Map displaying a button inside InfoWindow
Hi, In Map, I am drawing a infoWindow(Round Rect) showing some data inside it. Can I insert a button inside the infoWindow Nithin -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Functional retrieval of strings?
If you want to 'dynamically' load these strings, you probably could use reflection. Some 'pseudo' code: public String somehowGetStringAnotherWay(Resources res, String stringName) { try { Field stringField = R.string.class.getField(stringName); int stringID = stringField.getInt(null); return res.getString(stringID); } catch (Exception e) { return null; } } However, doing this to 'avoid compilation errors' does not sound like a good idea... On Mar 18, 9:49 pm, HippoMan hippo.mail...@gmail.com wrote: I know that I can retrieve a string within an Activity as follows: this.getString(R.string.foobar) (assuming that I have previously defined a string named foobar). However. I'm wondering if there also might be an alternate way to retrieve this same string in a functional manner, without an explicit attribute reference. I'm talking about something like this: this.somehowGetStringAnotherWay(foobar) The reason I'd like this is so I can avoid compile errors if the string doesn't exist. This would allow me to do something like the following: String foobar = null; try { foobar = this.somehowGetStringAnotherWay(foobar);} catch (SomeSortOfException e) { Log.e(MyActivity, foobar string not found); } Is there any way I can do this? Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to start Activity from Service (if not already started)?
Sorry if I seem confused... Call getContentResolver() in your Service. I'm also doing things like .sendBroadcast() to refresh the photo gallery, .openFileInput() from the Activity. So doesn't that mean GetContentResolver() won't work for me? Your example code has the Alarm scheduled from the BootReceiver, how do I make the Activity schedule it? Put the alarm-scheduling code in a static method somewhere, and call it from both places. So I don't have to worry about the Activity being started from both places and any contention that may result? Like, what If the phone boots up and that starts the Alarm, but then the app is closed and manually restarted. Won't the previous alarm still be in memory? You rule! Thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()
Thank you justinh! This will help me identify the phone. If someone also knows the Camera.Paramter's parameter-name and parameter-values for controlling the flash on a Samsung Moment, that would be awesome! :) On Mar 18, 12:00 pm, justinh henderson.jus...@gmail.com wrote: This is what I have for it: BRAND: Samsung DEVICE: SPH-M900 MODEL: SPH-M900 VER: 3 PRODUCT: Samsung On Mar 18, 11:48 am, Streets Of Boston flyingdutc...@gmail.com wrote: Sorry for this bump... I have no idea where else to ask this question... On Mar 10, 7:53 am, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, But wouldn't there be a value/name pair that one can set in the Camera.Parameters instance, e.g. 'cameraParms.set(flash- mode,auto)' or something similar, much like you can set scene-modes on the G1 despite the fact that Android1.6 does not officially support scene-modes? On Mar 10, 1:28 am, Dianne Hackborn hack...@android.com wrote: FlashAPIs we defined in 2.0, so if this is a pre-2.0 device then there is a good chance this is a feature that is not visible to applications. On Tue, Mar 9, 2010 at 8:36 PM, Streets Of Boston flyingdutc...@gmail.comwrote: anyone... ? On Mar 8, 10:49 am, Streets Of Boston flyingdutc...@gmail.com wrote: Bump.. sorry... Anyone knows how to control theflashonSamsung(Moment)? I guess it's some set of name/value pairs to be set in the Camera.Parameters instance. The Camera.Parameters.get(flash-mode-values) seems to returns null and therefore my app can't query the phone's flahs capabilities. On Mar 6, 11:26 pm, Streets Of Boston flyingdutc...@gmail.com wrote: TheSamsungMoment moment has aflashonboard that can be used for taking pics. But, from customers i learned that theSamsungMoment does not return anything when parameters.getSupportedFlashModes() is called. If this is a bug, what is are the android.os.Build.MODEL, android.os.Build.DEVICE and android.os.Build.BRAND of this phone and the accepted values for 'parameters.setFlashMode(flashModeParamValue)'? Thank you!- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] motorola droid is not recognizable
Hi, Platform: Ubutnu adb is not able to recognize the motorola droid. I've created rule files 51-android.rules as follows: UBSYSTEM==usb, ATTRS{idVendor}==22b8, SYMLINK+=android_adb, MODE=0666, OWNER=android but no use. Rebooted both phone and PC. Enabled application debugging option But one thing I'm unable to sign-in to Google account using Data connection. Will it effect ADB functionality -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] We are engineer
Hi all Which company use developer android platform MID/Smartphone, If you need,may be we can help you for the developement the BSP layer ,applicaiton and dirver or Intergration the Modem moudle. Many thanks! Ziki su -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()
Hi all Which company use developer android platform MID/Smartphone, If you need,may be we can help you for the developement the BSP layer ,applicaiton and dirver or Intergration the Modem moudle. Many thanks! Ziki su 2010/3/19 Streets Of Boston flyingdutc...@gmail.com Thank you justinh! This will help me identify the phone. If someone also knows the Camera.Paramter's parameter-name and parameter-values for controlling the flash on a Samsung Moment, that would be awesome! :) On Mar 18, 12:00 pm, justinh henderson.jus...@gmail.com wrote: This is what I have for it: BRAND: Samsung DEVICE: SPH-M900 MODEL: SPH-M900 VER: 3 PRODUCT: Samsung On Mar 18, 11:48 am, Streets Of Boston flyingdutc...@gmail.com wrote: Sorry for this bump... I have no idea where else to ask this question... On Mar 10, 7:53 am, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, But wouldn't there be a value/name pair that one can set in the Camera.Parameters instance, e.g. 'cameraParms.set(flash- mode,auto)' or something similar, much like you can set scene-modes on the G1 despite the fact that Android1.6 does not officially support scene-modes? On Mar 10, 1:28 am, Dianne Hackborn hack...@android.com wrote: FlashAPIs we defined in 2.0, so if this is a pre-2.0 device then there is a good chance this is a feature that is not visible to applications. On Tue, Mar 9, 2010 at 8:36 PM, Streets Of Boston flyingdutc...@gmail.comwrote: anyone... ? On Mar 8, 10:49 am, Streets Of Boston flyingdutc...@gmail.com wrote: Bump.. sorry... Anyone knows how to control theflashonSamsung(Moment)? I guess it's some set of name/value pairs to be set in the Camera.Parameters instance. The Camera.Parameters.get(flash-mode-values) seems to returns null and therefore my app can't query the phone's flahs capabilities. On Mar 6, 11:26 pm, Streets Of Boston flyingdutc...@gmail.com wrote: TheSamsungMoment moment has aflashonboard that can be used for taking pics. But, from customers i learned that theSamsungMoment does not return anything when parameters.getSupportedFlashModes() is called. If this is a bug, what is are the android.os.Build.MODEL, android.os.Build.DEVICE and android.os.Build.BRAND of this phone and the accepted values for 'parameters.setFlashMode(flashModeParamValue)'? Thank you!- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: How to start Activity from Service (if not already started)?
AuxOne wrote: Like, what If the phone boots up and that starts the Alarm, but then the app is closed and manually restarted. Won't the previous alarm still be in memory? No, outstanding alarms are flushed on a reboot. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Trouble with the SDK
Hello Xavier, I'd like to make it short, it just worked. thank you very much! The Error when I tried to download it was; Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings Thanks again; Source On 18 Mrz., 22:44, Xavier Ducrohet x...@android.com wrote: Adding a new site replacing https by http will not work to download platform (it's not meant for this, we're making the UI clearer). If you really cannot download over https using r5 (there was a bug in r4 and before but we fixed it), go to the settings page (in the standalone version of the SDK Updater), and check Force https sources to be fetch using http What's the error when you try to download with https btw? Xav On Thu, Mar 18, 2010 at 11:09 AM, Source thaberth...@gmail.com wrote: Hey, after having some developement skills in Java, I thought I'd try to make my own apps for the Android Plattform. But I haven't even installed the whole SDK yet and I've got already my first Problems... I downloaded the SDK r05 Starterpack and tried to install it, no Problems with the eclipse-Activation... But when I tried to download the plattforms with the Android SDK and AVD Manager, I just failed... After replacing the httpS:// with an http://(cause the safe way didn't work) I saw 6 things at the Avilable Packages Screen, but I only could install 2 of them; The Android SDK Tool r5 and the USB Driver Package r3. I saw the APIs too, but I wasn't able to install one of them, my problem is that it shows me; This Package depends on 'missing SDK Plattform Android API X. X = The Number of the API(3;4;6;7) So, here's the big question, what did I do wrong? Or where can I download the Plattforms? Greetings and Thank You for your Help; Source -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Stop an Activity (Urgent)
Thanks Karan And TreKing And it was urgent because i need to complete that task asap -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Application taking over Phone app call
All of the intents you can send to various Android activities are described in this document: http://developer.android.com/guide/appendix/g-app-intents.html On Mar 19, 5:36 am, Fabio lfr...@gmail.com wrote: Brion, Thank you very much for the reply, in general terms it helps a lot (now I know it is feasible). From within the app in development there is a need to initiate the phone call. If I understand it clearly what you said is that once the app gets the proper permissions declaration the Phone.apk will get the number passed and place the phone call? On Mar 18, 3:17 pm, Brion Emde brione2...@gmail.com wrote: You can set up the dialer so it is ready to make a call when the user hits the Send key. That does not take any extra permission. You can also initiate a phone call via the Dialer, but you have to declare a permission to do that. On Mar 17, 4:38 pm, Fabio lfr...@gmail.com wrote: Hello all, I have a task at sight but need some expert help: is it possible to place a phone call within an Activity without bringing up the native Phone app? I need to place a call from the app I am developing, so what I would like to do is to pass a phone number through an Activity that may or may not bring the Phone app up to screen. Any ideas? Thanks in advance Fabio -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Can't dynamically update ListAdapter for ListView
Hello, friends! I have a problem with adding new items to ListView. I use custom adapter MyListAdapter. I do that way: public class MyView extends ListActivity{ private ArrayListOrder m_orders = null; privateMyListAdapter m_adapter; private Runnable viewOrders; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); m_orders = new ArrayListOrder(); this.m_adapter = new OrderAdapter(this, R.layout.row, m_orders); setListAdapter(this.m_adapter); viewOrders = new Runnable(){ @Override public void run() { getOrders(); } }; Thread thread = new Thread(null, viewOrders, MagentoBackground); thread.start(); m_ProgressDialog = ProgressDialog.show(MyView.this, Please wait..., Retrieving data ..., true); } private Runnable returnRes = new Runnable() { @Override public void run() { if(m_orders != null m_orders.size() 0){ m_adapter.notifyDataSetChanged(); for(int i=0;im_orders.size();i++) m_adapter.add(m_orders.get(i)); } m_adapter.notifyDataSetChanged(); } }; private void getOrders(){ try{ m_orders.addAll(/*some order collection*/) runOnUiThread(returnRes); } private class OrderAdapter extends ArrayAdapterOrder { //code about how to get view } } But when I add items to my adapter: for(int i=0;im_orders.size();i++) m_adapter.add(m_orders.get(i)); the application hangs because of m_orders increase there size, everytime where new item adds to adapter. Friends, do you have any ideas how to implement dynamically adding items to custom ListAdapter? Do you see any errors in my code? Thank you very much :))) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Accessing External Database
No, you get a different set of headaches. Drivers (e.g. JDBC drivers) are not intended for this sort of application. You will have reliability problems, security problems, performance problems, problems upgrading your server once you have clients talking to it, because you can't upgrade all your clients at once, etc. You'll also have the problems getting the drivers to work on the Android platform, which lacks support for database drivers. I think it's probably possible to do, but since it's not a good thing to do, I don't know of anyone who has succeeded. I've seen a lot of messages from people who have tried and failed. Drivers are much too closely coupled to the database. A competent system administrator WILL NOT ALLOW YOU ACCESS to databases from outside their firewalls, for security reasons. You will normally would use database drivers when implementing the web server. Sqlite is an embedded server with its own API, but you could consider that a type of driver as well. But as I said earlier, a non-Sqlite database, such as MySQL, would be a far better choice for performance, scalability, and reliability reasons. Unfortunately, that means yet more stuff to learn. Fortunately, it's mostly fairly standard stuff, so you'll get to use what you learn later in your career -- but it's still something you'll need to learn up front. None of these things are that hard to learn, but it's a lot to learn all at once. Especially if you expected to do things one way, and are told you have to do them a different way. It'll be hard to switch your way of thinking. On Mar 19, 7:03 am, uday kiran uday.pic...@gmail.com wrote: Hey Bob,, Tell me one thing...instead of using Webservices,it is easy if we r using Drivers.. If we know which type of database they r using on server side,then we can access that database using related driver...so that the headache willl be reduced am i right??? what is the difference of using driver in place of Webservices On Mar 19, 1:16 am, Bob Kerns r...@acm.org wrote: On Mar 18, 2:37 am, uday kiran uday.pic...@gmail.com wrote: - So for communicatingdatabase(On remote server) from our application - it is compulsory to write a driver like odbc??? No, ODBC (or JDBC) is at the wrong level. You do not want to be doing SQL over the network. Instead, you want to create a web server that does the SQL -- and you just ask it questions (via HTTP GET) or give it commands (PUT, POST, DELETE). If you already know Java well, a Java Servlet would be the easiest way to go -- running in a servlet engine line Tomcat. Tools like Ruby on Rails are supposed to make this even easier, but will involve learning a new language. You're going to have to go and do some studying, and look at a number of examples. I'm not going to look for a pointer to an example for you, because if you do it yourself, you can chose ones that more closely relate to what you're trying to do, or better fit your style of learning. But you can start on the server side by writing a unit test that simply takes a URL, interprets the parameters, and does the corresponding SQL query, and returns the result as either XML or JSON. Once you have that, it's a simple matter to embed that in the appropriate bit of code for your web server technology (e.g. a Servlet, in the case of Java). The client side just requests the data from that URL and reads it. Once you get that far for one kind of data, and the GET operation, the next steps will be both easier and more clear to you. Part of your problem right now is you're trying to deal with the entire question at once. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to start Activity from Service (if not already started)?
Is there any advantages / disadvantages to having the Service start the AlarmManager, as opposed to the AlarmManager starting the Service? I though Services were more robust. On Mar 19, 10:50 am, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: Like, what If the phone boots up and that starts the Alarm, but then the app is closed and manually restarted. Won't the previous alarm still be in memory? No, outstanding alarms are flushed on a reboot. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Functional retrieval of strings?
For one thing, it allows you to alter the behavior depending on the device characteristics. It also is also easier to script such changes, via XSLT. And it's one way pulling these configurable pieces into a single location. Of course, a dedicated class accomplishes this. It doesn't sound like he's taking advantage of any of these, but it's worth noting the advantages anyway. I've also done it with an XML resource, for things a bit too complicated to describe with simple strings. On Mar 19, 6:52 am, TreKing treking...@gmail.com wrote: On Fri, Mar 19, 2010 at 3:53 AM, HippoMan hippo.mail...@gmail.com wrote: I want to change the behavior of my app by means of the presense or absence of some items in strings.xml. This allows me to control this behavior by simply adding or deleting the items, and then clicking the Save icon in Eclipse (which automatically rebuilds). This allows me to quickly test certain features during development. Interesting. Personally, I would just use static constants ... but that's just me. Good luck. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Functional retrieval of strings?
I'd suggest instead true/false as the string values. It simplifies your code and gives you the same result. On Mar 19, 1:53 am, HippoMan hippo.mail...@gmail.com wrote: Let me get this straight - you would rather have a runtime exception that you just catch and ignore than a compile time error that will quickly identify your problem and allow you to fix it on the spot? Why exactly would you prefer this? I want to change the behavior of my app by means of the presense or absence of some items in strings.xml. This allows me to control this behavior by simply adding or deleting the items, and then clicking the Save icon in Eclipse (which automatically rebuilds). This allows me to quickly test certain features during development. Java doesn't have an equivalent to the C preprocessor. In C, I sometimes put sections of code within #ifdef blocks and change the program's behavior during development by commenting out or uncommenting certain #define lines in a header file. I would do this early in my app's development process. Later, once I was more sure about the structure of my app, I'd dispense with this procedure. Yes, I know that there are other ways to achieve this same purpose. I was just wondering if I could make use of the method I outlined. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: recording volume indicator
Thanks it worked fine On Thu, Mar 18, 2010 at 10:13 PM, BobG bobgard...@aol.com wrote: I humbly suggest an 8 segment tower... assuming 8 bit audio, calc the avg level of 'a bunch' of samples (a frames worth? 30ms at 8 samps per ms is 240 samps for example), Set a bar in the level indicator for each bit that is set... 6 db per bit 1 or 2 or 3 db per segment would be more sensitive, but this tells you when you clip (top segment lit) or when you have 6 or 12 db headroom (top 1 or 2 segs unlit). -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Create Softkeyboard dynamically
Does really nobody know ? It would be kind if somebody could help me. Cause I'm stuck there and it would save me a lot of time, knowing that one of the ideas is working or not. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers
Anyone in the US get their phone yet? On Wed, Mar 17, 2010 at 7:40 PM, olivier.bo...@gmail.com olivier.bo...@gmail.com wrote: Hi, Has anyone received one and is not in the ADC2 top 200? I mean has anyone received one just because he has an application in the market matching the criteria? Everyone I see receiving the phone are people who were candidates for both ADC2 and Market seeding programs. On Mar 17, 10:50 pm, Thomas Riley tomrile...@googlemail.com wrote: Doesn't matter how you got it, both channels are part of the same device seeding program. Enjoy ;) On Mar 17, 8:56 pm, huberuto huberuto...@gmail.com wrote: I got it yesterday, but can't tell if this one is cause of ADC2 or top developers program. I'm from Poland. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: AlarmManager on droids
Hi Mark, I'm also using your WakefulIntentService sample. It works fine in emulator (all releases of Android). It seems to work fine on many devices (HTC Magic, Nexus One ...). However, I get Force Close complains from some users everytime the Alarm goes off. Some are under 1.5 and other are under 2.1. Did you experiment such issue ? I don't understand how it can generate a Force Close because I've used a try {} catch (Throwable) in the handleIntent method. Users are not able to tell me more about the issue. All they can say is that the phone displays Force Close dialog evertime the Alarm goes off. Using single Alarm (and set it after service run) instead of repeating Alarm seems to fix the issue for these users. Thanks for any help or advice. Derek. On Mar 13, 4:16 pm, Mark Murphy mmur...@commonsware.com wrote: mot12 wrote: No customer could give me a definitive guide to reproduce the problem. But doing the following should give you good chance to make it happen on your device: - turn on airplane mode to cancel much of the background activity - turn off any services, apps running in the background - let the device sit with the screen off for several hours (no alarms during this time) You do realize that this isn't possible. The operating system has services. Built-in Android apps have services. Besides, what's the point of a phone that is permanently in airplane mode? I don't have a problem with doing bits of research here and there, but this has spiraled into it's never going to affect enough people status. If you come up with probable steps to reproduce the issue that would suggest that the problem might affect a substantial number of users, drop me a line. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in NYC: 10-11 April 2010:http://guruloft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] webkit onGestureXXX
Is there any plans to support the onGestureXXX set of events like the iPhone's webkit has? Mike, curious -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: AlarmManager on droids
Derek wrote: I'm also using your WakefulIntentService sample. It works fine in emulator (all releases of Android). It seems to work fine on many devices (HTC Magic, Nexus One ...). However, I get Force Close complains from some users everytime the Alarm goes off. Some are under 1.5 and other are under 2.1. Did you experiment such issue ? I don't understand how it can generate a Force Close because I've used a try {} catch (Throwable) in the handleIntent method. Users are not able to tell me more about the issue. All they can say is that the phone displays Force Close dialog evertime the Alarm goes off. Using single Alarm (and set it after service run) instead of repeating Alarm seems to fix the issue for these users. Thanks for any help or advice. Use Flurry, DroidDrop, or similar tools to register a top-level exception handler via Thread.setDefaultUncaughtExceptionHandler(). You should be able to collect more information about what is going wrong. http://www.androidguys.com/2009/11/16/diagnosing-sporadic-errors/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.0 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] AnyBody to test My Application on Droid,N1.
Hi and Asslam-u-Alikum, Any body can help me test my application Facebook Plus on Android Market on Droid/N1. I could not get the device in seeding program, any lucky developer here who can test my application on Droid and N1? it will be very helpful. Thank You, Abdul Mateen. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: adb logcat skips log messages
I wish that was more evident in the documentation. I lost days of development time trying to track a crash in my native jni application. My program was corrupting memory and the random missing log messages led me on a completely wild goose chase. You can imagine my dismay when I found out my logs were basically useless. That should be one of the first things mentioned in the documentation on logging. Maybe it is and I just missed it, I naively expected logging to work. Thanks for the info! On Mar 18, 1:35 pm, fadden fad...@android.com wrote: On Mar 17, 11:59 pm, Hoyle hoyle.ho...@gmail.com wrote: I've am writing an app that has a major component in C++. In order to aid debugging I tend to write a lot of data to the logs from C++ (and a minimal amount from Java). The logs are written out using NDK logging facilities and also written to files on the device. It seems that, at least under high logging load, when I run adblogcat from the command line that it skips log messages randomly. The kernel log buffer is 64KB. If you manage to write into it faster thanlogcatcan read out of it, you will lose data. I think this gets worse if you're running adblogcat from the host side, sincelogcathas to wait for the tty write to finish before it can read more data from the kernel. 'adb shell logcat /sdcard/ log.txt' should drop less. The best solution is to write a log directly to disk (which it sounds like you're already doing). -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] How to find email of the current user
Is there a way to find the email address of the user of the phone? I have a software that requires password. However, sometimes people forget their password and want a reset. I think the best is to send an email to the user of the phone, instead of prompting the email address at the time the forget their password. Because who knows, it could be one of their friends that picks up the phone and likes to reset the password as a prank. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Big difficult to develop in Android :( (I'm italian)
Yes, use the tutorials. When I started, I thought I could learn faster by just studying the Lunar Lander sample code... but as it turns out, that code is in many ways a good example of how not to write a solid Android program. (I still blame that code for a good bit of lost development time.) And I missed a lot of things like helpful XML attributes and the application/activity lifecycle and so forth. The online documentation is pretty good, although it does obscure things a bit much sometimes (like if you want to write a game, and you're not sure why you're not always receiving key events, and then one day you see something in the docs called Touch Mode and you think that looks interesting but since your app doesn't use touch screen input you probably don't need to read about it...) On Mar 19, 6:26 am, Sean Hodges seanhodge...@googlemail.com wrote: I agree with Fred, explain what problems you are having. Don't just say something vague like I'm finding it difficult, we need to know exactly what things you are finding difficult to help you. The SDK docs are actually very comprehensive, but you need to use the tutorials to learn Android. Check out the on-line tutorials:http://developer.android.com/intl/de/guide/tutorials/hello-world.html. Or alternatively buy a book on Android development, there are a lot of good ones available these days. On Thu, Mar 18, 2010 at 7:23 PM, massimo maxloveg...@gmail.com wrote: Hi, I'm italian boy. I see that I have big big difficult to start to develop with android. I know Java and I have all the Eclipes and Android SDK installed. But for me undestand this SDK is very impossible. Online the Google Docs about SDK is too less complete and I see that is difficult to make something of realistic like a little videogame. I have difficult too to put an image inside. How I can do? Someone could help me to start? For example by MSN? Pls I need help because I would like make a little videogame. Thank you -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Can't dynamically update ListAdapter for ListView
What errors or problem do you get? Thanks and Regards, Kumar Bibek On Mar 19, 8:07 pm, Tatyana Ulyanova levkat...@gmail.com wrote: Hello, friends! I have a problem with adding new items to ListView. I use custom adapter MyListAdapter. I do that way: public class MyView extends ListActivity{ private ArrayListOrder m_orders = null; privateMyListAdapter m_adapter; private Runnable viewOrders; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); m_orders = new ArrayListOrder(); this.m_adapter = new OrderAdapter(this, R.layout.row, m_orders); setListAdapter(this.m_adapter); viewOrders = new Runnable(){ @Override public void run() { getOrders(); } }; Thread thread = new Thread(null, viewOrders, MagentoBackground); thread.start(); m_ProgressDialog = ProgressDialog.show(MyView.this, Please wait..., Retrieving data ..., true); } private Runnable returnRes = new Runnable() { @Override public void run() { if(m_orders != null m_orders.size() 0){ m_adapter.notifyDataSetChanged(); for(int i=0;im_orders.size();i++) m_adapter.add(m_orders.get(i)); } m_adapter.notifyDataSetChanged(); } }; private void getOrders(){ try{ m_orders.addAll(/*some order collection*/) runOnUiThread(returnRes); } private class OrderAdapter extends ArrayAdapterOrder { //code about how to get view } } But when I add items to my adapter: for(int i=0;im_orders.size();i++) m_adapter.add(m_orders.get(i)); the application hangs because of m_orders increase there size, everytime where new item adds to adapter. Friends, do you have any ideas how to implement dynamically adding items to custom ListAdapter? Do you see any errors in my code? Thank you very much :))) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] My ProgressDialog suffers from ANR timeouts?
I am downloading a 230MB database file from a server. I am displaying the progress of the download in a progressDialog. However about 12% into the download I get the ANR wait or force close popup. the logs indicate: 03-18 19:55:58.943: WARN/WindowManager(67): Key dispatching timed out sending to Downloading Database I have tried doing the download and progressDialog updates in both a Asyntask and using a Handler method but I'm still getting the same errors. Is my file just to big? It works fine for smaller sized files. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] How to find email of the current user
Direct them to your website to reset their password - use Google oAuth. No need to send them an email. The complete flow would be: 1) Install software on phone, direct them to your website 2) Request auth to link their Google acc with your site 3) Create the association between the install instance and the Google User 4) Returning users - check if they are already known, refresh the oAuth token 5) Provide auth'd actions on your site On 19 March 2010 18:30, Wah mobic...@gmail.com wrote: Is there a way to find the email address of the user of the phone? I have a software that requires password. However, sometimes people forget their password and want a reset. I think the best is to send an email to the user of the phone, instead of prompting the email address at the time the forget their password. Because who knows, it could be one of their friends that picks up the phone and likes to reset the password as a prank. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Deleting a View from its Parent
LinearLayout pa=(LinearLayout)la.getParent(); if(pa!=null){ Log.i(TAG,removed view la parent); pa.removeView(la); mNetworkLayout.removeView(la); } this one works for me. but u should know ur parent first lets say ur child parent is linearLayout then cast the parent to linearlayout of your child LinearLayout ll=(LinearLayout)child.getParent(); if (ll ! =null){ ll.remove(child) } I am not sure if it works for you let me know On Fri, Mar 19, 2010 at 9:12 AM, tilo1583 tilo1...@gmail.com wrote: I tried your method, but it still does not work. GridView g = (GridView)findViewById(R.id.gridview1); g.removeAllViews(); It still gives the same exception, as 'removeAllViews() is unsupported' On Mar 18, 5:36 pm, social hub shubem...@gmail.com wrote: what is the parent for the view u r fetching. if its the parent (gridview) then I think will throw exception. I did removeviews before I had linearlayout android:id=@+id/layout imgview1 imgview2/linearlayout bascilly oncreate u get reference to lineralayout using LinearLayout l=findviewbyid(r.id.layout) then lets say onclick event of button u call l.removeviews(); this shud work. you can try working along these lines. in your case you have to check what is the parent before u try to remove. This is based on my understanding of your problem. I can be wrong . On Thu, Mar 18, 2010 at 2:59 PM, tilo1583 tilo1...@gmail.com wrote: Hi Everyone, I am very new to Android development, but I am not new to develoment of UIs. I am trying to run this piece of code. Basically, there is a GridView which contains a bunch of ImageViews. To each of these image views I have added this onTouchListener as given below. However, the removeView statement throws an exception - Unsupported operation. It is important for me to remove this view, because I need to attach it to another layout. Any help is really appreciated! this._pieceTouchListener = new OnTouchListener(){ public boolean onTouch(View v, MotionEvent event) { if(view != null) { switch(action) { case MotionEvent.ACTION_DOWN: try { ViewGroup vg = (ViewGroup)v.getParent(); //this line throws an exception vg.removeView(v); } catch (Exception exc) { exc.printStackTrace(); } .. } } } } -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Create replacement lock screen.
Does anyone know where to get started if I wanted to change the lock screen? I can't find any information about what intent to hijack or anything like that. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Create replacement lock screen.
Ozymandias wrote: Does anyone know where to get started if I wanted to change the lock screen? I can't find any information about what intent to hijack or anything like that. There is no supported means to replace the lock screen in today's SDK -- sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Pass ArrayListCustom Type to new activity
Hey, I am trying to figure out the best way to pass an ArrayList Custom Type to a new activity. Can anyone post some framework code for me or a link to a site with a good tutorial? Thank you in advance for your time! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Create replacement lock screen.
That's unfortunate. So I'm guessing that Flyscreen and others do something hackish, like have a service which launches their activity when the screen turns on? Is there a way to unlock the screen using code? On Mar 19, 12:06 pm, Mark Murphy mmur...@commonsware.com wrote: Ozymandias wrote: Does anyone know where to get started if I wanted to change the lock screen? I can't find any information about what intent to hijack or anything like that. There is no supported means to replace the lock screen in today's SDK -- sorry. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Pass ArrayListCustom Type to new activity
Tommy wrote: I am trying to figure out the best way to pass an ArrayList Custom Type to a new activity. I will argue that complex data models should be in a shared spot (e.g., managed by a local service), referenced by both activities. You waste a bunch of CPU time and memory marshaling and unmarshaling the data trying to pass it via an Intent extra or something. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in NYC: 1-2 May 2010: http://guruloft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
RE: [android-developers] Pass ArrayListCustom Type to new activity
Ok sounds good. I'll drop it into a shared location to be accessable. Thanks for your time. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, March 19, 2010 3:41 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Pass ArrayListCustom Type to new activity Tommy wrote: I am trying to figure out the best way to pass an ArrayList Custom Type to a new activity. I will argue that complex data models should be in a shared spot (e.g., managed by a local service), referenced by both activities. You waste a bunch of CPU time and memory marshaling and unmarshaling the data trying to pass it via an Intent extra or something. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in NYC: 1-2 May 2010: http://guruloft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Pass ArrayListCustom Type to new activity
If both activites are in the same process, just move the large arraylist to be a global static object. -niko On Mar 19, 1:46 pm, Tommy droi...@gmail.com wrote: Ok sounds good. I'll drop it into a shared location to be accessable. Thanks for your time. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, March 19, 2010 3:41 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Pass ArrayListCustom Type to new activity Tommy wrote: I am trying to figure out the best way to pass an ArrayList Custom Type to a new activity. I will argue that complex data models should be in a shared spot (e.g., managed by a local service), referenced by both activities. You waste a bunch of CPU time and memory marshaling and unmarshaling the data trying to pass it via an Intent extra or something. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in NYC: 1-2 May 2010:http://guruloft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: how can I animate a widget in and out of a View?
Checkout ViewStub discussed here... http://developer.android.com/resources/articles/layout-tricks-stubs.html On Mar 16, 9:39 pm, eburke eburk...@gmail.com wrote: Let's say I have some views stacked inside a LinearLayout: [LinearLayout vertical] [ListView weight=1 so it fills the space] [EditText] [SomeRowOfButtons] I want the SomeRowOfButtons to be hidden initially. When the EditText gets focus I want to animate SomeRowOfButtons in, and when EditText loses focus, animate SomeRowOfButtons out. I've tried translations, ViewSwitchers, etc., but the issue with those is that it carves out space for the row and never expands the rest of the parent LinearLayout to fill the space. If there were a way I could tell the parent to lay out as the animation changes, that might work. Is there some sort of animation value changed listener I could apply? I can set the bottomMargin of SomeRowOfButtons to be negative which effectively hides it and expands the rest of the UI. However, I can't figure out how to animate the bottom margin. Anyhow, if there's a best practice around this, I'm all ears. I say that because I've pulled out all my hair trying to solve it, and now my ears look huge. ;) Thanks! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Dismissing Custom Dialog
Call the setOnClickListener method on the Button instance that you got from findViewById, just like you do for the TextView. Both classes subclass View, so they both have that method. Inside the method you call dismissDialog, which is available via the enclosing Activity, just like you call showDialog in the TextView's listener. On Mar 17, 5:53 pm, Lazarus laza...@gmail.com wrote: Hi All, I can't dismiss my custom dialog. I have XML layout with some text, pic and a button for dismissing the dialog. My onCreateDialog starts a DatePicker Dialog and About Dialog @Override protected Dialog onCreateDialog(int id) { switch (id) { case DATE_DIALOG_ID: works nice case ABOUT_DIALOG_ID: Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.custom_dialog); dialog.setTitle(About mySelf); TextView text = (TextView) dialog.findViewById(R.id.lblAbout); text.setText(R.string.cd_about); ImageView image = (ImageView) dialog.findViewById(R.id.imgLomaryn); image.setImageResource(R.drawable.lomaryn); Button cdBack = (Button) findViewById(R.id.cdbtnCancel); some help needed here (?) return dialog; } return null; } To show the Custom Dialog I click on textview as follows // add a click listener to lblTitle label mlblTitle.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { showDialog(ABOUT_DIALOG_ID); } }); I need the click on my cdBack button to dismiss the Custom Dialog There are not many methods available for Custom Dialogs. Even setButton method is missing. It is for AlertDialogs only Can't cast the setOnClickListener for the Custom Dialog Thanks for any valuable 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: My ProgressDialog suffers from ANR timeouts?
You should show some code-snippets of how you show/dismiss your progress dialog and how the download is handled. Right now, there is not enough info to help you. On Mar 19, 2:31 pm, dsukhram duanesukh...@gmail.com wrote: I am downloading a 230MB database file from a server. I am displaying the progress of the download in a progressDialog. However about 12% into the download I get the ANR wait or force close popup. the logs indicate: 03-18 19:55:58.943: WARN/WindowManager(67): Key dispatching timed out sending to Downloading Database I have tried doing the download and progressDialog updates in both a Asyntask and using a Handler method but I'm still getting the same errors. Is my file just to big? It works fine for smaller sized files. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
RE: [android-developers] Re: Pass ArrayListCustom Type to new activity
Yeah that's what I decided to do. Thanks for the advice guys/gals. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of niko20 Sent: Friday, March 19, 2010 3:56 PM To: Android Developers Subject: [android-developers] Re: Pass ArrayListCustom Type to new activity If both activites are in the same process, just move the large arraylist to be a global static object. -niko On Mar 19, 1:46 pm, Tommy droi...@gmail.com wrote: Ok sounds good. I'll drop it into a shared location to be accessable. Thanks for your time. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, March 19, 2010 3:41 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Pass ArrayListCustom Type to new activity Tommy wrote: I am trying to figure out the best way to pass an ArrayList Custom Type to a new activity. I will argue that complex data models should be in a shared spot (e.g., managed by a local service), referenced by both activities. You waste a bunch of CPU time and memory marshaling and unmarshaling the data trying to pass it via an Intent extra or something. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in NYC: 1-2 May 2010:http://guruloft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] code.google.com is down for source code viewing or svn
One example would be here: http://code.google.com/p/android-wifi-tether/source/browse/ svn checking out or in is down as well: svn checkout http://android-wifi-tether.googlecode.com/svn/trunk/ android-wifi-tether-read-only svn: Server sent unexpected return value (502 Bad Gateway) in response to OPTIONS request for 'http://android-wifi-tethe r.googlecode.com/svn/trunk' Has been down for over an hour. Is anyone on google's side aware of the outage? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: AnyBody to test My Application on Droid,N1.
Runs without crashing on my Droid in the US. There's a Toast popup about an ad not being ready. Doesn't seem like anything a user would care about. Maybe it's just accidentally left in from development. On Mar 19, 1:17 pm, Abdul Mateen abmat...@gmail.com wrote: Hi and Asslam-u-Alikum, Any body can help me test my application Facebook Plus on Android Market on Droid/N1. I could not get the device in seeding program, any lucky developer here who can test my application on Droid and N1? it will be very helpful. Thank You, Abdul Mateen. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: My ProgressDialog suffers from ANR timeouts?
this is my inner class that handles the downloading and progressbar public class DownloadDBTask extends AsyncTaskObject, Integer, Object { private int mProgress; public Object doInBackground(Object ...urls) { //download file int totalSize =0; try { URL urlFile = new URL(http://www.xxx.com/test.db;); URLConnection conn; conn = urlFile.openConnection(); totalSize = conn.getContentLength(); Log.i(INFO,total size of file +totalSize); BufferedInputStream bis = new BufferedInputStream(urlFile.openStream()); BufferedOutputStream bout = new BufferedOutputStream(new FileOutputStream(PATH+DB_NAME),1024); byte data[] = new byte[1024]; int bufferSize =0; int currentSize = 0; while((bufferSize = bis.read(data)) != -1 ) { currentSize +=bufferSize; bout.write(data,0,bufferSize); publishProgress((int) ((currentSize / (float) totalSize) * 100)); } Log.i(INFO,Done downloading); bout.flush(); bis.close(); bout.close(); } catch(IOException e) { Log.e(ERROR,e.toString()); } return (new Object()); } public void onPostExecute(Object result) { mProgressDialog.dismiss(); } protected void onProgressUpdate(Integer... progress) { mProgressDialog.setProgress(progress[0]); } protected void onPreExecute(){ showDialog(2); } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: App not visible in Australia
Do you know if they have any paid apps visible? There is an issue with Optus and associated carriers as they don't have an agreement in place for paid apps, hence no paid apps currently show in the market for those users. On Mar 19, 6:45 pm, String sterling.ud...@googlemail.com wrote: I've had a couple of Australian users this week contact me saying that one of my paid apps isn't visible. Has anyone else had specific trouble down under? And yes, I've confirmed that AU is selected for publishing the app on my Developer Console. Thanks, String -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: webkit onGestureXXX
I'm not familiar with the iPhone capabilities, but Android comes with the ability to understand gestures. Check out GestureOverlayView: http://developer.android.com/reference/android/gesture/GestureOverlayView.html - dave www.androidbook.com On Mar 19, 12:38 pm, mike enervat...@gmail.com wrote: Is there any plans to support the onGestureXXX set of events like the iPhone's webkit has? Mike, curious -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.