[android-developers] Re: Add RelativeLayout in LinearLayout thru code

2008-05-10 Thread Dan U.
Layout for this? Regards, Dan U. wrote: Your code works fine for me. Do you have more information about the crash? Is there a stack trace? I did change it a bit to let me test with an xml layout (I tested both with xml layout and programmatically): class ViewLayout extends LinearLayout

[android-developers] Re: Null pointer Exception while accessing Textfile

2008-05-10 Thread Dan U.
Without knowing more about your code, I'd say activity is null. On May 10, 2:51 am, Analdin Judy [EMAIL PROTECTED] wrote: Hi, Can anybody please tell me the reason for null pointer exception while reading a textfile I use the below code to read the textfile in raw.

[android-developers] Re: using mysql

2008-05-08 Thread Dan U.
Use a web service between your client and your database. On May 8, 6:59 am, neo beyond the matrix [EMAIL PROTECTED] wrote: I want to access a mysql database from android –sending/receiving data great answers welcome :) neo --~--~-~--~~~---~--~~ You received

[android-developers] Re: Add RelativeLayout in LinearLayout thru code

2008-05-04 Thread Dan U.
Your code works fine for me. Do you have more information about the crash? Is there a stack trace? I did change it a bit to let me test with an xml layout (I tested both with xml layout and programmatically): class ViewLayout extends LinearLayout { public ViewLayout(Context context,

[android-developers] Re: Static variables or variables, saved in Bundle?

2008-05-04 Thread Dan U.
http://groups.google.com/group/android-developers/browse_thread/thread/502fe58d8ed44102 might be of help. On May 4, 10:12 pm, vitvikt [EMAIL PROTECTED] wrote: Hi, all Can anybody say, for what purpose in Snake example saveState() used? Before this function we can read: /** * Save game

[android-developers] Re: All Screen Size...

2008-05-04 Thread Dan U.
http://code.google.com/android/devel/resources-i18n.html#AlternateResources On May 4, 9:45 pm, baskar [EMAIL PROTECTED] wrote: Hi All, How to implement my application on all screen sizes in the emulator?... Regards, Baskar. --~--~-~--~~~---~--~~ You

[android-developers] Re: is this still true?

2008-05-01 Thread Dan U.
Ah, now I see. Thanks. On Apr 30, 10:36 pm, Romain Guy [EMAIL PROTECTED] wrote: 9 just rotates the emulator skin. Try Ctrl-PageDown instead. On Wed, Apr 30, 2008 at 9:19 PM, Dan U. [EMAIL PROTECTED] wrote: I must be doing something wrong. In my activity, I have

[android-developers] Re: is this still true?

2008-04-30 Thread Dan U.
Are you saying in order to test this with the emulator, I need to have android:configChanges=orientation|keyboardHidden? On Apr 30, 2:17 pm, hackbod [EMAIL PROTECTED] wrote: You also need to handle the keyboardHidden change. On Apr 30, 1:47 pm, Dan U. [EMAIL PROTECTED] wrote

[android-developers] Re: dialog user input box

2008-04-28 Thread Dan U.
] \button[OK] ---­- Please give me suggestions on how to achieve this. thanks, On Apr 27, 9:46 pm, Dan U. [EMAIL PROTECTED] wrote: Probably you should look into extending theDialogclass. Just

[android-developers] Re: use of Handler.post

2008-04-26 Thread Dan U.
If you notice the api docs say that creating a Handler associates it with the current thread. Probably you create your Handler instance while setting up the UI? That should mean the UI thread is what it uses when you use your Handler. That would explain why you have a frozen UI. Quite often a

[android-developers] Re: use of Handler.post

2008-04-26 Thread Dan U.
, 22:49, WildLuka [EMAIL PROTECTED] wrote: supposing you have a service with an certain number of methods and the service is to run in its own thread ... how would you do it ? On Apr 26, 10:41 pm, Dan U. [EMAIL PROTECTED] wrote: If you notice the api docs say that creating a Handler

[android-developers] Re: Error no space left on device

2008-04-24 Thread Dan U.
Sounds like you are trying to install a large file or already have other files taking up a lot of disk space on the emulator. On Apr 24, 4:19 pm, Yatish [EMAIL PROTECTED] wrote: hi , when i am run android application following error was encoutered. Failed to install FinalVideo.apk on

[android-developers] Re: failure to connect to database

2008-04-23 Thread Dan U.
Well, java.sql.NClob appears to be the problem. It looks like that class is in rt.jar in a normal Java jre. Probably not part of Android because I doubt they expect people to be doing this (I agree with Charlie on why). I don't know why you don't have a choice, but I'll say it looks like a bad

[android-developers] Re: How to dinamically change the activity that is launched when selecting the app icon?

2008-04-22 Thread Dan U.
the contact list(ie, the UI stack was dropped, restarting UI again) ? Thanks, André Oriani On 21 abr, 22:44, Dan U. [EMAIL PROTECTED] wrote: I think the intention is that a login screen activity will always be launched. You should be able to just check to see if the user is logged

[android-developers] Re: RemoteService not found

2008-04-22 Thread Dan U.
This sounds like the same issue I helped with a day or two ago. The code you posted looks like it handles callbacks from the service. I'd guess that has nothing to do with the problem. It'd be more helpful I think to see all your code since there is a lot more going on in the remote service

[android-developers] Re: Bug in date picker?

2008-04-22 Thread Dan U.
I'm not sure about the original problem, but the time being off might be an issue I reported a long time ago about the emulator not displaying the time using the computers timezone. Apparently it's a problem with specific timezones and/or operating systems. On Apr 22, 12:30 pm, OmarFlores [EMAIL

[android-developers] Re: How to dinamically change the activity that is launched when selecting the app icon?

2008-04-21 Thread Dan U.
I think the intention is that a login screen activity will always be launched. You should be able to just check to see if the user is logged in inside the onCreate of the login activity, then forward to the main activity (and I think make a finish() call in the login activity) if they are logged

[android-developers] Re: What adapter to use with a Spinner and a ListView in the same layout?

2008-04-18 Thread Dan U.
Ah, so the xml you posted is notes_list.xml? That might be the problem. I think the adapter is looking for a layout file describing a single item in the list, not the layout that contains the listview. On Apr 17, 5:22 pm, Fred Janon [EMAIL PROTECTED] wrote: I was looking through your code and

[android-developers] Re: File Upload Website Interaction

2008-04-16 Thread Dan U.
Well, it looks to me like the author re-invented the wheel. It's quite easy to post an image to a server. Here's some code in one of my applications that has been modified to be more generic. I didn't test the modifications, but it should work. Note that I'm posting both the file (videoFile) and

[android-developers] Re: i try to catch an exeption in a thread but although it does throws the exeption the catch i planted did not cought it, why is that?

2008-04-15 Thread Dan U.
I suspect that's a typo and you mean UnknownHostException? Do you have a stack trace being printed in logcat when this isn't handled? If so, can you post it? On Apr 15, 1:24 pm, E.D.I [EMAIL PROTECTED] wrote: UnknowHostException --~--~-~--~~~---~--~~ You received

[android-developers] Re: Null Point Exception!

2008-04-13 Thread Dan U.
I'm guessing whatever activity you have this xml layout for doesn't set an adapter for that listview? That would be a null pointer exception I believe (yes, kind of a bad exception for that). On Apr 13, 2:14 pm, SQLserver [EMAIL PROTECTED] wrote: Hello- Here's an exception I keep getting:

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread Dan U.
I think it'd be KKList.setOnClickListener. But perhaps you want setOnItemClickListener? On Apr 13, 2:38 pm, SQLserver [EMAIL PROTECTED] wrote: Hello- Here's the code I'm connecting to a ListView with: String[] Strings = String.split(,, 100); KKList = (ListView)

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread Dan U.
ListView lv = (ListView)findViewById(R.id.list2); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) {

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread Dan U.
The answer was in my last post. On Apr 13, 6:50 pm, SQLserver [EMAIL PROTECTED] wrote: No, I'm just really learning Java and Android... Too bad the ADC is due tomorrow though, if I had a few more months I'd probably have a submission. It appears that arg1 is the text in the item, but it

[android-developers] Re: Checkbox align label

2008-04-12 Thread Dan U.
There's probably some nice way of doing this (styles), but off the top of my head, I'd say don't set any text for the checkbox and add a textview to the left for your label. On Apr 12, 11:41 am, Redhunt [EMAIL PROTECTED] wrote: Here is an easy question but I can't find the easy answer. How can

[android-developers] Re: Is a Service already running?

2008-04-12 Thread Dan U.
Actually, it would be fairly easy to do this, but I don't think there is an existing method for it. First, create some kind of flag in the Service to represent whether it's running. Update this flag in onStart and onDestroy. Then provide a public static method to access this flag. I would be

[android-developers] Re: ListView throws Exception

2008-04-12 Thread Dan U.
:56 pm, pyf [EMAIL PROTECTED] wrote: Yes, it's working. You mean the way I used is not correct? but that's what mentioned in API. From exception, it seems it could not find android.R.id.list. On Apr 12, 1:17 pm, Dan U. [EMAIL PROTECTED] wrote: You are extending ListActivity right? Maybe you

[android-developers] Re: Is a Service already running?

2008-04-12 Thread Dan U.
... On Apr 12, 9:08 pm, Dan U. [EMAIL PROTECTED] wrote: Actually, it would be fairly easy to do this, but I don't think there is an existing method for it. First, create some kind of flag in the Service to represent whether it's running. Update this flag in onStart and onDestroy

[android-developers] Re: RelativeLayout does not work Correctly(Bug?)

2008-04-11 Thread Dan U.
Change rlp to RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); Because what your original code did was to make the TextView fill up the width of the screen. On Apr 11,

[android-developers] Re: Installing apk on the emulator

2008-04-11 Thread Dan U.
If it's not obvious what the solution is, you need to only have one of those LAUNCHER entries in your app (assuming 1 entry point). On Apr 11, 8:57 pm, Dan U. [EMAIL PROTECTED] wrote: You have a category android:name=android.intent.category.LAUNCHER / in androidmanifest.xml for each activity

[android-developers] Re: ListView throws Exception

2008-04-11 Thread Dan U.
You are extending ListActivity right? Maybe you could try using android.R.layout.simple_list_item_1 in your createFromResource call instead of android.R.id.list. On Apr 11, 8:37 pm, pyf [EMAIL PROTECTED] wrote: Hi, I'm trying to customize layout by having ListView in it. This is my code:

[android-developers] Re: Passing bundles across activities

2008-04-10 Thread Dan U.
Actually, there are 3 setResult methods. You want this: http://code.google.com/android/reference/android/app/Activity.html#setResult(int,%20java.lang.String,%20android.os.Bundle) On Apr 10, 10:08 pm, Ram [EMAIL PROTECTED] wrote: I'm passing a bundle of values (by setting intent.putExtra before

[android-developers] Re: Error Receiving Broadcast Null in [IntentReceiver] (Very Easy)

2008-04-09 Thread Dan U.
further, I am not getting this anymore when I close the activity (onDestroy). I happens kind of randomly, or maybe just when I start the activity. Still, it is very rare, but I don't want it to be like this anyway. Could you maybe explain this? Thanks, Noam. On Apr 9, 12:01 am, Dan U. [EMAIL

[android-developers] Re: cant hook onto xml -- quick help?

2008-04-09 Thread Dan U.
I'd expect the v.setId to not do what you want. I think it only sets an id, doesn't set the layout for that view. I tried your example with setContentView and it seems to work fine for me. On Apr 9, 10:31 am, Rahul [EMAIL PROTECTED] wrote: i take it back. if i change v.setId to

[android-developers] Re: cant hook onto xml -- quick help?

2008-04-09 Thread Dan U.
What do you mean calling it from another contentview? Can you post some example code? On Apr 9, 1:14 pm, Rahul [EMAIL PROTECTED] wrote: hmm.. maybe if i am calling it from another contentview, that might have some problem to? im not sure how else i can explain this. On Apr 9, 2:39 pm, Dan U

[android-developers] Re: SQL WHERE clause?

2008-04-09 Thread Dan U.
a syntax error near select. I don't believe I am allowed to use the where in this location but I can't find a function that will take it. What should I be using? On Apr 6, 12:59 pm, Dan U. [EMAIL PROTECTED] wrote: I haven't tested this but it should be something like... select child

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread Dan U.
Inside a view, apparently we can't get a reference to the Activity that contains us (the view), and even if there is a way to get the reference, we can't probably call it directly, due to UI threading issues. You do have access to the Activity. It's actually the Context that gets passed into

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread Dan U.
I'm not setting these view components through androidManifest.xml. I don't think I understand. How does a view have anything to do with the androidmanifest? On Apr 7, 11:08 pm, Rui Martins [EMAIL PROTECTED] wrote: Possibly an important piece of information that I haven't mentioned before.

[android-developers] Re: TextView Question

2008-04-08 Thread Dan U.
Might be helpful if you posted your code. Here's some example code that should give you an idea how to do it... public class MyActivity extends Activity { TextView textView; public void onCreate(Bundle bundle) { super(icicle); setContentView(R.layout.main);

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread Dan U.
True. To make it more generic, some class checking should be done. On Apr 8, 12:28 am, hackbod [EMAIL PROTECTED] wrote: On Apr 7, 11:52 pm, Dan U. [EMAIL PROTECTED] wrote: Inside a view, apparently we can't get a reference to the Activity that contains us (the view), and even

[android-developers] Re: Storing Complex objects in arrays.xml?

2008-04-08 Thread Dan U.
what's going to be in the layout of each item. The problem is I need *two* pieces of information for each layout, not one - the item resource for the icon, and the string resource for the text. Any way to define multi- dimensional arrays? On Apr 8, 3:52 pm, Dan U. [EMAIL PROTECTED] wrote

[android-developers] Re: How to correctly unregister GPS notifications?

2008-04-08 Thread Dan U.
, and is still there with both versions of the M5 SDK. And it happens every time I shut down my service, not randomly. I think there's a solid bug in Android here. Jim Renkel On Apr 6, 1:29 pm, Dan U. [EMAIL PROTECTED] wrote: The firing between those calls is a race condition. If you notice

[android-developers] Re: cannot get attribute from XMLReader (SAX)

2008-04-08 Thread Dan U.
Well, I can't give you an explanation at this time, but if you do String base = atts.getValue(, xml:base);, it should work. On Apr 8, 2:33 pm, Anil [EMAIL PROTECTED] wrote: This works fine in j2se, but am stumped why it fails in android. Cannot get attribute base from XMLReader (SAX). It is

[android-developers] Re: Date and time pickers in an XML layout file - how to get to work?

2008-04-08 Thread Dan U.
I put those within a LinearLayout and it worked fine. Can you post more of your layout and/or code? On a side note, I notice DatePicker likes to throw null pointers during onKey. On Apr 8, 2:17 pm, NTR [EMAIL PROTECTED] wrote: I've tried including date and time pickers in the XML file, like

[android-developers] Re: cannot get attribute from XMLReader (SAX)

2008-04-08 Thread Dan U.
, but not the base. thanks, Anil On Apr 8, 5:55 pm, Dan U. [EMAIL PROTECTED] wrote: Well, I can't give you an explanation at this time, but if you do String base = atts.getValue(, xml:base);, it should work. On Apr 8, 2:33 pm, Anil [EMAIL PROTECTED] wrote: This works fine in j2se, but am

[android-developers] Re: Listview and List Selector(Urgent)

2008-04-07 Thread Dan U.
For your first question, I think you can just create a layout with whatever views you need for a list item (perhaps just a single textview) and then add padding to that. Here's an example: ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: Database query NULL exception

2008-04-07 Thread Dan U.
Have you tried using Log to print out the values you are using in your SQL queries? I bet something there is null. Do you have the stack trace to tell you what line in the code is causing the problem? On Apr 7, 6:24 pm, Sawan007 [EMAIL PROTECTED] wrote: Could you please advise what is wrong

[android-developers] Re: How to create a thread that waits for an answer from a certain port ( from external server ) ?

2008-04-06 Thread Dan U.
I think you mentioned the solution yourself: create a thread. Are you worried about the overhead of creating a thread? On Apr 5, 11:07 pm, E.D.I [EMAIL PROTECTED] wrote: How to create a thread that waits for an answer from a certain port ( from external server ) ? in fact i'm trying to

[android-developers] Re: Is it possible to load to activities in the same screen each for upper or lower part of the screen?

2008-04-06 Thread Dan U.
I think ActivityGroup would let you, but I haven't used it before. On Apr 6, 12:02 am, E.D.I [EMAIL PROTECTED] wrote: Is it possible to load to activities in the same screen each for upper or lower part of the screen? both works independentfrom each other ...

[android-developers] Re: Plz Help!!

2008-04-06 Thread Dan U.
I guess you might not know this, but you don't need to be using a Boolean. You should change it to lowercase boolean and get rid of all the messy t.booleanValue() calls. But, the reason you don't see logging output is the way you are using Log. You are actually trying to print an empty message

[android-developers] Re: How to correctly unregister GPS notifications?

2008-04-06 Thread Dan U.
about location manager and IntentReceivers wrong. But at least I hope you agree, that the documentation is not very clear on the subject. Best regards, Jakob Bjerre Jensen On 6 Apr., 01:23, Dan U. [EMAIL PROTECTED] wrote: Sounds like you are thinking backwards in terms of when things

[android-developers] Re: When to use Activity or View ?

2008-04-06 Thread Dan U.
Well, my rule of thumb (being a web developer) is to think of it in terms of how many web pages I'd want == how many Activities I should break it up into. To me, seeing setContentView called multiple times in an Activity is a bit bothersome. I can't quite explain why I feel that. I guess because

[android-developers] Re: Styling Button dynamically

2008-04-06 Thread Dan U.
Will this work: Button b = new Button(this, null, null, android.R.attr.buttonStyleSmall); On Apr 6, 6:04 am, goro [EMAIL PROTECTED] wrote: Hi All, I need to add dynamically buttons to a view. The buttons must be small, so I must style them with android:attr/buttonStyleSmall. I know how to

[android-developers] Re: architecture question relating to network use

2008-04-06 Thread Dan U.
Well, actually you can pass a lot more than just Strings to a Activity onCreate, but that's not what you should do here. I think I would write a Service to provide server communication. Any of your activities could then access this service. On Apr 6, 1:09 pm, colintheprep [EMAIL PROTECTED]

[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-06 Thread Dan U.
: Dell Dimension 8400. 3GHz. 2Gb RAM. On Apr 5, 11:02 pm, Dan U. [EMAIL PROTECTED] wrote: It should be a lot faster than that, but knowing the emulator is a resource-hog, my first question is what kind of computer are you using for dev work? On Apr 5, 8:49 pm, Anil [EMAIL PROTECTED] wrote

[android-developers] Re: Call out to the community about the poor quality of Android's error messaging

2008-04-05 Thread Dan U.
Interesting. I don't have the apk with m5-RC14, but api demos were on the emulator the first time I started it up. No need to install. There was a post about RC15 not having them, but I don't recall if that was the real issue. Back on topic... I can handle instability but operating in the dark

[android-developers] Re: Why don't System.err and System.out point to the console?

2008-04-05 Thread Dan U.
I also would have preferred for the normal use of System.out and System.err, but the Android way does force developers to use a more proper logging api which is not necessarily a bad thing. On Apr 5, 8:20 am, Anil [EMAIL PROTECTED] wrote: I don't think you understood my suggestion. Even if it

[android-developers] Re: importing java 6 libs

2008-04-05 Thread Dan U.
Look in the docs for the dx tool On Apr 4, 11:11 pm, Lahiru [EMAIL PROTECTED] wrote: Hi, Thanks a lot for the reply,,, I'll try with sources.. :) Thanks again.! On Apr 5, 12:34 am, David Given [EMAIL PROTECTED] wrote: Lahiru wrote: [...] I need to import some javax packages

[android-developers] Re: How to correctly unregister GPS notifications?

2008-04-05 Thread Dan U.
If I have some time, I'll look into it more, but for now, have you tried to reverse the order of these calls: activity.unregisterReceiver(ir); locationManager.removeUpdates(new Intent(test)); On Apr 5, 3:20 am, Jakob Bjerre Jensen [EMAIL PROTECTED] wrote: Hello, I have an IntentReceiver IR,

[android-developers] Re: Mail API

2008-04-05 Thread Dan U.
I found http://groups.google.com/group/android-developers/browse_thread/thread/7f69da8f8501c3f5/94969d7def3d4287?lnk=gstq=mail#94969d7def3d4287 but it looks like there are some problems. On Apr 5, 12:14 pm, Dexter's Brain [EMAIL PROTECTED] wrote: Hello All, How do i send a mail with an

[android-developers] Re: How to correctly unregister GPS notifications?

2008-04-05 Thread Dan U.
there is an explanation to this (which I hope there is). Best regards, Jakob Bjerre Jensen On 5 Apr., 22:02, Dan U. [EMAIL PROTECTED] wrote: If I have some time, I'll look into it more, but for now, have you tried to reverse the order of these calls: activity.unregisterReceiver(ir

[android-developers] Re: About Terms conditions to submit an application

2008-04-05 Thread Dan U.
That's what it sounds like, and hopefully that's how it's intended. It's still a bit open to interpretation... ...AND to advertise, display, demonstrate, or otherwise promote the Android platform. If a company were to take your app and distribute it without your consent, wouldn't it still

[android-developers] Re: Main Menu (Very Easy)

2008-04-05 Thread Dan U.
If it's what I think you are referring to, I think it serves a dual- purpose. One is to have space for an image, the other is to make it large enough for a touch screen. I would not try to change it for reasons of touch screen usage. On Apr 5, 6:09 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

[android-developers] Re: Is it possible to load a view from an XML file, but only to store it to a variable?

2008-04-05 Thread Dan U.
I think you should look at the docs for ViewInflate. On Apr 5, 6:25 pm, NTR [EMAIL PROTECTED] wrote: I see there's a Resources.getView-method, but it returns an XmlPullParser, and I have no idea what to do with it. The Views take an AttributeSet and a Map inflateParams. What should I pass for

[android-developers] Re: Error Receiving Broadcast Null in [IntentReceiver] (Very Easy)

2008-04-05 Thread Dan U.
I think it has something to do with different intents. You didn't post the full code, so I don't know. Is MY_LOCATION_CHANGED_ACTION equal to NotSpecialIntent? On Apr 5, 8:09 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello everyone, Well, I have a MapActivity and I refresh my location

[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-05 Thread Dan U.
It should be a lot faster than that, but knowing the emulator is a resource-hog, my first question is what kind of computer are you using for dev work? On Apr 5, 8:49 pm, Anil [EMAIL PROTECTED] wrote: The same operation in Java Swing is almost instantaneous. On Apr 4, 6:57 pm, Anil [EMAIL

[android-developers] Re: Error Receiving Broadcast Null in [IntentReceiver] (Very Easy)

2008-04-05 Thread Dan U.
Yeah, that's the problem. I tested both your version and a version with the correct intent (MY_LOCATION_CHANGED_ACTION) specified in onDestroy(). On Apr 5, 8:50 pm, Dan U. [EMAIL PROTECTED] wrote: I think it has something to do with different intents. You didn't post the full code, so I don't

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Dan U.
It also supports u/u, but I don't think there's any way to set a color only for specific words in the string without implementing your own TextView. Either that or string together multiple textviews with appropriate colors, but that probably isn't the best idea. On Apr 4, 12:35 am, Evan JIANG

[android-developers] Re: Aver the air download and install application

2008-04-04 Thread Dan U.
I think http://groups.google.com/group/android-developers/browse_thread/thread/d6fddac0a408e59f/0159a8a2759e7280?lnk=gstq=apk+browser#0159a8a2759e7280 is about the only place I've seen mention of doing this. Sounds like it's not possible with the browser, or at least not yet. On Apr 4, 6:25 am,

[android-developers] Re: Creating events

2008-04-03 Thread Dan U.
You mean to make your app interact with another app? I don't think that's possible. On Apr 2, 11:13 pm, dimenwarper [EMAIL PROTECTED] wrote: hey all! Does anyone know if there is any way to create and launch events (such as click and key events) via software (e.g. createClickEvent(float x,

[android-developers] Re: Dynamic UI-Processing - without XML files.

2008-04-03 Thread Dan U.
But if he's trying to use the CursorAdapter, is that even possible? The constructor needs an id of a layout xml file. I was going to say to create a layout xml that was basically just an empty container (maybe a LinearLayout) and then add child views into that programmatically, but it looks like

[android-developers] Re: Creating events

2008-04-03 Thread Dan U.
On Apr 3, 12:36 am, Dan U. [EMAIL PROTECTED] wrote: You mean to make your app interact with another app? I don't think that's possible. On Apr 2, 11:13 pm,dimenwarper[EMAIL PROTECTED] wrote: hey all! Does anyone know if there is any way to create and launch events

[android-developers] Re: NullPointerException Error (Very Easy)

2008-04-03 Thread Dan U.
It'd be helpful to see your code, but I'm guessing you have a ListActivity and you haven't set a list adapter. On Apr 3, 7:42 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello everyone, When I want to start my activity in Run mode, all I get is a NullPointerException error. When I run it

[android-developers] Re: How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread Dan U.
Right, the emulator thinks localhost is itself. You should be able to specify the actual ip address of your computer when you make a connection. On Apr 2, 1:43 am, E.D.I [EMAIL PROTECTED] wrote: How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

[android-developers] Re: How to get pictures files?

2008-04-02 Thread Dan U.
I believe where/how they are stored is really up to the person writing the app that uses the camera. My guess is that apps will (hopefully) provide content providers to access them. On Apr 2, 6:38 am, arthur [EMAIL PROTECTED] wrote: Hi, I am developing the application in which I need access

[android-developers] Re: different layout XML files in one application

2008-04-01 Thread Dan U.
I don't understand quite what you are asking. Why not just have R.layout.main, R.layout.other_layout, R.layout.another_layout and just select the one you want? On Apr 1, 8:23 am, vitali [EMAIL PROTECTED] wrote: Hello, how to use ( or just is it possible at all ) to use layout definitions in

[android-developers] Re: Can't Install Apk on Emulator on a Mac!

2008-04-01 Thread Dan U.
Are you trying to run adb install after running adb shell? If so, that doesn't work. You don't want to be in the shell. On Apr 1, 3:59 pm, hitsu_g [EMAIL PROTECTED] wrote: I am on a Mac and am having no luck installing my app's apk on the emulator using Terminal. I start the emulator using:

[android-developers] Re: closing a defined subActivity/Layout

2008-03-31 Thread Dan U.
Do you have an onActivityResult in B? On Mar 31, 12:32 am, olivier.k [EMAIL PROTECTED] wrote: Hi all, I have checked my code and I think that there's nothing wrong :(. Layout A is calling Layout B with this : //included in a switch on the onMenuItemSelected method Intent i = new

[android-developers] Re: Problem with displaying Notification

2008-03-31 Thread Dan U.
It sounds like you want to use a Service. On Mar 31, 4:10 am, novice [EMAIL PROTECTED] wrote: Hi , I have a problem with notification manager. My notification is defined in an activity. Hence everytime a notification comes, my activity is displayed on the screen and then the notification

[android-developers] Re: Blank screen after Activity starts

2008-03-31 Thread Dan U.
Use a Service, not an Activity. On Mar 31, 1:45 pm, GeorgeS [EMAIL PROTECTED] wrote: I have an app which starts on RECEIVE_BOOT_COMPLETED. It checks to see if preferences are already set and if so starts an activity which has no interface but just registers to handle changes in PhoneState.

[android-developers] Re: Android Developers Challenge!

2008-03-31 Thread Dan U.
We wanted to bring your attention... If you don't mind me asking, who are we? Are you a member of some group? Is there a reason we should be focusing on this particular type of application? I don't mean to be pessimistic, but I think suggesting people get started on an app with only 2 weeks

[android-developers] Is AnimationSet really buggy?

2008-03-29 Thread Dan U.
I've looked through the group and the bug tracker for problems with animations. I know there are apparently some issues with certain methods not working in various Animation classes, but I don't think they related to the problems I have. I'm trying to make a pulsing animation. Basically it does

[android-developers] Re: Are you satisfied or disappointed with the level of support from Google, for Android?

2008-03-27 Thread Dan U.
I think I'm more disappointed when it comes to questions about the developer challenge. I understand the lack of answers, since it's really only people from the Android dev team on here, and they probably aren't the right people to answer a lot of those questions. I guess when I have development

[android-developers] Re: Coding conventions

2008-03-27 Thread Dan U.
Thanks Megha. On Mar 27, 4:42 pm, Megha Joshi [EMAIL PROTECTED] wrote: There are no published guidelines for Android coding conventions. A few guidelines are given in this document:http://code.google.com/android/toolbox/performance.html These are largely same as the coding conventions for

[android-developers] Re: Notification ongoingEvent

2008-03-27 Thread Dan U.
Oh, and I know what it says in the docs about it representing an event that is ongoing versus one that isn't, but I don't see the significance. Why would you even need this flag? On Mar 27, 9:34 pm, Dan U. [EMAIL PROTECTED] wrote: Could someone please explain what the ongoingEvent flag

[android-developers] Re: How to load a bitmap to a server directly?

2008-03-26 Thread Dan U.
So, it sounds like you have a Bitmap object. I assume you have some server (http maybe?) set up to upload it to. Here's some code I use for doing this: HttpClient client = new HttpClient(); PostMethod method = new PostMethod(http://your_server/path/to/upload/ script);

[android-developers] Re: help- 670 errors :( R cannot be resolved

2008-03-26 Thread Dan U.
It sounds like something is corrupted. I'd recommend creating a new project and moving everything over to that one. On Mar 26, 9:27 am, hm [EMAIL PROTECTED] wrote: yes offcourse On Mar 26, 10:13 pm, Dan U. [EMAIL PROTECTED] wrote: Was your project created as an Android project

[android-developers] Coding conventions

2008-03-26 Thread Dan U.
I'm researching coding conventions for Android. It seems that following standard Java conventions is a good thing. Are there any Android-specific conventions? I already know about the guidelines for performance. I'm more concerned with things like variable naming. I notice a lot of instance

[android-developers] Re: Pass data (bundle) to an activity instance?

2008-03-26 Thread Dan U.
In your Intent there is a putExtras On Mar 26, 2:51 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there an easy way to pass data (a bundle) to an activity instance? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: loadFromXML causes InvalidPropertiesFormatException

2008-03-26 Thread Dan U.
I wonder if this would have to do with the xml bug where you can't retreive a NamedNodeMap of all attributes. On Mar 26, 1:40 pm, Anil [EMAIL PROTECTED] wrote: properties.loadFromXML(inputStream); throws an InvalidPropertiesFormatException I think the file is correct because

[android-developers] Re: Problems with getCurrentLocation(gps)

2008-03-26 Thread Dan U.
The name of the permissions is wrong. Try this: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / On Mar 26, 4:26 pm, Markus [EMAIL PROTECTED] wrote: Hello out there, I'm trying to develop an android

[android-developers] Re: ID Handling between activities

2008-03-25 Thread Dan U.
First, you'd need to get the id of the element. It's in a list, so probably this setting an OnItemClickListener to your list (setOnItemClickListener method). From there you have access to the id that was given to the item when the list was created which is probably what you want. That happens

[android-developers] Re: Popup Window problem

2008-03-24 Thread Dan U.
Look at the Dialog class (and subclasses) or you can create an activity and give it a dialog theme. On Mar 24, 12:25 am, [EMAIL PROTECTED] wrote: Hi, how to get a popup window in android, i tried with the Popuwindow class, i am able to display on the same screen, but it is not looking

[android-developers] Re: Input Text Without Deleting

2008-03-24 Thread Dan U.
I learn something new every day. Thanks hackbod. On Mar 24, 10:01 am, hackbod [EMAIL PROTECTED] wrote: This is the hint text associated with the text view: http://code.google.com/android/reference/android/widget/TextView.html... On Mar 23, 11:52 pm, hitsu_g [EMAIL PROTECTED] wrote: In