Re: [android-developers] Set Android WIFI Ip address from my own application

2010-12-29 Thread Faheem Khatri
*public static final String WIFI_STATIC_DNS1* as you see these are the properties in which we can only get the value, we cant set the value. On Wed, Dec 29, 2010 at 7:47 PM, Kostya Vasilyev wrote: > Faheem, > > See Settings.System: > > > http://developer.android.com/reference/android/provider/S

Re: [android-developers]How to get the data from LBS?

2010-12-29 Thread Faheem Khatri
same happend with me too, Bad luck :( On Thu, Dec 30, 2010 at 10:57 AM, jaxn gao wrote: > Google has provide "Google Places API" for users to get location > information. But it needs a Google AdSense account before using this api. > I try to register a AdSense account but it is failed. > > 2010/

[android-developers] Re: network LocationProvider

2010-12-29 Thread Dan
On Dec 29, 9:09 pm, ip332 wrote: > If the WiFi service is turned off the you will get position from the > cell tower. > If you could turn off the cell service and keep WiFi on then you get > position from WiFi (however I don't think you can turn off > phone service easily) > But you can use the lo

Re: [android-developers] Content provider persistence

2010-12-29 Thread Dianne Hackborn
If I understand what you are saying, the process just remains around in case it is needed again. If so, that is intended, and not something you need to avoid. On Wed, Dec 29, 2010 at 6:27 PM, Pedro Duque wrote: > Hi, > > I'm writing an application where the user needs to choose a timezone so I'

Re: [android-developers] Denisity dependent resource resolution bug?

2010-12-29 Thread Dianne Hackborn
Resource selection is generic, not tied to the resource type. This selection makes sense for drawables, so it is correct. As a general rule for density configurations, I strongly recommend not mixing specific densities with generic values. Since all densities are a potential match, as you see he

Re: [android-developers] Re: How can I achieve this menu in android?

2010-12-29 Thread Muhammad Hakim
you can user framelayout http://developer.android.com/resources/articles/layout-tricks-merge.html On Thu, Dec 30, 2010 at 12:27 PM, Sarwar Erfan wrote: > Its not built in control. Design your own "menu like" layout, put it in > separate layout file and include where necessary. It is possible to k

[android-developers] Re: Listview using ArrayAdapter trouble

2010-12-29 Thread Mystique
Good day, I do not understand the outer LinearLayout you was pointing out. Don't we need to declare a Layout so we can put component such as listview, textview etc? On Dec 30, 2:51 pm, jotobjects wrote: > Does android.widget.TwoLineListItem do what you want? > > BTW - looks like the outer LinearL

[android-developers] Re: Listview using ArrayAdapter trouble

2010-12-29 Thread jotobjects
Does android.widget.TwoLineListItem do what you want? BTW - looks like the outer LinearLayout is unnecessary in list.xml and listadapter.xml. On Dec 29, 5:41 pm, Mystique wrote: > Hi, > I have an app that I mine data with an ArrayList and load to an > ArrayAdapter to display as listview. How can

[android-developers] make an engine

2010-12-29 Thread Kevin R. Octavian
how to make some classes in android to be .jar? i want to make an engine for my project...thx -- 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

[android-developers] Export Problem with Eclipse Helios

2010-12-29 Thread cuil yahoo
Hi, I am using Eclipse Helios version for Android Application Development. The most frustrating thing which currently happens is that anytime i try to export a project, the exported project loses all of its properties, and as a result when importing the same file system, errors are encountered. C

[android-developers] Android Library Projects cannot be launched

2010-12-29 Thread cuil yahoo
I am trying to make a license checker for my application using the official android documentation. Having done everything mentioned there my application now doesn't run even on my emulator, on running it gives an error, Android Library Projects cannot be launched. Also, on making a .apk file i ca

Re: [android-developers]How to get the data from LBS?

2010-12-29 Thread jaxn gao
Google has provide "Google Places API" for users to get location information. But it needs a Google AdSense account before using this api. I try to register a AdSense account but it is failed. 2010/12/29 Faheem Khatri > @mohammad shankayi > > Which api u're talking about? > > On Wed, Dec 22, 201

[android-developers] Re: How can I achieve this menu in android?

2010-12-29 Thread Sarwar Erfan
Its not built in control. Design your own "menu like" layout, put it in separate layout file and include where necessary. It is possible to keep this layout at the bottom of the screen always and make the upper part scrollable. Just give up the idea that this is a real "menu". Lots of code samp

[android-developers] Re: On which list item user click

2010-12-29 Thread pramod.deore
After adding following I got value of list as protected void onListItemClick(ListView l,View v,int position,long id) { cursor = (Cursor) myAdapter.getItem(position); super.onListItemClick(l, v, position, id); System.out.println ("User click o

[android-developers] Denisity dependent resource resolution bug?

2010-12-29 Thread Zsolt Vasvari
I have an integer resource defined. Placed the default value into values/integers.xml and an MDPI override in values-mdpi/integers.xml On my HDPI device, the resource that's picked comes from the MDPI folder and not the default folder. I consider this a bug. I can see it being correct for drawa

[android-developers] On which list item user click

2010-12-29 Thread pramod.deore
Hi all, In my application I am displaying list of data from database using SimpleCursorAdapter class. This list contains 6 columns. Now I want to know on which row user had clicked. I want to delete that record on which user had clicked. I had override protected void onListItemClick(ListV

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Kristopher Micinski
How accurate is the "looping" setting on the MediaPlayer? Is it possible to synthesize the click track and then send it to a media player and set it to loop? I'm not sure how accurate that would be, perhaps someone else could offer some insight? kris On Wed, Dec 29, 2010 at 3:23 PM, Kostya Vasil

Re: [android-developers] Re: How to update one of views(setText, setImage) in item already added on ListView

2010-12-29 Thread TreKing
On Wed, Dec 29, 2010 at 2:41 AM, Mingchung wrote: > Is that meaning the layout of ListView item is decided when > 'getView' method called somewhere? > Yes. What you return from getView() is what will show up in the ListView for the given index. --

[android-developers] Content provider persistence

2010-12-29 Thread Pedro Duque
Hi, I'm writing an application where the user needs to choose a timezone so I'm using the search capability of Android. For having the time zone as a recommendation inside the search, I've implemented a Content Provider for the time zone. The problem is that the content provider remains "alive" af

[android-developers] Re: network LocationProvider

2010-12-29 Thread ip332
If the WiFi service is turned off the you will get position from the cell tower. If you could turn off the cell service and keep WiFi on then you get position from WiFi (however I don't think you can turn off phone service easily) But you can use the location accuracy to differentiate between WiFi

[android-developers] Re: Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread ip332
If you request updates from the NETWORK_PROVIDER you will get location from cell towers or WiFi. If you use GPS_PROVIDER then the GPS will be turned on and you will get a GPS location after some time. This "some time" depends on many factors and the time of the last fix, first of all. On Dec 29, 1

[android-developers] Listview using ArrayAdapter trouble

2010-12-29 Thread Mystique
Hi, I have an app that I mine data with an ArrayList and load to an ArrayAdapter to display as listview. How can I do more than 1 textview item in 1 roll? My code is: ---list.xml--- http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_heig

[android-developers] Re: What changed in Gingerbread as far as the app widgets?

2010-12-29 Thread Zsolt Vasvari
For now, I "fixed" my widget on 2.3 by going from a monolithic 322px high background drawable to smaller drawables. Of course, I shouldn't have to do that, but whatever... If you place any widgets on 2.3 and compare it to 2.2, you can see that they are spaced differently. On 2.3, they are a lot

Re: [android-developers] Re: display data from database in proper order

2010-12-29 Thread TreKing
On Tue, Dec 28, 2010 at 3:32 AM, pramod.deore wrote: > After adding android:layout_width="75px" in every it > looks better. > Don't use set pixel values - it will break on different densities and / or resolutions. > But still there is any other solution? > Try the layout_weight parameter agai

[android-developers] Problem in Browser App

2010-12-29 Thread yogi
When i try to scroll in webview(say for example YAHOOMAIL inbox page). There are multiple Focus-Ring is visible around the check box in that page. This happen only when i touch the screen and drag it. Regards Yogendra. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to store date and time in database

2010-12-29 Thread DanH
Of course, if you're adding/subtracting you need to know what your policy is not just for leap seconds but for DST -- a much more common and substantial problem. In general you shouldn't add/subtract seconds in an attempt to calculate days/months/years, but should convert to/from some sort of cale

Re: [android-developers] Re: Passing objects to new intents

2010-12-29 Thread TreKing
On Tue, Dec 28, 2010 at 11:52 PM, maomaostevencao < maomaosteven...@hotmail.com> wrote: > If I want to load a new activity and pass some of arguments using this > way, I have to get the reference of this new activity, but seems platform > doesn't provide any API to get it. How can you do it? I mea

Re: [android-developers] how to avoid cut off of words in TextView

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 11:47 PM, gato chlr wrote: > Hi list! > > for example : > > TextView a = new TextView(this); > a.setText("I'm a set of words, some ones larger than others, no matter"); > > it is posible to have painted the next : > > i'm a set of wo > rds, some one > s larger than o > the

[android-developers] how to avoid cut off of words in TextView

2010-12-29 Thread gato chlr
Hi list! for example : TextView a = new TextView(this); a.setText("I'm a set of words, some ones larger than others, no matter"); it is posible to have painted the next : i'm a set of wo rds, some one s larger than o thers, no matt er i need something like i'm a set of words, some ones larger

[android-developers] Re: Converting Touch Inputs to Vectors

2010-12-29 Thread Paul
Bumping hoping someone can point me in the right direction! Paul On Dec 29, 1:18 am, Paul wrote: > Hi all.  I am writing an app that will convert touchscreen user inputs > (such as the user 'handwriting' on the screen) into vectors that can > then be saved and recalled later.  I need to get the

Re: [android-developers] Re: Animation problem

2010-12-29 Thread John Lussmyer
"jerks and jumps" in the emulator, or one the phone? I've found that the emulator is VERY bad at running things at a consistent speed. The phone seems to do a much better job of it. On Wed, Dec 29, 2010 at 1:27 PM, iced wrote: > Thank you for your answer. > I tried all 2^6 combinations of the t

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread Dianne Hackborn
Yes if the device does not have a GPS, or if the user has turned off the GPS, you will only get cell or network based location. On Wed, Dec 29, 2010 at 12:47 PM, mohammad shankayi wrote: > dianne is right but this ability is only in A-gps devices and as we know > all android devices has the abili

Re: [android-developers] New Android Market Client Update

2010-12-29 Thread brian purgert
I just released my first payed application and a get alot of refunds but they are usally within in 3 minutes which is really odd, im almost positive that it works on most phones, its just weird because you wouldent even be able to play the first level in that time. On Dec 11, 2010 3:42 AM, "webmonk

[android-developers] Re: New Application - advice on how to get started?

2010-12-29 Thread Hal
You'll probably need a set of reusable Android components (Database, Services, etc) for this. You may want to take a look a the Jt Design Pattern Framework: a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library http://www.ibm.com/developerworks/w

[android-developers] Re: Animation problem

2010-12-29 Thread iced
Thank you for your answer. I tried all 2^6 combinations of the three flags (fillBefore, fillAfter, fillEnabled) but the animation still not works. I only want a pulsate. No matter what I do it is no liquid/smooth animation. It jerks and jumps. I can't find a solution. I would be grateful for help.

[android-developers] Re: How to store date and time in database

2010-12-29 Thread Bob Kerns
Sort and compare, mostly true -- but fail if you try to deal with a leap second. At least that's relatively rare. Subtract? No. Fails if a leap second falls between the two times. This is much a much more common case. In either case, your software can malfunction anew on every leap second. Do yo

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread mohammad shankayi
dianne is right but this ability is only in A-gps devices and as we know all android devices has the ability of positioning with cell towers :) sincerely mohammad shankayi On Wed, Dec 29, 2010 at 12:23, Dianne Hackborn wrote: > That doesn't really make sense. When you ask for location, you wil

Re: [android-developers] Instructions to "manually" install an SDK

2010-12-29 Thread Kostya Vasilyev
I just tried downloading outside the AVD manager - the following worked for me: - Open http://dl-ssl.google.com/android/repository/repository.xml in Internet Explorer, scroll down and find , and inside that, the archive for windows. - Replace repository.xml with the file name, you'll get s

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread Dianne Hackborn
That doesn't really make sense. When you ask for location, you will specify how accurate you want the data to be. If you ask for GPS accuracy, it will start using that (if it hasn't already). You keep the request open, so it continuously looks for satellites and tracks movement. Each update it

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Kostya Vasilyev
To elaborate a bit: http://developer.android.com/reference/android/media/AudioTrack.html AudioTrack supports "streaming" mode of operation, where data can be fed into it on the fly. You'd still need to do some sort of scheduled periodic loop, for feeding data to AudioTrack in chunks, but thi

Re: [android-developers] HELP: Receiver killed on startup.

2010-12-29 Thread Dianne Hackborn
On Wed, Dec 29, 2010 at 11:29 AM, Mark Murphy wrote: > To debug BOOT_COMPLETED receivers, add Log statements to your code and > reboot your emulator. Examine LogCat to see what happened. Adjust your > code. Lather, rinse, repeat. > You can also use "adb shell am" to send a BOOT_COMPLETED broadcas

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Dianne Hackborn
On Wed, Dec 29, 2010 at 10:54 AM, Slash4 wrote: > First, my application is using a SCREEN_DIM_WAKE_LOCK so the screen is > always on, yet the backlight and the keyboard are dimmed. Did you say > in this case, the battery would not be consumed ? > Absolutely not. The CPU running flat-out takes a

[android-developers] Instructions to "manually" install an SDK

2010-12-29 Thread Bret Foreman
For reasons that I cannot discover, on my Windows Vista platform, the version 8 Android SDK Manager cannot access the repository URL at https://dl-ssl.google.com/android/repository/repository.xml nor the alternate directory at http://dl-ssl.google.com/android/repository/repository.xml. However, I

Re: [android-developers] example on asynctask class..

2010-12-29 Thread Frank Weiss
I'm assuming you've studied this article very carefully: http://developer.android.com/resources/articles/painless-threading.html Please ask a question about a specific problem you're having. -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

Re: [android-developers] How implement LBS in Android

2010-12-29 Thread Frank Weiss
Agreed, creating and keeping a POI database up to date is difficult. AFAIK Google Places is one attempt at a universal solution and there are others being considered. Tell us, what particular POIs are you interested in and for what kind of use cases? What are the limitations of Google Places API (

[android-developers] How to write a android keyboard preference and show in Android Setting > Language & Keyboard.

2010-12-29 Thread Cloudyblood
Hi I wrote the android keyboard , but I didn't have a preference. I tried to write a preference of my android keyboard , but it didn't show in Android Setting > Language & Keyboard. Here is my manifest: http://schemas.android.com/apk/res/android"; package="com.popj.popjkeyboard" android:versio

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Frank Weiss
I'd look into Kostya's suggestion. Ideally, you only need the click sample and you can program the audio player to play the sample at precise intervals. Trying to do precise timing with SDK programming is just frought with pitfalls, AFAIK. -- You received this message because you are subscribed

[android-developers] Google analytics crash

2010-12-29 Thread Mark Wyszomierski
Hi, I'm using google analytics in my app. I am getting a good number of force closes from users, finally got a stacktrace: Caused by: android.database.sqlite.SQLiteException: file is encrypted or is not a database at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method) at an

Re: [android-developers] HELP: Receiver killed on startup.

2010-12-29 Thread Mark Murphy
On Wed, Dec 29, 2010 at 2:04 PM, Raj wrote: >    I have a simple receiver that listens to the BOOT_COMPLETED > action. > However, when I start debugging with an emulator, the apk gets > installed, but the receiver process is terminated. Of course. Actually, your receiver process was probably

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Bret Foreman
This is very similar to a problem I solved when I was testing disk I/O subsystems and needed to generate I/O requests at fixed intervals of a few hundred per second. What I did was to take a timestamp at the beginning of the test and set up a loop with a sleep in it. The initial sleep value was jus

Re: [android-developers] List View inside a Layout

2010-12-29 Thread Manoj Maurya
It will be done same way. I m working on similar thing. Exactly, where are you stuck? You have to get listview's id and use set adapter in same way as it is done for a normal listview. Thanks Manoj Kumar Maurya > Hi all.. > > What I want to do is: > > I have a layout with some textviews and button

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Kostya Vasilyev
Perhaps it would be a better idea to a use pre-recorded sound for this. You are trying to solve a problem at the application level that's already been solved, but at lower levels within the system. By using a pre-recorded sound, you can leverage other people's work. For different metronome pa

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread mohammad shankayi
in most gps devices , the device has a graph of visible sat.s and estimates the postion of sat.s based on it ... sincerely mohammad shankayi On Wed, Dec 29, 2010 at 10:59, t wrote: > how accurate is the data from Android's GPS location provider? > > does the device always try to seek a satellit

[android-developers] HELP: Receiver killed on startup.

2010-12-29 Thread Raj
Experts, I have a simple receiver that listens to the BOOT_COMPLETED action. The manifest is as follows -- http://schemas.android.com/apk/res/android"; package="com.preciseinc.DroidLocator" an

[android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread t
how accurate is the data from Android's GPS location provider? does the device always try to seek a satellite, or does it sometimes return an optimization of the past locations without querying the satellites? if this question is device-specific, i'm asking about HTC Hero, HTC Desire and Google N

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Slash4
I answered you but I don't see my message.. I hope it's OK :s On 29 déc, 03:22, Dianne Hackborn wrote: > This will run the CPU at 100%.  With the screen off, this will tremendously > impact battery life.  With it on, it will be at least noticeable. > > How accurate do you need to be?  Have you tr

Re: [android-developers] Re: How to store date and time in database

2010-12-29 Thread Kostya Vasilyev
And that's not even considering the effects of tidal friction. I love Wikipedia. -- Kostya 29.12.2010 21:46, Bret Foreman пишет: Without even considering the computational aspects of this issue, there are at least 3 definitions of "noon" depending on how you measure a day: http://en.wikipedia.

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Slash4
Hello, thanks you so much for looking at my problem :) First, my application is using a SCREEN_DIM_WAKE_LOCK so the screen is always on, yet the backlight and the keyboard are dimmed. Did you say in this case, the battery would not be consumed ? So, about accuracy, the fastest callback that I ca

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 6:33 PM, Kostya Vasilyev wrote: > Docs: > > > http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html > > I pasted my code here: > > http://pastebin.com/1hKWffeu > > It doesn't differentiate between read-only and writable database open modes > (

[android-developers] Re: How to store date and time in database

2010-12-29 Thread Bret Foreman
Without even considering the computational aspects of this issue, there are at least 3 definitions of "noon" depending on how you measure a day: http://en.wikipedia.org/wiki/Earth%27s_rotation On Dec 28, 7:41 pm, Bob Kerns wrote: > The Wikipedia article on Unix time indicates that there's discu

[android-developers] Re: Android SDK and AVD Manager - permission denied: connect

2010-12-29 Thread Bret Foreman
I also tried the CLI version "android.bat update sdk" and got the same results. -- 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 em

[android-developers] Android SDK and AVD Manager - permission denied: connect

2010-12-29 Thread Bret Foreman
I'm getting the following message from the version 8 Android SDK and AVD Manager when I try to refresh the sources: Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Permission denied: connect I have no trouble browsing to the URL shown above. I am not using

[android-developers] Re: Android TTS sound braking

2010-12-29 Thread Leon Moreyn-Android Development
There is a feature that can allow you make sure the clips plays fully before termination. I can recall the method/function off the top of my head but I believe it was in the API. On Dec 28, 10:03 pm, Chandana Napagoda wrote: > HI, > > I have developed TTS based application, When playing it sound,

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Kostya Vasilyev
Docs: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html I pasted my code here: http://pastebin.com/1hKWffeu It doesn't differentiate between read-only and writable database open modes (SqliteOpenHelper does), and probably lacks some error handling here and th

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 6:17 PM, Kostya Vasilyev wrote: > You'll have to write your own SQliteOpenHelper-type class for that, as the > built-in implementation always calls context.getDatabasePath. > > If you are not using SQliteOpenHeper, just call > SQLiteDatabase.openOrCreateDatabase() with a p

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Kostya Vasilyev
You'll have to write your own SQliteOpenHelper-type class for that, as the built-in implementation always calls context.getDatabasePath. If you are not using SQliteOpenHeper, just call SQLiteDatabase.openOrCreateDatabase() with a path of your choice. -- Kostya 29.12.2010 20:10, Nikola пишет:

[android-developers] sqlite on sdcard

2010-12-29 Thread Nikola
Hi, I would like to store sqlite databse on sdcard. Is is possible to "tell" system somehow to put it on sdcard? Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] get the genre name with most songs from the music library

2010-12-29 Thread Kyle
I am trying to get the genre with most songs by using the media store and failed to get it, as well as I can get the artist with most songs. Any one has good idea. Thanks. Kyle -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: How to store date and time in database

2010-12-29 Thread DanH
It should be pointed out that it doesn't matter (much) what time reference is used, so long as it's used consistently, and all conversion algorithms to/from the reference form understand its details. So long as a consistent reference is used dates will sort and compare correctly. On Dec 28, 9:41 

[android-developers] Re: pdf reader

2010-12-29 Thread DanH
Environment.getExternalStorageDirectory(). On Dec 29, 10:26 am, Robin Talwar wrote: > Then what do you suggest? > Should i put the pdf on net and put it's  url ? > > On Wed, Dec 29, 2010 at 9:36 PM, Mark Murphy wrote: > > > On Wed, Dec 29, 2010 at 10:58 AM, Robin Talwar > > wrote: > > > Sorry >

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Mark Murphy
On Wed, Dec 29, 2010 at 11:26 AM, Robin Talwar wrote: > Then what do you suggest? > Should i put the pdf on net and put it's  url ? I cannot make a suggestion without knowing what it is that you are trying to do, at a higher level than invoking an ACTION_VIEW Intent on a PDF file. -- Mark Murph

[android-developers] Gradient, Shadow and MaskFilter on a TextView

2010-12-29 Thread Anders
Hello. Im trying to customize a textview to add a gradientoverlay, a dropshadow and a maskfilter. There seems like i cant combine the different methods as i thought i would. For example when i use both gradient and shadow my shadow gets the same color as the gradient. Combinding dropshadow and a ma

Re: [android-developers] Re: pdf reader

2010-12-29 Thread paresh mayani
If i m not having third party pdf application installed in the android device then? ?? On 29 Dec 2010 13:26, "Robin Talwar" wrote: This is my onclick code public void onClick(View v) { // TODO Auto-generated method stub Intent i = new Intent(); i.

[android-developers] Re: Ant Emma and JUnit, integrating all three

2010-12-29 Thread maccoy
With some more study into the "http://developer.android.com/guide/ developing/testing/testing_otheride.html" able to generate code coverage.html for EMMA. 1.Initially i had created a project and Project test. 2.Used the command line "Android" - update project and update test project. 3.Then Run th

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Robin Talwar
Then what do you suggest? Should i put the pdf on net and put it's url ? On Wed, Dec 29, 2010 at 9:36 PM, Mark Murphy wrote: > On Wed, Dec 29, 2010 at 10:58 AM, Robin Talwar > wrote: > > Sorry > > I checked the path and i made a foolish mistake of not writing the name > of > > the file correctl

[android-developers] network LocationProvider

2010-12-29 Thread Dan
I have a request to distinguish location sources from the network LocationProvider (is it cell tower based, or ip address based). Is there a safe rule of thumb proxy I can use to determine this e.g. if the phone has a cell signal it uses the cell tower because that is more accurate, otherwise it u

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Mark Murphy
On Wed, Dec 29, 2010 at 10:58 AM, Robin Talwar wrote: > Sorry > I checked the path and i made a foolish mistake of not writing the name of > the file correctly. > Except that everything should go well . > So is the following line correct ; sry i am a beginner > >     i.setDataAndType(Uri.parse("fi

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Robin Talwar
Sorry I checked the path and i made a foolish mistake of not writing the name of the file correctly. Except that everything should go well . So is the following line correct ; sry i am a beginner i.setDataAndType(Uri.parse("file:///raw/unlockingandroid.pdf"), "application/pdf"); or is it that

Re: [android-developers] Re: Is there a Horizontal ListView?

2010-12-29 Thread Richard Leggett
I did some digging around this a while back and Mark is on the money, it'll take a big chunk of time. But I would agree there are plenty of uses for things like horizontal lists, in fact there's a very prominent one in the core SMS app which allows you to choose a word from a list of predictions

[android-developers] How to get Temporary Mobile Subscriber Identity(TMSI) in Android

2010-12-29 Thread 赵杨阳
rt. And who knows that how to get Channel Id of a CellLocation? -- 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-d

Re: [android-developers] invoke my application at given Date/Time

2010-12-29 Thread peeyush varshney
Same like Alarm application.. On Mon, Dec 27, 2010 at 7:08 PM, asinha wrote: > How can I invoke my android application at given Date/Time, say daily > at 9am? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group,

Re: [android-developers] Set Android WIFI Ip address from my own application

2010-12-29 Thread Kostya Vasilyev
Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: "192.168.1.1" Constant Value: "

[android-developers] Re: Alarm in sleep mode

2010-12-29 Thread b_t
Thank you, you answered all of my questions On Dec 29, 10:52 am, Dianne Hackborn wrote: > On Tue, Dec 28, 2010 at 11:56 PM, b_t wrote: > > Hmm, so there is no possibility to display "real-time" information in > > a widget? For example a compass widget? > > Correct, app widgets are not intended t

[android-developers] Set Android WIFI Ip address from my own application

2010-12-29 Thread Faheem Khatri
Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- You received this message because you are subscribed to the Google Groups "Android Dev

Re: [android-developers]How to get the data from LBS?

2010-12-29 Thread Faheem Khatri
@mohammad shankayi Which api u're talking about? On Wed, Dec 22, 2010 at 8:27 AM, mohammad shankayi wrote: > i think you must use google maps API ... it may have this useful info as a > layer... > sincerely > mohammad shankayi > > > On Wed, Dec 22, 2010 at 05:40, kevens hao wrote: > >> Like Fo

Re: [android-developers] How implement LBS in Android

2010-12-29 Thread Faheem Khatri
Creating application i think is not a big deal , but getting POI's of different place (Creating Database) is a big deal. On Wed, Dec 29, 2010 at 7:42 AM, Frank Weiss wrote: > There are of course many Android LBS apps to date. Most of them use their > own proprietory databases. > > -- > You recei

[android-developers] example on asynctask class..

2010-12-29 Thread Abhilash baddam
Hi friends, can any one send me the example on asynctask class. I tried it's not working fine. Any help please. Regards, Abhilash.B -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: Set credentials for a secured http connection via a Webview with setHttpAuthUsernamePassword

2010-12-29 Thread Nikolay Elenkov
> http://stackoverflow.com/questions/995514/https-connection-android Please don't just put some random code that trusts all certificates in your app. (like some people in the thread above suggest). Read all the answers and understand how to use a custom trust store in your application. If 'm

[android-developers] fromHtml doesn't work for textview font size, any help?

2010-12-29 Thread genxsol
Hi Dear, i am trying to put text on a text view with different size for each word textView.setText(Html.fromHtml(" Word1 Word2 ))); color does work but no font size, any help plz -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] moving InputMethod to the top

2010-12-29 Thread guich
Hi, I have a text field that is displayed at the bottom of the screen (its a fake component, not an android component). When the user enters the field, i open the input method with this: imm.showSoftInput(instance, 0); However, since the field is at the bottom and the input method is

[android-developers] Ant Emma and JUnit, integrating all three

2010-12-29 Thread maccoy
Is there a step by step guide to try this? -- 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...

[android-developers] Issue with messages in this group?

2010-12-29 Thread Gus
Hi: I posted a message last 12/27/2010, and it was responded, and now I can't find it...Same issue happened before. Are some messages deleted or they just dissapear? Below is the original message: Suject: Can't debug/install applications in

[android-developers] help with ColorStateList

2010-12-29 Thread dashman
i've got a layout for a List row entry as: (i've removed extraneous code) http://schemas.android.com/apk/res/ android" android:background="@color/child_row_color"> ... in the res/color folder, i've got a a file child_row_color.xml http://schemas.android.com/apk/res/android";>

[android-developers] MultiTouch Support

2010-12-29 Thread pedr0
Hi at all, I have one issues with multitouch features offers by the MotionEvent class, this is my code: @Override public boolean onTouchEvent(MotionEvent event) { [] if(event.getPointerCount() == 1){ switch (event.getAction()) { c

[android-developers] Re: Set credentials for a secured http connection via a Webview with setHttpAuthUsernamePassword

2010-12-29 Thread Sandeep N M
http://stackoverflow.com/questions/995514/https-connection-android Regards, Sandeep On Dec 27, 2:00 am, MattBol wrote: > Hi, > I would like to use a WebView to connect to a secure website over > HTTPS, accept its certificate and automatically handle credentials > (given previously by the user).

Re: [android-developers] Default orientation of device

2010-12-29 Thread Marek Urbaniak
There is such a concept in Android. Check e.g.,: http://android-developers.blogspot.com/2010/09/brace-for-future.html(sections where Motorola Charm and Flipout are mentioned) I could not believe there is no API call to check device natural orientation. I posted this question on Stack Overflow h

Re: [android-developers] How I get Command in Home Screen In Android

2010-12-29 Thread Mark Murphy
Step #1: Write your own home screen application. Step #2: Add this feature to your own home screen application. On Wed, Dec 29, 2010 at 2:23 AM, Animesh Sinha wrote: > I mean to say that i want a notification(Command) same as when we > type *#06# in home screen it will show a IMEI no. in the sam

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Mark Murphy
Your Uri is invalid. Please use a valid path to your file. On Wed, Dec 29, 2010 at 2:56 AM, Robin Talwar wrote: > This is my onclick code > > public void onClick(View v) { >                 // TODO Auto-generated method stub >                 Intent i = new Intent(); >                 i.setAction

[android-developers] Re: Suggestions for my inventory application

2010-12-29 Thread Yahel
> What else can i add in this to make it the only inventory solution out > in mobile. Being ambitious is a nice quality... :D Take a look at what your competitors do, on mobile platforms(ios, android, windows mobile 6.5) and desktop. And go from there A quick obvious one : Scan the barcode if a

[android-developers] Painting in webkit's webview

2010-12-29 Thread yogi
hi all, I am looking into the code of webview.java.and one thing i want to know that how this webview class is holding other objects in a webpage...my requirement is that whenever user clicks on the checkbox on a page the focusring should not go off until the the checkbox loose focus ot

  1   2   >