[android-developers] Re: ant

2011-11-11 Thread Zsolt Vasvari
Where have you searched so far?

On Nov 11, 3:44 pm, bob  wrote:
> Are there any good books that explain how to use ant to automate
> Android builds?

-- 
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: Broadcast for SCREEN OFF

2011-11-11 Thread Dianne Hackborn
You should never expect to see a message like that, because you can't
receive this broadcast through a receiver declared in the manifest.  You
can only receive it through registerReceiver().  And that means your
process must remain running from the time you call registerReceiver() until
the broadcast is sent.

On Thu, Nov 10, 2011 at 10:02 PM, Namrata  wrote:

>
> There are no messages. Even message like below is not coming which
> means it is not starting broadcast receiver at all.
> I don't see any errors even while app installed/ first time launched.
>
>Start proc com.xxx.yyy.zzz for broadcast
> com.xxx.yyy.zzz/.MyReceiver:
>
> I need to fix this. any pointers?
>
> On Nov 11, 5:56 am, Dianne Hackborn  wrote:
> > This only works with registerReceiver(), not when declared in the
> manifest.
> >
> > Your filter looks fine, so you should be receiving it.  Try looking in
> the
> > log to make sure there isn't some message being printed there.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Nov 10, 2011 at 3:52 AM, Namrata 
> wrote:
> > > Hi,
> >
> > > I am trying to listen broadcast for Screen Off as follow
> >
> > > IntentFilter filter = new IntentFilter();
> > > filter.addAction(Intent.ACTION_SCREEN_OFF);
> > > BroadcastReceiver mReceiver = new ScreenReceiver();
> > > registerReceiver(mReceiver, filter);
> >
> > > But when screen locks somehow my ScreenReceiver is not getting a
> > > braodcast. What could be wrong here?
> > > I also tried declaring it in manifest, there too it didn't work.
> >
> > > 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
> >
> > --
> > 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
>



-- 
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

[android-developers] Thresholding a Bitmap

2011-11-11 Thread melakamc
How to Threshold a bitmap in android?

-- 
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: Classes from project's jar conflicts with Android internal jar (esp. apache commons-codec)

2011-11-11 Thread Dianne Hackborn
The android base class path includes some apache libraries like this.
 You'll need to put them in your own namespace if building into your own
app, to avoid conflicts.

On Thu, Nov 10, 2011 at 10:56 PM, Yongce  wrote:

> I could copy the source files of the library into my project
> and place them in another package name,
> then there is no trouble.
> But I think it's a bad idea to do that.
>
> On Nov 11, 8:34 am, Zsolt Vasvari  wrote:
> > I doubt you can.  I'd ask the authors of your library to see if they
> > have instructions on how to use it on Android.  You have to realize
> > that not every library you find on the web will be compatible with
> > Android out of the box.
> >
> > On Nov 10, 4:35 pm, Yongce  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi guys,
> >
> > > My project is using classes from the 'commons-codec' library.
> > > So I included commons-codec.jar in my project.
> > > But I found this library is also included in Android.
> >
> > > Now, the problem is that the internal Android one is loaded and used
> > > always.
> > > The one included in my apk has no chance to get used.
> > > So, how can I get rid of the internal one and use the one provided by
> > > me?
> >
> > > PS,
> > > I know I can copy the code directly into my project but I don't think
> > > it's the correct way.
> >
> > > Thanks
> > > YC
>
> --
> 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-11 Thread Dianne Hackborn
On Wed, Nov 9, 2011 at 10:12 AM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> Its my first task at source level.


You are doomed.

Seriously.

This is not a first task kind of thing.

It is not even a second task kind of thing.

-- 
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

[android-developers] Re: Urgent help required

2011-11-11 Thread Sunil Mishra
Because i want the contents of my phone to be shared, i am able to do
that. Only thing i need is to design the html page that i am sending
with css. I am unable to use any images in the html page.

On Nov 11, 12:12 pm, Miguel Morales  wrote:
> Why not have the HTTP server on the PC and use the Android device as a
> client?
>
> You'll probably have to post code, logs, etc to get better help.  At least
> explain, in much better detail, your issue.
>
> On Thu, Nov 10, 2011 at 10:56 PM, Sunil Mishra wrote:
>
>
>
>
>
>
>
>
>
> > I want to share the contents across the network, so i developed the
> > server. Any clue on how to fix my problem?
>
> > On Nov 11, 9:38 am, Zsolt Vasvari  wrote:
> > > You have developed your own web server?  Why?
>
> > > On Nov 11, 12:32 pm, Sunil Mishra  wrote:
>
> > > > @TreKing - I have developed the server in Android itself. And i am
> > > > accessing that via PC's Web browser.
>
> > > > On Nov 11, 12:39 am, TreKing  wrote:
>
> > > > > On Thu, Nov 10, 2011 at 7:24 AM, Sunil Mishra <
> > suniljmis...@gmail.com>wrote:
>
> > > > > > I have developed a HTTP web server and sending HTML files. But now
> > i
> > > > > > am trying to use images for background in the html page. But it is
> > not
> > > > > > able to load the html file with proper background image.
>
> > > > > > Any idea how to resolve this?
>
> > > > > What does this have to do with Android?
>
> > ---­--
> > > > > TreKing  -
> > Chicago
> > > > > transit tracking app for Android-powered devices- 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
>
> --
> ~ 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] Re: Urgent help required

2011-11-11 Thread Miguel Morales
That's not detailed at all, very bad explanation.
Again, you'll have to post code, logs, etc.

On Fri, Nov 11, 2011 at 12:28 AM, Sunil Mishra wrote:

> Because i want the contents of my phone to be shared, i am able to do
> that. Only thing i need is to design the html page that i am sending
> with css. I am unable to use any images in the html page.
>
> On Nov 11, 12:12 pm, Miguel Morales  wrote:
> > Why not have the HTTP server on the PC and use the Android device as a
> > client?
> >
> > You'll probably have to post code, logs, etc to get better help.  At
> least
> > explain, in much better detail, your issue.
> >
> > On Thu, Nov 10, 2011 at 10:56 PM, Sunil Mishra  >wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > I want to share the contents across the network, so i developed the
> > > server. Any clue on how to fix my problem?
> >
> > > On Nov 11, 9:38 am, Zsolt Vasvari  wrote:
> > > > You have developed your own web server?  Why?
> >
> > > > On Nov 11, 12:32 pm, Sunil Mishra  wrote:
> >
> > > > > @TreKing - I have developed the server in Android itself. And i am
> > > > > accessing that via PC's Web browser.
> >
> > > > > On Nov 11, 12:39 am, TreKing  wrote:
> >
> > > > > > On Thu, Nov 10, 2011 at 7:24 AM, Sunil Mishra <
> > > suniljmis...@gmail.com>wrote:
> >
> > > > > > > I have developed a HTTP web server and sending HTML files. But
> now
> > > i
> > > > > > > am trying to use images for background in the html page. But
> it is
> > > not
> > > > > > > able to load the html file with proper background image.
> >
> > > > > > > Any idea how to resolve this?
> >
> > > > > > What does this have to do with Android?
> >
> > >
> ---­--
> > > > > > TreKing  -
> > > Chicago
> > > > > > transit tracking app for Android-powered devices- 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
> >
> > --
> > ~ 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] .net webservices am able to get the response but for sap webservices am getting org.xml pull parser exceprion

2011-11-11 Thread arun kumar
*
Hi for .net webservices (currency converter and temperature converter) am
able to get response using the below code .But for the webservice which are
generated from SAP am not getting the response .am getting this error.

11-11 09:55:13.113: WARN/System.err(272):
org.xmlpull.v1.XmlPullParserException: expected: START_TAG {
http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG
@1:6 in java.io.InputStreamReader@44e9e580)

while debugging am getting struck in the line

androidHttpTransport.call(SOAP_ACTION, envelope);

so can any one having idea how to consume webservice which are generated
from sap plz share with me








public* *class* EmployeeTracking *extends* Activity {
TextView tv;
*private* String METHOD_NAME = "ZemptrackEarnOview"; //
*public* *final* String SOAP_ACTION ="";
*private* String NAMESPACE =
"urn:sap-com:document:sap:soap:functions:mc-style";
*

private* *static* *final* String *URL* = "myurl";

/** Called when the activity is first created. */
@Override
*public* *void* onCreate(Bundle savedInstanceState) {
*super*.onCreate(savedInstanceState);
setContentView(R.layout.*main*);
String Username = "username";
String Password = "12345";
Log.*i*("one", "track");
tv = (TextView) findViewById(R.id.*tv*);

*try* {
AuthScope as = *new* AuthScope(host, 8000);
UsernamePasswordCredentials upc = *new* UsernamePasswordCredentials(
Username, Password);
((AbstractHttpClient) httpclient).getCredentialsProvider().setCredentials(as,
upc);
} *catch* (Exception e) {
// *TODO*: handle exception
}
Log.*i*("two", "track");
*try*
**{
SoapObject request = *new* SoapObject(NAMESPACE, METHOD_NAME);
Log.*i*("three", "track");
PropertyInfo propertyInfo = *new* PropertyInfo();
propertyInfo.setType(PropertyInfo.*STRING_CLASS*);
propertyInfo.setName("Userid");
propertyInfo.setValue("SRINIVASUS");
request.addProperty(propertyInfo);

SoapSerializationEnvelope envelope =
*new*SoapSerializationEnvelope(SoapEnvelope.
*VER11*);
envelope.dotNet=*false*;
envelope.setOutputSoapObject(request);
envelope.bodyOut=request;
HttpTransportSE androidHttpTransport = *new* HttpTransportSE(*URL*);
androidHttpTransport.debug =*true*;
Log.*i*("five", "track");
// Log.i("demo", demo);
androidHttpTransport.call(SOAP_ACTION, envelope);
//Object result = envelope.getResponse();
SoapPrimitive result = (SoapPrimitive)envelope.getResponse();
Log.*e*("httpResponse","Referral_Request" +result);
Log.*i*("six", "track");
System.*out*.println("Result : " + result.toString());
((TextView) findViewById (R.id.*tv*)).setText("Tracking : "
+result.toString());
} *catch* (Exception E) {
E.printStackTrace();
((TextView) findViewById (R.id.*tv*)).setText("ERROR:" +
E.getClass().getName() + ":" + E.getMessage());
}
}
}

 wsdl file

-




-

http://xml.sap.com/2006/11/esi/esp/binxml"; wsp:Optional="true"/>
http://www.w3.org/2004/08/soap/features/http-optimization";
wsp:Optional="true"/>
-

-
-

-





-sp:AlgorithmSuite>
-




-

-









-

-

false

-

E050E0E32D50BFF1A3D400221969C2CB


-

false
true
no
false

-

-

-

-




-

-




-

-




-

-




-

-





-

-






-


-

-







-

-





-

-





-

-




-

-




-

-




-

-

-





-

-

-







-



-



-

-



-

-







-

-



http://schemas.xmlsoap.org/soap/http";
style="document"/>
-


-



-





-

-

http://%22/>>




-- 
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: Classes from project's jar conflicts with Android internal jar (esp. apache commons-codec)

2011-11-11 Thread Yongce
Got it. So "copy&repackage" is the only correct way.
Thanks for all your responses.

On Nov 11, 4:14 pm, Dianne Hackborn  wrote:
> The android base class path includes some apache libraries like this.
>  You'll need to put them in your own namespace if building into your own
> app, to avoid conflicts.
>
>
>
>
>
>
>
>
>
> On Thu, Nov 10, 2011 at 10:56 PM, Yongce  wrote:
> > I could copy the source files of the library into my project
> > and place them in another package name,
> > then there is no trouble.
> > But I think it's a bad idea to do that.
>
> > On Nov 11, 8:34 am, Zsolt Vasvari  wrote:
> > > I doubt you can.  I'd ask the authors of your library to see if they
> > > have instructions on how to use it on Android.  You have to realize
> > > that not every library you find on the web will be compatible with
> > > Android out of the box.
>
> > > On Nov 10, 4:35 pm, Yongce  wrote:
>
> > > > Hi guys,
>
> > > > My project is using classes from the 'commons-codec' library.
> > > > So I included commons-codec.jar in my project.
> > > > But I found this library is also included in Android.
>
> > > > Now, the problem is that the internal Android one is loaded and used
> > > > always.
> > > > The one included in my apk has no chance to get used.
> > > > So, how can I get rid of the internal one and use the one provided by
> > > > me?
>
> > > > PS,
> > > > I know I can copy the code directly into my project but I don't think
> > > > it's the correct way.
>
> > > > Thanks
> > > > YC
>
> > --
> > 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] How to publish app in Kindle Fire Market place

2011-11-11 Thread Jovish P
 I understood my mistake ..  Sorry .

On Fri, Nov 11, 2011 at 12:53 AM, TreKing  wrote:

> On Thu, Nov 10, 2011 at 8:47 AM, Jovish P  wrote:
>
>> Any one know How to publish app in kindle fire market place and BN.com's 
>> Market
>> Place?
>>
>
> Have you tried visiting their websites and / or using Google to find this
> information?
>
>
> -
> 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

[android-developers] Re: problem when passing control to another activity when user click on menu item in android

2011-11-11 Thread Ali Chousein
No, if you do everything right, the code you pasted shouldn't throw
any exceptions. Did you add your class temperature to your
AndroidManifest.xml file? You should do that, otherwise you'll get an
exception.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994

-- 
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] Swipe gesturing to switch between tabs

2011-11-11 Thread Bishan
How to add swipe gesturing to switch between tabs in android ?

-- 
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] TextView and white-space

2011-11-11 Thread dashman
Is there an xml setting for TextView - to auto-trim
white-space.

I intercept the onPreferenceChange() callback - but
in that call you can't call trim() on the string and save
it - just return true or false.

So right now, if there's a white-space, i just toast an
error message and return false.

it seems like a better solution - either for the textview
to auto-trim the new input or for me to be able to
set the new value from within the callback.

-- 
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: Urgent help required

2011-11-11 Thread Sunil Mishra
home.html



http://www.w3.org/1999/xhtml"; xml:lang="en">
  
ODMS


html {
background: #d2d2d2;
margin:0 0 0 -1px;
padding:0;
overflow-Y: scroll;
}


body {
padding:0;
margin :0;
display:table;
width:100%;
}


body {
color:#606060;
font-family: 'Trebuchet MS', sans-serif;
font-size: 13px;
font-style: normal;
font-weight: normal;
text-transform: normal;
}

p {
letter-spacing: normal;
line-height: 1.7em;
}

h1 {
color:#505050;
font-size:22px;
margin:25px 0 10px 0;
clear:both;
}


h2 {
color:#505050;
font-size:20px;
margin:20px 0 10px 0;
clear:both;
}


h3 {
color:#505050;
font-size:18px;
margin:20px 0 5px 0;
clear:both;
}



a:link, a:visited {
color:#9B251B;
text-decoration:none;
}


a:hover {
color:#fa720a;
text-decoration:underline;
}


#wrapper {
background: transparent url( images/css/page-vbg.jpg ) repeat-y
scroll 50% 0px;
margin:0 auto ;
width:100%;
}

body {
background-color:#d2d2d2;
}

#wrapper {
border-top: 1px solid #ff;
}



#topWrapper {
width:100%;
height:240px;
background-color:${topWrapper.bg.color};
background-image:url(images/css/topWrapper-bg.jpg);
background-position:center top ;
background-repeat:repeat-x;
}



#topBanner {
width:960px;
margin:0 auto;
height:240px;
background-image:url('images/css/topBanner.jpg');
background-repeat:no-repeat;
}



#topnav {
background:transparent url('images/css/hmenu.jpg') repeat-x top left;
}




#topnav {
height:40px;
margin:0 auto ;
text-align:center;
}

#topnav ul {
display:table;
margin:0 auto;
padding:0;
list-style-type:none;
position:relative;
height:40px;
text-transform:uppercase;
font-size:12px;
font-family:Arial,sans-serif;
}


#topnav ul li {
display:block;
float:left;
margin:0;
padding:0;
background:transparent url('images/css/hmenu.jpg') repeat-x top left;

}


#topnav ul li a {
display:block;
float:left;
color:#eeb7b7;
text-decoration:none;
padding:0px 50px ;
line-height:40px;
font-weight:bold;
}


#topnav ul li a:hover, #topnav li#current a {
color:#FF;
background:transparent url('images/css/hmenu-sel.jpg') repeat-x top
left;
}



#topnav ul {
width:960px;
}




body {
background-position : center 280px;
}



#bg {
margin:0 auto;
padding:0;
background:transparent ;
background-image:url(images/css/hat.jpg);
background-repeat:no-repeat;
background-position: center top ;
}



#header {
margin: 0 auto;
min-height:30px;
height: 30px;
width: 960px;
}


#page {
background: transparent url( images/css/page-bg.jpg ) no-repeat
center top;
}





#container {
margin:0 auto;
width:960px;
}


#content {
width:940px;
margin:0 auto ;
text-align:left;
min-height:400px;
}


#content p {
text-align:justify;
}





#footerWrapper {
margin:0 auto;
height:180px;
padding:0;
background:transparent url( images/css/footerWrapper-bg.jpg ) no-
repeat scroll center top;
}


#footer {
margin:0 auto;
padding:0;
width:960px;
height:100px;
}


#footer {
color:#CC;
text-align:center;
}

#footer a:link, #footer a:visited {
color:#EE;
}


#footer a:hover{
color:#FF;
text-decoration:none;
}




#right {
width:200px;
padding:10px 20px 20px 20px;
float:left;
}


#center {
width:660px;
padding:10px 20px 20px 20px;
float:left;
}


#content p {
margin-top:10px;
text-align:justify;
}



#sidebar ul.vmenu {
list-style: none;
text-align: left;
margin: 7px 0px 8px 0px;
padding: 0;
text-decoration: none;
border-top: 1px solid #ee;
}


#sidebar ul.vmenu li {
list-style: none;
padding: 4px 0 4px 0px;
margin: 0 2px;
border-bottom: 1px solid #ee;
}



#sidebar ul.vmenu li a {
text-decoration: none;
color:#9B251B;
}


#sidebar ul.vmenu li a:hover {
color:#d8d8f0;
}


#sidebar ul.vmenu ul { margin: 0 0 0 5px; padding: 0; }
#sidebar ul.vmenu ul li { border: none; }





a img {
border:none;
}


.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}


  


  
  

Re: [android-developers] Re: problem when passing control to another activity when user click on menu item in android

2011-11-11 Thread muizz ahmad
you are right.thanks dear.

On Fri, Nov 11, 2011 at 1:24 AM, Ali Chousein wrote:

> No, if you do everything right, the code you pasted shouldn't throw
> any exceptions. Did you add your class temperature to your
> AndroidManifest.xml file? You should do that, otherwise you'll get an
> exception.
>
> -
> Ali Chousein
> Weather-Buddy
> http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
> Geo-Filtered Assistant
> http://geo-filtered-assistant.blogspot.com/
> https://marketplace.cisco.com/apphq/store/products/994
>
> --
> 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: Urgent help required

2011-11-11 Thread Miguel Morales
That's better, most likely you'll want to put your html/images in the res
folder and then user the following path:

file://android_asset/file_path.png

If you are downloading these files dynamically, then simply change the
file:// path.

On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra wrote:

> home.html
>
>  www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> http://www.w3.org/1999/xhtml"; xml:lang="en">
>  
>ODMS
>
> 
> html {
>background: #d2d2d2;
>margin:0 0 0 -1px;
>padding:0;
>overflow-Y: scroll;
> }
>
>
> body {
>padding:0;
>margin :0;
>display:table;
>width:100%;
> }
>
>
> body {
>color:#606060;
>font-family: 'Trebuchet MS', sans-serif;
>font-size: 13px;
>font-style: normal;
>font-weight: normal;
>text-transform: normal;
> }
>
> p {
>letter-spacing: normal;
>line-height: 1.7em;
> }
>
> h1 {
>color:#505050;
>font-size:22px;
>margin:25px 0 10px 0;
>clear:both;
> }
>
>
> h2 {
>color:#505050;
>font-size:20px;
>margin:20px 0 10px 0;
>clear:both;
> }
>
>
> h3 {
>color:#505050;
>font-size:18px;
>margin:20px 0 5px 0;
>clear:both;
> }
>
>
>
> a:link, a:visited {
>color:#9B251B;
>text-decoration:none;
> }
>
>
> a:hover {
>color:#fa720a;
>text-decoration:underline;
> }
>
>
> #wrapper {
>background: transparent url( images/css/page-vbg.jpg ) repeat-y
> scroll 50% 0px;
>margin:0 auto ;
>width:100%;
> }
>
> body {
>background-color:#d2d2d2;
> }
>
> #wrapper {
>border-top: 1px solid #ff;
> }
>
>
>
> #topWrapper {
>width:100%;
>height:240px;
>background-color:${topWrapper.bg.color};
>background-image:url(images/css/topWrapper-bg.jpg);
>background-position:center top ;
>background-repeat:repeat-x;
> }
>
>
>
> #topBanner {
>width:960px;
>margin:0 auto;
>height:240px;
>background-image:url('images/css/topBanner.jpg');
>background-repeat:no-repeat;
> }
>
>
>
> #topnav {
>background:transparent url('images/css/hmenu.jpg') repeat-x top
> left;
> }
>
>
>
>
> #topnav {
>height:40px;
>margin:0 auto ;
>text-align:center;
> }
>
> #topnav ul {
>display:table;
>margin:0 auto;
>padding:0;
>list-style-type:none;
>position:relative;
>height:40px;
>text-transform:uppercase;
>font-size:12px;
>font-family:Arial,sans-serif;
> }
>
>
> #topnav ul li {
>display:block;
>float:left;
>margin:0;
>padding:0;
>background:transparent url('images/css/hmenu.jpg') repeat-x top
> left;
>
> }
>
>
> #topnav ul li a {
>display:block;
>float:left;
>color:#eeb7b7;
>text-decoration:none;
>padding:0px 50px ;
>line-height:40px;
>font-weight:bold;
> }
>
>
> #topnav ul li a:hover, #topnav li#current a {
>color:#FF;
>background:transparent url('images/css/hmenu-sel.jpg') repeat-x top
> left;
> }
>
>
>
> #topnav ul {
>width:960px;
> }
>
>
>
>
> body {
>background-position : center 280px;
> }
>
>
>
> #bg {
>margin:0 auto;
>padding:0;
>background:transparent ;
>background-image:url(images/css/hat.jpg);
>background-repeat:no-repeat;
>background-position: center top ;
> }
>
>
>
>#header {
>margin: 0 auto;
>min-height:30px;
>height: 30px;
>width: 960px;
> }
>
>
> #page {
>background: transparent url( images/css/page-bg.jpg ) no-repeat
> center top;
> }
>
>
>
>
>
> #container {
>margin:0 auto;
>width:960px;
> }
>
>
> #content {
>width:940px;
>margin:0 auto ;
>text-align:left;
>min-height:400px;
> }
>
>
> #content p {
>text-align:justify;
> }
>
>
>
>
>
> #footerWrapper {
>margin:0 auto;
>height:180px;
>padding:0;
>background:transparent url( images/css/footerWrapper-bg.jpg ) no-
> repeat scroll center top;
> }
>
>
> #footer {
>margin:0 auto;
>padding:0;
>width:960px;
>height:100px;
> }
>
>
>#footer {
>color:#CC;
>text-align:center;
> }
>
> #footer a:link, #footer a:visited {
>color:#EE;
> }
>
>
> #footer a:hover{
>color:#FF;
>text-decoration:none;
> }
>
>
>
>
> #right {
>width:200px;
>padding:10px 20px 20px 20px;
>float:left;
> }
>
>
> #center {
>width:660px;
>padding:10px 20px 20px 20px;
>float:left;
> }
>
>
> #content p {
>margin-top:10px;
>text-align:justify;
> }
>
>
>
> #sidebar ul.vmenu {
>list-style: none;
>text-align: left;
> 

Re: [android-developers] TextView and white-space

2011-11-11 Thread Kostya Vasilyev
Subclass EditTextPreference, override persistString and do your trimming 
there.


11.11.2011 14:17, dashman пишет:

Is there an xml setting for TextView - to auto-trim
white-space.

I intercept the onPreferenceChange() callback - but
in that call you can't call trim() on the string and save
it - just return true or false.

So right now, if there's a white-space, i just toast an
error message and return false.

it seems like a better solution - either for the textview
to auto-trim the new input or for me to be able to
set the new value from within the callback.



--
Kostya Vasilyev

--
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: Urgent help required

2011-11-11 Thread Sunil Mishra
Can you give me example on how to do the same for the following line:
background-image:url('images/css/topBanner.jpg'); //a line of
home.html

We cannot directly replace that with 'file://android_asset/raw/images/
css/topBanner.jpg'

On Nov 11, 3:38 pm, Miguel Morales  wrote:
> That's better, most likely you'll want to put your html/images in the res
> folder and then user the following path:
>
> file://android_asset/file_path.png
>
> If you are downloading these files dynamically, then simply change the
> file:// path.
>
> On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra wrote:
>
>
>
>
>
>
>
> > home.html
>
> >  >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> > http://www.w3.org/1999/xhtml"; xml:lang="en">
> >  
> >    ODMS
> >    
> > 
> > html {
> >        background: #d2d2d2;
> >        margin:0 0 0 -1px;
> >        padding:0;
> >        overflow-Y: scroll;
> > }
>
> > body {
> >        padding:0;
> >        margin :0;
> >        display:table;
> >        width:100%;
> > }
>
> > body {
> >        color:#606060;
> >        font-family: 'Trebuchet MS', sans-serif;
> >        font-size: 13px;
> >        font-style: normal;
> >        font-weight: normal;
> >        text-transform: normal;
> > }
>
> > p {
> >        letter-spacing: normal;
> >        line-height: 1.7em;
> > }
>
> > h1 {
> >        color:#505050;
> >        font-size:22px;
> >        margin:25px 0 10px 0;
> >        clear:both;
> > }
>
> > h2 {
> >        color:#505050;
> >        font-size:20px;
> >        margin:20px 0 10px 0;
> >        clear:both;
> > }
>
> > h3 {
> >        color:#505050;
> >        font-size:18px;
> >        margin:20px 0 5px 0;
> >        clear:both;
> > }
>
> > a:link, a:visited {
> >        color:#9B251B;
> >        text-decoration:none;
> > }
>
> > a:hover {
> >        color:#fa720a;
> >        text-decoration:underline;
> > }
>
> > #wrapper {
> >        background: transparent url( images/css/page-vbg.jpg ) repeat-y
> > scroll 50% 0px;
> >        margin:0 auto ;
> >        width:100%;
> > }
>
> > body {
> >        background-color:#d2d2d2;
> > }
>
> > #wrapper {
> >        border-top: 1px solid #ff;
> > }
>
> > #topWrapper {
> >        width:100%;
> >        height:240px;
> >        background-color:${topWrapper.bg.color};
> >        background-image:url(images/css/topWrapper-bg.jpg);
> >        background-position:center top ;
> >        background-repeat:repeat-x;
> > }
>
> > #topBanner {
> >        width:960px;
> >        margin:0 auto;
> >        height:240px;
> >        background-image:url('images/css/topBanner.jpg');
> >        background-repeat:no-repeat;
> > }
>
> > #topnav {
> >        background:transparent url('images/css/hmenu.jpg') repeat-x top
> > left;
> > }
>
> > #topnav {
> >        height:40px;
> >        margin:0 auto ;
> >        text-align:center;
> > }
>
> > #topnav ul {
> >        display:table;
> >        margin:0 auto;
> >        padding:0;
> >        list-style-type:none;
> >        position:relative;
> >        height:40px;
> >        text-transform:uppercase;
> >        font-size:12px;
> >        font-family:Arial,sans-serif;
> > }
>
> > #topnav ul li {
> >        display:block;
> >        float:left;
> >        margin:0;
> >        padding:0;
> >        background:transparent url('images/css/hmenu.jpg') repeat-x top
> > left;
>
> > }
>
> > #topnav ul li a {
> >        display:block;
> >        float:left;
> >        color:#eeb7b7;
> >        text-decoration:none;
> >        padding:0px 50px ;
> >        line-height:40px;
> >        font-weight:bold;
> > }
>
> > #topnav ul li a:hover, #topnav li#current a {
> >        color:#FF;
> >        background:transparent url('images/css/hmenu-sel.jpg') repeat-x top
> > left;
> > }
>
> > #topnav ul {
> >        width:960px;
> > }
>
> > body {
> >        background-position : center 280px;
> > }
>
> > #bg {
> >        margin:0 auto;
> >        padding:0;
> >        background:transparent ;
> >        background-image:url(images/css/hat.jpg);
> >        background-repeat:no-repeat;
> >        background-position: center top ;
> > }
>
> >                                        #header {
> >        margin: 0 auto;
> >        min-height:30px;
> >        height: 30px;
> >        width: 960px;
> > }
>
> > #page {
> >        background: transparent url( images/css/page-bg.jpg ) no-repeat
> > center top;
> > }
>
> > #container {
> >        margin:0 auto;
> >        width:960px;
> > }
>
> > #content {
> >        width:940px;
> >        margin:0 auto ;
> >        text-align:left;
> >        min-height:400px;
> > }
>
> > #content p {
> >        text-align:justify;
> > }
>
> > #footerWrapper {
> >        margin:0 auto;
> >        height:180px;
> >        padding:0;
> >        background:transparent url( images/css/footerWrapper-bg.jpg ) no-
> > repeat scroll center top;
> > }
>
> > #footer {
> >        margin:0 auto;
> >        padding:0;
> >        width:960px;
> >        height:100px;
> > }
>
> >                                        #footer

[android-developers] Re: Urgent help required

2011-11-11 Thread Sunil Mishra
The images are in res->raw->images->css

On Nov 11, 3:38 pm, Miguel Morales  wrote:
> That's better, most likely you'll want to put your html/images in the res
> folder and then user the following path:
>
> file://android_asset/file_path.png
>
> If you are downloading these files dynamically, then simply change the
> file:// path.
>
> On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra wrote:
>
>
>
>
>
>
>
> > home.html
>
> >  >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> > http://www.w3.org/1999/xhtml"; xml:lang="en">
> >  
> >    ODMS
> >    
> > 
> > html {
> >        background: #d2d2d2;
> >        margin:0 0 0 -1px;
> >        padding:0;
> >        overflow-Y: scroll;
> > }
>
> > body {
> >        padding:0;
> >        margin :0;
> >        display:table;
> >        width:100%;
> > }
>
> > body {
> >        color:#606060;
> >        font-family: 'Trebuchet MS', sans-serif;
> >        font-size: 13px;
> >        font-style: normal;
> >        font-weight: normal;
> >        text-transform: normal;
> > }
>
> > p {
> >        letter-spacing: normal;
> >        line-height: 1.7em;
> > }
>
> > h1 {
> >        color:#505050;
> >        font-size:22px;
> >        margin:25px 0 10px 0;
> >        clear:both;
> > }
>
> > h2 {
> >        color:#505050;
> >        font-size:20px;
> >        margin:20px 0 10px 0;
> >        clear:both;
> > }
>
> > h3 {
> >        color:#505050;
> >        font-size:18px;
> >        margin:20px 0 5px 0;
> >        clear:both;
> > }
>
> > a:link, a:visited {
> >        color:#9B251B;
> >        text-decoration:none;
> > }
>
> > a:hover {
> >        color:#fa720a;
> >        text-decoration:underline;
> > }
>
> > #wrapper {
> >        background: transparent url( images/css/page-vbg.jpg ) repeat-y
> > scroll 50% 0px;
> >        margin:0 auto ;
> >        width:100%;
> > }
>
> > body {
> >        background-color:#d2d2d2;
> > }
>
> > #wrapper {
> >        border-top: 1px solid #ff;
> > }
>
> > #topWrapper {
> >        width:100%;
> >        height:240px;
> >        background-color:${topWrapper.bg.color};
> >        background-image:url(images/css/topWrapper-bg.jpg);
> >        background-position:center top ;
> >        background-repeat:repeat-x;
> > }
>
> > #topBanner {
> >        width:960px;
> >        margin:0 auto;
> >        height:240px;
> >        background-image:url('images/css/topBanner.jpg');
> >        background-repeat:no-repeat;
> > }
>
> > #topnav {
> >        background:transparent url('images/css/hmenu.jpg') repeat-x top
> > left;
> > }
>
> > #topnav {
> >        height:40px;
> >        margin:0 auto ;
> >        text-align:center;
> > }
>
> > #topnav ul {
> >        display:table;
> >        margin:0 auto;
> >        padding:0;
> >        list-style-type:none;
> >        position:relative;
> >        height:40px;
> >        text-transform:uppercase;
> >        font-size:12px;
> >        font-family:Arial,sans-serif;
> > }
>
> > #topnav ul li {
> >        display:block;
> >        float:left;
> >        margin:0;
> >        padding:0;
> >        background:transparent url('images/css/hmenu.jpg') repeat-x top
> > left;
>
> > }
>
> > #topnav ul li a {
> >        display:block;
> >        float:left;
> >        color:#eeb7b7;
> >        text-decoration:none;
> >        padding:0px 50px ;
> >        line-height:40px;
> >        font-weight:bold;
> > }
>
> > #topnav ul li a:hover, #topnav li#current a {
> >        color:#FF;
> >        background:transparent url('images/css/hmenu-sel.jpg') repeat-x top
> > left;
> > }
>
> > #topnav ul {
> >        width:960px;
> > }
>
> > body {
> >        background-position : center 280px;
> > }
>
> > #bg {
> >        margin:0 auto;
> >        padding:0;
> >        background:transparent ;
> >        background-image:url(images/css/hat.jpg);
> >        background-repeat:no-repeat;
> >        background-position: center top ;
> > }
>
> >                                        #header {
> >        margin: 0 auto;
> >        min-height:30px;
> >        height: 30px;
> >        width: 960px;
> > }
>
> > #page {
> >        background: transparent url( images/css/page-bg.jpg ) no-repeat
> > center top;
> > }
>
> > #container {
> >        margin:0 auto;
> >        width:960px;
> > }
>
> > #content {
> >        width:940px;
> >        margin:0 auto ;
> >        text-align:left;
> >        min-height:400px;
> > }
>
> > #content p {
> >        text-align:justify;
> > }
>
> > #footerWrapper {
> >        margin:0 auto;
> >        height:180px;
> >        padding:0;
> >        background:transparent url( images/css/footerWrapper-bg.jpg ) no-
> > repeat scroll center top;
> > }
>
> > #footer {
> >        margin:0 auto;
> >        padding:0;
> >        width:960px;
> >        height:100px;
> > }
>
> >                                        #footer {
> >        color:#CC;
> >        text-align:center;
> > }
>
> > #footer a:link, #footer a:visited {
> >        color:#EE;
> > }
>
> > #footer a:hover{
> >        color:#FF;
> >  

Re: [android-developers] Re: Urgent help required

2011-11-11 Thread Miguel Morales
They sure are.

On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra wrote:

> The images are in res->raw->images->css
>
> On Nov 11, 3:38 pm, Miguel Morales  wrote:
> > That's better, most likely you'll want to put your html/images in the res
> > folder and then user the following path:
> >
> > file://android_asset/file_path.png
> >
> > If you are downloading these files dynamically, then simply change the
> > file:// path.
> >
> > On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > home.html
> >
> > >  > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >
> > > http://www.w3.org/1999/xhtml"; xml:lang="en">
> > >  
> > >ODMS
> > >
> > > 
> > > html {
> > >background: #d2d2d2;
> > >margin:0 0 0 -1px;
> > >padding:0;
> > >overflow-Y: scroll;
> > > }
> >
> > > body {
> > >padding:0;
> > >margin :0;
> > >display:table;
> > >width:100%;
> > > }
> >
> > > body {
> > >color:#606060;
> > >font-family: 'Trebuchet MS', sans-serif;
> > >font-size: 13px;
> > >font-style: normal;
> > >font-weight: normal;
> > >text-transform: normal;
> > > }
> >
> > > p {
> > >letter-spacing: normal;
> > >line-height: 1.7em;
> > > }
> >
> > > h1 {
> > >color:#505050;
> > >font-size:22px;
> > >margin:25px 0 10px 0;
> > >clear:both;
> > > }
> >
> > > h2 {
> > >color:#505050;
> > >font-size:20px;
> > >margin:20px 0 10px 0;
> > >clear:both;
> > > }
> >
> > > h3 {
> > >color:#505050;
> > >font-size:18px;
> > >margin:20px 0 5px 0;
> > >clear:both;
> > > }
> >
> > > a:link, a:visited {
> > >color:#9B251B;
> > >text-decoration:none;
> > > }
> >
> > > a:hover {
> > >color:#fa720a;
> > >text-decoration:underline;
> > > }
> >
> > > #wrapper {
> > >background: transparent url( images/css/page-vbg.jpg ) repeat-y
> > > scroll 50% 0px;
> > >margin:0 auto ;
> > >width:100%;
> > > }
> >
> > > body {
> > >background-color:#d2d2d2;
> > > }
> >
> > > #wrapper {
> > >border-top: 1px solid #ff;
> > > }
> >
> > > #topWrapper {
> > >width:100%;
> > >height:240px;
> > >background-color:${topWrapper.bg.color};
> > >background-image:url(images/css/topWrapper-bg.jpg);
> > >background-position:center top ;
> > >background-repeat:repeat-x;
> > > }
> >
> > > #topBanner {
> > >width:960px;
> > >margin:0 auto;
> > >height:240px;
> > >background-image:url('images/css/topBanner.jpg');
> > >background-repeat:no-repeat;
> > > }
> >
> > > #topnav {
> > >background:transparent url('images/css/hmenu.jpg') repeat-x top
> > > left;
> > > }
> >
> > > #topnav {
> > >height:40px;
> > >margin:0 auto ;
> > >text-align:center;
> > > }
> >
> > > #topnav ul {
> > >display:table;
> > >margin:0 auto;
> > >padding:0;
> > >list-style-type:none;
> > >position:relative;
> > >height:40px;
> > >text-transform:uppercase;
> > >font-size:12px;
> > >font-family:Arial,sans-serif;
> > > }
> >
> > > #topnav ul li {
> > >display:block;
> > >float:left;
> > >margin:0;
> > >padding:0;
> > >background:transparent url('images/css/hmenu.jpg') repeat-x top
> > > left;
> >
> > > }
> >
> > > #topnav ul li a {
> > >display:block;
> > >float:left;
> > >color:#eeb7b7;
> > >text-decoration:none;
> > >padding:0px 50px ;
> > >line-height:40px;
> > >font-weight:bold;
> > > }
> >
> > > #topnav ul li a:hover, #topnav li#current a {
> > >color:#FF;
> > >background:transparent url('images/css/hmenu-sel.jpg') repeat-x
> top
> > > left;
> > > }
> >
> > > #topnav ul {
> > >width:960px;
> > > }
> >
> > > body {
> > >background-position : center 280px;
> > > }
> >
> > > #bg {
> > >margin:0 auto;
> > >padding:0;
> > >background:transparent ;
> > >background-image:url(images/css/hat.jpg);
> > >background-repeat:no-repeat;
> > >background-position: center top ;
> > > }
> >
> > >#header {
> > >margin: 0 auto;
> > >min-height:30px;
> > >height: 30px;
> > >width: 960px;
> > > }
> >
> > > #page {
> > >background: transparent url( images/css/page-bg.jpg ) no-repeat
> > > center top;
> > > }
> >
> > > #container {
> > >margin:0 auto;
> > >width:960px;
> > > }
> >
> > > #content {
> > >width:940px;
> > >margin:0 auto ;
> > >text-align:left;
> > >min-height:400px;
> > > }
> >
> > > #content p {
> > >text-align:justify;
> > > }
> >
> > > #footerWrapper {
> > >margin:0 auto;
> > >height

[android-developers] Re: Urgent help required

2011-11-11 Thread Sunil Mishra
I tried changing background-image:url('images/css/topBanner.jpg') to
background-image:url(file://android_asset/raw/images/css/
topBanner.jpg' ) but it still not working.

On Nov 11, 4:20 pm, Miguel Morales  wrote:
> They sure are.
>
> On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra wrote:
>
>
>
>
>
>
>
> > The images are in res->raw->images->css
>
> > On Nov 11, 3:38 pm, Miguel Morales  wrote:
> > > That's better, most likely you'll want to put your html/images in the res
> > > folder and then user the following path:
>
> > > file://android_asset/file_path.png
>
> > > If you are downloading these files dynamically, then simply change the
> > > file:// path.
>
> > > On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra  > >wrote:
>
> > > > home.html
>
> > > >  > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> > > > http://www.w3.org/1999/xhtml"; xml:lang="en">
> > > >  
> > > >    ODMS
> > > >    
> > > > 
> > > > html {
> > > >        background: #d2d2d2;
> > > >        margin:0 0 0 -1px;
> > > >        padding:0;
> > > >        overflow-Y: scroll;
> > > > }
>
> > > > body {
> > > >        padding:0;
> > > >        margin :0;
> > > >        display:table;
> > > >        width:100%;
> > > > }
>
> > > > body {
> > > >        color:#606060;
> > > >        font-family: 'Trebuchet MS', sans-serif;
> > > >        font-size: 13px;
> > > >        font-style: normal;
> > > >        font-weight: normal;
> > > >        text-transform: normal;
> > > > }
>
> > > > p {
> > > >        letter-spacing: normal;
> > > >        line-height: 1.7em;
> > > > }
>
> > > > h1 {
> > > >        color:#505050;
> > > >        font-size:22px;
> > > >        margin:25px 0 10px 0;
> > > >        clear:both;
> > > > }
>
> > > > h2 {
> > > >        color:#505050;
> > > >        font-size:20px;
> > > >        margin:20px 0 10px 0;
> > > >        clear:both;
> > > > }
>
> > > > h3 {
> > > >        color:#505050;
> > > >        font-size:18px;
> > > >        margin:20px 0 5px 0;
> > > >        clear:both;
> > > > }
>
> > > > a:link, a:visited {
> > > >        color:#9B251B;
> > > >        text-decoration:none;
> > > > }
>
> > > > a:hover {
> > > >        color:#fa720a;
> > > >        text-decoration:underline;
> > > > }
>
> > > > #wrapper {
> > > >        background: transparent url( images/css/page-vbg.jpg ) repeat-y
> > > > scroll 50% 0px;
> > > >        margin:0 auto ;
> > > >        width:100%;
> > > > }
>
> > > > body {
> > > >        background-color:#d2d2d2;
> > > > }
>
> > > > #wrapper {
> > > >        border-top: 1px solid #ff;
> > > > }
>
> > > > #topWrapper {
> > > >        width:100%;
> > > >        height:240px;
> > > >        background-color:${topWrapper.bg.color};
> > > >        background-image:url(images/css/topWrapper-bg.jpg);
> > > >        background-position:center top ;
> > > >        background-repeat:repeat-x;
> > > > }
>
> > > > #topBanner {
> > > >        width:960px;
> > > >        margin:0 auto;
> > > >        height:240px;
> > > >        background-image:url('images/css/topBanner.jpg');
> > > >        background-repeat:no-repeat;
> > > > }
>
> > > > #topnav {
> > > >        background:transparent url('images/css/hmenu.jpg') repeat-x top
> > > > left;
> > > > }
>
> > > > #topnav {
> > > >        height:40px;
> > > >        margin:0 auto ;
> > > >        text-align:center;
> > > > }
>
> > > > #topnav ul {
> > > >        display:table;
> > > >        margin:0 auto;
> > > >        padding:0;
> > > >        list-style-type:none;
> > > >        position:relative;
> > > >        height:40px;
> > > >        text-transform:uppercase;
> > > >        font-size:12px;
> > > >        font-family:Arial,sans-serif;
> > > > }
>
> > > > #topnav ul li {
> > > >        display:block;
> > > >        float:left;
> > > >        margin:0;
> > > >        padding:0;
> > > >        background:transparent url('images/css/hmenu.jpg') repeat-x top
> > > > left;
>
> > > > }
>
> > > > #topnav ul li a {
> > > >        display:block;
> > > >        float:left;
> > > >        color:#eeb7b7;
> > > >        text-decoration:none;
> > > >        padding:0px 50px ;
> > > >        line-height:40px;
> > > >        font-weight:bold;
> > > > }
>
> > > > #topnav ul li a:hover, #topnav li#current a {
> > > >        color:#FF;
> > > >        background:transparent url('images/css/hmenu-sel.jpg') repeat-x
> > top
> > > > left;
> > > > }
>
> > > > #topnav ul {
> > > >        width:960px;
> > > > }
>
> > > > body {
> > > >        background-position : center 280px;
> > > > }
>
> > > > #bg {
> > > >        margin:0 auto;
> > > >        padding:0;
> > > >        background:transparent ;
> > > >        background-image:url(images/css/hat.jpg);
> > > >        background-repeat:no-repeat;
> > > >        background-position: center top ;
> > > > }
>
> > > >                                        #header {
> > > >        margin: 0 auto;
> > > >        min-height:30px;
> > > >        height: 30px;
> > > >        width: 960px;
> > > > }
>
> > > > #page {
> > > >  

Re: [android-developers] Re: Urgent help required

2011-11-11 Thread Kostya Vasilyev

raw != assets

11.11.2011 15:27, Sunil Mishra пишет:

I tried changing background-image:url('images/css/topBanner.jpg') to
background-image:url(file://android_asset/raw/images/css/
topBanner.jpg' ) but it still not working.


--
Kostya Vasilyev

--
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: Urgent help required

2011-11-11 Thread Sunil Mishra
@Kostya Thanks for pointing that out!

But i am still unable to load the image.
I placed the image in "assets" folder and trying to access that using
background-image:url(file:///android_asset/topBanner.jpg);
but unable to do so...

On Nov 11, 4:41 pm, Kostya Vasilyev  wrote:
> raw != assets
>
> 11.11.2011 15:27, Sunil Mishra пишет:
>
> > I tried changing background-image:url('images/css/topBanner.jpg') to
> > background-image:url(file://android_asset/raw/images/css/
> > topBanner.jpg' ) but it still not working.
>
> --
> Kostya Vasilyev

-- 
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] BroadcastReceiver not system-wide but visible only to application?

2011-11-11 Thread Mark Murphy
Use setPackage() on the Intent to control who can possibly receive it.

On Thu, Nov 10, 2011 at 10:26 PM, Tomasz Gawel  wrote:
> Hi,
>
> is this possible to braodcast my intent to be visible only inside the
> application not to be visible system wide?
> i know, there is permission string paramter in both sendBroadcast and
> registerReceiver methods but i dont even want the user to know there
> are any permissions needed  (so i do not want make him grant this
> permission during instalation).
>
> 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
>



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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: Urgent help required

2011-11-11 Thread Daniel Drozdzewski
Sunil,

You should not have developed your http server, but utilise some OSS
project that does that.
Your links to images or any other resource are relative to the context
of that web page (or web application) running within your web server.

wwwroot
 - websiteA
-images
  -topWrapper-bg.jpg
  - ...
-css
-javascript
 - websiteB
 - websiteC
-index.html

To achieve this, your server has to do translation from URL
'images/topWrapper-bg.jpg' to a file path within your storage
'/yourstorage/yourwebserver/wwwroot/webisteA/images/topWrapper-bg.jpg'.

Without this, you are dead in the water.

Just use ready, mature and testes OSS HTTP server written in Java.

Here is one option. Just package it into your application. It is only 4kB:

http://www.jibble.org/miniwebserver/

Daniel











On 11 November 2011 11:27, Sunil Mishra  wrote:
> I tried changing background-image:url('images/css/topBanner.jpg') to
> background-image:url(file://android_asset/raw/images/css/
> topBanner.jpg' ) but it still not working.
>
> On Nov 11, 4:20 pm, Miguel Morales  wrote:
>> They sure are.
>>
>> On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra wrote:
>>
>>
>>
>>
>>
>>
>>
>> > The images are in res->raw->images->css
>>
>> > On Nov 11, 3:38 pm, Miguel Morales  wrote:
>> > > That's better, most likely you'll want to put your html/images in the res
>> > > folder and then user the following path:
>>
>> > > file://android_asset/file_path.png
>>
>> > > If you are downloading these files dynamically, then simply change the
>> > > file:// path.
>>
>> > > On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra > > >wrote:
>>
>> > > > home.html
>>
>> > > > > > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> > > > http://www.w3.org/1999/xhtml"; xml:lang="en">
>> > > >  
>> > > >    ODMS
>> > > >    
>> > > > 
>> > > > html {
>> > > >        background: #d2d2d2;
>> > > >        margin:0 0 0 -1px;
>> > > >        padding:0;
>> > > >        overflow-Y: scroll;
>> > > > }
>>
>> > > > body {
>> > > >        padding:0;
>> > > >        margin :0;
>> > > >        display:table;
>> > > >        width:100%;
>> > > > }
>>
>> > > > body {
>> > > >        color:#606060;
>> > > >        font-family: 'Trebuchet MS', sans-serif;
>> > > >        font-size: 13px;
>> > > >        font-style: normal;
>> > > >        font-weight: normal;
>> > > >        text-transform: normal;
>> > > > }
>>
>> > > > p {
>> > > >        letter-spacing: normal;
>> > > >        line-height: 1.7em;
>> > > > }
>>
>> > > > h1 {
>> > > >        color:#505050;
>> > > >        font-size:22px;
>> > > >        margin:25px 0 10px 0;
>> > > >        clear:both;
>> > > > }
>>
>> > > > h2 {
>> > > >        color:#505050;
>> > > >        font-size:20px;
>> > > >        margin:20px 0 10px 0;
>> > > >        clear:both;
>> > > > }
>>
>> > > > h3 {
>> > > >        color:#505050;
>> > > >        font-size:18px;
>> > > >        margin:20px 0 5px 0;
>> > > >        clear:both;
>> > > > }
>>
>> > > > a:link, a:visited {
>> > > >        color:#9B251B;
>> > > >        text-decoration:none;
>> > > > }
>>
>> > > > a:hover {
>> > > >        color:#fa720a;
>> > > >        text-decoration:underline;
>> > > > }
>>
>> > > > #wrapper {
>> > > >        background: transparent url( images/css/page-vbg.jpg ) repeat-y
>> > > > scroll 50% 0px;
>> > > >        margin:0 auto ;
>> > > >        width:100%;
>> > > > }
>>
>> > > > body {
>> > > >        background-color:#d2d2d2;
>> > > > }
>>
>> > > > #wrapper {
>> > > >        border-top: 1px solid #ff;
>> > > > }
>>
>> > > > #topWrapper {
>> > > >        width:100%;
>> > > >        height:240px;
>> > > >        background-color:${topWrapper.bg.color};
>> > > >        background-image:url(images/css/topWrapper-bg.jpg);
>> > > >        background-position:center top ;
>> > > >        background-repeat:repeat-x;
>> > > > }
>>
>> > > > #topBanner {
>> > > >        width:960px;
>> > > >        margin:0 auto;
>> > > >        height:240px;
>> > > >        background-image:url('images/css/topBanner.jpg');
>> > > >        background-repeat:no-repeat;
>> > > > }
>>
>> > > > #topnav {
>> > > >        background:transparent url('images/css/hmenu.jpg') repeat-x top
>> > > > left;
>> > > > }
>>
>> > > > #topnav {
>> > > >        height:40px;
>> > > >        margin:0 auto ;
>> > > >        text-align:center;
>> > > > }
>>
>> > > > #topnav ul {
>> > > >        display:table;
>> > > >        margin:0 auto;
>> > > >        padding:0;
>> > > >        list-style-type:none;
>> > > >        position:relative;
>> > > >        height:40px;
>> > > >        text-transform:uppercase;
>> > > >        font-size:12px;
>> > > >        font-family:Arial,sans-serif;
>> > > > }
>>
>> > > > #topnav ul li {
>> > > >        display:block;
>> > > >        float:left;
>> > > >        margin:0;
>> > > >        padding:0;
>> > > >        background:transparent url('images/css/hmenu.jpg') repeat-x top
>> > > > left;
>>
>> > > > }
>>
>> > > > #topnav ul li a {
>> > > >        display:block;
>

[android-developers] Problem with listVIew

2011-11-11 Thread Elison Lusvardi
Hi guys, how are you?

I have a problem in my application's ListView.
Each item in the ListView can be created by different widgets, some have
pictures, the layout is different in each case, some have images, others
have buttons, etc..

All of them have actions like onClick and onLongClick - being in the widget
itself or in a button.

The cost to create each element is high, and the performance is a little
bit low. So, I decided to store these items in a HashMap 
and whenever you create a new item, make sure if it is already inserted in
my "cache" verifying by a Key
So far so good, it works in order to get these items and recycles them,
except that when I perform some action, it usually does not work.

The itens doesn't longer detects the onClick, the onLongClick until it goes
to outside the viewing area of the ListView. For example. I tap on the
picture to open it and nothing happens. But when I take a scroll up or
down, when that picture out of my sight, the app displays the picture with
the viewer. If I hit a 3 or 4 times, when I move the scroll, the viewer
will be opened 3 or 4 times .. = /

Does anyone have any idea why this happens?

thanks!

-- 
Elison José Gracite Lusvardi

-- 
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: Urgent help required

2011-11-11 Thread Sunil Mishra
As a workaround i tried storing the image in app_images folder in
sdcard and trying to provide the url of that path. But still the
issues exists. Is there any other work around possible??

And do you have any clue

On Nov 11, 5:18 pm, Daniel Drozdzewski 
wrote:
> Sunil,
>
> You should not have developed your http server, but utilise some OSS
> project that does that.
> Your links to images or any other resource are relative to the context
> of that web page (or web application) running within your web server.
>
> wwwroot
>  - websiteA
>     -images
>       -topWrapper-bg.jpg
>       - ...
>     -css
>     -javascript
>  - websiteB
>  - websiteC
> -index.html
>
> To achieve this, your server has to do translation from URL
> 'images/topWrapper-bg.jpg' to a file path within your storage
> '/yourstorage/yourwebserver/wwwroot/webisteA/images/topWrapper-bg.jpg'.
>
> Without this, you are dead in the water.
>
> Just use ready, mature and testes OSS HTTP server written in Java.
>
> Here is one option. Just package it into your application. It is only 4kB:
>
> http://www.jibble.org/miniwebserver/
>
> Daniel
>
> On 11 November 2011 11:27, Sunil Mishra  wrote:
>
>
>
>
>
>
>
> > I tried changing background-image:url('images/css/topBanner.jpg') to
> > background-image:url(file://android_asset/raw/images/css/
> > topBanner.jpg' ) but it still not working.
>
> > On Nov 11, 4:20 pm, Miguel Morales  wrote:
> >> They sure are.
>
> >> On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra 
> >> wrote:
>
> >> > The images are in res->raw->images->css
>
> >> > On Nov 11, 3:38 pm, Miguel Morales  wrote:
> >> > > That's better, most likely you'll want to put your html/images in the 
> >> > > res
> >> > > folder and then user the following path:
>
> >> > > file://android_asset/file_path.png
>
> >> > > If you are downloading these files dynamically, then simply change the
> >> > > file:// path.
>
> >> > > On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra  >> > >wrote:
>
> >> > > > home.html
>
> >> > > >  >> > > > "http://
> >> > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> >> > > > http://www.w3.org/1999/xhtml"; xml:lang="en">
> >> > > >  
> >> > > >    ODMS
> >> > > >    
> >> > > > 
> >> > > > html {
> >> > > >        background: #d2d2d2;
> >> > > >        margin:0 0 0 -1px;
> >> > > >        padding:0;
> >> > > >        overflow-Y: scroll;
> >> > > > }
>
> >> > > > body {
> >> > > >        padding:0;
> >> > > >        margin :0;
> >> > > >        display:table;
> >> > > >        width:100%;
> >> > > > }
>
> >> > > > body {
> >> > > >        color:#606060;
> >> > > >        font-family: 'Trebuchet MS', sans-serif;
> >> > > >        font-size: 13px;
> >> > > >        font-style: normal;
> >> > > >        font-weight: normal;
> >> > > >        text-transform: normal;
> >> > > > }
>
> >> > > > p {
> >> > > >        letter-spacing: normal;
> >> > > >        line-height: 1.7em;
> >> > > > }
>
> >> > > > h1 {
> >> > > >        color:#505050;
> >> > > >        font-size:22px;
> >> > > >        margin:25px 0 10px 0;
> >> > > >        clear:both;
> >> > > > }
>
> >> > > > h2 {
> >> > > >        color:#505050;
> >> > > >        font-size:20px;
> >> > > >        margin:20px 0 10px 0;
> >> > > >        clear:both;
> >> > > > }
>
> >> > > > h3 {
> >> > > >        color:#505050;
> >> > > >        font-size:18px;
> >> > > >        margin:20px 0 5px 0;
> >> > > >        clear:both;
> >> > > > }
>
> >> > > > a:link, a:visited {
> >> > > >        color:#9B251B;
> >> > > >        text-decoration:none;
> >> > > > }
>
> >> > > > a:hover {
> >> > > >        color:#fa720a;
> >> > > >        text-decoration:underline;
> >> > > > }
>
> >> > > > #wrapper {
> >> > > >        background: transparent url( images/css/page-vbg.jpg ) 
> >> > > > repeat-y
> >> > > > scroll 50% 0px;
> >> > > >        margin:0 auto ;
> >> > > >        width:100%;
> >> > > > }
>
> >> > > > body {
> >> > > >        background-color:#d2d2d2;
> >> > > > }
>
> >> > > > #wrapper {
> >> > > >        border-top: 1px solid #ff;
> >> > > > }
>
> >> > > > #topWrapper {
> >> > > >        width:100%;
> >> > > >        height:240px;
> >> > > >        background-color:${topWrapper.bg.color};
> >> > > >        background-image:url(images/css/topWrapper-bg.jpg);
> >> > > >        background-position:center top ;
> >> > > >        background-repeat:repeat-x;
> >> > > > }
>
> >> > > > #topBanner {
> >> > > >        width:960px;
> >> > > >        margin:0 auto;
> >> > > >        height:240px;
> >> > > >        background-image:url('images/css/topBanner.jpg');
> >> > > >        background-repeat:no-repeat;
> >> > > > }
>
> >> > > > #topnav {
> >> > > >        background:transparent url('images/css/hmenu.jpg') repeat-x 
> >> > > > top
> >> > > > left;
> >> > > > }
>
> >> > > > #topnav {
> >> > > >        height:40px;
> >> > > >        margin:0 auto ;
> >> > > >        text-align:center;
> >> > > > }
>
> >> > > > #topnav ul {
> >> > > >        display:table;
> >> > > >        margin:0 auto;
> >> > 

[android-developers] Re: Urgent help required

2011-11-11 Thread skink


On Nov 11, 2:43 pm, Sunil Mishra  wrote:
> As a workaround i tried storing the image in app_images folder in
> sdcard and trying to provide the url of that path. But still the
> issues exists. Is there any other work around possible??
>
> And do you have any clue
>
> On Nov 11, 5:18 pm, Daniel Drozdzewski 
> wrote:
>

Daniel already gave you an answer:

To achieve this, your server has to do
translation from URL
'images/ topWrapper-bg.jpg ' to a file
path within your storage
'/yourstorage/ yourwebserver/
wwwroot/webisteA/ images/
topWrapper-bg. jpg'.

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: Urgent help required

2011-11-11 Thread IcedNet
treat the assets folder as /  (root) for your server, put it all in
there...


On Nov 11, 8:43 am, Sunil Mishra  wrote:
> As a workaround i tried storing the image in app_images folder in
> sdcard and trying to provide the url of that path. But still the
> issues exists. Is there any other work around possible??
>
> And do you have any clue
>
> On Nov 11, 5:18 pm, Daniel Drozdzewski 
> wrote:> Sunil,
>
> > You should not have developed your http server, but utilise some OSS
> > project that does that.
> > Your links to images or any other resource are relative to the context
> > of that web page (or web application) running within your web server.
>
> > wwwroot
> >  - websiteA
> >     -images
> >       -topWrapper-bg.jpg
> >       - ...
> >     -css
> >     -javascript
> >  - websiteB
> >  - websiteC
> > -index.html
>
> > To achieve this, your server has to do translation from URL
> > 'images/topWrapper-bg.jpg' to a file path within your storage
> > '/yourstorage/yourwebserver/wwwroot/webisteA/images/topWrapper-bg.jpg'.
>
> > Without this, you are dead in the water.
>
> > Just use ready, mature and testes OSS HTTP server written in Java.
>
> > Here is one option. Just package it into your application. It is only 4kB:
>
> >http://www.jibble.org/miniwebserver/
>
> > Daniel
>
> > On 11 November 2011 11:27, Sunil Mishra  wrote:
>
> > > I tried changing background-image:url('images/css/topBanner.jpg') to
> > > background-image:url(file://android_asset/raw/images/css/
> > > topBanner.jpg' ) but it still not working.
>
> > > On Nov 11, 4:20 pm, Miguel Morales  wrote:
> > >> They sure are.
>
> > >> On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra 
> > >> wrote:
>
> > >> > The images are in res->raw->images->css
>
> > >> > On Nov 11, 3:38 pm, Miguel Morales  wrote:
> > >> > > That's better, most likely you'll want to put your html/images in 
> > >> > > the res
> > >> > > folder and then user the following path:
>
> > >> > > file://android_asset/file_path.png
>
> > >> > > If you are downloading these files dynamically, then simply change 
> > >> > > the
> > >> > > file:// path.
>
> > >> > > On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra  > >> > >wrote:
>
> > >> > > > home.html
>
> > >> > > >  > >> > > > "http://
> > >> > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> > >> > > > http://www.w3.org/1999/xhtml"; xml:lang="en">
> > >> > > >  
> > >> > > >    ODMS
> > >> > > >    
> > >> > > > 
> > >> > > > html {
> > >> > > >        background: #d2d2d2;
> > >> > > >        margin:0 0 0 -1px;
> > >> > > >        padding:0;
> > >> > > >        overflow-Y: scroll;
> > >> > > > }
>
> > >> > > > body {
> > >> > > >        padding:0;
> > >> > > >        margin :0;
> > >> > > >        display:table;
> > >> > > >        width:100%;
> > >> > > > }
>
> > >> > > > body {
> > >> > > >        color:#606060;
> > >> > > >        font-family: 'Trebuchet MS', sans-serif;
> > >> > > >        font-size: 13px;
> > >> > > >        font-style: normal;
> > >> > > >        font-weight: normal;
> > >> > > >        text-transform: normal;
> > >> > > > }
>
> > >> > > > p {
> > >> > > >        letter-spacing: normal;
> > >> > > >        line-height: 1.7em;
> > >> > > > }
>
> > >> > > > h1 {
> > >> > > >        color:#505050;
> > >> > > >        font-size:22px;
> > >> > > >        margin:25px 0 10px 0;
> > >> > > >        clear:both;
> > >> > > > }
>
> > >> > > > h2 {
> > >> > > >        color:#505050;
> > >> > > >        font-size:20px;
> > >> > > >        margin:20px 0 10px 0;
> > >> > > >        clear:both;
> > >> > > > }
>
> > >> > > > h3 {
> > >> > > >        color:#505050;
> > >> > > >        font-size:18px;
> > >> > > >        margin:20px 0 5px 0;
> > >> > > >        clear:both;
> > >> > > > }
>
> > >> > > > a:link, a:visited {
> > >> > > >        color:#9B251B;
> > >> > > >        text-decoration:none;
> > >> > > > }
>
> > >> > > > a:hover {
> > >> > > >        color:#fa720a;
> > >> > > >        text-decoration:underline;
> > >> > > > }
>
> > >> > > > #wrapper {
> > >> > > >        background: transparent url( images/css/page-vbg.jpg ) 
> > >> > > > repeat-y
> > >> > > > scroll 50% 0px;
> > >> > > >        margin:0 auto ;
> > >> > > >        width:100%;
> > >> > > > }
>
> > >> > > > body {
> > >> > > >        background-color:#d2d2d2;
> > >> > > > }
>
> > >> > > > #wrapper {
> > >> > > >        border-top: 1px solid #ff;
> > >> > > > }
>
> > >> > > > #topWrapper {
> > >> > > >        width:100%;
> > >> > > >        height:240px;
> > >> > > >        background-color:${topWrapper.bg.color};
> > >> > > >        background-image:url(images/css/topWrapper-bg.jpg);
> > >> > > >        background-position:center top ;
> > >> > > >        background-repeat:repeat-x;
> > >> > > > }
>
> > >> > > > #topBanner {
> > >> > > >        width:960px;
> > >> > > >        margin:0 auto;
> > >> > > >        height:240px;
> > >> > > >        background-image:url('images/css/topBanner.jpg');
> > >> > > >        background-repeat:no-repeat;
> > >> > > > 

[android-developers] Re: Threshold a android bitmap image URGENT

2011-11-11 Thread Streets Of Boston
For a crude Threshold effect, you can use a ColorMatrixColorFilter with the 
right values put in it. I implemented a Threshold filter this way, I don't 
have the implementation at hand right now. But you can google 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] help loading images from url

2011-11-11 Thread Christian Palomares (ShinjiDev)
Hi

I've seen many tutorials about how to load an image from my url, but
i've seen in apps like "Uber Social" where it loads the images in an
asynchronous way, can someone guide me how to do it in that way? =(

Thxs

-- 
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: Urgent help required

2011-11-11 Thread Sunil Mishra
@skink and @Dainel

According to me URL translation is like follows

1. Read the html file before sending
2. Grab the relative url
3. Convert it to absolute url
4. Write the html file with the converted absolute url

Please correct me if i am going wrong. Or provide me a link which
explains about URL translation.

On Nov 11, 6:51 pm, skink  wrote:
> On Nov 11, 2:43 pm, Sunil Mishra  wrote:
>
> > As a workaround i tried storing the image in app_images folder in
> > sdcard and trying to provide the url of that path. But still the
> > issues exists. Is there any other work around possible??
>
> > And do you have any clue
>
> > On Nov 11, 5:18 pm, Daniel Drozdzewski 
> > wrote:
>
> Daniel already gave you an answer:
>
> To achieve this, your server has to do
> translation from URL
> 'images/ topWrapper-bg.jpg ' to a file
> path within your storage
> '/yourstorage/ yourwebserver/
> wwwroot/webisteA/ images/
> topWrapper-bg. jpg'.
>
> 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: Urgent help required

2011-11-11 Thread Sunil Mishra
@IcedNet

You mean to say, i must put all the html, css and images in the assets
folder. Right?

On Nov 11, 6:52 pm, IcedNet  wrote:
> treat the assets folder as /  (root) for your server, put it all in
> there...
>
> On Nov 11, 8:43 am, Sunil Mishra  wrote:
>
>
>
>
>
>
>
> > As a workaround i tried storing the image in app_images folder in
> > sdcard and trying to provide the url of that path. But still the
> > issues exists. Is there any other work around possible??
>
> > And do you have any clue
>
> > On Nov 11, 5:18 pm, Daniel Drozdzewski 
> > wrote:> Sunil,
>
> > > You should not have developed your http server, but utilise some OSS
> > > project that does that.
> > > Your links to images or any other resource are relative to the context
> > > of that web page (or web application) running within your web server.
>
> > > wwwroot
> > >  - websiteA
> > >     -images
> > >       -topWrapper-bg.jpg
> > >       - ...
> > >     -css
> > >     -javascript
> > >  - websiteB
> > >  - websiteC
> > > -index.html
>
> > > To achieve this, your server has to do translation from URL
> > > 'images/topWrapper-bg.jpg' to a file path within your storage
> > > '/yourstorage/yourwebserver/wwwroot/webisteA/images/topWrapper-bg.jpg'.
>
> > > Without this, you are dead in the water.
>
> > > Just use ready, mature and testes OSS HTTP server written in Java.
>
> > > Here is one option. Just package it into your application. It is only 4kB:
>
> > >http://www.jibble.org/miniwebserver/
>
> > > Daniel
>
> > > On 11 November 2011 11:27, Sunil Mishra  wrote:
>
> > > > I tried changing background-image:url('images/css/topBanner.jpg') to
> > > > background-image:url(file://android_asset/raw/images/css/
> > > > topBanner.jpg' ) but it still not working.
>
> > > > On Nov 11, 4:20 pm, Miguel Morales  wrote:
> > > >> They sure are.
>
> > > >> On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra 
> > > >> wrote:
>
> > > >> > The images are in res->raw->images->css
>
> > > >> > On Nov 11, 3:38 pm, Miguel Morales  wrote:
> > > >> > > That's better, most likely you'll want to put your html/images in 
> > > >> > > the res
> > > >> > > folder and then user the following path:
>
> > > >> > > file://android_asset/file_path.png
>
> > > >> > > If you are downloading these files dynamically, then simply change 
> > > >> > > the
> > > >> > > file:// path.
>
> > > >> > > On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra 
> > > >> > >  > > >> > >wrote:
>
> > > >> > > > home.html
>
> > > >> > > >  > > >> > > > "http://
> > > >> > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> > > >> > > > http://www.w3.org/1999/xhtml"; xml:lang="en">
> > > >> > > >  
> > > >> > > >    ODMS
> > > >> > > >    
> > > >> > > > 

Re: [android-developers] Re: Urgent help required

2011-11-11 Thread Daniel Drozdzewski
On 11 November 2011 14:23, Sunil Mishra  wrote:
> @skink and @Dainel
>
> According to me URL translation is like follows
>
> 1. Read the html file before sending
> 2. Grab the relative url
> 3. Convert it to absolute url
> 4. Write the html file with the converted absolute url
>
> Please correct me if i am going wrong. Or provide me a link which
> explains about URL translation.

Not quite.

Have a look here: http://en.wikipedia.org/wiki/Web_server#Path_translation

URL translation happens for every HTTP request.

User at the browser knows only URL. Http server knows how to translate
the URL to a file on a file system, in order to serve it back to the
client.

Http server serves a web page as is. No URL rewriting here.

It is the browser, that upon receiving of a given page, in subsequent
requests demands all referenced resources (images, css, js, ...).

In those subsequent requests, server has to translate every URL to the
path of a file, that the user requested.

That is it.

Daniel

>
> On Nov 11, 6:51 pm, skink  wrote:
>> On Nov 11, 2:43 pm, Sunil Mishra  wrote:
>>
>> > As a workaround i tried storing the image in app_images folder in
>> > sdcard and trying to provide the url of that path. But still the
>> > issues exists. Is there any other work around possible??
>>
>> > And do you have any clue
>>
>> > On Nov 11, 5:18 pm, Daniel Drozdzewski 
>> > wrote:
>>
>> Daniel already gave you an answer:
>>
>> To achieve this, your server has to do
>> translation from URL
>> 'images/ topWrapper-bg.jpg ' to a file
>> path within your storage
>> '/yourstorage/ yourwebserver/
>> wwwroot/webisteA/ images/
>> topWrapper-bg. jpg'.
>>
>> 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



-- 
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] Re: Screen orientantion and dialogs problem.

2011-11-11 Thread ikki_fenix
Thanks a lot. It's very useful, but I have another problem. When I
change the screen orientation only changes the first tab layout and
the second one takes it the same that I had before the change.

For Example, I have the app in portrait and i change to landscape.
When I see the tabs, the first tab design has changed it for landscape
layout and the second one remains the portrait version of layout.

Do you know why happens this???

Thanks for your replay!!!

-- 
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: Urgent help required

2011-11-11 Thread Sunil Mishra
@Daniel

Thanks!

I'l try on this and get back to you if i have any doubt.

Thanks once again!

On Nov 11, 7:43 pm, Daniel Drozdzewski 
wrote:
> On 11 November 2011 14:23, Sunil Mishra  wrote:
>
> > @skink and @Dainel
>
> > According to me URL translation is like follows
>
> > 1. Read the html file before sending
> > 2. Grab the relative url
> > 3. Convert it to absolute url
> > 4. Write the html file with the converted absolute url
>
> > Please correct me if i am going wrong. Or provide me a link which
> > explains about URL translation.
>
> Not quite.
>
> Have a look here:http://en.wikipedia.org/wiki/Web_server#Path_translation
>
> URL translation happens for every HTTP request.
>
> User at the browser knows only URL. Http server knows how to translate
> the URL to a file on a file system, in order to serve it back to the
> client.
>
> Http server serves a web page as is. No URL rewriting here.
>
> It is the browser, that upon receiving of a given page, in subsequent
> requests demands all referenced resources (images, css, js, ...).
>
> In those subsequent requests, server has to translate every URL to the
> path of a file, that the user requested.
>
> That is it.
>
> Daniel
>
>
>
>
>
>
>
>
>
>
>
> > On Nov 11, 6:51 pm, skink  wrote:
> >> On Nov 11, 2:43 pm, Sunil Mishra  wrote:
>
> >> > As a workaround i tried storing the image in app_images folder in
> >> > sdcard and trying to provide the url of that path. But still the
> >> > issues exists. Is there any other work around possible??
>
> >> > And do you have any clue
>
> >> > On Nov 11, 5:18 pm, Daniel Drozdzewski 
> >> > wrote:
>
> >> Daniel already gave you an answer:
>
> >> To achieve this, your server has to do
> >> translation from URL
> >> 'images/ topWrapper-bg.jpg ' to a file
> >> path within your storage
> >> '/yourstorage/ yourwebserver/
> >> wwwroot/webisteA/ images/
> >> topWrapper-bg. jpg'.
>
> >> 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
>
> --
> 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


Re: [android-developers] Re: Screen orientantion and dialogs problem.

2011-11-11 Thread TreKing
On Fri, Nov 11, 2011 at 8:48 AM, ikki_fenix  wrote:

> For Example, I have the app in portrait and i change to landscape.
> When I see the tabs, the first tab design has changed it for landscape
> layout and the second one remains the portrait version of layout.
>
> Do you know why happens this???
>

Without more information, no.
Are you doing anything special with the second tab as far as layouts go?
Have you specified different layouts for landscape / portrait?
Are you handling configuration changes yourself?

-
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

[android-developers] Re: Urgent help required

2011-11-11 Thread skink


On Nov 11, 3:23 pm, Sunil Mishra  wrote:
> @skink and @Dainel
>
> According to me URL translation is like follows
>
> 1. Read the html file before sending
> 2. Grab the relative url
> 3. Convert it to absolute url
> 4. Write the html file with the converted absolute url
>
> Please correct me if i am going wrong. Or provide me a link which
> explains about URL translation.
>
> On Nov 11, 6:51 pm, skink  wrote:
>
>
>
> > On Nov 11, 2:43 pm, Sunil Mishra  wrote:
>
> > > As a workaround i tried storing the image in app_images folder in
> > > sdcard and trying to provide the url of that path. But still the
> > > issues exists. Is there any other work around possible??
>
> > > And do you have any clue
>
> > > On Nov 11, 5:18 pm, Daniel Drozdzewski 
> > > wrote:
>
> > Daniel already gave you an answer:
>
> > To achieve this, your server has to do
> > translation from URL
> > 'images/ topWrapper-bg.jpg ' to a file
> > path within your storage
> > '/yourstorage/ yourwebserver/
> > wwwroot/webisteA/ images/
> > topWrapper-bg. jpg'.
>
> > pskink

yes, you are wrong

All you have to do is to grab request url in your server and return
proper content to the client

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: Screen orientantion and dialogs problem.

2011-11-11 Thread ikki_fenix
Hi!,

I'm ashamed but i did a silly mistake, because i've forgotten to
change some values in the second tab.
Sorry for waste your time and 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: Use the Gyroscope to improve the orientation

2011-11-11 Thread hhenne
Hi again,

In my app, I am only interested in pitch and roll - not in yaw.

The accelerometer can measure static pitch and roll (because of the
gravity) - but not static yaw.
Acceleration caused by movements are just unwanted noise in my app and
is filtered away by a usual digital Lowpass filter.

The Gyro cannot measure static pitch and roll and not static yaw
either, It can only measure angular velocity - changes in pitch, roll
and yaw.
To convert angular velocity to angle, you have to use digital
integration. But, because small errors would cause the computed angles
to slowly drift away, you have to filter the slow variations away -
that is done by a digital highpass filter. You can say that is
actually to opposite working filters, but it is the correct way.

And now the computed gyro signal cannot be used for detecting static
pitch, roll and yaw because the static part is filtered away. But then
it can be combined with the lowpass filtered accelerometer, simply
adding the two signals, to get fast and correct detection of pitch and
roll. That means if you make a sudden rotation of the device the
signal should change from one level to the other with a small rise
time and no overshoot. in signal terms the frequency response of the
transfer function is linear from DC to around 5 hz.

When you are interested in yaw, but not pitch and roll, you have to
replace the accelerometer with the magnetic sensor. As mentioned by
gjs, it cannot help you overcome magnetic interference. But it should
be possible to get a much smoother and faster response by using
magnetic sensor and gyro in combination than by using the magnetic
sensor alone.

I have spend a lot of time on Kalmann filters, whithout producing
results worth the efforts. What you see in my keyboard app is the
first shot of the 'complementary filter design' sketched above - and
it only took me a few hours to implement. All right  - it is not
perfect yet - for instance I need to take into account the variations
in sample frequencies among the different sensors and also from device
to device and from time to time. Never the less it was a great
improvement from using the accelerometer alone. The same app runs on
devices, only having an accelerometer. So if you have got two devices,
and only one of them has a gyro, you can see and feel the
difference.

Hardy Henneberg
http://www.maxikeys.com

On Nov 11, 3:30 am, gjs  wrote:
> Hi,
>
> I am only suggesting you use integration ( sum & 'average' last N
> measurement over some short period of time ) for the compass/azimuth -
> however you decide to get that data - just to smooth the data, so
> these filtered reading don't jump around so much (this has got little
> or nothing to do with accuracy of the sensors).
>
> Then you might use the gyroscope &/or acceleration to detect relative
> movement of the device, is it currently still or moving, to alter the
> integration you are doing with the compass/azimuth, eg to reset or
> change value of N mentioned. Kalman Filters are often mentioned here
> as a solutionhttp://en.wikipedia.org/wiki/Kalman_filter
>
> If you want high accuracy you will probably need to use external high
> accuracy IMU / compass sensor devices. Even then you won't necessarily
> get around external magnetic interference.
>
> Regards
>
> On Nov 10, 10:17 pm, Ferro Francesco 
> wrote:
>
>
>
>
>
>
>
> > I know what is an integration and How to do it. What I don't know it's what
> > do I do with the result? How can i combine is with the compass value ?

-- 
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] Horizontal scroll inside ViewPager

2011-11-11 Thread ahmed barqawi
Hello Android geeks,

i created a project that have ViewPager to scroll between pages and
one of the pages have big image that you can scroll right,left
when i scroll left or right the ViewPager scroll between pages not
inside the image.

my issue is: how to prevent view pager to scroll between pages until
condition happen or
how to make images scroll to the end then ViewPager go to the next
page.

Note: the same issue happen when add HorizontalScrollView inside a
ViewPager.

-- 
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: Parsing JSON from Grails application

2011-11-11 Thread hhenne
On Grails you can use the gson library - it is very simple and easy to
use.
Android has built in the org.json library - tutorial here:
http://www.vogella.de/articles/AndroidJSON/article.html

Hardy Henneberg
http://www.maxikeys.com

On Nov 11, 3:05 am, Nikolay Elenkov  wrote:
> On Fri, Nov 11, 2011 at 2:27 AM, Brion Emde  wrote:
> > When I've used a Rails application to talk to my Android application,
> > I've done it by implementing a RESTful interface to the web
> > application on the RAILs server, then implement calls to the RESTful
> > interface via HTTP.
>
> From a recent tweet:
>
> 'Discussions on whether or not to use Etags. "I guess the general
> advice for people is to use Rails"'
>
> Buzzword-oriented design for everyone!

-- 
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] Pairing bluetooth devices using NFC

2011-11-11 Thread somdas
Is it possible to pair to bluetooth device using NFC (out of band) in
android 2.3? If yes, please provide me the steps of doing so.

-- 
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: Problem with listVIew

2011-11-11 Thread hoyski
On Nov 11, 7:39 am, Elison Lusvardi  wrote:
> Hi guys, how are you?
>
> I have a problem in my application's ListView.
> Each item in the ListView can be created by different widgets, some have
> pictures, the layout is different in each case, some have images, others
> have buttons, etc..
>
> All of them have actions like onClick and onLongClick - being in the widget
> itself or in a button.
>
> The cost to create each element is high, and the performance is a little
> bit low. So, I decided to store these items in a HashMap 
> and whenever you create a new item, make sure if it is already inserted in
> my "cache" verifying by a Key
> So far so good, it works in order to get these items and recycles them,
> except that when I perform some action, it usually does not work.
>
> The itens doesn't longer detects the onClick, the onLongClick until it goes
> to outside the viewing area of the ListView. For example. I tap on the
> picture to open it and nothing happens. But when I take a scroll up or
> down, when that picture out of my sight, the app displays the picture with
> the viewer. If I hit a 3 or 4 times, when I move the scroll, the viewer
> will be opened 3 or 4 times .. = /
>
> Does anyone have any idea why this happens?
>
> thanks!
>
> --
> Elison José Gracite Lusvardi

Can you explain how you use your HashMap in relation to the list? I'm
guessing you're referencing it in a getView(...) method of a list
adapter. If so, could the problem be incompatible Views between what's
being passed to getView(...) as the convertView parameter and what
it's being populated with from the cache? Just a swag...

- Dave

-- 
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] Standalone interactive logcat viewer/inspector (free)

2011-11-11 Thread Stephen Uhler
For the app I was working on, I needed better/different highlighting and
filtering than what DDMS
provided, so I build something that served my purpose at the time, and
thought I'd share it in case others find it useful.  I often use DDMS as
well, depending on the type of output I need.


On Thu, Nov 10, 2011 at 12:42 PM, TreKing  wrote:

> On Wed, Nov 9, 2011 at 2:31 PM, Stephen Uhler  wrote:
>
>> I got frustrated one day inspecting logcat output when I couldn't get
>> eclipse to start, so I wrote a stand-alone logcat inspector (in Tcl/Tk),
>> which I now use in preference to the one in eclipse.
>
>
> Any reason you didn't just use DDMS?
>
>
> -
> 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

[android-developers] Where is the ICS Date Usage Graph "SeekBar thumb" image?

2011-11-11 Thread Boozel
Hi

I just downloaded the android 4.0 SDK to look for the scroller 
image resource that is used in the new Data Usage feature in ICS to scroll 
along the axis of the graph?
I cant find it though, does any one know the path of this resource? 
I have a graph in my application and would like to add similar 
functionality.

Below is an example of the graph.




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] Re: Obsoleting 1.5

2011-11-11 Thread Nathan


On Nov 10, 4:31 pm, Zsolt Vasvari  wrote:
>
> How can they even comment?  If they cannot see the app in the Market,
> they cannot comment on it.

Very good point. Another point in favor of skipping multiple apks and
just dropping them.

Although I don't know for sure. Even though they wouldn't find it in
the Market in a search, would they find it in My Apps? Although it
seems like very few people know how to go to My Apps in the Android
Market as it is.

> If somebody will really complain, I will simply send them the last 1.6
> supported version or refund their purchase, no big deal.

Yea, I'm with you there.

Nathan

-- 
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] NFC App self-launched

2011-11-11 Thread k0nig
Hello, I'm a begginer in android, I have a NFC App works correctly
except for one thing, when I close a tag to my phone this suggest
other app but not mine. I had search about this but don't find a
solution, my manifest is:


http://schemas.android.com/apk/res/android";
  package="leer.Etiqueta"
  android:versionCode="1"
  android:versionName="1.0">



























I thought that a TECH_DISCOVERED launch my application but it does not

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] Native Code Coverage using gcov

2011-11-11 Thread AngelMex
I've been trying to get Native Code coverage following the intructions
at

http://groups.google.com/group/android-ndk/browse_thread/thread/4a3924bb1235e58a/6ef27ff0b4506d30?show_docid=6ef27ff0b4506d30

So far I have been unable to get any .gcda files.

I've been able to successfully build and link my instrumented library,
which I'll call "TestedLibrary" (verified that it's much larger in
size than the non-instrumented library).

To set the GCOV_PREFIX and GCOV_STRIP_PATH, I use a dummy native
library that I load prior to loading TestedLibrary. I also added some
log calls in TestedLibrary to verify that both of those environment
variables are set to the correct values, and I can see they are
properly set.

My app has permissions to write to the SDCARD, and I've tried
different values on GCOV_STRIP_PATH, but nothing seems to work. There
are no errors reported either. I've tried both the emulator and my
Galaxy SII.

Has anybody been able to successfully get gcda files from a native
shared library, and if so, can you share the steps you used? Is there
any way to get additional logs from gcov?

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: Programmatically installing APK question

2011-11-11 Thread zombiexl
Ash,
I'm doing the same sort for thing for a client (i rooted the device
and created a flashable rom). I am having the device restart the
device when it closes. The difference is we do allow some users to use
the exit button and get to the device (mainly for debugging).
Otherwise the exit button causes the device to reboot. Also in the
case of an abend the app is restarted automatically.

If you are still looking and interested in my solution then let me
know and i'll put together some sample code.

I do have a question for you however. How do you install the update
programatically. I am doing it, but the user is prompted and we can't
always trust our users to actually install the update.

Brian

-- 
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] TextView with an element inserted just at the and of the text

2011-11-11 Thread Damian Skrodzki
I need a multiline text that allows me to insert a small element just after 
the last word of my text, so I could draw on that element. All text should 
be selectable, and it would be great if I could insert some other elements 
inside this text, but it's not essential for now.

I tried to:
1. Separate each word in new EditText, but then I cant select all text 
which is rather nessary.
2. Use one long EditText, but i cant determine where the text really ends.
3. Thinking about some html formatting but I think it's the 2 case.

How can I achieve this?

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

[android-developers] How to access class file

2011-11-11 Thread Ketan
Hello,

I want to acess class file from bin folder in android.
I was doing it using
File f = new File("/bin/filename.class");

Its working fine in java but in android giving path doesnt work,,, so
please suggest me other way to access class file of any java file.

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] Moving & shifting

2011-11-11 Thread unionmoversuae
Welcome
Enjoy world-class moving services at local rates!

Union Mover Dubai is the moving company created to make your moving
experience a stress free one. Our focus is on top notch customer
service, and fast, professional moving services. We aim to offer our
customers the quality of service they expect from the industry's
biggest names in removals, but at affordable prices.

Whether you're moving house or office locally, relocating
internationally, or just a few large items around Dubai, Abu Dhabi or
across the UAE, Union Mover removals promise to handle every detail
with speed, care and professionalism so you can relax and take it
easy.

To get your moving quote underway, simply click Get Your Easy Quote,
and we'll prepare your quote immediately.   Only pay for the services
you need.

When you move with Union Mover, you only pay for the removal services
you need. Our prices are based on the space you use in our trucks, the
items you need packed and boxed, bubble wrapped or dismantled. No
matter what your budget is you can tailor your move accordingly.

If you need a removal truck today... no problem. We have good network
of removal trucks, moving vans & packing crew across the country ready
to handle any job you throw their way.

So let's get started shall we? Please click on the Get Your Union
Quote button on the right, fill in the quote form and we'll get right
back to you with a great price today!

"Our friendly team of highly trained packers will have you comfortably
set up in your new home, same day guaranteed!"

-- 
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] Selecting a location from google map and send it to an Application

2011-11-11 Thread Hacktor
Is there any sample code or tutorial for Selecting a location from
google map (like restaurant, school etc) and forward to the
application which includes more information about that place?  The
object of this application is making some process about the place that
already selected from the google map and store it to the application
database.

-- 
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] Flickering on Android browser because of the keypad

2011-11-11 Thread Mjask
Hi

I am creating a Web page for Android browsers, I have an input box on
top but when I type in something there because the sliding keypad
appears that textbox scrolls up and I cant see that . Is there any
Javascript event or some other feature with which I can make my page
not to scroll up when Key pad appears.

Thanks
Mamta

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-11-11 Thread Michel
Hello,

I am an Android Windows developer using Eclipse and I would like to
develop applications for my XPeria Active. Since to connect to it I
need to install the appropriate OEM USB driver...

Does anyone know if there is a compatible OEM USB driver from another
XPeria phone, as Sony hasn't yet released (apparently) any specific
driver for the Active model?

Your help would be greatly appreciated,
Thanks!
John

-- 
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] Sony S1 adb driver

2011-11-11 Thread Edwin Low
Hi Kostya,
 
I am new to all this and trying to get my Sony tablet to accept adhoc wifi 
hotspot.
But first I need to get the tablet to link to my notebook.
 
When you mentioned  "located in %USERPROFILE%\.android" and "under 
[Google.NTamd64]", are these found in my tablet or notebook?
 
After setting up the files in these locations, does this mean driver is 
configured? If not, what must I do.
 
Regards,
Edwin

-- 
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 read data off a website into an Android app

2011-11-11 Thread Jungle Jim
I need to write an android app that will read data off a webpage and
then display it in an activity in my app. Unfortunately, I am fairly
new to both android and java.

Does anyone know of a sample program that can get me started?

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] Problem in retrieve by SAX form RSS

2011-11-11 Thread calvin chan
Hi everyone,

I am a beginner of android programming, these several weeks I am
trying to write a RSS reader.
As I said, I use SAX to retrieve the elements from xml of a website.
All other elements I can retrieve except the content inside the
.

Below is my Handler.java
can anyone help me?
thz so much~~~
__
package first.user_ss;

import java.util.ArrayList;
import java.util.List;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

public class MyHandler extends DefaultHandler{

  private boolean in_item = false;
  private boolean in_title = false;
  private boolean in_link = false;
  private boolean in_desc = false;
  private boolean in_date = false;
  private boolean in_contentencoded =false;   //it is added by myself
  private boolean in_cate=false;
  private boolean in_mainTitle = false;
  private List li;
  private News news;
  private String title="";
  private StringBuffer buf=new StringBuffer();

  public List getParsedData()
  {
return li;
  }
  public String getRssTitle()
  {
return title;
  }
  @Override
  public void startDocument() throws SAXException
  {
li = new ArrayList();
  }
  @Override
  public void endDocument() throws SAXException
  {
  }
  @Override
  public void startElement(String namespaceURI, String localName,
String qName, Attributes atts) throws SAXException
  {
if (localName.equals("item"))
{
  this.in_item = true;
  news=new News();
}
else if (localName.equals("title"))
{
  if(this.in_item)
  {
this.in_title = true;
  }
  else
  {
this.in_mainTitle = true;
  }
}
else if (localName.equals("link"))
{
  if(this.in_item)
  {
this.in_link = true;
  }
}
else if (localName.equals("description"))
{
  if(this.in_item)
  {
this.in_desc = true;
  }
}
else if (localName.equals("pubDate"))
{
  if(this.in_item)
  {
this.in_date = true;
  }
}
   else if (localName.equals("content:encoded"))
{
  if(this.in_item)
  {
this.in_contentencoded = true;
  }
}
   else if (localName.equals("category"))
{
  if(this.in_item)
  {
this.in_cate = true;
  }
}
  }
  @Override
  public void endElement(String namespaceURI, String localName,
String qName) throws SAXException
  {
if (localName.equals("item"))
{
  this.in_item = false;
  li.add(news);
}
else if (localName.equals("title"))
{
  if(this.in_item)
  {
news.setTitle(buf.toString().trim());
buf.setLength(0);
this.in_title = false;
  }
  else
  {
title=buf.toString().trim();
buf.setLength(0);
this.in_mainTitle = false;
  }
}
else if (localName.equals("link"))
{
  if(this.in_item)
  {
news.setLink(buf.toString().trim());
buf.setLength(0);
this.in_link = false;
  }
}
else if (localName.equals("description"))
{
  if(in_item)
  {
news.setDesc(buf.toString().trim());
buf.setLength(0);
this.in_desc = false;
  }
}
else if (localName.equals("pubDate"))
{
  if(in_item)
  {
news.setDate(buf.toString().trim());
buf.setLength(0);
this.in_date = false;
  }
}
  else if (localName.equals("content:encoded"))
{
  if(this.in_item)
  {
news.setCon(buf.toString().trim());
buf.setLength(0);
this.in_contentencoded = false;
  }
}

  else if (localName.equals("category"))
{
  if(in_item)
  {
news.setCate(buf.toString().trim());
buf.se

[android-developers] Re: Set Phone HTTP Proxy on Wifi Network

2011-11-11 Thread Moroni Granja
Proxy support is known to be lacking. For that reason, there are apps
that help with that. I'm working on one called Autoproxy that should
help yout there.
http://forum.xda-developers.com/showthread.php?t=1083284

On Sep 18, 1:17 pm, Marco Pagliari  wrote:
> I would like to know if it's possible to setup an HTTP Proxy for Wifi
> networks. I managed to setup the proxy (calling the
> "com.android.settings.ProxySelector" activity by code or using an app like
> Any Cut) but when I'm connected to the Wifi it seems that the proxy settings
> are ignored (I'm trying with multiple "default" apps like browser, maps,
> ...). Sometimes it seems that the settings is read correctly by the browser
> and the proxy works without problems, is seems more like a bug on the app
> (because is really hard to reproduce it). Anyone here that have clear ideas
> about this topic?

-- 
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] best smile

2011-11-11 Thread azhar mustafa
You will never want to use an ordinary toothbrush again. Perfect
results EVERYTIME! With 30 Second Smile, you get a precise cleaning
each and every time. All you do is bite and guide!

http://emediatraffic.go2cloud.org/SHFH

-- 
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] Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-5.xml, reason: Connection reset

2011-11-11 Thread kaoutar ben ahmed
hello everyone !!

i have this errors shown when i try to add SDK Components through the
android SDK manager :

Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: Connection reset
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/repository-5.xml,
reason: Connection reset
Fetching URL: http://dl-ssl.google.com/android/eclipse/addon.xml
Failed to fetch URL http://dl-ssl.google.com/android/eclipse/addon.xml,
reason: Connection reset
Done loading packages.

i not using a proxy server and i deactivated my firewall and my
antivirus but in vain :s

any ideas?

-- 
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] Detecting user network preference

2011-11-11 Thread Rino
Hi Group,
this is my first post and I made a lot of searching but didn't find
any post completely answering to my question.
I'm developing on a Samsung Galaxy Next device, using a 3G USIM from a
UMTS mobile operator.

I need to detect the following user settings:
- If set "Use only 2G networks (Saves battery)" [Also, I'm aware that
other devices give the option to select 3G only]
- If set "Use packet data (Activate data ntwork"
- If set "Select network operator automatucally"

I've been messing with Settings.System and Settings.Secure but it
seems to me that the info I'm looking for is not there.

-- 
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: Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-5.xml, reason: Connection reset

2011-11-11 Thread kaoutar ben ahmed
hello again :)
i have resolved the problem now, all i did is that i deselected that option
that forces https:// to be http:// so it works ;)
cordially


2011/11/11 kaoutar ben ahmed 

> hello everyone !!
>
> i have this errors shown when i try to add SDK Components through the
> android SDK manager :
>
> Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
> Failed to fetch URL
> http://dl-ssl.google.com/android/repository/addons_list-1.xml,
> reason: Connection reset
> Fetched Add-ons List successfully
> Fetching URL: http://dl-ssl.google.com/android/repository/repository-5.xml
> Failed to fetch URL
> http://dl-ssl.google.com/android/repository/repository-5.xml,
> reason: Connection reset
> Fetching URL: http://dl-ssl.google.com/android/eclipse/addon.xml
> Failed to fetch URL http://dl-ssl.google.com/android/eclipse/addon.xml,
> reason: Connection reset
> Done loading packages.
>
> i not using a proxy server and i deactivated my firewall and my
> antivirus but in vain :s
>
> any ideas?
>

-- 
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: Does android 4.0 ice cream sandwich support arabic natively (properly) ?

2011-11-11 Thread Mohammad Ghames

The Arabic works just perfect :)

http://www.youtube.com/watch?v=SfVlxJti6vA

On Nov 6, 4:56 pm, AhmadOOka  wrote:
> The emulator displaysarabicperfect. Thanks.
>
> On Nov 6, 1:37 am, AhmadOOka  wrote:
>
>
>
>
>
>
>
> > Thanks. Ill try that
>
> > On Nov 1, 2:36 am, Zsolt Vasvari  wrote:
>
> > > Why don't you download the SDK and run the Emulator.  You can see it
> > > for yourself.
>
> > > On Nov 1, 8:21 am, AhmadOOka  wrote:
>
> > > > Any screenshots ?
>
> > > > On Oct 21, 11:03 pm, AhmadOOka  wrote:
>
> > > > > Can anybody provide a screenshot of anyarabicwebsite on 
> > > > > stockicecreamsandwichex. Aljazeera.net
>
> > > > > On Oct 21, 8:46 pm, Romain Guy  wrote:
>
> > > > > > We greatly improvedsupportfor BiDi text inAndroid4.0, both display 
> > > > > > and
> > > > > > editing.
>
> > > > > > On Thu, Oct 20, 2011 at 6:58 AM, AhmadOOka  
> > > > > > wrote:
> > > > > > >doesit supportarabicproperly ? Right-to-left and connected
> > > > > > > characters and everything natively ?
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the Google
> > > > > > > Groups "AndroidDevelopers" group.
> > > > > > > To post to this group, send email 
> > > > > > > toandroid-develop...@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
>
> > > > > > --
> > > > > > Romain Guy
> > > > > >Androidframework engineer
> > > > > > romain...@android.com- 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] Android operating system

2011-11-11 Thread pavan kumar
1) How android operating system different from other operating system?
2) What are the advantages that we have with this operating system?
3) How the hardware parts supports. What is the basis for it.
Suggest me a site to make me build hardware parts.

-- 
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] problem with the indefinite service

2011-11-11 Thread phannguyen
Dear all,
My app has an activity A and i want to create MyService which can run
in background indefinitely. So from activity A, i call start myservice
as following:
Intent intent = new Intent(getBaseContext(), MyService.class);
startService(intent);

I also want to pass data object from Activity A to MyService during
the running time of myservice, so i bind Activity A to MyService as
below :
bindService(new Intent(ActivityA.this, MyService.class), mConnection,
0);
with mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className,
IBinder service) {
 //get binder and send data to myservice
}
In onStop event of Activity A i call unbindService to my service and
call bindService in onStart event.
MyService work well after 3days. i let my android phone run during
3days to test myservice without turning my phone off.
But i got problem with myservice after 3days. myservice still run in
background. i knew this because i saw myservice in list of services
return from ActivityManager.getRunningServices(Integer.MAX_VALUE). But
the problem is that Activity A cannot bind to MyService anymore. i
cannot bind Activity A to MyService and i cannot pass data from
Activity to service as well.

Activity A can only bind to MySerice by calling startService(new
Intent(getBaseContext(), MyService.class)) again.
So what wrong with myservice? it's still running in background but
Activity A cannot bind to it. i dont want to call startService() again
because this is an indefinite service. Assuming that i have to call
startService() again, i dont even know that when and where i will call
startService() again.

Please, android developers are working on android core at google
please help me explain this and show me the way to solve this problem.
Thanks all you so 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] EventHub.cpp - the logic is incorrect

2011-11-11 Thread Videomap
If you look at this Gingerbread code:

// See if this is a keyboard.  Ignore everything in the button
range except for
// gamepads which are also considered keyboards.
if (containsNonZeroByte(key_bitmask, 0,
sizeof_bit_array(BTN_MISC))
|| containsNonZeroByte(key_bitmask,
sizeof_bit_array(BTN_GAMEPAD),
sizeof_bit_array(BTN_DIGI))
|| containsNonZeroByte(key_bitmask,
sizeof_bit_array(KEY_OK),
sizeof_bit_array(KEY_MAX + 1))) {
device->classes |= INPUT_DEVICE_CLASS_KEYBOARD;

device->keyBitmask = new uint8_t[sizeof(key_bitmask)];
if (device->keyBitmask != NULL) {
memcpy(device->keyBitmask, key_bitmask,
sizeof(key_bitmask));
} else {
delete device;
LOGE("out of memory allocating key bitmask");
return -1;
}
}
}

// See if this is a trackball (or mouse).
if (test_bit(BTN_MOUSE, key_bitmask)) {
uint8_t rel_bitmask[sizeof_bit_array(REL_MAX + 1)];
memset(rel_bitmask, 0, sizeof(rel_bitmask));
LOGV("Getting relative controllers...");
if (ioctl(fd, EVIOCGBIT(EV_REL, sizeof(rel_bitmask)),
rel_bitmask) >= 0) {
if (test_bit(REL_X, rel_bitmask) && test_bit(REL_Y,
rel_bitmask)) {
device->classes |= INPUT_DEVICE_CLASS_TRACKBALL;
}
}
}

// See if this is a touch pad.
uint8_t abs_bitmask[sizeof_bit_array(ABS_MAX + 1)];
memset(abs_bitmask, 0, sizeof(abs_bitmask));
LOGV("Getting absolute controllers...");
if (ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(abs_bitmask)), abs_bitmask)
>= 0) {
// Is this a new modern multi-touch driver?
if (test_bit(ABS_MT_POSITION_X, abs_bitmask)
&& test_bit(ABS_MT_POSITION_Y, abs_bitmask)) {
device->classes |= INPUT_DEVICE_CLASS_TOUCHSCREEN |
INPUT_DEVICE_CLASS_TOUCHSCREEN_MT;

// Is this an old style single-touch driver?
} else if (test_bit(BTN_TOUCH, key_bitmask)
&& test_bit(ABS_X, abs_bitmask) && test_bit(ABS_Y,
abs_bitmask)) {
device->classes |= INPUT_DEVICE_CLASS_TOUCHSCREEN;
}
}

we know that support for the joystick is not expected.

In Honeycomb and in Ice Cream Sandwich the support for Joystick is
present,
but even if we have not yet the source code, from sdk 14, we find that
there are no devices that can function as a mouse, keyboard and
joystick together. mouse and joystick are exclusive.
I would like to inform Android developers that there are virtual
devices that can have all these functions together. For example, an
android device that can function as a multifunctional remote control.

I think this thing is very important, make happy the android community
and try to implement the support for these types of devices.

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] android webview not showing redirecting

2011-11-11 Thread vidyasagar sreerama
Hi all

I am using android webview.posturl() method to post to a servlet.

>From the servlet i am doing a http POST to a new url using apache
httpclient 4.0 API which is returning me a

HTTP/1.1 302 removed temporarily response and it is making a http GET
request to another URL in the response header

The problem is my webview  loads until i get HTTP/1.1 302 removed
temporarily response and after that it does not go to the redirected
page.

>From the server log,i can see the redirection happening successfully.

Please go to the following URL where i have posted complete code.

http://stackoverflow.com/questions/8096670/android-webview-not-redirecting-to-get-request-result-after-http-1-1-302-moved-t

please help.

-- 
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] getResourceAsStream and resource matching.

2011-11-11 Thread port443
Hi, I'm trying to use Class.getResourceAsStream for an APK which I
loaded myself via DexClassLoader.

I can load an image if I specify it in full (e.g. "/res/drawable-mdpi/
myimage.png"); this works.

I wonder if there's a way to employ resource matching function of
Android
(see 
http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch)
to make image specification like "drawable/myimage" similar to what we
use in XML layouts?

Reimplementing working mechanism doesn't look the right way :(

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] Multiple L2TP/IPSec Android clients behind same NAT-BOX

2011-11-11 Thread IPSecRider
Hi All,

I am trying to connect multiple Android L2TP/IPSec clients behind the
single NAT-BOX to Openswan VPN.

Here I can see that Android client initiates L2TP session from
ephemeral port value (other than 1701), but this port value is not
getting reflected in quick mode selectors. (At openswan server end,
android L2TP/IPSec client's protocol/port value seen is 17/0). Due to
which only one android client is getting connected.
I did the same exercise with iPhone L2TP/IPSec client. Here in this I
can see the quick mode selector value for protocol/port as 17/51732.
And iPhone also initiates L2TP session from random ephemeral port like
Android L2TP client.
It seems that iPhone client sends its quick mode selectors value in
IKE negotiation while Android client doesn't seem to.

Can you please confirm the above behavior.

-- 
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] Problem in getting Android source code from Google repo

2011-11-11 Thread srinivasan shanmugam
Hi,

As specified in the
i.MX Android R9.4 User Guide

in section
2. Build Android for i.MX
2.1 Get Android Source Code (Android/Kernel/U-Boot)

While getting the Android source code from Google repo, wen i was
executing the  following step:

ubuntu@ubuntu-laptop:~/myandroid$ ./repo init -u
git://android.git.kernel.org/platform/manifest.git -b android-2.2.1_r1



I was facing the below problem while downloading the android-2.2.1_r1
in the terminal window  of ubuntu


Getting manifest ...
   from git://android.git.kernel.org/platform/manifest.git
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git
ubuntu@ubuntu-laptop:~/myandroid$



Could ne body pls kindly do the needful in resolving the above issue
so that i can proceed further



ne help would be greatly appreciated



Awaiting for your replies

Thanks!

Srinivasan

mail id:srinivasan@gmail.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] In getting the kernel source code with the tag of 2.6.35.3:

2011-11-11 Thread srinivasan shanmugam
Hi,

I am facing the below problem in getting the kernel source code from
kernel.org with the tag of 2.6.35.3

ubuntu@ubuntu-laptop:~/IMX_Android$ git clone
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y.git
kernel_imx
Initialized empty Git repository in /home/ubuntu/IMX_Android/
kernel_imx/.git/
fatal: The remote end hung up unexpectedly

Could ne body pls kindly do the needful in resolving the above issue
so that i can get the kernel source code downloaded without ne issues

ne help would be greatly appreciated

Advanced thnks,
Srinivasan
mail id:srinivasan@gmail.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] Re: SMPP over android

2011-11-11 Thread Shire Highlands
Yes. You  Can

On Nov 4, 8:08 am, androidgeek  wrote:
> Can I implement SMPP  (Simple message peer-to-peer) over android. If
> yes, How ?
> Looking for an early reply 
>
> Regards,
> AndroidGeek

-- 
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] Urgent Help required

2011-11-11 Thread chowdary nani
Please how to integrate face book in android.I am trying to do it
using fbconnection/api.jar but i am facing problem in loading the jar

-- 
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] Workarounds for MB200 ADB?

2011-11-11 Thread Dadoh
I have been trying to upload an app I just finished for trial on my
Motorola Cliq (MB200) phone and my PC is telling me that no ADB exists
for this device. Is this true and is there a workaround so that I can
upload my app without publishing it to the market?

Dadoh.

-- 
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] Render camera preview as scaled quad in NDK / OpenGLES2 app

2011-11-11 Thread Droid Dev'r
Hi,

I have an OpenGLES2 app that does some rendering via NDK (similar to
the way the NDK hello-gl2 sample app does it). I want to get the
camera preview as either NV21 or RGB565 and send the bytes via JNI to C
++, update a texture using those bytes, and finally render a quad with
the updated texture. I've converted NV21 as just grayscale at the
moment, since it's easier, and that looks fine on one phone, but on
another phone I get an image that is 1/2 or 1/4 the height, and it
looks duplicated along the width. RGB565 looks "jumpy" on one phone
(it's like the image is offset negative units from the top, and the
offset varies). On the other phone, I get the same "half height,
duplicated width" effect. I'm making sure I lock/unlock a mutex when I
update the texture bytes and when I call glTexImage2D right before
rendering. Could I missing some other thread problem?

Right now, my GLSurfaceView implements surfaceCreated, surfaceChanged,
and surfaceDestroyed. On surfaceChanged(), the camera parameters are
set and the preview is started. My renderer calls a JNI function on
onDrawFrame() which does the actual rendering. The camera buffer's
data is sent via JNI on the PreviewCallback's onPreviewFrame().

Any help is appreciated :)

-- 
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] Standalone interactive logcat viewer/inspector (free)

2011-11-11 Thread radin


TreKing wrote:
> On Wed, Nov 9, 2011 at 2:31 PM, Stephen Uhler  wrote:
>
> > I got frustrated one day inspecting logcat output when I couldn't get
> > eclipse to start, so I wrote a stand-alone logcat inspector (in Tcl/Tk),
> > which I now use in preference to the one in eclipse.
>
>
> Any reason you didn't just use DDMS?
>
> -
> 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


[android-developers] regarding view

2011-11-11 Thread supraja raghavendran
hi,

 am facing problem with view in my project. the view is taking
different coordinate (x,y) value when i checked in logcat . it is not
matching with my xml (x,y)value. please tell me what s the problem
be..i am having doubt whether it is taking layout value also.

regards
supraja

-- 
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] Swipe gesturing to switch between tabs

2011-11-11 Thread venkata srinivas namburi
Hi Bishan,

I guess there is sample application using fragments,which walks you through
the swipe gesture in tabs( FragmentTabsPager.java).

On Fri, Nov 11, 2011 at 3:09 PM, Bishan  wrote:

> How to add swipe gesturing to switch between tabs in android ?
>
> --
> 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




-- 
Thanks and Regards,
Srinivas.

-- 
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] DatePicker in a fragment

2011-11-11 Thread Kyle
I am attempting to use a datepicker dialog based on the example at
http://developer.android.com/resources/tutorials/views/hello-datepicker.html.
This is obviously for an activity, but I'm trying to implement the
same functionality in a fragment.  Using the code from the example
won't work.  By this, I mean the following code snippet does not
actually open the dialog:

...
mPickDate = (Button) mRootView.findViewById(R.id.button_leave_date);

// add a click listener to the button
mPickDate.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
mActivity.showDialog(DATE_DIALOG_ID);
   }
});
...

After reading various sources online, I know "showDialog" is
deprecated and the recommendation is to use the DialogFragment.
However, is there an option to generate a date picker dialog with this
implementation?  I've been unable to find any good examples of anyone
trying this - so if there are resources available to merge the
(deprecated) example on the Android Developer web site with an actual
DialogFragment implementation, I would really appreciate 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] Make voice calls to use a self audio file instead of microphone output

2011-11-11 Thread Suresh
I am trying to implement some kind of voice
cryptography over a gsm connection (without modifing any gsm related
codecs, we render pure audio which gets transmitted via gsm). Is it
possible to initiate a voice call and transmit our generated audio
signal (means bypassing the microphone as the primary audio source for
that call)?
I write this because I'm slightly worried after reading some posts on
this list/group which states that the android.telphony APIs are
private and can't be called from processes outside the the telephone
subsystem.

-- 
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] Google Tv + Android - > SIP/VOIP (android.software.sip)

2011-11-11 Thread tillegomezz
In the documentation of Google Tv says:

"The following Android software features are not supported in the
Google TV platform:
SIP/VOIP (android.software.sip)."

However in the last days Google Tv updated its version to "HoneyComb
3.1"

My question is:
with this new version can I use "android.software.sip" in this moment?

thnks :)

-- 
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 the IME in fullscreen?

2011-11-11 Thread llxwd008
Hi,

I run my android game in landscape mode, there is only one view which
extends SurfaceView. When touch a certain rect area, I want to call
the IME.

InputMethodManager m_inputMethodManager;
m_inputMethodManager =
(InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
m_inputMethodManager.showSoftInput(this,
InputMethodManager.SHOW_FORCED);
...
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
return new MyInputConnection(this, true);//my InputConnection
class
}

the code works, softKeypad displayed but not fullscreen, I need a
fullscreen IME. When debug, the test method,
m_inputMethodManager.isFullscreenMode() return false, but I can't find
any way to set it true.
How can I call the IME in fullscreen mode?

-- 
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] Google Tv

2011-11-11 Thread tillegomezz
is it possible use "SIP/VOIP (android.software.sip)" with google tv
2.0

thnks

-- 
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] DatePicker in a fragment

2011-11-11 Thread Kostya Vasilyev

How about using a DatePicker view inside the dialog fragment?

http://developer.android.com/reference/android/widget/DatePicker.html

-- Kostya

11.11.2011 22:55, Kyle пишет:

After reading various sources online, I know "showDialog" is
deprecated and the recommendation is to use the DialogFragment.
However, is there an option to generate a date picker dialog with this
implementation?


--
Kostya Vasilyev

--
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: TFTP (Trivial File Transfer Protocol) support

2011-11-11 Thread Diego Torres Milano
Are you trying to network boot Android in a similar way as PXE/EFI
does ?
If this is the case you won't be using Android SDK.

On Nov 11, 12:12 am, "petr.maza...@mautilus.com"
 wrote:
> Well, good question actually!! I will check if this is available.
>
> The reason why I am asking for TFTP is that (according to
> specification) our client is used in the internal network only. It
> broadcast the DHCPINFORM (IETF extension to the legacy DHCP). The DHCP
> returns back the TFTP address for downloading the set of
> configurations. But it might be that the some http server is running
> there as well. The DHCPINFORM/TFTP is pretty standard way how the
> Linux OS boots from network, so the idea was to reuse this for other
> purposes. Not that normally we will use DNS, but it has limited
> configuration options, basically supports only domain name to port
> resolving and even port cannot be obtained this way as far as I know.
>
> Regards,
> STeN
>
> On Nov 9, 6:10 pm, Diego Torres Milano  wrote:
>
>
>
>
>
>
>
> > Why don't you just use HTTP ?
>
> > On Nov 9, 1:41 am, "petr.maza...@mautilus.com"
>
> >  wrote:
> > > According to my information the SDK does not support directly the
> > > TFTP.
>
> > > Are the any other ways how to deal with the missing API? Was anybody
> > > tried to use org.apache.commons.net.tftp? Are there any experiences
> > > how difficult is to run this on Android?
>
> > > Any other GPL solutions for TFTP?
>
> > > Thanks, STeN

-- 
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 access class file

2011-11-11 Thread Mark Murphy
On Fri, Nov 11, 2011 at 6:47 AM, Ketan  wrote:
> I want to acess class file from bin folder in android.
> I was doing it using
> File f = new File("/bin/filename.class");
>
> Its working fine in java but in android giving path doesnt work,,, so
> please suggest me other way to access class file of any java file.

This is not possible. For starters, there is no .class file in an Android APK.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-11-11 Thread Peter Nielson
Here are the drivers for the Xperia Play/Arc
http://dl.dropbox.com/u/31832369/Xperia_PLAY_neo_arc_acroIS11s_acroSO-02C_USB_drivers.zip
Good luck,
Peter

On Fri, Nov 11, 2011 at 1:27 AM, Michel  wrote:

> Hello,
>
> I am an Android Windows developer using Eclipse and I would like to
> develop applications for my XPeria Active. Since to connect to it I
> need to install the appropriate OEM USB driver...
>
> Does anyone know if there is a compatible OEM USB driver from another
> XPeria phone, as Sony hasn't yet released (apparently) any specific
> driver for the Active model?
>
> Your help would be greatly appreciated,
> Thanks!
> John
>
> --
> 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] In getting the kernel source code with the tag of 2.6.35.3:

2011-11-11 Thread Mark Murphy
Step #1: Visit http://source.android.com

Step #2: Click on the Community tab

Step #3: Find a Google Group relevant for firmware questions like this one

Step #4: Ask your question there

On Fri, Nov 11, 2011 at 4:57 AM, srinivasan shanmugam
 wrote:
> Hi,
>
> I am facing the below problem in getting the kernel source code from
> kernel.org with the tag of 2.6.35.3
>
> ubuntu@ubuntu-laptop:~/IMX_Android$ git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y.git
> kernel_imx
> Initialized empty Git repository in /home/ubuntu/IMX_Android/
> kernel_imx/.git/
> fatal: The remote end hung up unexpectedly
>
> Could ne body pls kindly do the needful in resolving the above issue
> so that i can get the kernel source code downloaded without ne issues
>
> ne help would be greatly appreciated
>
> Advanced thnks,
> Srinivasan
> mail id:srinivasan@gmail.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
>



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Google Tv

2011-11-11 Thread Mark Murphy
No, sorry:

http://stackoverflow.com/questions/8084623/google-tv-sip-voip-android-software-sip

On Thu, Nov 10, 2011 at 1:01 PM, tillegomezz  wrote:
> is it possible use "SIP/VOIP (android.software.sip)" with google tv
> 2.0
>
> thnks
>
> --
> 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
>



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Make voice calls to use a self audio file instead of microphone output

2011-11-11 Thread Mark Murphy
On Thu, Nov 10, 2011 at 9:37 AM, Suresh  wrote:
> I am trying to implement some kind of voice
> cryptography over a gsm connection (without modifing any gsm related
> codecs, we render pure audio which gets transmitted via gsm). Is it
> possible to initiate a voice call and transmit our generated audio
> signal (means bypassing the microphone as the primary audio source for
> that call)?

No, except perhaps in speakerphone mode. You have no access to the
in-call audio streams.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] getResourceAsStream and resource matching.

2011-11-11 Thread Dianne Hackborn
This uses the same resource matching as all other resources.  The only
difference is that it can't of course scale your stream to adjust for
differences in density.

On Fri, Nov 11, 2011 at 7:35 AM, port443  wrote:

> Hi, I'm trying to use Class.getResourceAsStream for an APK which I
> loaded myself via DexClassLoader.
>
> I can load an image if I specify it in full (e.g. "/res/drawable-mdpi/
> myimage.png"); this works.
>
> I wonder if there's a way to employ resource matching function of
> Android
> (see
> http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch
> )
> to make image specification like "drawable/myimage" similar to what we
> use in XML layouts?
>
> Reimplementing working mechanism doesn't look the right way :(
>
> 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
>



-- 
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

[android-developers] Re: Urgent help required

2011-11-11 Thread Android2ee
@Daniel,
you're a great guy (smart, kind, precise and exact)...
Thanks.

On Nov 11, 3:43 pm, Daniel Drozdzewski 
wrote:
> On 11 November 2011 14:23, Sunil Mishra  wrote:
>
> > @skink and @Dainel
>
> > According to me URL translation is like follows
>
> > 1. Read the html file before sending
> > 2. Grab the relative url
> > 3. Convert it to absolute url
> > 4. Write the html file with the converted absolute url
>
> > Please correct me if i am going wrong. Or provide me a link which
> > explains about URL translation.
>
> Not quite.
>
> Have a look here:http://en.wikipedia.org/wiki/Web_server#Path_translation
>
> URL translation happens for every HTTP request.
>
> User at the browser knows only URL. Http server knows how to translate
> the URL to a file on a file system, in order to serve it back to the
> client.
>
> Http server serves a web page as is. No URL rewriting here.
>
> It is the browser, that upon receiving of a given page, in subsequent
> requests demands all referenced resources (images, css, js, ...).
>
> In those subsequent requests, server has to translate every URL to the
> path of a file, that the user requested.
>
> That is it.
>
> Daniel
>
>
>
>
>
>
>
>
>
>
>
> > On Nov 11, 6:51 pm, skink  wrote:
> >> On Nov 11, 2:43 pm, Sunil Mishra  wrote:
>
> >> > As a workaround i tried storing the image in app_images folder in
> >> > sdcard and trying to provide the url of that path. But still the
> >> > issues exists. Is there any other work around possible??
>
> >> > And do you have any clue
>
> >> > On Nov 11, 5:18 pm, Daniel Drozdzewski 
> >> > wrote:
>
> >> Daniel already gave you an answer:
>
> >> To achieve this, your server has to do
> >> translation from URL
> >> 'images/ topWrapper-bg.jpg ' to a file
> >> path within your storage
> >> '/yourstorage/ yourwebserver/
> >> wwwroot/webisteA/ images/
> >> topWrapper-bg. jpg'.
>
> >> 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
>
> --
> 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] Re: Obsoleting 1.5

2011-11-11 Thread jtoolsdev
One might wonder how many of those 1.5 devices listed in statistic are 
really still active?  I have a smattering of those but my apps don't do 
anything currently that would cut them out anyway.  I do have an different 
APK for 10" tablets where I can use a full layout with fragments rather 
than the tabbed display in the usual version.  The tabbed version was large 
and absurd looking on a 10" tablet.  However someone with a 7" Honeycomb 
will get that display cropped which I don't want.  So far the 
requiresSmallestWidthDp="720" doesn't filter at least on the Market.  So I 
guess I need to do "yet another" APK for the 7" Honeycomb tablets that 
would be tabbed.  Then we have the Ice Cream Sandwich issues.  It seems 
like multiple APKs need a bit more thought put into support.

-- 
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: Obsoleting 1.5

2011-11-11 Thread Kostya Vasilyev
Why not make different layouts within the fragment-based .apk for 7" (or 
6.9" or 7.1") devices based on the new, 3.2 and 4.0 resource qualifiers?


12.11.2011 1:30, jtoolsdev пишет:
One might wonder how many of those 1.5 devices listed in statistic are 
really still active? I have a smattering of those but my apps don't do 
anything currently that would cut them out anyway. I do have an 
different APK for 10" tablets where I can use a full layout with 
fragments rather than the tabbed display in the usual version. The 
tabbed version was large and absurd looking on a 10" tablet. However 
someone with a 7" Honeycomb will get that display cropped which I 
don't want. So far the requiresSmallestWidthDp="720" doesn't filter at 
least on the Market. So I guess I need to do "yet another" APK for the 
7" Honeycomb tablets that would be tabbed. Then we have the Ice Cream 
Sandwich issues. It seems like multiple APKs need a bit more thought 
put into support.


--
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 


--
Kostya Vasilyev

--
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: Urgent Help required

2011-11-11 Thread Spiral123
use the Facebook android SDK instead plz.

Thanks in advance.

On Nov 11, 11:27 am, chowdary nani  wrote:
> Please how to integrate face book in android.I am trying to do it
> using fbconnection/api.jar but i am facing problem in loading the jar

-- 
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: Urgent Help required

2011-11-11 Thread Ali Chousein
It's pretty straightforward:
https://github.com/facebook/facebook-android-sdk

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994


On Nov 11, 5:27 pm, chowdary nani  wrote:
> Please how to integrate face book in android.I am trying to do it
> using fbconnection/api.jar but i am facing problem in loading the jar

-- 
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: Intensity of vibration in Xperia arc

2011-11-11 Thread Danny.Zubiate
Weird, works if I type it in the browser but not if I click the link.
Try this one: 
http://www2.immersion.com/developers/index.php?option=com_content&view=category&layout=blog&id=110&Itemid=503

Also, Dianne is correct that the particular hardware used to create
vibration varies between devices and so the same vibration call may
feel quite different on different devices.

Danny Zubiate
Developer Support Engineer
Sony Ericsson Mobile Communications

On Nov 10, 5:06 pm, Zsolt Vasvari  wrote:
> > You can find it at:www.immersion.com/MOTIVandroid
>
> Error 404

-- 
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: Use the Gyroscope to improve the orientation

2011-11-11 Thread gjs
Hi,

hhenne - great insight & explanation thanks.

Regards

On Nov 12, 3:35 am, hhenne  wrote:
> Hi again,
>
> In my app, I am only interested in pitch and roll - not in yaw.
>
> The accelerometer can measure static pitch and roll (because of the
> gravity) - but not static yaw.
> Acceleration caused by movements are just unwanted noise in my app and
> is filtered away by a usual digital Lowpass filter.
>
> The Gyro cannot measure static pitch and roll and not static yaw
> either, It can only measure angular velocity - changes in pitch, roll
> and yaw.
> To convert angular velocity to angle, you have to use digital
> integration. But, because small errors would cause the computed angles
> to slowly drift away, you have to filter the slow variations away -
> that is done by a digital highpass filter. You can say that is
> actually to opposite working filters, but it is the correct way.
>
> And now the computed gyro signal cannot be used for detecting static
> pitch, roll and yaw because the static part is filtered away. But then
> it can be combined with the lowpass filtered accelerometer, simply
> adding the two signals, to get fast and correct detection of pitch and
> roll. That means if you make a sudden rotation of the device the
> signal should change from one level to the other with a small rise
> time and no overshoot. in signal terms the frequency response of the
> transfer function is linear from DC to around 5 hz.
>
> When you are interested in yaw, but not pitch and roll, you have to
> replace the accelerometer with the magnetic sensor. As mentioned by
> gjs, it cannot help you overcome magnetic interference. But it should
> be possible to get a much smoother and faster response by using
> magnetic sensor and gyro in combination than by using the magnetic
> sensor alone.
>
> I have spend a lot of time on Kalmann filters, whithout producing
> results worth the efforts. What you see in my keyboard app is the
> first shot of the 'complementary filter design' sketched above - and
> it only took me a few hours to implement. All right  - it is not
> perfect yet - for instance I need to take into account the variations
> in sample frequencies among the different sensors and also from device
> to device and from time to time. Never the less it was a great
> improvement from using the accelerometer alone. The same app runs on
> devices, only having an accelerometer. So if you have got two devices,
> and only one of them has a gyro, you can see and feel the
> difference.
>
> Hardy Henneberghttp://www.maxikeys.com
>
> On Nov 11, 3:30 am, gjs  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am only suggesting you use integration ( sum & 'average' last N
> > measurement over some short period of time ) for the compass/azimuth -
> > however you decide to get that data - just to smooth the data, so
> > these filtered reading don't jump around so much (this has got little
> > or nothing to do with accuracy of the sensors).
>
> > Then you might use the gyroscope &/or acceleration to detect relative
> > movement of the device, is it currently still or moving, to alter the
> > integration you are doing with the compass/azimuth, eg to reset or
> > change value of N mentioned. Kalman Filters are often mentioned here
> > as a solutionhttp://en.wikipedia.org/wiki/Kalman_filter
>
> > If you want high accuracy you will probably need to use external high
> > accuracy IMU / compass sensor devices. Even then you won't necessarily
> > get around external magnetic interference.
>
> > Regards
>
> > On Nov 10, 10:17 pm, Ferro Francesco 
> > wrote:
>
> > > I know what is an integration and How to do it. What I don't know it's 
> > > what
> > > do I do with the result? How can i combine is with the compass value ?

-- 
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   >