[android-developers] Unable to get Service of AudioManager

2011-07-11 Thread manoj lasantha
Hi All, i'm novice to developing android apps.basically , i'v tried some simple applications in the virtual devices. but , i tried to implement Toggle Silent Mode app run it on my AVD. But it says , that THe Applicaiton Silent Mode Toggle ,process com.dummies.android.silentmodetoggle has

[android-developers] Help - cant get started

2011-07-11 Thread PhilJ
Hope someone can help I have loaded the Android ADK - including Eclipse etc etc and have gone thru the Hello World app on the Developer SIte. I now want to go thru some of the other tutorials - but cant find how to get to the widgets? Doesnt seem to be a basic tutorial on the eclipse IDE

[android-developers] Newbie - Basic Question

2011-07-11 Thread PhilJ
Ive just got everything set up to do some Android development - Eclips IDE, Java, Emulator etc; Ive done the 'Hello World' app... What I can't find is how I can build a screen visually - a list of widgets to drag and drop onto a form. Is this possible? Not of the tutorials seem to show how to do

[android-developers] Cursor oddity, only observed on 1.6 emulator

2011-07-11 Thread slipp3ry
Please could anyone help before I grind what's left of my teeth away and pull what's left of my hair out. 07-08 14:54:58.623: INFO/dalvikvm(404): Uncaught exception thrown by finalizer (will be discarded): 07-08 14:54:58.623: INFO/dalvikvm(404): Ljava/lang/ IllegalStateException;: Finalizing

[android-developers] Android NDK

2011-07-11 Thread vigneshwaran s
hello hi, im trying to run one simple c/c++ file in eclipse. i follow this website --http://marakana.com/forums/android/examples/ 49.html everything goes correctly without error but finally make APP=ndk_demo is executing but it's not creating lib/ and libndk_demo.so file any where also try

[android-developers] How to suspend/resume and turn on/off WIFI power on Android?

2011-07-11 Thread winamp123
I develop an app, and meet tow questions. 1. I need to suspend/resume device. What function can reach it in Android? 2. I want to turn on/off Wifi power. I review PowerManager and WifiManager and can not find function to realize it. What can I do? -- You received this message because you are

[android-developers] Black Flash when changing VideoURIs in a Video View.

2011-07-11 Thread Scott G.
I have a VideoView which I want to use to play a video. The code below works. VideoView m_videoView; String videoUrl = website url deleted; Uri video = Uri.parse(videoUrl); m_videoView.setVideoURI(video); m_videoView.requestFocus();

[android-developers] PhoneStateListener: Sensitivity to signal strength change

2011-07-11 Thread Yudong
Hi, I am using the PhoneStateListener to collect signal strength information, but I can not find information about its underlying implementation details, which will affect the accuracy of the data collected. My questions are: - is the underlying system service doing sampling/averaging of the

Re: [android-developers] Border around a LinearLayout / rounded edges

2011-07-11 Thread Tyler Collier
This didn't work for me, but after reading this link on StackOverflow,http://stackoverflow.com/questions/3496269/how-to-put-a-border-around-an-android-textview/3496310#3496310I saw what was missing: the solid/ element. So try: shape xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Invoice for registration

2011-07-11 Thread Tomasz Tomaszewski - Shinra
Hi, I would like to know how to receive an invoice from Google, for registering as an official Android Developer ? Is there any option ? Best regards, Tomasz Tomaszewski - Shinra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] how to pass the path to the image file back to another activity

2011-07-11 Thread Shuyi
This is my code. When I log uri, it can show the uri string, but when I try to get the path from the intent the log message shows null. What's wrong with it? Did I use something wrong? File myFile = new File(Environment.getExternalStorageDirectory(),

[android-developers] Re: App not visible from Android Market on the device

2011-07-11 Thread Peter Sinnott
Yesterday some apps had their descriptions in French but only on my tablet. They were fine in the web and phone markets. I guess if infinite monkeys with typewriters can write Shakespeare they can run an online software store. On Jul 9, 11:14 am, nadam a...@anyro.se wrote: Android Market has

[android-developers] Device Password android

2011-07-11 Thread kittu
I am trying to know whether a screen lock password is already present or not, when my app has started. case 1: If there is a screen lock password already... I would do the locking (locknow()) using device manager and ask the user to login again. case 2: If there is no screen lock password i

[android-developers] hindi font

2011-07-11 Thread vineet srivastava
how install hindi font in samsung galaxy s(android 2.3) -- 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

Re: [android-developers] Re: Can somebody give me a Google+ invitation?

2011-07-11 Thread Swapnilkumar Khorate
any one can join now any time On Sat, Jul 9, 2011 at 4:59 PM, Farhan Tariq farhan@gmail.com wrote: ROFLMAO omg hillarious ! On Sat, Jul 9, 2011 at 11:58 AM, Ali Chousein ali.chous...@gmail.comwrote: Fei, please come and join Google+ (Is this good enougn invitation? :-) )

[android-developers] Merge Path instances (graphics)?

2011-07-11 Thread Roland Praehofer
Hi everyone! Is it possible to merge several paths? I guess, the following doesn't work, because every path is seen as a different 'contour'? public void drawTest3(Canvas canvas){ Path p1,p2,p3,p4; p1 = new Path(); p2 = new Path(); p3 = new Path();

[android-developers] Re: Device Suspend and Wakeup and Unlock screen

2011-07-11 Thread winamp123
I want to achieve it too. What can I do using Java? On 7月1日, 下午4时12分, raki rakeshkart...@gmail.com wrote: I want to achieve the following as part of testing automation. Go to devicesuspend/sleep state Wait for 30 sec. Then Wakeup and unlock screen Do the above 2 operations for n number of

[android-developers] Facebook Connect blank Screen Issue

2011-07-11 Thread shanmugam nathan
Hi friends, I'm a beginner for android development. I tried to develop Facebook application which posts and gets status, for this i downloaded FaceBook Connect API with samples. I imported android library even. My program compiles without any error now. But if i run my app. I will get a button

[android-developers] Re: Problems to get Latitude/Longitude from a picture

2011-07-11 Thread Axel B
Hello Raghav, Thank you for your interest in my issue. I'm only sure about the name (there is a picture called IMAG0001.jpg), and about this folder DCIM/100MEDIA/, for I checked by exploring on computer. Then I tried different things for the root folder, but since the examples all use sdcard, I

[android-developers] invalidate(Rect) and getClipBounds() mismatched

2011-07-11 Thread source.rar
Hi, I am trying to redraw a selected rectangular region within my custom view on a touch event. To achieve this I determine the rectangle around the current touchevent location and invoke invalidate(Rect currRect). Dispalying the values of the rect show that the co-ordinates are for the

[android-developers] A large number of messages are being sent -- How to get around it?

2011-07-11 Thread inxis
I'm trying to get around the warning dialog saying that A large number of messages are being sent. This pops out every when the SMS Sender application I am developing is sending over 100 SMS messages. I need to have it turned off.. Is there any way I can do this? I am also thinking of some work

[android-developers] Re: android nfc tech API help

2011-07-11 Thread sumit singhal
Still can you tell me how can I read the data after I figure out the type of card and all the information you mentioned?? And thanks for replying..:) On Jul 10, 12:50 am, Michael Roland mi.rol...@gmail.com wrote: Hallo Sumit, Can you please tell me how can read data from this type of card?

[android-developers] Detect voice-mail forwarding

2011-07-11 Thread sbo
Hi, is it possible to detect if a call is forwarded to voice-mail? I want to hang up phone automatically when I detect voice-mail. Hope someone can help me. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] gps

2011-07-11 Thread Raghav Sood
It is a file. I got the finger print fine. Try running the command again. Maybe you made a typing error. On Sat, Jul 9, 2011 at 9:59 AM, karthik kartmu...@gmail.com wrote: Hello everyone! I am a starting developer in android apps. I ve started my project in GPS. So,I need to get a Google

Re: [android-developers] hindi font

2011-07-11 Thread Raghav Sood
You should ask this on the device forums and not a developers list. On Sat, Jul 9, 2011 at 4:45 PM, vineet srivastava vineetv...@gmail.comwrote: how install hindi font in samsung galaxy s(android 2.3) -- You received this message because you are subscribed to the Google Groups Android

[android-developers] how to press on a particular menu item using touch in monkeyrunner script?

2011-07-11 Thread frank
how to press on a particular menu item using touch in monkeyrunner script? -- 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

Re: [android-developers] gps

2011-07-11 Thread Robin Talwar
All keystores are file just check the path again and type carefully. this could be irritating for beginners On Mon, Jul 11, 2011 at 7:49 PM, Raghav Sood raghavs...@gmail.com wrote: It is a file. I got the finger print fine. Try running the command again. Maybe you made a typing error. On

Re: [android-developers] Newbie - Basic Question

2011-07-11 Thread Raghav Sood
Go to your layout xml file. There will be a black screen there. Use the column on the left to drag and drop. Or use DroidDraw. On Mon, Jul 11, 2011 at 12:39 PM, PhilJ philjandk...@btinternet.com wrote: Ive just got everything set up to do some Android development - Eclips IDE, Java, Emulator

Re: [android-developers] Android architecture

2011-07-11 Thread Raghav Sood
http://developer.android.com On Fri, Jul 8, 2011 at 6:12 PM, Perumss Naren peru2...@gmail.com wrote: Hi, i need the basic idea of Android architecture please provide the useful link. Regards, Perumal.N -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] A large number of messages are being sent -- How to get around it?

2011-07-11 Thread Mark Murphy
On Mon, Jul 11, 2011 at 3:23 AM, inxis smeb...@gmail.com wrote: I'm trying to get around the warning dialog saying that A large number of messages are being sent. This pops out every when the SMS Sender application I am developing is sending over 100 SMS messages. I need to have it turned

Re: [android-developers] Invoice for registration

2011-07-11 Thread Mark Murphy
You should get a receipt. It is highly unlikely that you will get an invoice. On Fri, Jul 8, 2011 at 5:14 PM, Tomasz Tomaszewski - Shinra tomasz.philip.tomaszew...@gmail.com wrote: Hi, I would like to know how to receive an invoice from Google, for registering as an official Android Developer

Re: [android-developers] onLocationChanged does not get called (it works before)

2011-07-11 Thread Raghav Sood
Can you tell us what modifications you made to the code? On Mon, Jul 11, 2011 at 6:53 AM, David lim...@gmail.com wrote: Hi All, I am trying to get location update and followed some good tutorial. Initially, onLocationChanged was called frequently. But after I made certain simple

Re: [android-developers] Android NDK

2011-07-11 Thread Mark Murphy
Questions regarding the NDK should go to the [android-ndk] Google Group. On Sat, Jul 9, 2011 at 3:28 AM, vigneshwaran s vigns.w...@gmail.com wrote: hello hi, im trying to run one simple c/c++ file in eclipse. i follow this website --http://marakana.com/forums/android/examples/ 49.html

[android-developers] Re: How can I deny other apps to read my package signature?

2011-07-11 Thread Richard
Ok, but is there any way to be sure that it's the original package? I use open key to encode data in my app so hacker never sees comparison explicitly, but of course if he know my signature open key this doesn't help. What can you advise? As I see Android does everything to make all our efforts

Re: [android-developers] getSharedPreferences() method

2011-07-11 Thread Mark Murphy
On Fri, Jul 8, 2011 at 6:05 PM, OneaDayJ onead...@gmail.com wrote: I tried to sign up for the beginners forum but had no luck. That Google Group has been discontinued for a year or so. My question is that I am reading a book called sams teach yourself android development and am completely

Re: [android-developers] Starting other apps - finding the activity name

2011-07-11 Thread Mark Murphy
On Sat, Jul 9, 2011 at 1:11 PM, JonnyG jongre...@gmail.com wrote: I see a lot of posts about starting other apps, and I've got code to do that for my apps.  How do I find out the activity name of another app? Ideally, you don't. For example, I've got a request to add buttons to my app to

Re: [android-developers] Re: How can I deny other apps to read my package signature?

2011-07-11 Thread Raghav Sood
Probably not the best method but you can have it send an md5 of its contents to your web server, generated at run time. If the md5 matches the md5 you have on your server pre defined then its authentic. The md5 will be different for all versions of your app and you must only generate it using non

Re: [android-developers] Instant messenger

2011-07-11 Thread TreKing
On Fri, Jul 8, 2011 at 9:02 AM, mansuri naeem mansurinaeem...@gmail.comwrote: i need project in asp.net... give me any suggestion..? Find a forum that has to do with ASP.Net? - TreKing

[android-developers] bluetooth on LG Optimus

2011-07-11 Thread bob
How do I turn on bluetooth on my LG Optimus phone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Relative layout java

2011-07-11 Thread JCC
anyone? =( I really need help with 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

Re: [android-developers] Re: NFC card emulation, NXP PN544 and S2C (NFC-WI)

2011-07-11 Thread Michael Roland
Hallo, I understand that there are no NFC-WI enabled microSD cards on the market. Anyway I think the SD Card Association has some standards, which specify two additional 13.56Mhz RF antenna pins complaint with ISO 10373-6 (check here

[android-developers] Re: How can I deny other apps to read my package signature?

2011-07-11 Thread Richard
So how can I get md5 of dex file in runtime? On Jul 11, 6:39 pm, Raghav Sood raghavs...@gmail.com wrote: Probably not the best method but you can have it send an md5 of its contents to your web server, generated at run time. If the md5 matches the md5 you have on your server pre defined then

Re: [android-developers] bluetooth on LG Optimus

2011-07-11 Thread Raghav Sood
Read the user manual and don't use a developer's list for these questions. Use a device forum. On Mon, Jul 11, 2011 at 8:11 PM, bob b...@coolgroups.com wrote: How do I turn on bluetooth on my LG Optimus phone? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Info about android

2011-07-11 Thread Marcin Orlowski
On 9 July 2011 10:00, fox alessandra.tara...@gmail.com wrote: I'm a SW developper and I'm very interesting to upgrade my knoledgement about Android. I have experence in GSM developper application and GSM Protocol stack. Please Could you indicate me where I can find information (document

[android-developers] Advice on Canvas vs OpenGL, performance vs CPU/battery and live wallpapers

2011-07-11 Thread Adam Ratana
I'm looking for any advice from anyone who has done both Canvas and OpenGL implementations (in general, not just for wallpapers). I've done a lot of canvas related drawing and have had good results with it. There is a live wallpaper project I'm getting involved in, and while I think I should

[android-developers] TextWatcher is not giving result n inherited SimpleAdapter

2011-07-11 Thread Manish Garg
Hi All, private class AddedSenderAdapter extends SimpleAdapter{ public AddedSenderAdapter(Context ctx, ListHashMapString, String data, int resource, String[] from, int[] to) { super(ctx,

[android-developers] Re: Detect voice-mail forwarding

2011-07-11 Thread sbo
Can I use PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR? On Jul 11, 4:13 pm, sbo florian.schr...@aon.at wrote: Hi, is it possible to detect if a call is forwarded to voice-mail? I want to hang up phone automatically when I detect voice-mail. Hope someone can help me. Thanks. --

[android-developers] Re: How can I deny other apps to read my package signature?

2011-07-11 Thread Richard
Have just found: ZipFile zipFile = new ZipFile(context.getPackageCodePath()); ZipEntry zipEntry = zipFile.getEntry(new String(Common.CLASS_DEX)); int crc = zipEntry.getCrc(); Will try it out. On Jul 11, 6:47 pm, Richard sa19791...@gmail.com wrote: So how can I get md5 ofdexfilein runtime? On

[android-developers] Re: Relative layout java

2011-07-11 Thread Robert Nekic
You're not positioning anything. If you simply add views to a RelativeLayout, they overlap. You have to define how it should position views relative to other views, hence the name. Below this, to the left of that, etc. It's all explained in the docs:

[android-developers] Re: Relative layout java

2011-07-11 Thread JCC
but adding the rules isnt like defining the position of items? because on the second one for example I got to say that it should be below the first textview by saying ageParams.addRule(RelativeLayout.BELOW,viewNombre.getId()); -- You received this message because you are subscribed to the Google

Re: [android-developers] How to check internet connection in background when application closed

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 5:18 AM, N K Shrivastva kumarnaveen.si...@gmail.com wrote: How to check internet connection in background when application closed by user. i have idea about Async class and it's method, i want it's works in background when application closed then after also. i want

Re: [android-developers] Re: How can I deny other apps to read my package signature?

2011-07-11 Thread Nikolay Elenkov
On Mon, Jul 11, 2011 at 11:28 PM, Richard sa19791...@gmail.com wrote: Ok, but is there any way to be sure that it's the original package? I use open key to encode data in my app so hacker never sees comparison explicitly, but of course if he know my signature open key this doesn't help. What

Re: [android-developers] Merge Path instances (graphics)?

2011-07-11 Thread Nikolay Elenkov
On Mon, Jul 11, 2011 at 11:02 PM, Roland Praehofer r.praeho...@googlemail.com wrote: Hi everyone! Is it possible to merge several paths? Yes. I guess, the following doesn't work, because every path is seen as a different 'contour'? What exactly is the problem? BTW, do you really need to

[android-developers] Re: Enforcing security on broadcast receiver without access to calling package

2011-07-11 Thread Corey Z
Anyone? -- 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,

[android-developers] Re: Relative layout java

2011-07-11 Thread Robert Nekic
Whoops! Sorry I didn't notice that. Yes, at a glance it looks correct. This doesn't really answer the question directly but have you tried using a layout file instead? On Jul 11, 11:34 am, JCC banr...@gmail.com wrote: but adding the rules isnt like defining the position of items? because on

Re: [android-developers] Gallery center item in the middle

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 8:55 AM, vani reddy vani.reddy.bl...@gmail.comwrote: How to make the first image in the gallery to start from the leftmost side of the device,since images are displayed starting from center, as seen in the snapshot attached. Use the functions available to you to set

Re: [android-developers] Application installation problem in emulator

2011-07-11 Thread TreKing
On Fri, Jul 8, 2011 at 5:25 AM, Arpit Trivedi arpit.t...@gmail.com wrote: my application is not installing on android emulator even i use simle hello world application. Would you like to elaborate or should we guess at not installing means and what you've tried to do? =P

Re: [android-developers] Automatic installation and Protection level 3 in android

2011-07-11 Thread TreKing
On Sun, Jul 10, 2011 at 7:05 AM, ashish keshri ashishkcusa...@gmail.comwrote: After downloading apk file fro remote server. I want to start automatic installation programmatically. You can't do this, as you found out.

[android-developers] about lock screen : is anyone using app named 'lookout'?

2011-07-11 Thread JK Park
I'm looking for any idea from anyone who has done such like 'lock screen'. I know there is no way to handle home key in activity. but I found app named 'lookout'. this app has remote lock service from web site. here is link : www.mylookout.com this lock service seems it can control key event. does

Re: [android-developers] Enforcing security on broadcast receiver without access to calling package

2011-07-11 Thread Mark Murphy
On Wed, Jun 29, 2011 at 9:06 PM, Corey Z czua...@gmail.com wrote: Is there any way to get the calling package when the BroadcastReceiver receives an intent? Not that I am aware of. I thought that granting a temporary permission to the calling package would work but I have found very little

[android-developers] Re: Relative layout java

2011-07-11 Thread Robert Nekic
If I try something similar by adding the child views to an activity with an empty RelativeLayout, things position OK. But if I try your custom RelativeLayout class and add that to the activity, the child views overlapping. Hmmm... On Jul 11, 11:48 am, Robert Nekic robertne...@gmail.com wrote:

Re: [android-developers] about lock screen : is anyone using app named 'lookout'?

2011-07-11 Thread Raghav Sood
I use it. It doesn't control the home screen. It just locks your device the same way the power button would. On Mon, Jul 11, 2011 at 9:36 PM, JK Park jkpar...@gmail.com wrote: I'm looking for any idea from anyone who has done such like 'lock screen'. I know there is no way to handle home key

Re: [android-developers] Custom Progress Bar

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 2:27 AM, Atul Singh atulsingh7...@gmail.com wrote: Could anyone please guide me in doing this, as i m relatively new to Andorid and know much less about creating custom views. I have attached the screen shots of emulator which shows the needed Progress Bar.

Re: [android-developers] Starting other apps - finding the activity name

2011-07-11 Thread lbendlin
we have a scenario where our app ideally should run in the background, together with a primary app in the front. Here's how we fill the preference selector //fill the app list - ignore system apps final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);

Re: [android-developers] Re: Problems to get Latitude/Longitude from a picture

2011-07-11 Thread Raghav Sood
The images can be saved to locations defined by you. Maybe you defined a location in your app and forgot about it and are trying to use another location. Also the image names will change as you take more images and want to use a different one. It is also possible, but unlikely, that you are saving

Re: [android-developers] App ranking issue on Android Market search results

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 2:38 AM, Charles Bézard charles.bez...@gmail.comwrote: Does somebody know if there is a difference between ranking on mobile and web versions of Android Market? There appears to be. Does anyone know how I can fix this problem? Doubtful you can.

[android-developers] Re: calendar set repeat for an event

2011-07-11 Thread leslie.karpati
I think Google Calendar API is not a good solution for me because, I need access to the calendar without data connection too. So if I want to use the content://com.android.calendar/events way, how can I set a yearly repeat? Thanks, Leslie On júl. 8, 12:06, Mark Murphy mmur...@commonsware.com

Re: [android-developers] How to check internet connection in background when application closed

2011-07-11 Thread ashish keshri
Hi Can you please shareyour logic and code. Thanks On Mon, Jul 11, 2011 at 4:19 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Mon, Jul 11, 2011 at 3:48 PM, N K Shrivastva kumarnaveen.si...@gmail.com wrote: How to check internet connection in background when

Re: [android-developers] Help - cant get started

2011-07-11 Thread TreKing
On Sat, Jul 9, 2011 at 4:15 AM, PhilJ philjandk...@btinternet.com wrote: I now want to go thru some of the other tutorials - but cant find how to get to the widgets? Doesnt seem to be a basic tutorial on the eclipse IDE environment - the tutorial say things like 'select a date time picker

[android-developers] Re: How can show two view at the same time?

2011-07-11 Thread Ali Chousein
I think your question is not very clear, but I would suggest you to put your views in a RelativeLayout. Studying RelativeLayout in the samples shoud take you somewhere. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for

Re: [android-developers] How to suspend/resume and turn on/off WIFI power on Android?

2011-07-11 Thread TreKing
On Sun, Jul 10, 2011 at 4:33 AM, winamp123 rayman@gmail.com wrote: 1. I need to suspend/resume device. What function can reach it in Android? What is suspend/resume device? 2. I want to turn on/off Wifi power. What is Wifi power?

Re: [android-developers] Enforcing security on broadcast receiver without access to calling package

2011-07-11 Thread Corey Z
Thank you for your response. I may be mistaken about the intended purpose, but what I was referring to is the permission-treehttp://developer.android.com/guide/topics/manifest/permission-tree-element.html. There appears to be a function for dynamically adding permissions. However, I realize

Re: [android-developers] Re: calendar set repeat for an event

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 11:41 AM, leslie.karpati leslie.karp...@gmail.comwrote: So if I want to use the content://com.android.calendar/events way, how can I set a yearly repeat? The Android Calendar is currently a private implementation detail that has changed across Android versions and

Re: [android-developers] Enforcing security on broadcast receiver without access to calling package

2011-07-11 Thread Mark Murphy
On Mon, Jul 11, 2011 at 1:02 PM, Corey Z czua...@gmail.com wrote: Thank you for your response. I may be mistaken about the intended purpose, but what I was referring to is the permission-tree. There appears to be a function for dynamically adding permissions. However, I realize that it most

[android-developers] Any way to clear EditText box while testing?

2011-07-11 Thread darrinps
I have a case where the application remembers the last text that was entered into it. I want to be able to replace that text with something else in my test but I don't see any such method in the Instrumentation class! What I do is something like this. See the comment for an instruction I need to

Re: [android-developers] Re: calendar set repeat for an event

2011-07-11 Thread Mark Murphy
On Mon, Jul 11, 2011 at 1:09 PM, TreKing treking...@gmail.com wrote: On Mon, Jul 11, 2011 at 11:41 AM, leslie.karpati leslie.karp...@gmail.com wrote: So if I want to use the content://com.android.calendar/events way, how can I set a yearly repeat? The Android Calendar is currently a private

[android-developers] Problem to stop handler in widget

2011-07-11 Thread GuiZ
Hi everyone, i have a problem to stop and handler (i try also a timer i have the same problem) that i call in a widget. I try to remove callbacks but the hander doesn't stop. Make handler private Handler handler = new Handler(); private Runnable runnable = new Runnable() { @Override

[android-developers] List with checkboxes problem

2011-07-11 Thread java doctor
i made an app which includes ListFragment every item includes checkbox and textview problem is when i click on the line, the checkbox is selected/ deselected and and thus the onItemClick of the list is not working. anyone has an idea how can i change behavior of this? i want to be able to click

Re: [android-developers] Posible bug in NFC foreground dispatch system

2011-07-11 Thread Mark Murphy
On Mon, Jul 11, 2011 at 11:44 AM, paul.goldbaum paul.goldb...@gmail.com wrote: I'm not 100% sure if this is a bug or it's the expected behaviour, but I didn't find anything about it in the docs. When an activity is started by an ACTION_SEND intent coming from the system, foreground dispatch

[android-developers] Posible bug in NFC foreground dispatch system

2011-07-11 Thread paul.goldbaum
Hi, I'm not 100% sure if this is a bug or it's the expected behaviour, but I didn't find anything about it in the docs. When an activity is started by an ACTION_SEND intent coming from the system, foreground dispatch doesn't work as expected. Instead of calling the onNewIntent() function of the

Re: [android-developers] Problem to stop handler in widget

2011-07-11 Thread Mark Murphy
Get rid of the Handler from the app widget. BroadcastReceivers cannot reliably use things that will continue after onReceive() (or, in the case of an AppWidgetProvider, onUpdate()). On Mon, Jul 11, 2011 at 11:40 AM, GuiZ g.camerli...@gmail.com wrote: Hi everyone, i have a problem to stop and

Re: [android-developers] getSharedPreferences() method

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 9:30 AM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Jul 8, 2011 at 6:05 PM, OneaDayJ onead...@gmail.com wrote: I tried to sign up for the beginners forum but had no luck. That Google Group has been discontinued for a year or so. An unofficial beginner's group

Re: [android-developers] Facebook Connect blank Screen Issue

2011-07-11 Thread Mohammed Hossain Doula
Please visit my blog regarding android facebook tutorial... http://hossaindoula.blogspot.com/2011/06/android-facebook-tutorial.html On Sun, Jul 10, 2011 at 8:51 PM, shanmugam nathan shanmugam.andr...@gmail.com wrote: Hi friends, I'm a beginner for android development. I tried to develop

[android-developers] Re: How can I deny other apps to read my package signature?

2011-07-11 Thread Richard
Thanks for the warning and for the link, will check it out! On Jul 11, 7:38 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jul 11, 2011 at 11:28 PM, Richard sa19791...@gmail.com wrote: Ok, but is there any way to be sure that it's the original package? I use open key to encode

[android-developers] Bluetooth help

2011-07-11 Thread bob
I got my computer paired with my phone by Bluetooth. How do I get Eclipse to detect the phone by Bluetooth? -- 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

Re: [android-developers] Bluetooth help

2011-07-11 Thread Kristopher Micinski
On Mon, Jul 11, 2011 at 12:49 PM, bob b...@coolgroups.com wrote: I got my computer paired with my phone by Bluetooth. How do I get Eclipse to detect the phone by Bluetooth? What do you want to do? Bluetooth support is not in the emulator. Kris -- You received this message because you are

Re: [android-developers] Bluetooth help

2011-07-11 Thread Raghav Sood
Why do you want eclipse to detect your phone over bluetooth? AFAIK it doesn't support it, at least not natively. On Mon, Jul 11, 2011 at 11:19 PM, bob b...@coolgroups.com wrote: I got my computer paired with my phone by Bluetooth. How do I get Eclipse to detect the phone by Bluetooth? --

[android-developers] Scrolling views horizontally

2011-07-11 Thread Y P
Greetings! I'm developing an android 2.2 app in which I have to implement a view as shown in the attachment. This view flips horizontally like in Hulu's home page http://www.hulu.com/ A user should be able to swipe it to flip the views and the views should also flip on their own every few

[android-developers] Re: Any way to clear EditText box while testing?

2011-07-11 Thread darrinps
I figured out a way to do it. Just loop through advancing the cursor until you are at the end using a single key then sending the backspace until you are done: //Now we need to delete whatever is there. No easy way to do this in the Instrumentation class...do it a key at a time

[android-developers] Eclipse errors in XML ... but where is the error? results

2011-07-11 Thread Jim Graham
I'm seeing two errors for one line in a string-array that make absolutely no sense. Here's the line in question: itemUse 5% to 10% for a noticeable smoke character in lighter styles such as Scottish Ales and Oktoberfests, 10% to 20% for a pronounced smoke character in lighter styles

[android-developers] Re: Android partially destroying an app?

2011-07-11 Thread nadam
The docs says this: http://developer.android.com/guide/topics/fundamentals/activities.htm... Yes. But it doesn't say exactly when this would happen and it doesn't say whether a single Activity could be destroyed or only as part of the whole app being destroyed (or when this would happen). Not

[android-developers] voice and typed in search

2011-07-11 Thread Andrea
Hi, Is it possible to distinguish between voice and typed in search from the intent fired by the android integrated search? Am I missing any parameter attached to the intent the helps to determine if user has spoken or pressed the search button? Thank you. a.p. -- You received this message

[android-developers] use singleton to store data

2011-07-11 Thread Dayvid Victor
Hello Everybody, I have a project that I'm organizing and it is using a Singleton to store information about a object X in database. It is used by other activities ... is it ok to use singletons in android? or I should just use intent to save infos. tks. -- Dayvid Victor R. de Oliveira 9º

Re: [android-developers] use singleton to store data

2011-07-11 Thread Kumar Bibek
Well, Singletons are fine in Android. But, it really depends on how you intend to use it. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Jul 12, 2011 at 12:11 AM, Dayvid Victor victor.d...@gmail.comwrote: Hello Everybody, I have a project

[android-developers] Re: Android partially destroying an app?

2011-07-11 Thread nadam
Thanks Dianne. In that case I'd say the myth is kind of busted. On 10 Juli, 20:05, Dianne Hackborn hack...@android.com wrote: It will only destroy activities if you have a large number of them on your stack.  In practice, I think most apps will hit an out of memory error on their local heap

Re: [android-developers] Re: Android partially destroying an app?

2011-07-11 Thread Kostya Vasilyev
11.07.2011 22:36, nadam пишет: The docs says this: http://developer.android.com/guide/topics/fundamentals/activities.htm... Yes. But it doesn't say exactly when this would happen and it doesn't say whether a single Activity could be destroyed or only as part of the whole app being destroyed

[android-developers] Re: use singleton to store data

2011-07-11 Thread Streets Of Boston
Yes, it's fine to use them. It depends on your singleton's functionality as well. Note that your app's process can be killed and restarted, and you shouldn't rely on any particular Activity in your app to be started up first in order for your singleton to be (re)loaded correctly. Usually,

Re: [android-developers] use singleton to store data

2011-07-11 Thread Justin Anderson
Just remember that the singleton may not always be around... It can be destroyed at any time by the OS. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 11, 2011 at 12:44 PM, Kumar Bibek coomar@gmail.com wrote: Well, Singletons are fine in

[android-developers] Re: Android partially destroying an app?

2011-07-11 Thread nadam
Yep. That's what I explained in the what actually happened part in my original post. One solution, as you write, is lazy initialization. Another is to do the initialization in the onCreate() callback of an Application subclass, since that's called before any Activity's onCreate(). Thanks for the

Re: [android-developers] Scrolling views horizontally

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 12:55 PM, Y P yvp2...@gmail.com wrote: I have looked into ViewFlipper. I'm under the impression that ViewFlipper requires a button (which I don't want to use) to flip the views. Is that right? What gave you that impression? I've not used ViewFlipper, but the functions

<    1   2   3   >