[android-developers] How do I know whether my device is currently charging?

2009-09-17 Thread Walles
I want to know if my device is currently charging. How do I find that out? I've been looking a bit at the Intents API, but AFAIU I can just subscribe to events from there, and a subscription is not what I'm after. And even if I *did* want updates, I'd still need to know the initial state. I ju

[android-developers] Re: Probing for an already set Alarm?

2009-09-17 Thread Walles
I'm not a big fan of doing double bookkeeping like this, but it should be doable here if I have a Preference stored with the time at which I expect the next alarm to trigger. Then I could just unconditionally re-trigger that alarm both from the UI and from the sampler. That said, I still feel th

[android-developers] edit box charector based soft key pad

2009-09-17 Thread Anup
Hi, Is there any way to find out that the edit box is of a particular type in framework files and manipulate soft key board based on that? For eg:- If edit box will accept numbers only, soft key board should display with numbers in default. Thanks in advance Anup --~--~-~--~~---

[android-developers] Searchable Dictionary Example - Update Search Bar

2009-09-17 Thread SurtaX
Hi for those who are familiar with the search bar this would be a quick answer (hopefully). If you look @ the searchable dictionary example (http://developer.android.com/guide/samples/ SearchableDictionary/index.html) it uses a content provider to populate suggestions. That works great however whe

[android-developers] CertPathValidatorException: TrustAnchor for CertPath not found.

2009-09-17 Thread JavaNut
I'm trying to make an SSL connection to a host that is not using one of the "standard" CAs. I'm attempting to do this in the ordinary way: you create an SSLContext, and then you call sslContext.init(clientKeyManagers, trustManagers, secureRandom); Very simple stuff. I've confirmed that trustMa

[android-developers] Re: ImageButton and focus state...

2009-09-17 Thread ashok chakravarthy
create *item-selector* xml and keep that xml in drawable folder and finally use that as background of image button On Fri, Sep 18, 2009 at 7:13 AM, sdphil wrote: > > I want to change the android:background value when an image button is > selected (selected, not clicked). What's the easiest way

[android-developers] Re: Is Service capable of showing Error Messages in the form of transient notices?

2009-09-17 Thread Dianne Hackborn
Notifications are for interacting with the user outside of their regular UI flow. On Thu, Sep 17, 2009 at 9:26 PM, Kasmoori Bindu wrote: > Hi All, > > Can anyone tell me whether it is possible for a Service to show > Success/failure Message Notices without interacting with the Activity? > Please

[android-developers] Re: very urgent - how to remove temp files?

2009-09-17 Thread Dianne Hackborn
There is no convention, and preferably applications wouldn't be littering the sd card with files like that. :} On Thu, Sep 17, 2009 at 11:07 PM, manoj wrote: > > Hi friends, > > I am writing a file browser app. I mean all the available files in the > sdcard will be shown as a list. > > while bro

[android-developers] very urgent - how to remove temp files?

2009-09-17 Thread manoj
Hi friends, I am writing a file browser app. I mean all the available files in the sdcard will be shown as a list. while browsing the sdcard, some temp files also listed ( I guess these files are temp, because when I try to open those files, my app get crashed). How can I remove these temp file

[android-developers] Re: J2ME applications on android device

2009-09-17 Thread Desu Vinod Kumar
HI By this j2me runner u can run the jar apps http://www.netmite.com/android/ On Fri, Sep 18, 2009 at 11:24 AM, android student wrote: > > Dear All > > Is it possible to install J2ME applications on andriod device? I read > somewhere that its not possible. are there any alternate ways (such as

[android-developers] J2ME applications on android device

2009-09-17 Thread android student
Dear All Is it possible to install J2ME applications on andriod device? I read somewhere that its not possible. are there any alternate ways (such as third party support) to run J2ME apps on android device. Best Regards, android student --~--~-~--~~~---~--~~ You r

[android-developers] Re: "singleTask" really always at the root of activity stack?

2009-09-17 Thread RickardF
Thanks for the detailed and informative response! It really helped me. /Rickard On 17 Sep, 18:58, Dianne Hackborn wrote: > Ah the problem is that you want to put singleTask on what you have > -published- as your main activity, which is the splash screen.  This is the > thing that the use launch

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-17 Thread Alex Tang
I test my app in HTC GPhone Dream. SystemProperties.get("status.battery.level_raw") will return null. So I use a receiver to receive Intent.ACTION_BATTERY_CHANGED and good news is each time when my app starts, the receiver will receive the intent instantly. So we can get battery level at the fir

[android-developers] Re: 1.6 error with NumericShaper.class?

2009-09-17 Thread Raphael
IIRC awt is a separate library that you need to declare explicitly in your application manifest. http://www.google.com/search?hl=en&q=android+uses-library+awt R/ On Thu, Sep 17, 2009 at 1:49 PM, Beth Mezias wrote: > Hiya, > > When I try to open my SDK 1.1 project with Donut, I get an error (pas

[android-developers] Re: How To Programmatically Turn On/Off WIFI?

2009-09-17 Thread !oEL
Thank you guys. I got rid of the Security Exceptions by adding a couple of permissions, including WAKE_LOCK, which appears to be the exception I got after adding the two WIFI ones. However, now I've managed to actually access the state, but in Emulator it tells me: Failed to load WIFI driver. Th

[android-developers] Re: lucene api

2009-09-17 Thread jaimin mehta
Thanx for the reply but i want to search in my xml file and it contains 90 chapters.when i type word or text to search i want to search in all the 90 chapters in my xml file and display chapters which contain match word or text . so can i use lucene for that task to index my xml file? or any other

[android-developers] How to query MMS or SMS message ID based on a phone number

2009-09-17 Thread hap 497
Hi, How can I query all the MMS/SMS messages from the same phone number? 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@

[android-developers] android screen locked, service stop?

2009-09-17 Thread mwyzq
Hello: I had the program I wrote a service, and in service has written a timer, change the timer for one minute cycle time, but why the program in the phone standby (screen lock) were time, I have the timer will be stop running, when I click the menu, get back to normal mode when the time

[android-developers] Re: Button.setTextColor, how to make it work? Options

2009-09-17 Thread Raphael
If you want to permanently change the color scheme of the button, please consider using a custom style: http://d.android.com/guide/topics/ui/themes.html R/ On Thu, Sep 17, 2009 at 7:22 AM, WoodManEXP wrote: > > Experimenting with some UI ideas I wanted to change the color in a > button view some

[android-developers] Re: How to start debugger on ADP1 device rather than AVD

2009-09-17 Thread Raphael
What is the minSdkVersion for your app? Which android does the avd that starts run? For example if you have minSdkVersion=4 in your app's manifest, ADT will want to locate a system for android-4, but your device only runs android-3 (aka 1.5). One workaround is to edit your launch configuration i

[android-developers] Is Service capable of showing Error Messages in the form of transient notices?

2009-09-17 Thread Kasmoori Bindu
Hi All, Can anyone tell me whether it is possible for a Service to show Success/failure Message Notices without interacting with the Activity? Please respond requires this information urgently. Best Regards, Bindu --~--~-~--~~~---~--~~ You received this message b

[android-developers] How to get custom parameter from custom ui tag

2009-09-17 Thread Ryan
dear all, I try to implement a custom button(OnPressButton), and the code is in below. In LogCat, I can see the two parameters (btn_up/btn_down) value are below: btn_...@drawable/btn_up btn_do...@drawable/btn_up But how can I convert this to point to R.drowable.btn_up and R.drowable.btn_down ?

[android-developers] Re: save new file into asset directory from app

2009-09-17 Thread AJ
Are you trying to load HTML file and its corresponding resources locally? Thanks, AJ On Sep 18, 9:05 am, rooster 808 wrote: > Is it possible for the App to create a new file/asset and write this > into the /assets directory. The reason being, that's the only way I > can tell webkit will load

[android-developers] InputMethodService problem

2009-09-17 Thread HandsomeboyIT
I have some problem when I'm working with InputMethodService. First situation, I create an Activity that has 2 EditText. I'm focus on first one and run InputMethodService function for entering "HelloWorld !!!". The command line is : getCurrentInputConnection().commitText("HelloWorld !!!",1); It

[android-developers] save new file into asset directory from app

2009-09-17 Thread rooster 808
Is it possible for the App to create a new file/asset and write this into the /assets directory. The reason being, that's the only way I can tell webkit will load a local file/resource. thanks, --~--~-~--~~~---~--~~ You received this message because you are subscri

[android-developers] Re: ignoring locked SD Card image (when starting emulator)

2009-09-17 Thread conradt
The second warning obviously disappears when I drop the parameter - skin HTC_HERO. I don't know why though, the param works fine and the emulator correctly displays the HTC Hero device. First warning reg. unlocked SD card is still not resolved though. I already updated to SDK1.6r1, but still the

[android-developers] Re: Route Audio Output to Mic?

2009-09-17 Thread Cheng Zhong
Thanks Roman. But I'm writing an application that wants "Stereo Mix" or "Route Audio output to MIC". It is possible for me to play a specified music, adjust volume or set audio output route. But I can not find a way to route the audio output to the MIC, so that the music playing can be heard by

[android-developers] How to start debugger on ADP1 device rather than AVD

2009-09-17 Thread WoodManEXP
Does anyone know how to get the debugger to launch on an ADP1?. It was recently flashed to 1.5. Dev platform is Eclipse on Windows XP with the SDK 1.5 USB driver installed (HTC Dream Composite Interface). Windows can see the device and adb can see the device with “adb devices” command. USB Debugg

[android-developers] Re: HttpURLConnection getResponseCode

2009-09-17 Thread Maps.Huge.Info (Maps API Guru)
I had this problem as well. I solved it by looping until I got a 200 response. It's 100% effective. Here's is the relevant code: http_response_code = -1 ; HttpURLConnection conn = null ; int iRetry = 0; while ( iRetry < 10 ) { iRetry++ ; try { conn= (HttpURLConnec

[android-developers] Re: Button.setTextColor, how to make it work? Options

2009-09-17 Thread WoodManEXP
Thanks Jack. I think I was confused about how to make the int that is passed as a color. On Sep 17, 11:44 am, Jack Ha wrote: > For example,button.setTextColor(Color.CYAN) should work. > > -- > Jack Ha > Open Source Development Center > ・T・ ・ ・Mobile・ stick together > The coverage you need at the

[android-developers] Re: Adding contacts via Intent

2009-09-17 Thread Ravi
You are missing Contacts.Organizations.COMPANY Title is for the title of the job On Sep 16, 4:19 am, Dmitry Zelenetskiy wrote: > Hello! > > I am trying to add new contact using intent: > > Intent addPersonIntent = new Intent(Intent.ACTION_INSERT_OR_EDIT); > addPersonIntent.putExtra(Insert.NAME,

[android-developers] Re: ADC2 entries so far...

2009-09-17 Thread siuying
Wand http://blog.wandhub.com/2009/08/introducing-wand.html Android comes with a powerful browser, however, many sites are not designed for mobile browsing. Wand transform web pages like Reuters, Engadget, Slashdot, Digg and others into pages that are optimized for mobile usage. --~--~-~--

[android-developers] Re: clear activity stack and replace with a new activity

2009-09-17 Thread Dianne Hackborn
It is not contrived at all, that is the typical behavior when your app is in the background and more memory is needed elsewhere. On a G1 class device where memory is tight, this happens all the time. When the process is killed, your activity state remains in the system, and when the user returns

[android-developers] ImageButton and focus state...

2009-09-17 Thread sdphil
I want to change the android:background value when an image button is selected (selected, not clicked). What's the easiest way to do that? I think I could create a derived class and override onDraw, but isn't there something like onClickListener() where I can get notified when the focus for that

[android-developers] Re: clear activity stack and replace with a new activity

2009-09-17 Thread sdphil
that situation seems a bit contrived. if the process is killed, then when it gets restarted, doesn't it start the activity from whatever I have set in my android manifest file? does it remember what the top most activity was when the process was killed? tia. On Sep 17, 6:07 pm, Dianne Hackborn

[android-developers] Re: Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.

2009-09-17 Thread niko20
hah well good to hear its actually a bug :) but also my workaround will take care of it too for now. :) On Sep 17, 5:07 pm, Dianne Hackborn wrote: > (That said...  there is a bug that will be fixed after 1.6 where if you try > to start an activity from the onCreate/onStart/onResume of the firs

[android-developers] How to debug on ADP1 real device?

2009-09-17 Thread WoodManEXP
How to debug on ADP1 real device Does anyone know how to get the debugger to launch on an ADP1, which was recently flashed to 1.5? I am running Eclipse on Windows XP with the SDK 1.5 USB driver installed (HTC Dream Composite Interface). Windows can see the device and adb can see the device with

[android-developers] Re: clear activity stack and replace with a new activity

2009-09-17 Thread Dianne Hackborn
This will probably break if your process gets killed while in the background. For example, run your app so it has some activities, press home, use adb shell's "ps" to find your process and "kill" to kill it, then select it again from home. You process will be restarted, with the top-most activity

[android-developers] Re: clear activity stack and replace with a new activity

2009-09-17 Thread sdphil
okay, what I wound up doing was to create a base class that all my activities derive from. then I keep track of the activities in a static variable. when a derived activity class calls "finishAll()" it iterates through the activites it knows about and calls "finish()" on them (except if it equal

[android-developers] Re: clear activity stack and replace with a new activity

2009-09-17 Thread sdphil
okay, what I wound up doing was to create a base class that all my activities derive from. then I keep track of the activities in a static variable. when a derived activity class calls "finishAll()" it iterates through the activites it knows about and calls "finish()" on them (except if it equal

[android-developers] Re: MPEG4 playback issue?

2009-09-17 Thread Marco Nelissen
On Thu, Sep 17, 2009 at 2:59 PM, GP wrote: > > We have a clent that has videos online that stream... we are taking > the same videos an converting them to MPEG4 for mobile playback > thhey work for fine for most of the phones that we tested except the > Andiod Phone? > > Does anyone have any

[android-developers] Hero technical question

2009-09-17 Thread AndroidKing
can you tell me if the MEID which is the device ID on the Hero phone is going to be 15 digits is it hex or decimal??? I am developing Hero applications and this is very important. Is it going to be unique from other IMEA (GSM) phones that have Android??? --~--~-~--~~~---

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-09-17 Thread Tom Gibara
I just published a simple class for dealing with this minor compatibility issue; it seems to be working well for my application and it might be useful for anyone else in the same situation. http://blog.tomgibara.com/post/190539066/android-unscaled-bitmaps Tom.

[android-developers] Re: Default behaviour of the Back button

2009-09-17 Thread Dianne Hackborn
The other key point is that generally our model is for data to be edit-in-place, so pressing back from something like contacts will close the screen but retain your edits (since the edits were performed as you did them). There will always be exceptions -- I think gmail confirming you want to cance

[android-developers] Re: HttpURLConnection getResponseCode

2009-09-17 Thread Michael Burton
Reviving an old thread here, but I found a solution that works for me at least. Turned out to be a problem with http.keepAlive: http://stackoverflow.com/questions/1440957/httpurlconnection-getresponsecode-returns-1-on-second-invocation I don't know exactly why that's solving the problem, but th

[android-developers] Re: Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.

2009-09-17 Thread Dianne Hackborn
(That said... there is a bug that will be fixed after 1.6 where if you try to start an activity from the onCreate/onStart/onResume of the first activity in a task, and the next activity is using the dialog theme, then the next activity wouldn't be displayed. You can probably work around this by m

[android-developers] Re: Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.

2009-09-17 Thread Dianne Hackborn
On Thu, Sep 17, 2009 at 1:08 PM, niko20 wrote: > You should never start another activity directly from your OnCreate. > That's not true. In fact there are many places where you want to start an activity here (or in onStart or onResume) to ensure that the next activity it shown before yours to a

[android-developers] MPEG4 playback issue?

2009-09-17 Thread GP
We have a clent that has videos online that stream... we are taking the same videos an converting them to MPEG4 for mobile playback thhey work for fine for most of the phones that we tested except the Andiod Phone? Does anyone have any solutions... the test allowed audio playback but the vide

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-09-17 Thread nEx.Software
It just worked for me... That being said, I have also copied all of the relevant code from the Android Open Source Project, added a replaceContent(Intent intent) method, and done the same thing as before but without the switching to a new tab first... Again, I am almost positive that this is not

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-09-17 Thread Wouter
But i want to show this new activity in the same active tab. now it opens in a new activity without showing my 3 tabs.. On 17 sep, 23:28, "nEx.Software" wrote: > It seems you cannot change the Activity of the current tab using > setContent(); That being said... Doing something you really probabl

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-17 Thread Chris Stratton
On Sep 17, 5:08 pm, Nanard wrote: > But when my Activity 'disapear'   (back button or other)  I would like > to do some cleaning : clean my thread & temp files. > > I need to know when I 'quit' my Activity and when I call onStop() > onDestroy()  only because I have a screen orientation change...

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-17 Thread Nanard
I have founded ! Thanks I should not rely on onStop() nor onDestroy() to know when I quit my Activity. The only safe way is : @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { ... do some cleaning here }

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-09-17 Thread nEx.Software
It seems you cannot change the Activity of the current tab using setContent(); That being said... Doing something you really probably should not do, you can get this to work: Programmatically switch to another tab (something like getTabHost().setCurrentTab(1);), then do MainTabActivity.projectTab.

[android-developers] Re: Signing apps

2009-09-17 Thread gizmomogwai
hi ... i have the same problem: i dont want to change my xml-files or my code (e.g. the google maps key, which must be adapted to the signing key) when i am debugging or when i am releaseing. do you handle this situation with a clever script in your buildprocess? how does android detect if the sig

[android-developers] Re: lucene api

2009-09-17 Thread Yusuf Saib (T-Mobile USA)
What do you mean by "global search"? Do you want to search all your app's local files? Files on the SD card? The internet? Suspicious characters at the airport? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in the

[android-developers] Re: sending sms

2009-09-17 Thread Yusuf Saib (T-Mobile USA)
http://www.google.com/search?client=safari&rls=en&q=android+send+sms&ie=UTF-8&oe=UTF-8 yields http://mobiforge.com/developing/story/sms-messaging-android Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: How to scroll Gallery all the way to the left?

2009-09-17 Thread Romain Guy
You can't, the selected item is always in the middle. On Sep 17, 2009 2:05 PM, "loty" wrote: Can't figure out if it's possible to programatically scroll Gallery to the left so that first item in the gallery is all the way to the left and not in the center of a gallery. Must be simple but I just

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-17 Thread Nanard
> Note that in android you don't actually close activities by choice (I > know, it's odd) they get closed when the system runs out of > resources. Well I can always call finish() to close my window's Activity. My problem is : I have a thread doing things for my Activity. I am successfull ke

[android-developers] How to scroll Gallery all the way to the left?

2009-09-17 Thread loty
Can't figure out if it's possible to programatically scroll Gallery to the left so that first item in the gallery is all the way to the left and not in the center of a gallery. Must be simple but I just can't figure it out. Please help --~--~-~--~~~---~--~~ You rece

[android-developers] Re: Can a native application use java methods in TelephonyManager using getSystemService()

2009-09-17 Thread Roman ( T-Mobile USA)
JNI is bi-directional. You can alsoo call Java methods from native code. I haven't tried this on the Android platform but I assume that it works fine. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the autho

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-09-17 Thread Wouter
Does someone has found an easy solution for this? I have the same issue. I have 3 tabs and I want to show a new activity in one of these tabs! Wouter On Aug 12, 3:47 pm, Sena wrote: > Thanks for the pointers Mark. > S > > On Aug 12, 3:16 pm, Mark Murphy wrote: > > > Sena Gbeckor-Kove wrote: >

[android-developers] 1.6 error with NumericShaper.class?

2009-09-17 Thread Beth Mezias
Hiya, When I try to open my SDK 1.1 project with Donut, I get an error (pasted below). I did a search and cannot find the NumericShaper anywhere in my code. As a matter of fact, I cannot even find an import or call to the java/awt package. Can I get a clue about how I might solve it? Thanks an

[android-developers] Re: tabs iphone style

2009-09-17 Thread Wouter
So what do I have to use? Someone has an example for me? On 17 sep, 17:30, "nEx.Software" wrote: > I had actually copied the sources for TabActivity, TabHost, and > TabWidget from the Open Source Project yesterday, I didn't realize > that this was a change actually until your response. I am not

[android-developers] How to force soft keyboard to be visible?

2009-09-17 Thread Mike Collins
I have a dialog that requires the use to type something. I'd like to force the soft keyboard to be visible when this window starts. I've tried most everything that looks applicable and nothing works. The API demos of SDK 1.5 have a set of windows that have this android:windowSoftInputMode="stat

[android-developers] Re: Donut upgrade and ADC2

2009-09-17 Thread niko20
I dont see why they will "just crash". My app does a lot of sdcard I/O and audio processing, and it works just fine on 1.6 images. I would think most things would continue to do so. I think ADC contestant should just stop worrying about everything all the time. It's like they are out for a gold

[android-developers] Re: Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.

2009-09-17 Thread niko20
Yes, You should never start another activity directly from your OnCreate. Instead, use a postDelayed call to a handler in your parent activity, and inside the Handler function you can then create the child activity. This ensures that the parent activity actually has the ability to complete its On

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-09-17 Thread Tom Gibara
Hmm, interesting... Just had a chance to try this out on 1.5. If I move my bitmaps into a drawable-nodpi directory then the application compiles and executes, but I don't see the images. Inspection with the debugger (plus logging just to make sure) indicates that the bitmaps, when loaded from "nod

[android-developers] Re: Signing apps

2009-09-17 Thread niko20
Why are you not signing it? It's not difficult to generate a key and it doesn't cost anything. -niko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-17 Thread Just Austin
Lifestyle category - Softwhere It's an application that downloads a map and directory for a venue you're visiting, such as a shopping mall. Some of the highlights are: - Search the directory - See events and promotions for points of interest - Filter stores on the map for specific categories - S

[android-developers] Re: Default behaviour of the Back button

2009-09-17 Thread niko20
Hi, The back button is really not meant to be "cancel" usually, but only to exit the current screen you are working on. -niko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Re: access /dev/graphics/fb0 from JNI FAILED

2009-09-17 Thread Romain Guy
Also, you're not expected to use the framebuffer directly :) On Thu, Sep 17, 2009 at 12:43 PM, fadden wrote: > > On Sep 16, 6:30 pm, ZaichengQi wrote: >> I wrote a JNI funtion from my test module using "fbfd = open("/dev/ >> graphics/fb0", O_RDWR)", but the errno from returns me >> EACCES. > >

[android-developers] Re: access /dev/graphics/fb0 from JNI FAILED

2009-09-17 Thread fadden
On Sep 16, 6:30 pm, ZaichengQi wrote: > I wrote a JNI funtion from my test module using "fbfd = open("/dev/ > graphics/fb0", O_RDWR)", but the errno from returns me > EACCES. # ls -l /dev/graphics/fb0 crw-rw root graphics 29, 0 2009-09-17 11:00 fb0 If you're not user "root" or group

[android-developers] sending sms

2009-09-17 Thread Saikat
Please let me know how can I can send sms from my application. Which api I need to use. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develope

[android-developers] Re: Image in RemoteView disappearing or changing

2009-09-17 Thread ccylan
Hi Lee, after more investigation I have determined that when I inflate the remoteview with apply the resource IDs associated with that layout overlap. This causes disappearances with text as well as image views. I am not entirely sure if there is a way around this or if anyone has experienced th

[android-developers] Re: 【招聘】Androi d开发工程师 15-20w-北京

2009-09-17 Thread ake
在成都 差不多15w了, 所以懒得去北京了, 如果25w可以考虑呵呵 On Sep 16, 10:38 am, EdgarSun wrote: > Please don't post any recruting information here. > > On Sep 8, 9:07 am, IDA wrote: > > > > > 职位描述: > > 从事Android或OMS平台手机终端应用的开发。 > > > 职位要求: > > 1、计算机及相关专业本科以上学历; > > 2、良好的Java技术功底; > > 3、熟悉Android系统架构及相关技术,1年以上实际Android平

[android-developers] How to make a button/drawable remain clicked

2009-09-17 Thread k_pip_k
Hello all, I have a GridView with a BaseAdapter that cycles through the elements making views for each element or cell in the grid. What I would like to do is create a clickable image/button, and when the user clicks or touches it, for it to remain clicked and highlighted so that they make click

[android-developers] Re: custom animations for ViewAnimator/ViewFlipper?

2009-09-17 Thread Taf
Hi, I've done a slide in and slide out animation with the viewflipper. You can find the example code here: http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.html In this example i've defined the animations in java. But you can also define them in XML: http://www.inter-

[android-developers] Re: 【招聘】Androi d开发工程师 15-20w-北京

2009-09-17 Thread ake
无法回复??? On Sep 16, 10:38 am, EdgarSun wrote: > Please don't post any recruting information here. > > On Sep 8, 9:07 am, IDA wrote: > > > > > 职位描述: > > 从事Android或OMS平台手机终端应用的开发。 > > > 职位要求: > > 1、计算机及相关专业本科以上学历; > > 2、良好的Java技术功底; > > 3、熟悉Android系统架构及相关技术,1年以上实际Android平台开发经验; > > 4、熟悉无线网络及多媒体应用开发

[android-developers] Filesystem FileSize Limit

2009-09-17 Thread Nic
What is the file size limit on the Android File System (specifically on an sdcard)? I have a test program that opens a file greater than INT_MAX (2,147,483,647 bytes) in size, java.io.FileInputStream and java.io.File are able to operate on the file, but FileChannel returned from FileInputStream.

[android-developers] access /dev/graphics/fb0 from JNI FAILED

2009-09-17 Thread ZaichengQi
I'm trying to access android framebuffer device /dev/graphics/fb0 from JNI function compiled by android NDK 1.5r1. I wrote a JNI funtion from my test module using "fbfd = open("/dev/ graphics/fb0", O_RDWR)", but the errno from returns me EACCES. ps: I logged the module using and see the native

[android-developers] Re: Two SurfaceViews in a FrameLayout

2009-09-17 Thread sonic
On 28 Jul., 11:18, Chris wrote: > Now, I managed to use two SurfaceViews and making one transparent. It would be very nice if you could post some code showing how you do this! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[android-developers] Re: Android 1.6 SDK is here!

2009-09-17 Thread v1n
I can't seem to find the answer to the question below - "Where is theADP1image?", assuming someone attended to it. Has anyone found the image and flashed it successfully to their developer phone? Thanks! On Sep 16, 6:35 am, "Jason D. Clinton" wrote: > On Sep 15, 5:22 pm, Xavier Ducrohet wrote

[android-developers] Streaming video files to the G1 phone (NEED some Help)

2009-09-17 Thread GP
We are developing web-based online videos for consumers to view (that are steamed down from the web) we also have a mobile send a TEXT message to send a mobile version of the video to your cell phone. We are using MPEG4 and the MPEG4 formats suppot almost every broser based phone on the market...

[android-developers] How to create Image filter based animations ; Android Animations

2009-09-17 Thread siddharth_v
Hi I have a requirement to create animations which are based on Image filters. As of now I can see only Alpha Animation support. How can I extend and create these animations such as blur etc. Thanks In advance Sid --~--~-~--~~~---~--~~ You received this message be

[android-developers] lucene api

2009-09-17 Thread jaimin mehta
hi i am new to android . i have developed a application in that application i want a feature of global search in xml file now i want to use Lucene api for global search can i use in android? if yes than plz tell me how can i implements that in my android code thanx jaimin. --~--~-~--~-

[android-developers] Android Kernel

2009-09-17 Thread perumal316
Hi, I have downloaded the Android kernel and done some changes to the kernel config file. After building the output is zImage. I want to test it through the emulator. But when I start the emulator using the new kernel by using this command, ./emulator -avd Android1.5 -kernel "path to zImage" Th

[android-developers] Re: ADC2 entries so far...

2009-09-17 Thread Mart
FUN2Learn - http://fun2learn.roosmaa.net/ Category: Education/Reference --~--~-~--~~~---~--~~ 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.

[android-developers] Can a native application use java methods in TelephonyManager using getSystemService()

2009-09-17 Thread Harsh
Hi I am currently working on porting a application written in C in android platform. I need to know that can i invoke/call the getSystemService from the C application using invocaton interface by JNI. Meaning using a .java file which will interact with the interace provided by the android.tele

[android-developers] Re: How to use CheckBox as children in ExpandableList?

2009-09-17 Thread snakejoe
I got it works, but how can I get which item was checked by users? 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@googleg

[android-developers] Android SDK 1.6 and ADC2

2009-09-17 Thread Jean-Pierre
Hello, The SDK 1.6 is now out, but does someone knows when it will be pushed on hardware ? I am a bit concerned, because I submitted and application to the ADC2 that crash when I run it on 1.6. It works well on 1.5. I hope Google will not update users phone before the end of the ADC2, otherwise o

[android-developers] Help me with the Great Android Developer Survey- win prizes

2009-09-17 Thread Android UK
Hi All, Over at www.androidbloke.co.uk, I am currently compiling a report on who is developing for Android, what their motivations are and what they are developing. To this end, on my site we are hosting the "Android Great Developer Survey" I would be grateful for any Developers to please compl

[android-developers] Re: Content on emulator

2009-09-17 Thread Gawcio
Hi, 1) You can use Camera application to "take a picture" - sample image will appear in the Gallery, but every picture will be the same 2) Files from your computer filesystem can be copied to emulator's filesystem a) using Eclipse plugin you can use File Explorer tab of DDMS Perspective - ther

[android-developers] Re: custom animations for ViewAnimator/ViewFlipper?

2009-09-17 Thread Taf
Hi, I have an example of Using ViewFlipper with animations defined in Java you can see how I did this here: http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.html Are you setting your out animation as well? On Sep 15, 11:30 pm, smallbug wrote: > Hi, > > I am wondering

[android-developers] Re: Attach multiple images

2009-09-17 Thread rde8026
Did anyone come up w/ a solution for this? I've been trying to do the same thing and see the same issue. I've tried to work JavaMail directly but there are issues around the activation.jar and awt files it requires for attachments. Any advice/info would be greatly appriciated. Thx, RE On Aug 2

[android-developers] ignoring locked SD Card image (when starting emulator)

2009-09-17 Thread Mathias Lin
When I start the emulator from command line as below (on windows) I get the following warnings. C:\android-sdk-windows-1.5_r3\tools>emulator -sdcard D:\android-sdk- windows-1.5_r3\tools\sd256m.img -skin HTC_HERO -avd my_avd emulator: WARNING: ignoring locked SD Card image at D:\android-sdk- wind

[android-developers] Hello

2009-09-17 Thread Vinay.Kapoor
Hi, I'm Vinay Kapoor from Tieto. I will post things from time to time. As much as possible, I will also try to answer questions and not just ask them :) -Vinay (http://twitter.com/kapoor_vinay) --~--~-~--~~~---~--~~ You received this message because you are sub

[android-developers] Can you use the BSD licenses as your app's EULA ?

2009-09-17 Thread hzakimoto
I found the new and simplified BSD licenses here: http://www.opensource.org/licenses/bsd-license.php Am I allowed to use this template as my EULA ? Or should I just include a note in my application that "this software is released under the BSD license" and give a link to the BSD license home pa

[android-developers] Re: Signing apps

2009-09-17 Thread Vinay.Kapoor
Hi, Android market works on a community principle. If you write malicious software, the community feedback will warn potential victims. Also, google reserves the right to See sections 4.4, 4.9 and 7.2 in http://www.android.com/us/developer-distribution-agreement.html Section 7.2

[android-developers] Re: Android 1.6 SDK is here!

2009-09-17 Thread QF
Yes, source code is there, but there is not git TAG (something like android-sdk-1.6_r1) in the repo. Is the tree going to be taged soon? QF On Sep 16, 2:15 am, Romain Guy wrote: > > Guys, is there any particular reason for you not to include sources in > > 1.6 as well? > > Sources are available

[android-developers] Re: after launch Gallery, file pushed to sdcard has length 0

2009-09-17 Thread Jandy
hi, allstars I think that android(linux) need the time to sync filesystem ref.. On Sep 17, 3:52 pm, allstars wrote: > hello world > > i use latest android sdk 1.6_r1 > > i launch the emulator(with the avd comes with sdcard ) > > then using adb push to push some videos and pictures onto sdcard >

  1   2   3   >