[android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread dirk
Hold on a minute. I really don't care the least bit about underlying
code, that is, the XML that's generated by a really good design tool.
Saying you should have to learn the XML (in this case) is like saying
you have to learn the bytecode that's generated from the java code.
Sure, you always need understand the structure, but with good tools,
you can _focus_ on the structure and not worry about the details.

On Apr 4, 7:01 pm, Robert rcope...@gmail.com wrote:
 Layout is part of development. Having tools to help with that are aids
 but should not be used as an excuse not to learn the underlying code.
 THe designer tools only generate the structures based on the rules
 programmed into them. You will always have a more detailed level of
 control by going to the lowest level available.  Learn it and it'll
 make you a better developer and your programs to be more
 efficient.     Using the higher level tools makes you only as
 efficient at they are.

 Yes, it takes time and yes you have to learn it but that's what being
 a real developer is all about.
 Robert

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] PreferenceActivity.Header -- is there a better way

2011-04-05 Thread Zsolt Vasvari
I am trying to replace the setPreferenceScreen() functionality to
switch to a particular header of my new style Preference Activity.

I cannot find a straightforward way of doing is.

Currently, I am saving the list of headers:

@Override
public void onBuildHeaders(ListHeader target)
{
loadPreferenceHeadersFromResource(R.xml.id, target);

this.headers = target;
}


Then searching for and setting the appropriate one:

private void switchToHeaderByFragment(Class? fragmentClass)
{
for (Header header : this.headers)
if (header.fragment.equals(fragmentClass.getName()))
{
switchToHeader(header);
break;
}
}


There has to be a better way?  What am I missing?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to have 2 click listener on a group in expandableListView

2011-04-05 Thread Carbodrache
Hello,

I have an expandableListView with simple textViews, I want to have the
same result on a item (parent or child) click but if I use
ExpandableListView.setOnGroupClickListener() method I can't handle the
expand of the parent node and so can't see children.

The solution I found is to add an OnClickListener to the group's
textViews, in the BaseExpandableListAdapter.getGroupView().

My question is : Is there a better way to have detect on which View
the click is ? An idea I have is to detect the click on the expand
button to expand/collapse the group and use
ExpandableListView.setOnGroupClickListener() on the group row to do
what I want

Help please !

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Honeycomb LVL problem?

2011-04-05 Thread MagouyaWare
I have an application on the Android Market that is using the LVL...
It is using the default ServerManagedPolicy class as its license
policy.

Everything seemed to be working ok, until recently...

I received an email from a customer who bought my app for a table that
was running Android 2.2...  He recently updated his tablet to Android
3.0 and ever since the update, my app no longer works for him because
it is constantly getting a negative response.  He also told me that a
couple other apps he bought while running Android 2.2 are having the
same issue but apps he purchased since the 3.0 update work just fine.

My questions are:

- Has anyone run across this issue before?
- If so, how did you work around this problem?
- Any ideas on what may be causing this problem?

Thanks in advance,
Justin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] how to get receive status?

2011-04-05 Thread Justin Anderson
What in the world are you asking?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 4, 2011 at 10:54 PM, swarnendu gotoswarne...@gmail.com wrote:

 in python-- for android automation

 import android
 phone_1=android.Android('1')
 stat=phone_1.isSMSReceive('5556','text')


 verifying the already send msg, but alwals shows


 {'result': False, 'id': 1, 'error': None}


 q is why it always return false? when the sms is in inbox? is the
 argument pass is correct?
 plz give a details with an example.? waiting for a early reply

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to have 2 click listener on a group in expandableListView

2011-04-05 Thread Kostya Vasilyev
ExpandableListView has setOnItemClickListener, which is called for both
group and child items.

You can tell groups from children by looking at its id value.

However, this UI would look the same as all other expandable list views, but
work differently - are you sure you want to do this?

-- Kostya
2011/4/5 Carbodrache emmanuel.long...@gmail.com

 Hello,

 I have an expandableListView with simple textViews, I want to have the
 same result on a item (parent or child) click but if I use
 ExpandableListView.setOnGroupClickListener() method I can't handle the
 expand of the parent node and so can't see children.

 The solution I found is to add an OnClickListener to the group's
 textViews, in the BaseExpandableListAdapter.getGroupView().

 My question is : Is there a better way to have detect on which View
 the click is ? An idea I have is to detect the click on the expand
 button to expand/collapse the group and use
 ExpandableListView.setOnGroupClickListener() on the group row to do
 what I want

 Help please !

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android apps authentication when using WebService

2011-04-05 Thread FG
Hi there,

I have a simple security question. I need to make sure that only the
application I designed and developped is able to access my WebServices
and not a hacked version of it.
In other words, what kind of mecanisms I can put inside my application
(based on the developper certificate or on any other mecanisms) to
authenticate the applications I published and finally be 100% sure
those apps are the only one capable of using the set of WebServices I
exposed over HTTP or HTTPS.

Many thanks for your advices,

FG.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: new developer questions

2011-04-05 Thread hoss7
thanks

On Apr 5, 12:26 am, dana tassler dana.tass...@gmail.com wrote:
 A key to becoming an effective programmer is using the internet
 effectively.

 Using Google, I searched for develop android and got this page.  I'd
 recommend being resourceful and not afraid to look for answers on your
 own.  Yes, a forum is for assistance but if you post a request for
 help yesterday and another today, that won't speed up replies (it's
 like mashing the button for an elevator).

 You may also consider polishing up your English a bit, you may find
 you get more responses.  For instance, you said:

   1.best ide for develop android app?

 You could have instead written What is the best IDE for developing
 android applications?

 I think google translator may help you.

 Best of luck.

 On Apr 4, 2:56 am, hoss7 hoss...@gmail.com wrote:







  1.best ide for develop android app?
  2.how and where can i start for develop?
  3.what i need for run and test app in my pc?
  4.is android develop easy or not?

  i am Computer engineering and web developer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] random 404 on google android pages

2011-04-05 Thread Justin Anderson
The OP was saying that it was a widespread problem that has been mentioned
by others on IRC and Twitter... not that IRC and Twitter wouldn't work for
him either...

They aren't problems with the OP's connection... there is/was a problem with
the Android Market Servers (anyone surprised?) as I had seen the same
behavior in the last couple days.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 4, 2011 at 3:24 PM, Marcin Orlowski webnet.andr...@gmail.comwrote:



 On 3 April 2011 16:04, Joaquin Grech joaquingr...@gmail.com wrote:

 Any news on what's going on? I entered IRC and checked twitter and it
 seems a widespread problem for the past 20 hours, but I see no news or
 posts in here.


 Because here won't be much news nor posts about problems with *your *
 connection.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] DEBUG an error with inflate i think?

2011-04-05 Thread Justin Anderson
* 04-05 01:30:26.100: ERROR/AndroidRuntime(595): Caused by:
android.view.InflateException: Binary XML file line #24: Error
inflating class unknown
*
What is on line 24 of your xml file?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 4, 2011 at 2:16 PM, kiros88 ghui...@gmail.com wrote:

 Caused

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Camera.getNumberOfCameras() not working

2011-04-05 Thread Abhijeet Pathak
I am getting error Cannot find symbol when using getNumberOfCameras(). I 
am compiling app for api level 8.
Please help me fixing this.

Thanks,
Abhijeet

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: HomeScreen Widget frustrating

2011-04-05 Thread Justin Anderson
* But what do I have to do with Android 2.1? I don't get the scrolling
working.*

Exactly.  As Dianne said, you can't use scrolling widgets in any version of
Android prior to 3.0...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 4, 2011 at 5:24 AM, Stefan S shogu...@gmail.com wrote:

 But what do I have to do with Android 2.1? I don't get the scrolling
 working.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Compilation error using android SDK 2.0 (Camera Preview)

2011-04-05 Thread Abhijeet Pathak
I am also facing the same problem.

Have you found any work around yet?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Permission denied for the owner of a service ?

2011-04-05 Thread Justin Anderson
* I am tweaking Android and making some modifications on the Phone package*

This group is only for SDK applications... For modifying your own build of
Android, you need to post this question in a different group.  Unfortunately
my mind has drawn a blank and I can't remember which group that is.

Hopefully someone else can post the link...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 4, 2011 at 5:19 AM, vadmeste vadme...@gmail.com wrote:

 I am tweaking Android and making some modifications on the Phone
 package


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Passing data with Intent problem

2011-04-05 Thread Brad Stintson
I have three activities say A,B and C. They are linked as A--B--C.
Now I want to send a string of data from activity A to activity B and C.

When I use putextra() then from A to B it works perfectly but from B to C it
shows error. How to achieve that?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Button and onClickListner help needed

2011-04-05 Thread Justin Anderson
Have you verified you are not getting in the onClick method?  Try putting a
Toast inside your onClick method and see whether or not you are getting in
there...

I don't see anything wrong offhand with your onClickListener...


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 4, 2011 at 3:53 AM, Karl Kristian Markman 
karlkristian.mark...@gmail.com wrote:

 This is probably a really n00b question but none the less.

 I cant get a button to change view (or activity)

 this is my code for the button:

 [code]
 package com.markel.NSF;

 import android.app.Activity;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.View;
 import android.widget.Button;

 public class Merker extends Activity
 {
  public void onCreate(Bundle icicle)
   {
  super.onCreate(icicle);
  setContentView(R.layout.alder);
  Button bever = (Button) findViewById(R.id.bever);
  bever.setOnClickListener(new View.OnClickListener() {
 public void onClick(View v) {
 Intent i = new Intent(Merker.this, Bmerk1Activity.class);
 startActivity(i);
 }
  });
   }
 }
 [/code]

 The view alder is just five image buttons and they are all in a Tab.

 If I just show the layout the app works but not when i try one of the
 many button codes that are out there.

 Pleas help me

 Regards Karl Kristian
 Norway

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: 2 Devices use audio to communicate by netwrok.

2011-04-05 Thread Jamie Lin
Sorry...
I want it work without sip and sd card..

On Apr 1, 12:59 pm, gjs garyjamessi...@gmail.com wrote:
 http://developer.android.com/resources/samples/SipDemo/index.html

 On Mar 31, 9:35 pm, Jamie Lin allregis...@gmail.com wrote:







  I want to make two devices use audio to communicate by network.
  Is any sample code?
  I just only make it connect.
  But I can NOT make one mic recevice voice to the other's speaker.
  I try it a some days.
  How can I make it work?
  Please help.

  Thank you very much...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread Abhijeet Pathak
I also created a new project in Eclipse.
In that also, getNumberOfCameras() is not shown in dropdown list of 
available method names for Camera.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Start Dialer with delay

2011-04-05 Thread viktor
Have any ideas?

On 4 Кві, 12:17, viktor victor.scherb...@gmail.com wrote:
 Hi,

 My issue is that need to show in Dialer correct number when incoming
 call, just trick number in Dialer.

 I tried to add temp contact to contacts DB, but Dialer doesn't sync
 the contact!?
 Is it possible to start Dialer with some delay or deny starting and
 then restart it?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread blindfold
getNumberOfCameras() needs API level 9 according to documentation.

On Apr 5, 8:54 am, Abhijeet Pathak pathak...@gmail.com wrote:
 I am getting error Cannot find symbol when using getNumberOfCameras(). I
 am compiling app for api level 8.
 Please help me fixing this.

 Thanks,
 Abhijeet

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread Abhijeet Pathak
Does this mean Android 2.3?
If yes, hows to retrieve number of cameras on android 2.2 (api level 8)?
On 5 Apr 2011 13:02, blindfold seeingwithso...@gmail.com wrote:
 getNumberOfCameras() needs API level 9 according to documentation.

 On Apr 5, 8:54 am, Abhijeet Pathak pathak...@gmail.com wrote:
 I am getting error Cannot find symbol when using getNumberOfCameras().
I
 am compiling app for api level 8.
 Please help me fixing this.

 Thanks,
 Abhijeet

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: new developer questions

2011-04-05 Thread hoss7
which eclipse version

On Apr 5, 12:22 am, Miguel Morales therevolti...@gmail.com wrote:
 1. Eclipse
 2. Android SDK
 3. Yes
 4.http://developer.android.com/guide/topics/fundamentals.html









 On Sun, Apr 3, 2011 at 12:32 PM, hoss7 hoss...@gmail.com wrote:
  i want starrt develop android app
  i am Computer engineering and web developer
   i have many questions
  1.best ide for develop?
  2.what i need to develop android app?
  3.android is easy or not?
  4.where i must start?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: new developer questions

2011-04-05 Thread hoss7
how can i test my app in phone?

On Apr 5, 12:26 am, dana tassler dana.tass...@gmail.com wrote:
 A key to becoming an effective programmer is using the internet
 effectively.

 Using Google, I searched for develop android and got this page.  I'd
 recommend being resourceful and not afraid to look for answers on your
 own.  Yes, a forum is for assistance but if you post a request for
 help yesterday and another today, that won't speed up replies (it's
 like mashing the button for an elevator).

 You may also consider polishing up your English a bit, you may find
 you get more responses.  For instance, you said:

   1.best ide for develop android app?

 You could have instead written What is the best IDE for developing
 android applications?

 I think google translator may help you.

 Best of luck.

 On Apr 4, 2:56 am, hoss7 hoss...@gmail.com wrote:







  1.best ide for develop android app?
  2.how and where can i start for develop?
  3.what i need for run and test app in my pc?
  4.is android develop easy or not?

  i am Computer engineering and web developer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Honeycomb LVL problem?

2011-04-05 Thread Zsolt Vasvari
How does one update a tablet from 2.2 to 3.0?  As far as I know, there
is not a single tablet out there where there is an offical upgrade
path, so this is certainly using some kind of half-baked ROM?   But
how is that even possible as there is no 3.0 source code made
available.  Something is very fishy with that whole story.

I, for one, do not support users with non-standard ROM images.



On Apr 5, 2:34 pm, MagouyaWare magouyaw...@gmail.com wrote:
 I have an application on the Android Market that is using the LVL...
 It is using the default ServerManagedPolicy class as its license
 policy.

 Everything seemed to be working ok, until recently...

 I received an email from a customer who bought my app for a table that
 was running Android 2.2...  He recently updated his tablet to Android
 3.0 and ever since the update, my app no longer works for him because
 it is constantly getting a negative response.  He also told me that a
 couple other apps he bought while running Android 2.2 are having the
 same issue but apps he purchased since the 3.0 update work just fine.

 My questions are:

 - Has anyone run across this issue before?
 - If so, how did you work around this problem?
 - Any ideas on what may be causing this problem?

 Thanks in advance,
 Justin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: new developer questions

2011-04-05 Thread hoss7
where can i download ADT Plugin for Eclipse?

On Apr 5, 11:40 am, hoss7 hoss...@gmail.com wrote:
 how can i test my app in phone?

 On Apr 5, 12:26 am, dana tassler dana.tass...@gmail.com wrote:







  A key to becoming an effective programmer is using the internet
  effectively.

  Using Google, I searched for develop android and got this page.  I'd
  recommend being resourceful and not afraid to look for answers on your
  own.  Yes, a forum is for assistance but if you post a request for
  help yesterday and another today, that won't speed up replies (it's
  like mashing the button for an elevator).

  You may also consider polishing up your English a bit, you may find
  you get more responses.  For instance, you said:

    1.best ide for develop android app?

  You could have instead written What is the best IDE for developing
  android applications?

  I think google translator may help you.

  Best of luck.

  On Apr 4, 2:56 am, hoss7 hoss...@gmail.com wrote:

   1.best ide for develop android app?
   2.how and where can i start for develop?
   3.what i need for run and test app in my pc?
   4.is android develop easy or not?

   i am Computer engineering and web developer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to make timetable in android.

2011-04-05 Thread Kirti Joshi
how to make
timetable and schedule for a day, week
and month. in android application.?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: new developer questions

2011-04-05 Thread Miguel Morales
The latest.

On Tue, Apr 5, 2011 at 12:40 AM, hoss7 hoss...@gmail.com wrote:

 which eclipse version

 On Apr 5, 12:22 am, Miguel Morales therevolti...@gmail.com wrote:
  1. Eclipse
  2. Android SDK
  3. Yes
  4.http://developer.android.com/guide/topics/fundamentals.html
 
 
 
 
 
 
 
 
 
  On Sun, Apr 3, 2011 at 12:32 PM, hoss7 hoss...@gmail.com wrote:
   i want starrt develop android app
   i am Computer engineering and web developer
i have many questions
   1.best ide for develop?
   2.what i need to develop android app?
   3.android is easy or not?
   4.where i must start?
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  ~ Jeremiah:9:23-24
  Android 2D MMORPG:
 http://solrpg.com/,http://www.youtube.com/user/revoltingx

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Passing data with Intent problem

2011-04-05 Thread Filip Havlicek
What error? How exactly are you sending the string from A to B and from B to
C? Are you reusing the same intent or are you creating a new one?

Best regards,
Filip Havlicek

2011/4/5 Brad Stintson geek.bin...@gmail.com

 I have three activities say A,B and C. They are linked as A--B--C.
 Now I want to send a string of data from activity A to activity B and C.

 When I use putextra() then from A to B it works perfectly but from B to C
 it shows error. How to achieve that?
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread Daniel Drozdzewski
...with a small difference that XML was designed to be human readable
but also for machines, while the bytecode never meant to be human
readable.

On Tue, Apr 5, 2011 at 7:19 AM, dirk dhaa...@gmail.com wrote:
 Hold on a minute. I really don't care the least bit about underlying
 code, that is, the XML that's generated by a really good design tool.
 Saying you should have to learn the XML (in this case) is like saying
 you have to learn the bytecode that's generated from the java code.
 Sure, you always need understand the structure, but with good tools,
 you can _focus_ on the structure and not worry about the details.

 On Apr 4, 7:01 pm, Robert rcope...@gmail.com wrote:
 Layout is part of development. Having tools to help with that are aids
 but should not be used as an excuse not to learn the underlying code.
 THe designer tools only generate the structures based on the rules
 programmed into them. You will always have a more detailed level of
 control by going to the lowest level available.  Learn it and it'll
 make you a better developer and your programs to be more
 efficient.     Using the higher level tools makes you only as
 efficient at they are.

 Yes, it takes time and yes you have to learn it but that's what being
 a real developer is all about.
 Robert

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Activity without GUI - Activity

2011-04-05 Thread Gorka
Hi,

I want to deploy an application that reads a NFC tag and shows the
text on the screen with a Toast and reads it using a texttospeach
class. So, I don´t want to start an activity because I don´t need any
GUI. Is that possible?

I have tried to remove the activity tags from the manifest but that
way the application doesn´t work. Is it possible to set the HOME view
within the OnCreate method instead of using R.layout.main ?? If it is
possible please tell me how to do it because I don´t know how to get
this view.

Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread Zsolt Vasvari
An app without a UI is a service.

On Apr 5, 3:55 pm, Gorka gork...@gmail.com wrote:
 Hi,

 I want to deploy an application that reads a NFC tag and shows the
 text on the screen with a Toast and reads it using a texttospeach
 class. So, I don´t want to start an activity because I don´t need any
 GUI. Is that possible?

 I have tried to remove the activity tags from the manifest but that
 way the application doesn´t work. Is it possible to set the HOME view
 within the OnCreate method instead of using R.layout.main ?? If it is
 possible please tell me how to do it because I don´t know how to get
 this view.

 Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread Gorka Hernando
Ok,

But if I create my application as a service it will start when the
intent occurs? I mean, when the mobile detects the tag and creates the
NDEF .. intent will the application get this intent and show the toast
on the screen??

Thanks

On 5 abr, 10:01, Zsolt Vasvari zvasv...@gmail.com wrote:
 An app without a UI is a service.

 On Apr 5, 3:55 pm, Gorka gork...@gmail.com wrote:







  Hi,

  I want to deploy an application that reads a NFC tag and shows the
  text on the screen with a Toast and reads it using a texttospeach
  class. So, I don´t want to start an activity because I don´t need any
  GUI. Is that possible?

  I have tried to remove the activity tags from the manifest but that
  way the application doesn´t work. Is it possible to set the HOME view
  within the OnCreate method instead of using R.layout.main ?? If it is
  possible please tell me how to do it because I don´t know how to get
  this view.

  Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Amazon appstore order reports

2011-04-05 Thread Michael A.
Hi,

I contacted them friday. Got a reply yesterday explaining that they
are still having trouble with the reporting.

Regards,

Michael A.

On Apr 5, 6:57 am, String sterling.ud...@googlemail.com wrote:
 Hate to say it,but I saw the same thing. Sales looked pretty good the first
 few days, then the numbers got revised from pretty good to pretty awful,
 then the reports went away altogether. Contacted them about it on Mar 25,
 got We are looking into this reporting error. I will let you know as soon
 as I have some feedback. Nothing since.

 String

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: new developer questions

2011-04-05 Thread hoss7
thanks again
and how can i test my app in phone?

On Apr 5, 11:46 am, Miguel Morales therevolti...@gmail.com wrote:
 The latest.









 On Tue, Apr 5, 2011 at 12:40 AM, hoss7 hoss...@gmail.com wrote:
  which eclipse version

  On Apr 5, 12:22 am, Miguel Morales therevolti...@gmail.com wrote:
   1. Eclipse
   2. Android SDK
   3. Yes
   4.http://developer.android.com/guide/topics/fundamentals.html

   On Sun, Apr 3, 2011 at 12:32 PM, hoss7 hoss...@gmail.com wrote:
i want starrt develop android app
i am Computer engineering and web developer
 i have many questions
1.best ide for develop?
2.what i need to develop android app?
3.android is easy or not?
4.where i must start?

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
  android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   ~ Jeremiah:9:23-24
   Android 2D MMORPG:
 http://solrpg.com/,http://www.youtube.com/user/revoltingx

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: HomeScreen Widget frustrating

2011-04-05 Thread Stefan S
But how about the Calendarwidget. There is also a scrolling.
I try to get such a behaviour in my widget.

On 5 Apr., 08:58, Justin Anderson magouyaw...@gmail.com wrote:
 * But what do I have to do with Android 2.1? I don't get the scrolling
 working.*

 Exactly.  As Dianne said, you can't use scrolling widgets in any version of
 Android prior to 3.0...

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware



 On Mon, Apr 4, 2011 at 5:24 AM, Stefan S shogu...@gmail.com wrote:
  But what do I have to do with Android 2.1? I don't get the scrolling
  working.- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: new developer questions

2011-04-05 Thread hoss7
i have Eclipse for PHP can i work with this type of Eclipse for
develop android app?
On Apr 5, 11:46 am, Miguel Morales therevolti...@gmail.com wrote:
 The latest.









 On Tue, Apr 5, 2011 at 12:40 AM, hoss7 hoss...@gmail.com wrote:
  which eclipse version

  On Apr 5, 12:22 am, Miguel Morales therevolti...@gmail.com wrote:
   1. Eclipse
   2. Android SDK
   3. Yes
   4.http://developer.android.com/guide/topics/fundamentals.html

   On Sun, Apr 3, 2011 at 12:32 PM, hoss7 hoss...@gmail.com wrote:
i want starrt develop android app
i am Computer engineering and web developer
 i have many questions
1.best ide for develop?
2.what i need to develop android app?
3.android is easy or not?
4.where i must start?

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
  android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   ~ Jeremiah:9:23-24
   Android 2D MMORPG:
 http://solrpg.com/,http://www.youtube.com/user/revoltingx

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is there any procedure in java that can attach extra information in Video file in Android?

2011-04-05 Thread Nilay
Hello All,

I am working with Video Component in Android,

I have query related with it,

Is there any procedure in java that can attach extra information in
Video file in Android?

Hope for positive reply.

Thanks And regards.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to build libraries

2011-04-05 Thread yogi
Hi all,
I download the android 2.3 source code and build it.Now onwards i want
to build only webkit lib.
Is there any command for the this, I tried make -j4 libwebcore, but
it does not work for me.

Regards
Yogi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: new developer questions

2011-04-05 Thread Filip Havlicek
What about just reading the stuff on the web?

http://developer.android.com/guide/developing/index.html
http://developer.android.com/sdk/index.html

2011/4/5 hoss7 hoss...@gmail.com

 i have Eclipse for PHP can i work with this type of Eclipse for
 develop android app?
 On Apr 5, 11:46 am, Miguel Morales therevolti...@gmail.com wrote:
  The latest.
 
 
 
 
 
 
 
 
 
  On Tue, Apr 5, 2011 at 12:40 AM, hoss7 hoss...@gmail.com wrote:
   which eclipse version
 
   On Apr 5, 12:22 am, Miguel Morales therevolti...@gmail.com wrote:
1. Eclipse
2. Android SDK
3. Yes
4.http://developer.android.com/guide/topics/fundamentals.html
 
On Sun, Apr 3, 2011 at 12:32 PM, hoss7 hoss...@gmail.com wrote:
 i want starrt develop android app
 i am Computer engineering and web developer
  i have many questions
 1.best ide for develop?
 2.what i need to develop android app?
 3.android is easy or not?
 4.where i must start?
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
--
~ Jeremiah:9:23-24
Android 2D MMORPG:
  http://solrpg.com/,http://www.youtube.com/user/revoltingx
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  ~ Jeremiah:9:23-24
  Android 2D MMORPG:
 http://solrpg.com/,http://www.youtube.com/user/revoltingx

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-04-05 Thread Shai
Same results with ApiDemos!

I created a new sample project (ApiDemos) using ADT with API level 11
as the target and I tried the following:
I DO get the patterned blue background in the main screen (seems like
hardware acceleration is working).

In ApiDemos.Java:
- In the OnCreate I added a log print for
getListView().isHardwareAccelerated() and was False

- In BouncingBalls.Java near the end of the onCreate I added a log
print :

MyAnimationView v =new MyAnimationView(this);
container.addView(v);
Log.e(Test, Result: + v.isHardwareAccelerated());

It was also false

- In BouncingBalls.Java at MyAnimationView.onDraw(Canvas canvas)
Log.e(Test, Canvas is: + canvas.isHardwareAccelerated());

It was also false


Can someone clear this out for me ?
Is hardware acceleration off ?
Is this a bug in the isHardwareAccelerated() function or am I doing
something wrong ?

Best Regards,
Shai Levy

On Apr 4, 9:58 pm, Dianne Hackborn hack...@android.com wrote:
 API demos is hardware accelerated.  Try putting the call in one of the
 simple samples there and see what it does.

 Fwiw, if you are using the default dark theme, if your window is hardware
 accelerated than you will get the patterned blue background.  If it is
 drawing in software you will get the solid black background.









 On Mon, Apr 4, 2011 at 10:53 AM, Shai levys...@gmail.com wrote:
  Hi,

  I am trying to turn on hardware acceleration for my HoneyComb application
  but I never seem to get a 'true' result from this function.

  I tried all the methods in the Android Developers blog post about the
  subject (
 http://android-developers.blogspot.com/2011/03/android-30-hardware-ac...
  ).

  I am working on a completely blank project (ADT generated project), I added
  the  tag  android:hardwareAccelerated=true  to both the application and
  activity and even called
          getWindow().setFlags(
                  WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
                  WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);

  before calling setContentView()

  My view only has the TextView that was automatically generated from the ADT
  new project wizard.

  Yet, no matter what I do, when I call isHardwareAccelerated() on the
  textview or the root view or any canvas I try to obtain - the function
  isHardwareAccelerated() of the view/canvas always returns false.

  I am testing on a Motorola Xoom device with Android 3.0.1

  What am I missing here ?

  Best Regards,
  Shai

   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Passing data with Intent problem

2011-04-05 Thread Brad Stintson
Firstly, I send data using putExtra from A to B. Then I store data in
variable and then I send again from B to C.

On Tue, Apr 5, 2011 at 1:18 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 What error? How exactly are you sending the string from A to B and from B
 to C? Are you reusing the same intent or are you creating a new one?

 Best regards,
 Filip Havlicek

 2011/4/5 Brad Stintson geek.bin...@gmail.com

 I have three activities say A,B and C. They are linked as A--B--C.
 Now I want to send a string of data from activity A to activity B and C.

 When I use putextra() then from A to B it works perfectly but from B to C
 it shows error. How to achieve that?
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Search Widget doesn't appear on 2.1 (Eclair) but it appears on 2.2 (froyo)

2011-04-05 Thread varinag gold
Hi,

I have following code to add a widget on custom home screen . when I
run this code it doesn't show 'Search Widget' on Android 2.1 but same
code show 'Search Widget' on Android 2.2 .

Can any one let me know why it is like this? and how I can add 'Search
Widget' for 2.1 on Eclair as well.


protected void doWidgetPick() {
int appWidgetId = 
this.mAppWidgetHost.allocateAppWidgetId();

Intent pickIntent = new
Intent(AppWidgetManager.ACTION_APPWIDGET_PICK);
pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
appWidgetId);

/* custom extra that has to be there or else NPE will happen
due to android bug   */
  //this is pulled from the Launcher source, I just changed a
few things as it's just a dummy entry at this point
ArrayListAppWidgetProviderInfo customInfo =
new ArrayListAppWidgetProviderInfo();
AppWidgetProviderInfo info = new AppWidgetProviderInfo();
info.provider = new ComponentName(getPackageName(),
XXX.YYY);
info.label = i love android;
info.icon = R.drawable.icon;
customInfo.add(info);
pickIntent.putParcelableArrayListExtra(
AppWidgetManager.EXTRA_CUSTOM_INFO, customInfo);
   ArrayListBundle customExtras = new ArrayListBundle();
Bundle b = new Bundle();
b.putString(custom_widget, search_widget);
customExtras.add(b);
pickIntent.putParcelableArrayListExtra(
AppWidgetManager.EXTRA_CUSTOM_EXTRAS,
customExtras);
/* that's a lot of lines that are there for no function at
all */


// start the pick activity
startActivityForResult(pickIntent, REQUEST_PICK_APPWIDGET);
//because we've defined ourselves as a singleTask activity,
it will allow this intent to be part of the task

}

Note: I have take above code sample from a web site.


Please suggest if you know any specific information which might be
helpful.

Regards,
varinaq

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Converting Blackberry Apps

2011-04-05 Thread j.s. mammen
Do you have the source code to the blackberry apps?

On Mar 31, 6:27 pm, usafrmajor usafrma...@gmail.com wrote:
 Is there a utility that will facilitate the conversion of Blackberry
 apps to android apps?  I understand if it is not perfect, but it would
 be great to have something that could do some/most of it.  thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread Gorka Hernando
Hi again,

Sorry if I am posting too much, but I really need to make this work
today.
Here it is my manifest file. I have created a service and a receiver
to get the NDEF_DISCOVERED intent.

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.android.nfcvoicereader android:versionCode=1
android:versionName=1.0
uses-sdk android:minSdkVersion=10 /

application android:icon=@drawable/icon android:label=@string/
app_name
service android:enabled=true android:name=MyService/
service
receiver android:enabled=true
android:name=com.android.MyIntentReceiver
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter

intent-filter
action android:name=android.nfc.action.NDEF_DISCOVERED/

data android:mimeType=text/plain /

category 
android:name=android.intent.category.DEFAULT/
/intent-filter
/receiver

uses-feature android:name=android.hardware.nfc
android:required=true /
/application
/manifest

Inside my project there is a receiver class which should get the
intent so that I can start the service.

public class MyIntentReceiver extends BroadcastReceiver {
static final String TAG = BROADCAST RECEIVER;

  @Override
  public void onReceive(Context _context, Intent _intent) {
.
 }
}

Can someone tell me what I am doing wrong ??

Thanks


On 5 abr, 10:01, Zsolt Vasvari zvasv...@gmail.com wrote:
 An app without a UI is a service.

 On Apr 5, 3:55 pm, Gorka gork...@gmail.com wrote:







  Hi,

  I want to deploy an application that reads a NFC tag and shows the
  text on the screen with a Toast and reads it using a texttospeach
  class. So, I don´t want to start an activity because I don´t need any
  GUI. Is that possible?

  I have tried to remove the activity tags from the manifest but that
  way the application doesn´t work. Is it possible to set the HOME view
  within the OnCreate method instead of using R.layout.main ?? If it is
  possible please tell me how to do it because I don´t know how to get
  this view.

  Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: HomeScreen Widget frustrating

2011-04-05 Thread space
Which phone are you using?
Which home application are you using?  (the default one or you
downloaded something from the market)
Which calendar widget are you using?

/Pal

On Apr 5, 10:19 am, Stefan S shogu...@gmail.com wrote:
 But how about the Calendarwidget. There is also a scrolling.
 I try to get such a behaviour in my widget.

 On 5 Apr., 08:58, Justin Anderson magouyaw...@gmail.com wrote:







  * But what do I have to do with Android 2.1? I don't get the scrolling
  working.*

  Exactly.  As Dianne said, you can't use scrolling widgets in any version of
  Android prior to 3.0...

  Thanks,
  Justin Anderson
  MagouyaWare Developerhttp://sites.google.com/site/magouyaware

  On Mon, Apr 4, 2011 at 5:24 AM, Stefan S shogu...@gmail.com wrote:
   But what do I have to do with Android 2.1? I don't get the scrolling
   working.- Zitierten Text ausblenden -

  - Zitierten Text anzeigen -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Converting Blackberry Apps

2011-04-05 Thread Robin Talwar
ya well i do have the source code n i wont mind converting it into
android...


On Tue, Apr 5, 2011 at 2:12 PM, j.s. mammen mamm...@gmail.com wrote:

 Do you have the source code to the blackberry apps?

 On Mar 31, 6:27 pm, usafrmajor usafrma...@gmail.com wrote:
  Is there a utility that will facilitate the conversion of Blackberry
  apps to android apps?  I understand if it is not perfect, but it would
  be great to have something that could do some/most of it.  thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Converting Blackberry Apps

2011-04-05 Thread J.S. Mammen
Is the bb app written in Java/J2ME or C++?

On Tue, Apr 5, 2011 at 2:16 PM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 ya well i do have the source code n i wont mind converting it into
 android...


 On Tue, Apr 5, 2011 at 2:12 PM, j.s. mammen mamm...@gmail.com wrote:

 Do you have the source code to the blackberry apps?

 On Mar 31, 6:27 pm, usafrmajor usafrma...@gmail.com wrote:
  Is there a utility that will facilitate the conversion of Blackberry
  apps to android apps?  I understand if it is not perfect, but it would
  be great to have something that could do some/most of it.  thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android MediaPlayer sometimes stops playing a sound file early

2011-04-05 Thread Syed Rakib Al Hasan
i face the SAME issue. it happens in both the emulator and also in my test 
device - both of which run android 2.2
i have included my sound files in the raw folder. but still i have 
the same problem - the sound cuts off near the end upon button click

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Passing data with Intent problem

2011-04-05 Thread Filip Havlicek
Then it should work just fine.

2011/4/5 Brad Stintson geek.bin...@gmail.com

 Firstly, I send data using putExtra from A to B. Then I store data in
 variable and then I send again from B to C.


 On Tue, Apr 5, 2011 at 1:18 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 What error? How exactly are you sending the string from A to B and from B
 to C? Are you reusing the same intent or are you creating a new one?

 Best regards,
 Filip Havlicek

 2011/4/5 Brad Stintson geek.bin...@gmail.com

  I have three activities say A,B and C. They are linked as A--B--C.
 Now I want to send a string of data from activity A to activity B and C.

 When I use putextra() then from A to B it works perfectly but from B to C
 it shows error. How to achieve that?
  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: onWindowFocusChanged() happens more than once when resuming the application from the homescreen or app drawer

2011-04-05 Thread Syed Rakib Al Hasan
## HOME BUTTON PRESSED TO MINIMIZE THE APPLICATION ##
04-05 15:00:17.801: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:false

## APPLICATION BUTTON PRESSED TO RETURN TO THE RUNNING APPLICATION 
##
04-05 15:00:28.354: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:true
04-05 15:00:28.354: INFO/System.out(357): mySoundPlaybackMethods()

## now the window focus has already become true. why should the 
following occur again 
04-05 15:00:29.251: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:false
04-05 15:00:29.301: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:true
04-05 15:00:29.352: INFO/System.out(357): mySoundPlaybackMethods()

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] onWindowFocusChanged() happens more than once when resuming the application from homescreen or app drawer

2011-04-05 Thread Syed Rakib Al Hasan
## HOME BUTTON PRESSED TO MINIMIZE THE APPLICATION ##
04-05 15:00:17.801: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:false

## APPLICATION BUTTON PRESSED TO RETURN TO THE RUNNING APPLICATION 
##
04-05 15:00:28.354: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:true
04-05 15:00:28.354: INFO/System.out(357): mySoundPlaybackMethods()

 Now the windowFocus has already become true. why should the 
following occur again??? #
04-05 15:00:29.251: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:false
04-05 15:00:29.301: INFO/System.out(357): onWindowFocusChanged() - 
hasFocus:true
04-05 15:00:29.352: INFO/System.out(357): mySoundPlaybackMethods()

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: new developer questions

2011-04-05 Thread hoss7
@filip
i have Eclipse for PHP can i work with this type of Eclipse for
develop android app?

On Apr 5, 12:31 pm, Filip Havlicek havlicek.fi...@gmail.com wrote:
 What about just reading the stuff on the web?

 http://developer.android.com/guide/developing/index.htmlhttp://developer.android.com/sdk/index.html

 2011/4/5 hoss7 hoss...@gmail.com







  i have Eclipse for PHP can i work with this type of Eclipse for
  develop android app?
  On Apr 5, 11:46 am, Miguel Morales therevolti...@gmail.com wrote:
   The latest.

   On Tue, Apr 5, 2011 at 12:40 AM, hoss7 hoss...@gmail.com wrote:
which eclipse version

On Apr 5, 12:22 am, Miguel Morales therevolti...@gmail.com wrote:
 1. Eclipse
 2. Android SDK
 3. Yes
 4.http://developer.android.com/guide/topics/fundamentals.html

 On Sun, Apr 3, 2011 at 12:32 PM, hoss7 hoss...@gmail.com wrote:
  i want starrt develop android app
  i am Computer engineering and web developer
   i have many questions
  1.best ide for develop?
  2.what i need to develop android app?
  3.android is easy or not?
  4.where i must start?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:
   http://solrpg.com/,http://www.youtube.com/user/revoltingx

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
  android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   ~ Jeremiah:9:23-24
   Android 2D MMORPG:
 http://solrpg.com/,http://www.youtube.com/user/revoltingx

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] random 404 on google android pages

2011-04-05 Thread Marcin Orlowski
On 5 April 2011 08:49, Justin Anderson magouyaw...@gmail.com wrote:

 The OP was saying that it was a widespread problem that has been mentioned
 by others on IRC and Twitter... not that IRC and Twitter wouldn't work for
 him either...


Ok, I misundestood him then. Sorry

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android apps authentication when using WebService

2011-04-05 Thread davemeetsworld
Perhaps it would be easier to validate the data that is sent to your
web service?

What does your application do? and why is it important that the
application that sends the data is unmodified?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread blindfold
 Does this mean Android 2.3?

Yes.

 If yes, hows to retrieve number of cameras on android 2.2 (api level 8)?

You cannot. You can only make it work for Android 2.3+ and make things
degrade gracefully (not using a camera count) for Android 2.2 and
lower

On Apr 5, 9:36 am, Abhijeet Pathak pathak...@gmail.com wrote:
 Does this mean Android 2.3?
 If yes, hows to retrieve number of cameras on android 2.2 (api level 8)?
 On 5 Apr 2011 13:02, blindfold seeingwithso...@gmail.com wrote:







  getNumberOfCameras() needs API level 9 according to documentation.

  On Apr 5, 8:54 am, Abhijeet Pathak pathak...@gmail.com wrote:
  I am getting error Cannot find symbol when using getNumberOfCameras().
 I
  am compiling app for api level 8.
  Please help me fixing this.

  Thanks,
  Abhijeet

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Avoiding service to be killed by the system

2011-04-05 Thread Paolo
Hi there,
some weeks ago I ask you about service life cycle and about the
START_STICKY flag returned from onStartCommand(), for allowing the
service to be restarted after it has been killed by the system. This
way works fine on Android 2.1 and 2.2 but not in Android 2.3
(Gingerbread)... the system never calls onStartCommand() after the
service has been killed.
here: 
https://groups.google.com/group/android-developers/browse_thread/thread/b5c4aaa0ff1a609a/429fe6ab69ab72d2?hl=it#429fe6ab69ab72d2

I found a topic about this and it confirm it is a gingerbread bug.
here:
https://groups.google.com/group/android-developers/browse_thread/thread/d87fb390c13d141d/063e74b9e1e98f9a?hl=itlnk=gstq=Gingerbread+BroadcastReceiver+Issue#

As a workaround I try to set the service as visible with
startForeground(). Anyway I guess that this flag can't guarantee my
service is always running for a long time, isn't it? Because after a
long time my service has been killed again and it isn't restarted
anymore.

Maybe it is my fault... when I call startForeground an ongoing
notification is set until I call stopForeground. While the service is
running I set new ongoing notifications overriding that one has been
passed from startForeground. Can this break the service foreground
state?

Sorry if my english isn't perfect, I hope it's clear anyway what I
want to tell you. If you have any questions, please ask me.

Thanks

Paolo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Facade Support

2011-04-05 Thread rahul
I m using ase_r25_2.1_04-02-2011.apk for android SDK. From where I
will get the supported facade?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Source code for StackView(Honeycomb build) available yet?

2011-04-05 Thread Krzysztof Majkowski
I don't think Google will make the source code of Honeycomb opened.
I recently read about they want to have more control about devices
which has installed Android. The Honeycomb is dedicated for tablet's
and they don't want to let anybody install it in smartphone.

On 5 Kwi, 06:03, Samuh samuh.va...@gmail.com wrote:
 Has the source code for Honeycomb been made available for general
 public yet?
 I was looking for StackView.java in android.git.kernel.org but was not
 able to find it.

 Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Not able to create .apk file

2011-04-05 Thread rahul
I write a small application in Eclipse to print Hello in
emulator.And when I run that file it shows me 2 error
1)Error executing aapt. Please check aapt is present at C:\Android
2.2\platform-tools\aapt.exe
2)R cannot be resolved to a variable
In Android 2.2 folder their is no 'platform-tools' folder.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] KeyStore usage..

2011-04-05 Thread bharath
HI,

How to use KeyStore in Android, can we use KeyStore for securing
the database value? Can you please provide some example.



Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Not able to create .apk file

2011-04-05 Thread Kostya Vasilyev

05.04.2011 14:11, rahul пишет:

In Android 2.2 folder their is no 'platform-tools' folder.



Did you install platform tools?

If not, use the SDK Manager to do so.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Code Needed.

2011-04-05 Thread Kirti Joshi
hello everyone,

i wanna code for same application,  can any one help me ?

https://market.android.com/details?id=br.com.android.appointments.otavio.massard.mendes


Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] WIFI connection

2011-04-05 Thread vani reddy
Hi,

How to conect to a particular wifi network  programmatically in android?

i have coded the below:

 WifiConfiguration wifiConfig = new WifiConfiguration();
 wifiConfig.BSSID = 68:ef:bd:db:f5:05;
 wifiConfig.priority = 1;
 wifiConfig.allowedKeyManagement.set(KeyMgmt.NONE);
 wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP);
 wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40);
 wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104);
 wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP);
 wifiConfig.allowedProtocols.set(WifiConfiguration.Protocol.RSN);
 wifiConfig.allowedProtocols.set(WifiConfiguration.Protocol.WPA);
wifiConfig.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP);
wifiConfig.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP);
 wifiConfig.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN);
 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);
 wifiConfig.status=WifiConfiguration.Status.ENABLED;
 WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
 int netId = wifi.addNetwork(wifiConfig);
boolean b3= wifi.enableNetwork(netId, true);
System.out.println(b3  +b3);

but its not happening..
-- 

in the log it is showing:
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): Try to find WPA-enabled AP
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 0: 68:ef:bd:db:f5:05
ssid='TLI-WIFI' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 0: 68:ef:bd:db:f5:05
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 1: 5c:d9:98:5e:d9:8a
ssid='TLI-WIFI-DLINK' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 1: 5c:d9:98:5e:d9:8a
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 2: 00:14:78:e2:93:4e
ssid='TP-Link' wpa_ie_len=26 rsn_ie_len=24 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 2: 00:14:78:e2:93:4e
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 3: 00:0d:0b:83:8f:06
ssid='mwsoa' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 3: 00:0d:0b:83:8f:06
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - no WPA/RSN IE
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 4: 00:40:77:bb:55:12
ssid='mwsoa' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 4: 00:40:77:bb:55:12
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - no WPA/RSN IE
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 5: 00:16:01:12:cf:c6
ssid='mwsoa' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 5: 00:16:01:12:cf:c6
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - no WPA/RSN IE
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 6: 00:19:77:2a:ca:50
ssid='Bee Media' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 6: 00:19:77:2a:ca:50
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - no WPA/RSN IE
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 7: 00:19:77:24:eb:10
ssid='Bee Media' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 7: 00:19:77:24:eb:10
wapi_ie_len=0
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - no WPA/RSN IE
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): Try to find non-WPA AP
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 0: 68:ef:bd:db:f5:05
ssid='TLI-WIFI' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 1: 5c:d9:98:5e:d9:8a
ssid='TLI-WIFI-DLINK' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 2: 00:14:78:e2:93:4e
ssid='TP-Link' wpa_ie_len=26 rsn_ie_len=24 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 3: 00:0d:0b:83:8f:06
ssid='mwsoa' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 4: 00:40:77:bb:55:12
ssid='mwsoa' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 5: 00:16:01:12:cf:c6
ssid='mwsoa' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455): 6: 00:19:77:2a:ca:50
ssid='Bee Media' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
04-05 16:06:29.568: DEBUG/wpa_supplicant(4455):skip - disabled
04-05 16:06:29.568: 

[android-developers] Re: HomeScreen Widget frustrating

2011-04-05 Thread Stefan S
I've the Desire HD and I use the standard calendar widget.

On 5 Apr., 10:46, space pal.sz...@gmail.com wrote:
 Which phone are you using?
 Which home application are you using?  (the default one or you
 downloaded something from the market)
 Which calendar widget are you using?

 /Pal

 On Apr 5, 10:19 am, Stefan S shogu...@gmail.com wrote:



  But how about the Calendarwidget. There is also a scrolling.
  I try to get such a behaviour in my widget.

  On 5 Apr., 08:58, Justin Anderson magouyaw...@gmail.com wrote:

   * But what do I have to do with Android 2.1? I don't get the scrolling
   working.*

   Exactly.  As Dianne said, you can't use scrolling widgets in any version 
   of
   Android prior to 3.0...

   Thanks,
   Justin Anderson
   MagouyaWare Developerhttp://sites.google.com/site/magouyaware

   On Mon, Apr 4, 2011 at 5:24 AM, Stefan S shogu...@gmail.com wrote:
But what do I have to do with Android 2.1? I don't get the scrolling
working.- Zitierten Text ausblenden -

   - Zitierten Text anzeigen -- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Code Needed.

2011-04-05 Thread Marcin Orlowski
On 5 April 2011 12:32, Kirti Joshi joshikirti...@gmail.com wrote:

 i wanna code for same application,  can any one help me

https://market.android.com/details?id=br.com.android.appointments.otavio.massard.mendes


No.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread skink


On Apr 5, 10:45 am, Gorka Hernando g.herna...@ogmio.com wrote:
 Hi again,

 Sorry if I am posting too much, but I really need to make this work
 today.
 Here it is my manifest file. I have created a service and a receiver
 to get the NDEF_DISCOVERED intent.

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.android.nfcvoicereader android:versionCode=1
 android:versionName=1.0
     uses-sdk android:minSdkVersion=10 /

     application android:icon=@drawable/icon android:label=@string/
 app_name
     service android:enabled=true android:name=MyService/
 service
     receiver android:enabled=true
 android:name=com.android.MyIntentReceiver
                 intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=android.intent.category.LAUNCHER /
             /intent-filter

             intent-filter
                 action android:name=android.nfc.action.NDEF_DISCOVERED/

                         data android:mimeType=text/plain /

                         category 
 android:name=android.intent.category.DEFAULT/
             /intent-filter
     /receiver

     uses-feature android:name=android.hardware.nfc
 android:required=true /
     /application
 /manifest

 Inside my project there is a receiver class which should get the
 intent so that I can start the service.

 public class MyIntentReceiver extends BroadcastReceiver {
         static final String TAG = BROADCAST RECEIVER;

           @Override
           public void onReceive(Context _context, Intent _intent) {
             .
          }

 }

 Can someone tell me what I am doing wrong ??


See Context docs to find a method that starts a service

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread skink


On Apr 5, 10:45 am, Gorka Hernando g.herna...@ogmio.com wrote:
 Hi again,

 Sorry if I am posting too much, but I really need to make this work
 today.
 Here it is my manifest file. I have created a service and a receiver
 to get the NDEF_DISCOVERED intent.

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.android.nfcvoicereader android:versionCode=1
 android:versionName=1.0
     uses-sdk android:minSdkVersion=10 /

     application android:icon=@drawable/icon android:label=@string/
 app_name
     service android:enabled=true android:name=MyService/
 service
     receiver android:enabled=true
 android:name=com.android.MyIntentReceiver
                 intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=android.intent.category.LAUNCHER /
             /intent-filter

             intent-filter
                 action android:name=android.nfc.action.NDEF_DISCOVERED/

                         data android:mimeType=text/plain /

                         category 
 android:name=android.intent.category.DEFAULT/
             /intent-filter
     /receiver

     uses-feature android:name=android.hardware.nfc
 android:required=true /
     /application
 /manifest

 Inside my project there is a receiver class which should get the
 intent so that I can start the service.

 public class MyIntentReceiver extends BroadcastReceiver {
         static final String TAG = BROADCAST RECEIVER;

           @Override
           public void onReceive(Context _context, Intent _intent) {
             .
          }

 }

 Can someone tell me what I am doing wrong ??


See Context docs to find a method that starts a service

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Fade in animation is not getting displayed?

2011-04-05 Thread Pink
Hi,


I am using fade in animation in my application.

When i try to play fade in animation it is getting played but not
displayed.

I have layout as follows.


FrameLayout
   Button
android:layout_width=20dip
 android:layout_height=10dip
  .../
ImageView
 android:layout_width=20dip
 android:layout_height=10dip
 android:background=@android:color/white/

/FrameLayout


By default Button is visible and ImageView is invisible.

  When user selects one option menu item  i am playing fade in
animation by making ImageView as visible.

 The fade in animation is as follows.

   android:fromAlpha=0.0 android:toAlpha=1.0
android:interpolator=@android:anim/decelerate_interpolator
android:duration=200 android:repeatCount=0

 After 200milli seconds i am making m imageView as INVISIBLE.

 The fade in animation is not getting displayed.

  What is the wrong in the above code?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-05 Thread Alaeddine Ghribi
Hi,
So, i solved the 80% of the problem, now when debugging i have all the path
to the settings.dat:
/data/data/acrburant.android.com/files/settings.dat

However, i'm facing a problem when writing the file to the SDCARD. I have
permission denied and SDCARD not mounted exception.
Here is the code:

File sdCard = Environment.getExternalStorageDirectory();

if(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))
{
   Log.d(Carburant, Sdcard was not mounted !! );
}
  else
{
  File nmea_file;
  File root = Environment.getExternalStorageDirectory();
  FileWriter nmea_writer = null;
  try {
  nmea_file = new File(root,settings.dat);
  if(!nmea_file.exists()) {
  Log.w(Carburant, File Doesn't Exists!);
  nmea_file.createNewFile();
  }
copyfile(nom,sdCard.getAbsolutePath() + nmea_file);
  }
  catch (IOException e)
  {
  Log.w(Carburant, Unable to write, e);
  }
  finally
  {
  if (nmea_writer != null)
  {
  try
  {
  nmea_writer.close();
  }
  catch (IOException e)
  {
  Log.w(Carburant, Exception closing file, e);
  }
  }
  }
}
}

I well added this line : uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE / to the
androidmanifest.xml.

I hope that i well did my homework.
Thank you for your help.
2011/4/4 TreKing treking...@gmail.com

 On Mon, Apr 4, 2011 at 2:23 PM, Alaeddine Ghribi 
 alaeddineghr...@gmail.com wrote:

 I readed and i'm reading all this docs! i just can't find the right
 function to use! you are just send links and google JAVA IO without any
 precision!


 Once again, the functions to use are at the link I posted. The only thing
 Android related about your problem is how to get to the root directory for
 the files you want to manipulate. Beyond that, it's strictly Java IO. So
 that's where you need to do your homework.


 I think that you are becoming angry now!


 I'm really not though I'm a little over the top. I just don't know how many
 times I can repeat the same information in a single thread.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-05 Thread Kostya Vasilyev

05.04.2011 15:47, Alaeddine Ghribi пишет:


However, i'm facing a problem when writing the file to the SDCARD. I 
have permission denied and SDCARD not mounted exception.

Here is the code:


Do you have a memory card in the phone?

If you do, make sure it's not mounted as a disk drive by your computer. 
If it is, use the phone's menu to disable this (this is manufacturer 
dependent, look for a status bar notification).


Finally, make sure that the permission is outside your application 
tag, and directly inside manifest.


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: HomeScreen Widget frustrating

2011-04-05 Thread Mark Murphy
On Tue, Apr 5, 2011 at 7:10 AM, Stefan S shogu...@gmail.com wrote:
 I've the Desire HD and I use the standard calendar widget.

That is not an app widget, and it is not the standard calendar
widget. The standard calendar widget does not scroll.

Just because it shows up on an HTC Sense home screen does not mean
that it is an app widget. Lots of things that HTC Sense claims are
widgets are actually features of the home screen.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] WIFI connection

2011-04-05 Thread vani reddy
Hi,
How to programmatically connect to a particular wifi network,which is in
range.?
How to remove the Out Of range networks from wifi configuration list?
-- 
 Regards,
Vani Reddy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Using RatingBar as Fav with one star

2011-04-05 Thread Jonas Alves
Use a CompoundButton.

On Apr 5, 2:57 am, ramindroid singhramin...@gmail.com wrote:
 Any update on this?

 On Apr 4, 7:35 pm, ramindroid singhramin...@gmail.com wrote:



  Hi,

  I tried implementing the Favourite functionaity for any Contacts using
  the RatingBar (having one Star).
  I set the rating a 0.0 initially (with stepSize as 1.0). On clicking,
  the star gets rating 1 (turns green) but further click to make it 0 is
  not working ( on setting stepSize as 0.5, Its getting 0- 0.5 - 1.0 - 
  0.5... but not to zero).

  I tried using onClickListener but its still not executing onClick().
  So my question is: Is this possible to achieve using RatingBar? To
  implement the same, what another/best appraoch?
  * I tried having two images in the listItem and on clicking ...
  changin to another... but i want to have standard look n feel as
  setting a favourite contact.

  Please provide the inputs.

  thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-05 Thread Alaeddine Ghribi
I added this in the emulator:
-sdcard /Users/Alaeddine/Documents/workspace/android_sdcard

I verified also that the /sdcard is well mounted by the emulator, not by the
the computer.
This can not be a code problem ?
By the way, i solved the problem of settings.dat path by doing this(to all
persons that needs this inf):
String mainDirPath = this.getFilesDir() + File.separator + settings.dat;
Import myImport = new Import(this,mainDirPath);
 myImport.transfer();
 return true;



2011/4/5 Kostya Vasilyev kmans...@gmail.com

 05.04.2011 15:47, Alaeddine Ghribi пишет:


 However, i'm facing a problem when writing the file to the SDCARD. I have
 permission denied and SDCARD not mounted exception.
 Here is the code:

  Do you have a memory card in the phone?

 If you do, make sure it's not mounted as a disk drive by your computer. If
 it is, use the phone's menu to disable this (this is manufacturer dependent,
 look for a status bar notification).

 Finally, make sure that the permission is outside your application tag,
 and directly inside manifest.

 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] SSL certpath error, Issue in Android or on server side?!

2011-04-05 Thread Sebastian Wagner
Hi everybody,

I cannot connect to the URL https://umbreit.e-bookshelf.de with the 
HTTPClient.

It *seems* like this Issue is also ours: 
http://code.google.com/p/android/issues/detail?id=1946#c19

Could someone verify that from the team if its an Android or a problem on 
the server side?


Thanks
Sebastian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread Craigbtx
I agree with Dirk and others. After using Microsofts development
environment, Visual Studio and asp.net for me, there is no reason to
code database connections, html tables of data etc., sql update,
delete and insert commands. If you know them that is great and it is
helpful. But by having a full mature visual development environment
you can concentrate on the application and not the code, unless
necessary. I have developed a fully functional asp.net application
with 53 database driven pages with lists and forms with full insert
update and delete capabilities, full security with logins, retrieve
passwords, create new users all in 2 weeks.  No code!

Later we added business rules and error trapping but what a head
start. If needed then you dig into code but use the built in mature
tools to the fullest. I had a problem once and got answers of 150
lines of code. The solution was 1 line of code.

We do not need to reinvent the wheel on every application. Thirty
years ago we had database application software that didn't require you
to code database connections, insert, deletes and update statements,
button clicks etc. I hope we have progressed farther that that.

Eclipse is the best visual environment for Android code but far from
Microsofts Visual Studio development environment.

Ever seen app_inventor, visual environment from Google? Interesting. I
wonder if it will ever be released? It may be too visual and maybe no
as powerful, butinteresting none the less.




On Apr 5, 1:19 am, dirk dhaa...@gmail.com wrote:
 Hold on a minute. I really don't care the least bit about underlying
 code, that is, the XML that's generated by a really good design tool.
 Saying you should have to learn the XML (in this case) is like saying
 you have to learn the bytecode that's generated from the java code.
 Sure, you always need understand the structure, but with good tools,
 you can _focus_ on the structure and not worry about the details.

 On Apr 4, 7:01 pm, Robert rcope...@gmail.com wrote:



  Layout is part of development. Having tools to help with that are aids
  but should not be used as an excuse not to learn the underlying code.
  THe designer tools only generate the structures based on the rules
  programmed into them. You will always have a more detailed level of
  control by going to the lowest level available.  Learn it and it'll
  make you a better developer and your programs to be more
  efficient.     Using the higher level tools makes you only as
  efficient at they are.

  Yes, it takes time and yes you have to learn it but that's what being
  a real developer is all about.
  Robert- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread Gorka Hernando
Hi,

Thanks for your response.
I am taking a look at it.

I am not sure if I am working in the rigth way. Since I want the
service to execute when the tag is detected, I guess I have to declare
a BroadcastReceiver within my packet so that when I receive the intent
I can start the service. Is that correct? The thing is that I am not
receiving the intent at all, I am sure the action.NDEF is taking place
because I see it in the debug window. However, my receiver doesn´t get
it. The way I have declared the receiver in the manifest and in the
java class is above.

Can you please tell me if what I am doing make sense or not. Because
it seems to me that I am wasting my time because this is not the
correct form to work whit this things.

Thanks.


On 5 abr, 13:36, skink psk...@gmail.com wrote:
 On Apr 5, 10:45 am, Gorka Hernando g.herna...@ogmio.com wrote:









  Hi again,

  Sorry if I am posting too much, but I really need to make this work
  today.
  Here it is my manifest file. I have created a service and a receiver
  to get the NDEF_DISCOVERED intent.

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
        package=com.android.nfcvoicereader android:versionCode=1
  android:versionName=1.0
      uses-sdk android:minSdkVersion=10 /

      application android:icon=@drawable/icon android:label=@string/
  app_name
      service android:enabled=true android:name=MyService/
  service
      receiver android:enabled=true
  android:name=com.android.MyIntentReceiver
                  intent-filter
                  action android:name=android.intent.action.MAIN /
                  category
  android:name=android.intent.category.LAUNCHER /
              /intent-filter

              intent-filter
                  action android:name=android.nfc.action.NDEF_DISCOVERED/

                          data android:mimeType=text/plain /

                          category 
  android:name=android.intent.category.DEFAULT/
              /intent-filter
      /receiver

      uses-feature android:name=android.hardware.nfc
  android:required=true /
      /application
  /manifest

  Inside my project there is a receiver class which should get the
  intent so that I can start the service.

  public class MyIntentReceiver extends BroadcastReceiver {
          static final String TAG = BROADCAST RECEIVER;

            @Override
            public void onReceive(Context _context, Intent _intent) {
              .
           }

  }

  Can someone tell me what I am doing wrong ??

 See Context docs to find a method that starts a service

 pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread Gorka Hernando
Sorry, I forgot to say that after the broadcast is catched withing the
onreceive I have this code:

public void onReceive(Context context, Intent intent) {
// show first message
Toast toast = Toast.makeText(context, test, Toast.LENGTH_LONG);
toast.show();

context.startService(serviceIntent);
}

Maybe you meant this line: context.startService(serviceIntent); when
you sais how to start a service.
The problem as I said is that I cannot get the intent

On 5 abr, 14:42, Gorka Hernando g.herna...@ogmio.com wrote:
 Hi,

 Thanks for your response.
 I am taking a look at it.

 I am not sure if I am working in the rigth way. Since I want the
 service to execute when the tag is detected, I guess I have to declare
 a BroadcastReceiver within my packet so that when I receive the intent
 I can start the service. Is that correct? The thing is that I am not
 receiving the intent at all, I am sure the action.NDEF is taking place
 because I see it in the debug window. However, my receiver doesn´t get
 it. The way I have declared the receiver in the manifest and in the
 java class is above.

 Can you please tell me if what I am doing make sense or not. Because
 it seems to me that I am wasting my time because this is not the
 correct form to work whit this things.

 Thanks.

 On 5 abr, 13:36, skink psk...@gmail.com wrote:







  On Apr 5, 10:45 am, Gorka Hernando g.herna...@ogmio.com wrote:

   Hi again,

   Sorry if I am posting too much, but I really need to make this work
   today.
   Here it is my manifest file. I have created a service and a receiver
   to get the NDEF_DISCOVERED intent.

   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
         package=com.android.nfcvoicereader android:versionCode=1
   android:versionName=1.0
       uses-sdk android:minSdkVersion=10 /

       application android:icon=@drawable/icon android:label=@string/
   app_name
       service android:enabled=true android:name=MyService/
   service
       receiver android:enabled=true
   android:name=com.android.MyIntentReceiver
                   intent-filter
                   action android:name=android.intent.action.MAIN /
                   category
   android:name=android.intent.category.LAUNCHER /
               /intent-filter

               intent-filter
                   action android:name=android.nfc.action.NDEF_DISCOVERED/

                           data android:mimeType=text/plain /

                           category 
   android:name=android.intent.category.DEFAULT/
               /intent-filter
       /receiver

       uses-feature android:name=android.hardware.nfc
   android:required=true /
       /application
   /manifest

   Inside my project there is a receiver class which should get the
   intent so that I can start the service.

   public class MyIntentReceiver extends BroadcastReceiver {
           static final String TAG = BROADCAST RECEIVER;

             @Override
             public void onReceive(Context _context, Intent _intent) {
               .
            }

   }

   Can someone tell me what I am doing wrong ??

  See Context docs to find a method that starts a service

  pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Activity Life cycle question

2011-04-05 Thread Serdel
Maybe the title of this topic is not quite proper but it considers the
life cycle of android activities. I looked through many open source
project and saw that usually when an activity is opened form a basic
one the main screen is not closed. When the user presses the 'back'
button the new activity is closed and the main one stays on screen.

However in my application I have a problem with that - the new
activity needs to have a button getting it back to the first one.
Moreover, the new activity can open a third one that still would have
the button that should take back to the first one. Or even a 4th one.
So it looks like that:

A = B = C = D

And all B,C,D need to have a button that would close the all 'chain'
and get back to A. Let's call it 'Back A button' not to confuse with
'hardware back button'. I didn't know how to close all other
activities by a push of the mentioned ''Back A button'. If don't close
them, I'll have a flood of activities in the background.

I achieved this by closing each activity when calling the next one. So
When I open B I close A, when I open C I close B, When I open D I
close C etc.This works however whenever you would press the 'hardware
back button' on the android device the whole application exits (there
are no running activities 'in the back'). I don't want this since the
user would expect to get back to the previous screen by pressing
hardware back button. So i.e. D=C, C=B, B=A.

I don't know if I had explained my problem in detail, I hope so. Does
any one have an advice on how to handle this situation?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] encrypt/decrypt the data from content provider

2011-04-05 Thread rashmi
Hi,
I am using content provider to access the database. I want to secure
my data by encryption. Please let me know, how we can encrypt and
decrypt the data from content provider.

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Amazon appstore order reports

2011-04-05 Thread Justin Giles
As of this morning (8am central), the reports are back up and seem
accurate.

On Tue, Apr 5, 2011 at 3:15 AM, Michael A. michael.aki...@gmail.com wrote:

 Hi,

 I contacted them friday. Got a reply yesterday explaining that they
 are still having trouble with the reporting.

 Regards,

 Michael A.

 On Apr 5, 6:57 am, String sterling.ud...@googlemail.com wrote:
  Hate to say it,but I saw the same thing. Sales looked pretty good the
 first
  few days, then the numbers got revised from pretty good to pretty
 awful,
  then the reports went away altogether. Contacted them about it on Mar 25,
  got We are looking into this reporting error. I will let you know as
 soon
  as I have some feedback. Nothing since.
 
  String

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: new developer questions

2011-04-05 Thread Jake Colman

Have you tried googling any of your questions?  It's much faster and it
will allow you to ask much more targeted questions.

   hoss...@gmail.com writes:

how can i test my app in phone?

On Apr 5, 12:26 am, dana tassler dana.tass...@gmail.com wrote:
A key to becoming an effective programmer is using the internet
effectively.

Using Google, I searched for develop android and got this page.  I'd
recommend being resourceful and not afraid to look for answers on your
own.  Yes, a forum is for assistance but if you post a request for
help yesterday and another today, that won't speed up replies (it's
like mashing the button for an elevator).

You may also consider polishing up your English a bit, you may find
you get more responses.  For instance, you said:

  1.best ide for develop android app?

You could have instead written What is the best IDE for developing
android applications?

I think google translator may help you.

Best of luck.

On Apr 4, 2:56 am, hoss7 hoss...@gmail.com wrote:







 1.best ide for develop android app?
 2.how and where can i start for develop?
 3.what i need for run and test app in my pc?
 4.is android develop easy or not?

 i am Computer engineering and web developer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: new developer questions

2011-04-05 Thread Jake Colman

Have you tried googling any of your questions?  It's much faster and it
will allow you to ask much more targeted questions.

   hoss...@gmail.com writes:

where can i download ADT Plugin for Eclipse?

On Apr 5, 11:40 am, hoss7 hoss...@gmail.com wrote:
how can i test my app in phone?

On Apr 5, 12:26 am, dana tassler dana.tass...@gmail.com wrote:







 A key to becoming an effective programmer is using the internet
 effectively.

 Using Google, I searched for develop android and got this page.  I'd
 recommend being resourceful and not afraid to look for answers on your
 own.  Yes, a forum is for assistance but if you post a request for
 help yesterday and another today, that won't speed up replies (it's
 like mashing the button for an elevator).

 You may also consider polishing up your English a bit, you may find
 you get more responses.  For instance, you said:

   1.best ide for develop android app?

 You could have instead written What is the best IDE for developing
 android applications?

 I think google translator may help you.

 Best of luck.

 On Apr 4, 2:56 am, hoss7 hoss...@gmail.com wrote:

  1.best ide for develop android app?
  2.how and where can i start for develop?
  3.what i need for run and test app in my pc?
  4.is android develop easy or not?

  i am Computer engineering and web developer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: new developer questions

2011-04-05 Thread nathan forbes
developer.android.com also has the answers to all of your questions so far
man.

On Apr 5, 2011 9:06 AM, Jake Colman col...@ppllc.com wrote:


 Have you tried googling any of your questions?  It's much faster and it
 will allow you to ask much more targeted questions.

hoss...@gmail.com writes:

where can i download ADT Plugin for Eclipse?

On Apr 5, 11:40 am, hoss7 hoss...@gmail.com wrote:
how can i test my app in phone?
   
On Apr 5, 12:26 am, dana tassler dana.tass...@gmail.com wrote:
   
   
   
   
   
   
   
 A key to becoming an effective programmer is using the internet
 effectively.
   
 Using Google, I searched for develop android and got this page.
 I'd
 recommend being resourceful and not afraid to look for answers on
your
 own.  Yes, a forum is for assistance but if you post a request for
 help yesterday and another today, that won't speed up replies (it's
 like mashing the button for an elevator).
   
 You may also consider polishing up your English a bit, you may find
 you get more responses.  For instance, you said:
   
   1.best ide for develop android app?
   
 You could have instead written What is the best IDE for developing
 android applications?
   
 I think google translator may help you.
   
 Best of luck.
   
 On Apr 4, 2:56 am, hoss7 hoss...@gmail.com wrote:
   
  1.best ide for develop android app?
  2.how and where can i start for develop?
  3.what i need for run and test app in my pc?
  4.is android develop easy or not?
   
  i am Computer engineering and web developer

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

 --
 Jake Colman -- Android Tinkerer

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Amazon Market Stats down still - please everybody report it to them

2011-04-05 Thread Jake Colman
 n == niko  niko20 writes:

   n Ugh, the Amazon market stats have been down almost a week now. I
   n mean only five days in and the stats are down already.

   n If everyone gets together and files reports perhaps it will
   n encourage them to fix this problem more quickly.

Do you really think that Amazon is not already aware of this problem
and that Developers won't be happy? Flooding them with emails will only
take up more of their valuable time.  IMHO.

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Amazon appstore order reports

2011-04-05 Thread David Caunt
Ours are working, cheers for the heads up

On 5 April 2011 14:00, Justin Giles jtgi...@gmail.com wrote:

 As of this morning (8am central), the reports are back up and seem
 accurate.


 On Tue, Apr 5, 2011 at 3:15 AM, Michael A. michael.aki...@gmail.comwrote:

 Hi,

 I contacted them friday. Got a reply yesterday explaining that they
 are still having trouble with the reporting.

 Regards,

 Michael A.

 On Apr 5, 6:57 am, String sterling.ud...@googlemail.com wrote:
  Hate to say it,but I saw the same thing. Sales looked pretty good the
 first
  few days, then the numbers got revised from pretty good to pretty
 awful,
  then the reports went away altogether. Contacted them about it on Mar
 25,
  got We are looking into this reporting error. I will let you know as
 soon
  as I have some feedback. Nothing since.
 
  String

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] encrypt/decrypt the data from content provider

2011-04-05 Thread Marcin Orlowski
On 5 April 2011 15:00, rashmi rashmi@gmail.com wrote:

 Hi,
 I am using content provider to access the database. I want to secure
 my data by encryption. Please let me know, how we can encrypt and
 decrypt the data from content provider.


If you encrypt it yourself it will be encrypted. It's still content. Ensure
your app design is right. It'd would be rather pointless to i.e. encrypt
data returned by your CP, while your real data in DB is unencrypted.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: random 404 on google android pages

2011-04-05 Thread Emanuel Moecklin
Same here. Got the 404 for a couple of days now.
You can try this: 
http://www.google.com/support/androidmarket/bin/request.py?contact_type=bugs

Good luck ;-)
Emanuel Moecklin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread Zsolt Vasvari
Maybe the LAUNCHER stuff is causing a problem?  If you have your
intent filter set up ok, you should at least receive the intent.



On Apr 5, 8:45 pm, Gorka Hernando g.herna...@ogmio.com wrote:
 Sorry, I forgot to say that after the broadcast is catched withing the
 onreceive I have this code:

 public void onReceive(Context context, Intent intent) {
             // show first message
             Toast toast = Toast.makeText(context, test, Toast.LENGTH_LONG);
             toast.show();

             context.startService(serviceIntent);

 }

 Maybe you meant this line: context.startService(serviceIntent); when
 you sais how to start a service.
 The problem as I said is that I cannot get the intent

 On 5 abr, 14:42, Gorka Hernando g.herna...@ogmio.com wrote:



  Hi,

  Thanks for your response.
  I am taking a look at it.

  I am not sure if I am working in the rigth way. Since I want the
  service to execute when the tag is detected, I guess I have to declare
  a BroadcastReceiver within my packet so that when I receive the intent
  I can start the service. Is that correct? The thing is that I am not
  receiving the intent at all, I am sure the action.NDEF is taking place
  because I see it in the debug window. However, my receiver doesn´t get
  it. The way I have declared the receiver in the manifest and in the
  java class is above.

  Can you please tell me if what I am doing make sense or not. Because
  it seems to me that I am wasting my time because this is not the
  correct form to work whit this things.

  Thanks.

  On 5 abr, 13:36, skink psk...@gmail.com wrote:

   On Apr 5, 10:45 am, Gorka Hernando g.herna...@ogmio.com wrote:

Hi again,

Sorry if I am posting too much, but I really need to make this work
today.
Here it is my manifest file. I have created a service and a receiver
to get the NDEF_DISCOVERED intent.

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=com.android.nfcvoicereader android:versionCode=1
android:versionName=1.0
    uses-sdk android:minSdkVersion=10 /

    application android:icon=@drawable/icon android:label=@string/
app_name
    service android:enabled=true android:name=MyService/
service
    receiver android:enabled=true
android:name=com.android.MyIntentReceiver
                intent-filter
                action android:name=android.intent.action.MAIN /
                category
android:name=android.intent.category.LAUNCHER /
            /intent-filter

            intent-filter
                action 
android:name=android.nfc.action.NDEF_DISCOVERED/

                        data android:mimeType=text/plain /

                        category 
android:name=android.intent.category.DEFAULT/
            /intent-filter
    /receiver

    uses-feature android:name=android.hardware.nfc
android:required=true /
    /application
/manifest

Inside my project there is a receiver class which should get the
intent so that I can start the service.

public class MyIntentReceiver extends BroadcastReceiver {
        static final String TAG = BROADCAST RECEIVER;

          @Override
          public void onReceive(Context _context, Intent _intent) {
            .
         }

}

Can someone tell me what I am doing wrong ??

   See Context docs to find a method that starts a service

   pskink- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity Life cycle question

2011-04-05 Thread Gergely Juhász
Please read first the documentation:
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html
http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html

There are more solutions for your problem.
For example when the user presses the Back A button start your A
activity with Intent
and use the FLAG_ACTIVITY_CLEAR_TOP flag.

On 5 April 2011 14:55, Serdel adam.lichwierow...@gmail.com wrote:
 Maybe the title of this topic is not quite proper but it considers the
 life cycle of android activities. I looked through many open source
 project and saw that usually when an activity is opened form a basic
 one the main screen is not closed. When the user presses the 'back'
 button the new activity is closed and the main one stays on screen.

 However in my application I have a problem with that - the new
 activity needs to have a button getting it back to the first one.
 Moreover, the new activity can open a third one that still would have
 the button that should take back to the first one. Or even a 4th one.
 So it looks like that:

 A = B = C = D

 And all B,C,D need to have a button that would close the all 'chain'
 and get back to A. Let's call it 'Back A button' not to confuse with
 'hardware back button'. I didn't know how to close all other
 activities by a push of the mentioned ''Back A button'. If don't close
 them, I'll have a flood of activities in the background.

 I achieved this by closing each activity when calling the next one. So
 When I open B I close A, when I open C I close B, When I open D I
 close C etc.This works however whenever you would press the 'hardware
 back button' on the android device the whole application exits (there
 are no running activities 'in the back'). I don't want this since the
 user would expect to get back to the previous screen by pressing
 hardware back button. So i.e. D=C, C=B, B=A.

 I don't know if I had explained my problem in detail, I hope so. Does
 any one have an advice on how to handle this situation?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Best Ads for Android Apps

2011-04-05 Thread Russell DuRoss
Check out this link, it looks like they will be doing it the other way
around, migrating from Adsense to Admob.

http://groups.google.com/group/afma-developers/browse_thread/thread/1776a5763948b741

On Apr 3, 12:21 pm, ko5tik kpriblo...@yahoo.com wrote:
 Your admob account will be migrated to adsense in near future anyway.
 It starts by displaying adsense ads through admob widgets.

 regards,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: HomeScreen Widget frustrating

2011-04-05 Thread Stefan S
Ok. Thanks for this hint...
So I'll have to look to something else that i've had in mind... :)

On 5 Apr., 13:55, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Apr 5, 2011 at 7:10 AM, Stefan S shogu...@gmail.com wrote:
  I've the Desire HD and I use the standard calendar widget.

 That is not an app widget, and it is not the standard calendar
 widget. The standard calendar widget does not scroll.

 Just because it shows up on an HTC Sense home screen does not mean
 that it is an app widget. Lots of things that HTC Sense claims are
 widgets are actually features of the home screen.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Amazon appstore order reports

2011-04-05 Thread niko20
Yep working now. :) Thanks Amazon

-niko

On Apr 5, 8:18 am, David Caunt dca...@gmail.com wrote:
 Ours are working, cheers for the heads up

 On 5 April 2011 14:00, Justin Giles jtgi...@gmail.com wrote:







  As of this morning (8am central), the reports are back up and seem
  accurate.

  On Tue, Apr 5, 2011 at 3:15 AM, Michael A. michael.aki...@gmail.comwrote:

  Hi,

  I contacted them friday. Got a reply yesterday explaining that they
  are still having trouble with the reporting.

  Regards,

  Michael A.

  On Apr 5, 6:57 am, String sterling.ud...@googlemail.com wrote:
   Hate to say it,but I saw the same thing. Sales looked pretty good the
  first
   few days, then the numbers got revised from pretty good to pretty
  awful,
   then the reports went away altogether. Contacted them about it on Mar
  25,
   got We are looking into this reporting error. I will let you know as
  soon
   as I have some feedback. Nothing since.

   String

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Activity Life cycle question

2011-04-05 Thread lbendlin
I use start activity for result and then signal the take me all the way 
back as one of the results. This is then cascaded through all the items on 
the stack.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Activity without GUI - Activity

2011-04-05 Thread nathan forbes
Couldn't you just create a normal activity using onCreate and not load any
XML layouts? Instead of creating receivers? Then you would have a context to
work with to show a Toast and what not...

Or am I way off here... I'm fairly new with this also.

On Apr 5, 2011 9:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 Maybe the LAUNCHER stuff is causing a problem?  If you have your
 intent filter set up ok, you should at least receive the intent.



 On Apr 5, 8:45 pm, Gorka Hernando g.herna...@ogmio.com wrote:
  Sorry, I forgot to say that after the broadcast is catched withing the
  onreceive I have this code:
 
  public void onReceive(Context context, Intent intent) {
  // show first message
  Toast toast = Toast.makeText(context, test,
Toast.LENGTH_LONG);
  toast.show();
 
  context.startService(serviceIntent);
 
  }
 
  Maybe you meant this line: context.startService(serviceIntent); when
  you sais how to start a service.
  The problem as I said is that I cannot get the intent
 
  On 5 abr, 14:42, Gorka Hernando g.herna...@ogmio.com wrote:
 
 
 
   Hi,
 
   Thanks for your response.
   I am taking a look at it.
 
   I am not sure if I am working in the rigth way. Since I want the
   service to execute when the tag is detected, I guess I have to declare
   a BroadcastReceiver within my packet so that when I receive the intent
   I can start the service. Is that correct? The thing is that I am not
   receiving the intent at all, I am sure the action.NDEF is taking place
   because I see it in the debug window. However, my receiver doesn´t get
   it. The way I have declared the receiver in the manifest and in the
   java class is above.
 
   Can you please tell me if what I am doing make sense or not. Because
   it seems to me that I am wasting my time because this is not the
   correct form to work whit this things.
 
   Thanks.
 
   On 5 abr, 13:36, skink psk...@gmail.com wrote:
 
On Apr 5, 10:45 am, Gorka Hernando g.herna...@ogmio.com wrote:
 
 Hi again,
 
 Sorry if I am posting too much, but I really need to make this
work
 today.
 Here it is my manifest file. I have created a service and a
receiver
 to get the NDEF_DISCOVERED intent.
 
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=
http://schemas.android.com/apk/res/android;
   package=com.android.nfcvoicereader android:versionCode=1
 android:versionName=1.0
 uses-sdk android:minSdkVersion=10 /
 
 application android:icon=@drawable/icon
android:label=@string/
 app_name
 service android:enabled=true android:name=MyService/
 service
 receiver android:enabled=true
 android:name=com.android.MyIntentReceiver
 intent-filter
 action android:name=android.intent.action.MAIN
/
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 
 intent-filter
 action
android:name=android.nfc.action.NDEF_DISCOVERED/
 
 data android:mimeType=text/plain /
 
 category
android:name=android.intent.category.DEFAULT/
 /intent-filter
 /receiver
 
 uses-feature android:name=android.hardware.nfc
 android:required=true /
 /application
 /manifest
 
 Inside my project there is a receiver class which should get the
 intent so that I can start the service.
 
 public class MyIntentReceiver extends BroadcastReceiver {
 static final String TAG = BROADCAST RECEIVER;
 
   @Override
   public void onReceive(Context _context, Intent _intent)
{
 .
  }
 
 }
 
 Can someone tell me what I am doing wrong ??
 
See Context docs to find a method that starts a service
 
pskink- Hide quoted text -
 
  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Activity Life cycle question

2011-04-05 Thread Serdel
Thank you - the links are very helpful. I was trying to find sth. like
this but couldn't (weak gogling skills I guess :P). Actually I
FLAG_ACTIVITY_SINGLE_TOP flag would solve my case (the problem is more
complex as more activities join the game, but I didn't want to blur
the description) and I need at least one of my activities to always
finish. Any way great links - thanks a lot! :

On Apr 5, 3:55 pm, Gergely Juhász jg.sv...@gmail.com wrote:
 Please read first the 
 documentation:http://developer.android.com/guide/topics/fundamentals/tasks-and-back...http://developer.android.com/guide/practices/ui_guidelines/activity_t...

 There are more solutions for your problem.
 For example when the user presses the Back A button start your A
 activity with Intent
 and use the FLAG_ACTIVITY_CLEAR_TOP flag.

 On 5 April 2011 14:55, Serdel adam.lichwierow...@gmail.com wrote:

  Maybe the title of this topic is not quite proper but it considers the
  life cycle of android activities. I looked through many open source
  project and saw that usually when an activity is opened form a basic
  one the main screen is not closed. When the user presses the 'back'
  button the new activity is closed and the main one stays on screen.

  However in my application I have a problem with that - the new
  activity needs to have a button getting it back to the first one.
  Moreover, the new activity can open a third one that still would have
  the button that should take back to the first one. Or even a 4th one.
  So it looks like that:

  A = B = C = D

  And all B,C,D need to have a button that would close the all 'chain'
  and get back to A. Let's call it 'Back A button' not to confuse with
  'hardware back button'. I didn't know how to close all other
  activities by a push of the mentioned ''Back A button'. If don't close
  them, I'll have a flood of activities in the background.

  I achieved this by closing each activity when calling the next one. So
  When I open B I close A, when I open C I close B, When I open D I
  close C etc.This works however whenever you would press the 'hardware
  back button' on the android device the whole application exits (there
  are no running activities 'in the back'). I don't want this since the
  user would expect to get back to the previous screen by pressing
  hardware back button. So i.e. D=C, C=B, B=A.

  I don't know if I had explained my problem in detail, I hope so. Does
  any one have an advice on how to handle this situation?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SSL certpath error, Issue in Android or on server side?!

2011-04-05 Thread Sebastian Wagner
it seems like we actually run into a common Issue of multiple users: The 
ROOT Certificate of Thawte is not imported yet.

thawte Primary Root CA (Root) Thawte SSL CA (intermediate) does not work

Verisign Class 3 Public Primary Certification Authority (Root) Thawte SGC CA 
(Intermediate) works !

Was there some kind of update that Thawte certificates that is not shift to 
Android Platform yet?

I am testing with Android 2.2

similar to what is described here:
http://code.google.com/p/android/issues/detail?id=10807

Can someone confirm this?


Thanks
Sebastian Wagner 
http://openmeetings.googlecode.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Continuously running service.

2011-04-05 Thread Mahavir Jain
Hi,

I would like to develop an application that will run continuously as a
service in the background invisible to user. And after regular interval, it
will send the location updates to the server.

How can I make my application to run continuously in background invisible to
user?

Regards,
Mahavir Jain

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Source code for StackView(Honeycomb build) available yet?

2011-04-05 Thread Samuh
I tried locating source code for StackView and was not able to find it
in the git repository.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Compilation error using android SDK 2.0 (Camera Preview)

2011-04-05 Thread David Linse
this was already answered earlier the day..

 Does this mean Android 2.3?

Yes.

 If yes, hows to retrieve number of cameras on android 2.2 (api level 8)?

You cannot. You can only make it work for Android 2.3+ and make things
degrade gracefully (not using a camera count) for Android 2.2 and
lower


best

On Tue, Apr 5, 2011 at 9:02 AM, Abhijeet Pathak pathak...@gmail.com wrote:
 I am also facing the same problem.
 Have you found any work around yet?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
--
David Linse
-- freelancing web-developer --

Jessnerstr. 47
10247 Berlin

phone:    +49 (0) 30 85 71 83 97
mobile:    +49 (0) 179 79 54 469
e-mail:    davidli...@8ball-media.de
web:        http://8ball-media.de

___
Heute schon was Gutes getan? - www.welpennothilfe.de

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   >