[android-developers] Re: SQLite Collate UNICODE - not case sensitive in ICS??

2012-03-16 Thread Zsolt Vasvari
Create a small test case and submit it to b.android.com 

On Friday, March 16, 2012 12:51:34 PM UTC+8, Grunthos wrote:

 On Mar 16, 2:29 pm, Zsolt Vasvari zvasv...@gmail.com wrote: 
  I don't know I always do a LOWER() just to be safe... 

 While that works, it is roughly 25% slowerwhich is not something I 
 can readily afford. 

 I'd be much happier if there was a known bug (to be fixed) or a flag I 
 could set on the database which defined how the unicode collator 
 should be set up. 


-- 
You received this message because you are subscribed to the Google
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: SQLite Collate UNICODE - not case sensitive in ICS??

2012-03-16 Thread Grunthos
An entire android app? Or will just a demo class do?


On Mar 16, 5:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 Create a small test case and submit it to b.android.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: ScrollView resize issue with LinearLayout

2012-03-16 Thread Mansoor


Please give some suggestion i am stuck

-- 
You received this message because you are subscribed to the Google
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 can I get contact name with his/her number

2012-03-16 Thread deepu
How can I get contact name with his/her 
numberhttp://stackoverflow.com/questions/6009852/how-can-i-get-contact-name-with-his-her-number

I'm trying to develop a simple app using Android Scripting and Python.

Now, I have a phone number, and I want to find out which contact has that 
number. I can do a contactsGet() and search for numbers, but so many 
programs uses that feature that, I think there is an easier way for that.

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

[android-developers] Pinch and Zoom of Webview

2012-03-16 Thread B.Arunkumar
Hi,

is it possible to somehow program the pinch and zoom as in Webview
when we use an imageview embedded in a scrollview and
horizontalscrollview? The Pinch and Zoom effect is not as smooth as
what we find in WebView. How do we incorporate the bouncing effect as
in WebView?

Thank you,
B.Arunkumar

-- 
You received this message because you are subscribed to the Google
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: SQLite Collate UNICODE - not case sensitive in ICS??

2012-03-16 Thread Grunthos

FWIW, I created issue 27053: 
http://code.google.com/p/android/issues/detail?id=27053

This code snippet was included; I will probably end up using it to
test the phone when the app first runs. Ugh.


package com.some.name;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public class UnicodeBroken {
public static boolean isBroken(SQLiteDatabase db) {
db.execSQL(Drop Table If Exists unicode_broken);
db.execSQL(Create Table unicode_broken (f text collate 
UNICODE, i
int));
db.execSQL(insert into unicode_broken values ('a', 1));
db.execSQL(insert into unicode_broken values ('A', 2));
Cursor c = db.rawQuery(Select * from unicode_broken order by f
collate UNICODE, i, new String[] {});
try {
c.moveToFirst();
String s = c.getString(0);
return !s.equals(a);
} finally {
c.close();
}
}
}

-- 
You received this message because you are subscribed to the Google
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] Need help on reading the html source of a page

2012-03-16 Thread chowdary nani
Hi,
as i dont know any thing about php script and java script.
in my html code the first page is redirecting to second page
i need to read the second page source code in i tried using the code in the
link using that i am reading the first page source
i amno getting the second page source code so that i am asking to extend
some more help


following is the code i am trying
 String url = http://ncpo.cc/test/example.php;;

Button login;
org.apache.http.HttpResponse response;
WebView mWebView;

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.openingwebpage);
mWebView = (WebView) findViewById(R.id.webView1);
Log.d(Calc, gghfhfhf);
mWebView.setWebViewClient(new HelloWebViewClient());
Log.d(Calc, gghfhfhf ghgfhhg);
mWebView.getSettings().setJavaScriptEnabled(true);
Log.d(Calc, gghfhfhfghjghjgjhggkhljjk;kl'');
mWebView.clearCache(true);

mWebView.setWebChromeClient(new WebChromeClient());
Log.d(Calc, gghfhfhf  swathi  1);

mWebView.addJavascriptInterface(new HtmlHandler(), HTMLOUT);
//
mWebView.loadUrl(javascript:window.HTMLOUT.processHTML('head'+document.getElementsByTagName('html')[0].innerHTML+'/head'););
mWebView.loadUrl(url);

}

private class HelloWebViewClient extends WebViewClient {

@Override
public void onPageFinished(WebView view, String url) {
// TODO Auto-generated method stub
super.onPageFinished(view, url);
//
mWebView.loadUrl(javascript:window.HTMLOUT.processHTML('head'+document.getElementsByTagName('html')[0].innerHTML+'/head'););

}

}

final class HtmlHandler {
public void processHTML(String html) {
// process the html as needed by the app
Log.d(dgdffghgh, swathi in hyderabad);
Get_Webpage obj = new Get_Webpage(url);
Log.d(swathi, gghfhfhf  swathi
loading);
String source = obj.get_webpage_source();

Log.d(html loading, source);
}
}
String html = ;


String line = null;
public class Get_Webpage {

public String parsing_url = ;

public Get_Webpage(String url_2_get) {
parsing_url = url_2_get;
}



public String get_webpage_source() {
try {
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(parsing_url);
HttpResponse response = client.execute(request);
InputStream in = response.getEntity().getContent();
BufferedReader reader = new BufferedReader(
new InputStreamReader(in));
StringBuilder str = new StringBuilder();
while ((line = reader.readLine()) != null) {
str.append(line);
}
in.close();
html = str.toString();
} catch (ClientProtocolException e) {

} catch (IOException e) {

}



return html;
}

}

}














On Fri, Mar 16, 2012 at 10:51 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Hi Mark Murphy,
 will you please help me in reading html source code


 Ummm... he already helped you.  Follow the link he gave you and try to
 implement some of the stuff that is recommended in that post.

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



 On Thu, Mar 15, 2012 at 10:56 PM, chowdary nani 
 naveenneeli...@gmail.comwrote:

 Hi Mark Murphy,
 will you please help me in reading html source code


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


-- 
You received this message because you are subscribed to the Google
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 Accessory app?

2012-03-16 Thread brilliant winger
Hi

I will try to create Android applications and accessories.
And, I will use Android accessory product.

I have a few questions.

Since last year, Google announced adk, many developing Accessories happened?

I could not find the Accessory product information for Android on the 
website.

If you know the commercial product, please report it.
I want to study it.



Thanks.




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

[android-developers] Re: Android Accessory app?

2012-03-16 Thread Zsolt Vasvari
Hello Mr. Brilliant, this forum has nothing to with the ADK.  Find a forum 
that does and post there.

On Friday, March 16, 2012 3:13:01 PM UTC+8, brilliant winger wrote:

 Hi

 I will try to create Android applications and accessories.
 And, I will use Android accessory product.

 I have a few questions.

 Since last year, Google announced adk, many developing Accessories 
 happened?

 I could not find the Accessory product information for Android on the 
 website.

 If you know the commercial product, please report it.
 I want to study it.



 Thanks.






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

Re: [android-developers] How can I get contact name with his/her number

2012-03-16 Thread asheesh arya
juzz go through this link..might be it help you stay blessed stay
healthy
http://www.pocketmagic.net/?p=1870

-- 
You received this message because you are subscribed to the Google
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: Change Package name to new one

2012-03-16 Thread hooman os
Also check your manifest. Sometimes it does not update activities, service
and etc
On 15 Mar 2012 07:02, Randil randilpushpana...@gmail.com wrote:

 Thank you very much Chris. I ll try to do in that way.

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

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

Re: [android-developers] How to read the large sized text file

2012-03-16 Thread Narendra Singh Rathore
On Fri, Mar 16, 2012 at 8:06 AM, Miguel Morales therevolti...@gmail.comwrote:

  Try using a buffered input stream.  In other words, stream read the
 file.  You should also know that phones are very limited in memory.
 Loading more than a few MB into memory spells trouble.


I even tried that, but still faced the same exception.

-- 
You received this message because you are subscribed to the Google
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: SQLite Collate UNICODE - not case sensitive in ICS??

2012-03-16 Thread Mark Carter
SQLite was upgraded from 3.6.22 to 3.7.4 for the first Honeycomb release:

http://stackoverflow.com/questions/2421189/version-of-sqlite-used-in-android/4377116#4377116
 

So you may want to verify the problem exists in SDK 3.0, but not in 2.3.3.

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

[android-developers] Re: start application after boot as default application (no home screen)

2012-03-16 Thread MegaDev
thnaks. it works after adding these lines in AndroidManifest.xml
category android:name=android.intent.category.HOME /
category android:name=android.intent.category.DEFAULT /
category android:name=android.intent.category.LAUNCHER /

On Wednesday, March 14, 2012 1:50:20 PM UTC+1, MegaDev wrote:

 hi, 

 I need to start my application as the default and unique application 
 on an android 2.3.3 plateform. 
 that meens no home screen, the user will use the menu and 
 fonctionalities of my application and nothing else. 

 any help about this. 

 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] icecream emulator adb push to sdcard, gallery fails to update

2012-03-16 Thread extrapedestrian
when I push image to icecream emulator sdcard, it doesn't appear in 
gallery. I have to restart emulator to see image in gallery.

-- 
You received this message because you are subscribed to the Google
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: Need help on reading the html source of a page

2012-03-16 Thread Ali Chousein
Well, if you don't know a technology to solve your problem, use the
opportunity and just learn the God damn technology. Others will only
give you guidance. Asking others to do the job for you (even if it's
VEERY URGENT) is not going to take you anywhere.

The number of messages in which people ask others do the job for them
is becoming higher and higher. Something which I personally find very
concerning.

-- 
You received this message because you are subscribed to the Google
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] Fwd: error in service call

2012-03-16 Thread Mulsaniya Bhadresh
-- Forwarded message --
From: Mulsaniya Bhadresh bhadresh.ha...@gmail.com
Date: Wed, Mar 14, 2012 at 11:52 PM
Subject: error in service call
To: android-developers@googlegroups.com


03-15 06:48:27.386: W/System.err(458): java.lang.IllegalStateException:
Target host must not be null, or set in parameters. scheme=null, host=null,
path=
http://192.168.1.4:55106/Waiter_json.aspx?MethodName=InsertOrderForTableInstanceId=1CustomerId=1TableID=7quantityAndItemID=[{
comment:abc,id:1,Quantity:5}]




hello i got this type of error when my service is call i don't know
what is the problem.

can anybody help me what is the problem here?

-- 
You received this message because you are subscribed to the Google
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] Connectivity Manager does not return Active network information

2012-03-16 Thread sha m
Hi Mark and Robert ,
   Thanks a lot for the information.
I had my bluetooth active and connected to another mobile, but still
returned null in API level 7.
So it means this can be verified only above API level 13?

My intention was to check the VPN connection.
Could you please guide me on that?

Regards,
Sha


On Thu, Mar 15, 2012 at 9:22 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Mar 15, 2012 at 11:48 AM, Robert Greenwalt
 rgreenw...@google.com wrote:
  In some situations (reverse tethering) BT can be the active network, but
 as
  Mark says you'd have to have that turned on and connected.

 Oops, I forgot they added that in API Level 13. Thanks for pointing that
 out!

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

 Android App Developer Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 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] Google map: getting exception when trying to get location name of clicked co-ordinates

2012-03-16 Thread Narendra Singh Rathore
Hi all,
I am using google map in my application.
Till now, I have successfully shown the map with marker, as well as *got
the clicked co-ordinates*, with the help of boolean method
*onTouchEvent*of MapOverlay extending com.google.android.maps.Overlay.

Now, I am trying to get the location name(s) of the point where I have
clicked, but *facing IOException* in that.


Here is my onTouchEvent method as follows:

@Override
public boolean onTouchEvent(MotionEvent event, MapView mapView)
{
//---when user lifts his finger---
if (event.getAction() == 1) {
GeoPoint p = mapView.getProjection().fromPixels(
(int) event.getX(),
(int) event.getY());
Geocoder geoCoder = new Geocoder(
getBaseContext(), Locale.getDefault());
try {

* ListAddress addresses = geoCoder.getFromLocation(**
p.getLatitudeE6() / 1E6,
p.getLongitudeE6() / 1E6, 1);*

Toast.makeText(getBaseContext(), after first line,
Toast.LENGTH_SHORT).show();

String add = ;
if (addresses.size()  0)
{
for (int i=0; iaddresses.get(0).getMaxAddressLineIndex();
i++)
add += addresses.get(0).getAddressLine(i) + \n;
}
Toast.makeText(getBaseContext(), add,
Toast.LENGTH_SHORT).show();
}
catch (IOException e) {
Toast.makeText(getBaseContext(), error: +e,
Toast.LENGTH_SHORT).show();
e.printStackTrace();
}
return true;

}
return false;
}

The bold line throwing the IOException. *java.io.IOException: Service not
Available*.

Please help me to get, where I am wrong, as well as some helpful suggestion
to achieve what I want.

-- 
You received this message because you are subscribed to the Google
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] ListView row animation not shown because of a bad definition of layout width and height.

2012-03-16 Thread Lorie Pisicchio
Hello,

I have a LinearLayout containing a ListView. My ListView is filled-in with 
a custom CursorAdapter containing some key - value data.
My database keys are stable, but values randomly changes, and I want to 
display animations on the ListView rows which value has just changed (flash 
the background of the TextView) 
I have created and tested the animation. It works fine.
I use cell recycling for my ListView, with the ViewHolder optimization.

Something very strange happens : when I start my application, the first 11 
rows of the ListView are shown on the screen. On these elements, my 
animations are not visible. I can see the values are updated, but the 
TextView doesn't flash.
When I scroll down the list, the cells from 12 to the end of the list are 
displaying the animation as expected.

I was fighting with this issue, trying to understand what happens for hours 
without success. 

I ended up watching this video http://www.youtube.com/watch?v=wDBM6wVEO70 
from 
Romain Guy and Adam Powell (which, by the way, is great for understanding 
how to use ListView). At the end of the video, Romain talks about the 
layout height definition for the list view, that should not be set to 
wrap_content. So I checked my ListView definition. It has the right 
fill_parent for both width and eight.
But then, I noticed that the LinearLayout embedding my ListView had defined 
both width and height to wrap_content (which doesn't make sense in this 
case).
So I changed it to fill_parent for both width and height, and restart my 
application.
A there : magic! The animation is started, even for the first elements in 
the list!!

I'm happy my problem is solved, but I would love to have an 
expert's explanation on why this happened..

I have tested my code on both emulator and real device, from version 2.1 to 
4.0.3.

Regards,
L.P.

-- 
You received this message because you are subscribed to the Google
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 get Streetview in mapactivity

2012-03-16 Thread Android Developer
Hi All,

StreetView method in now depricated in mapactivity. how do we display
the map with streetview.



Thanks
Mani

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


Re: [android-developers] How to get Streetview in mapactivity

2012-03-16 Thread Narendra Singh Rathore
On Fri, Mar 16, 2012 at 4:15 PM, Android Developer
c2dmdevelo...@gmail.comwrote:

 Hi All,

 StreetView method in now depricated in mapactivity. how do we display
 the map with streetview.


Add this to your code:

*mapView.setStreetView(true); *

-- 
You received this message because you are subscribed to the Google
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] Alert Dialog surface uses relative coordinates on canvas

2012-03-16 Thread Android007
Hi,
I am not sure, but I think my previous post was not published.. so I am 
sending it again.
I have a simple program that opens up an alert dialog whenever a user
presses a button (yes, tis a VERY simple program...).
I can see that whenever the dialog appears a new canvas is created (I
made a few changes to the platform code that notify me whenever this
happens).
So far, whenever a drawing (any drawing) was performed on the canvas,
it was using absolute coordinates , HOWEVER, when the dialog appears,
all canvas operations are performed on relative coordinates (relative
to the dialog box).
I am not sure why this happens. .
- Why is the drawing of a dialog using a different coordinate system
(while buttons, lists etc. don't)?
- How can the canvas instance know that it is now drawing to some
position not relative to the normal screen coordinates?
- I've also noticed that gravity affects the position of the dialog
box. Who is in charge of these gravity calculations (not the canvas
anyway)?
- To what surface does this canvas belong? I could not find any
indication of new surface creation when the dialog was created.


I think that understanding this would finally unveil this major
building brick I am missing in the Android views architecture.

Thanks a lot

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

[android-developers] Contact search

2012-03-16 Thread disha
Hi,

   Need help in addressbook contact search.
 So the requirement is, contact search has to be done based on the
Contact display name or emailid or phone number.

Is there any way, where i can use only one query to get the contacts,
contact email ids and phone numbers by comparing the search string
with Contact displayname or emailid or phone number?

-- If display name contains/matches the search string then display all
those conatcts emailds and phone numbers
---If not displayname, based on email id. Get all contacts and details
whose emailid matches/contains search string
--If not emailid, then based on phone id.Get all contacts and details
whose phone number matches/contains search string


So where clause of the query should include all these three checks.

Right now am doing it with 2 different uris i.e phone and email. Now
displaying first phone numbers list and then emailids. But as per
requirement matching contacts info should be displayed as group.

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] Run Google Places app from web page

2012-03-16 Thread Comp Guy
What is the best/recommended way to start the Google Places application 
from my web page?  I would like to do this on both Android and IOS mobile 
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: can't find The Device Availability dialog

2012-03-16 Thread cliff
I just went through this and figured out the issue.  You need to 'Activate' 
your .apk file on the APK tab, then the Device dialog appears, and the 
number of devices is updated.  Not very intuitive or obvious.



On Thursday, July 28, 2011 12:58:04 AM UTC-6, martypantsROK wrote:

 This is my first app and on uploading it tells me my app is available 
 to 0 devices. Apparently, it is 
 devices with these features, as defined in your application 
 manifest  Well, no where in the developer resources does it tell me 
 how to put devices into my manifest and there is not a link on the 
 Developer Console. This is only a link to learn more that tells me I 
 can click on a Show Devices link back on the DC that doesn't 
 exist. 

 So, how can I either 
- put devices in my manifest 
  or 
   - find the hidden link to the device list? 



-- 
You received this message because you are subscribed to the Google
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 offline synchronizing app/tool

2012-03-16 Thread arkiver
Hello,
I am looking for an offline synchronizing tool/app/client for android
devices.
It can be used to take backup of
1. Contacts
2.Messages
3.Photos  Videos
4.Calender.

It should be able to backup this data using one or more of these:
1.USB
2.WIFI
3.BLUETOOTH
4.HTTP

Also, I am looking for such a tool specifically for Linux machines.

The reason for this is to avoid sending data to the cloud during
backup for privacy reasons.

Actually I am developing such a cross platform compatible offline
synchronizing tool myself. But I want to know if this already exists.
I couldn't find anything like this in the market or anywhere else.

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: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-16 Thread David Schreiber
Hello there,

I just implemented the downloader service and have noticed some things (and 
one severe bug). First of all, documentation says the downloader service 
needs a minimum of API level 4. The service provides two different kinds of 
user notifications, one for API level 3+ one for API level 11+ - the latter 
should allow better looking notifications. But...!

Sadly the provided SDK package just tests for the existence of the 
Notification.Builder class, which is available since API level 11. This is 
not enough for setting a progress via the setProgress() method, because 
this method was introduced with API level 14. Thus, devices with an API 
level of 11, 12 and 13 will definitely not be able to use the downloader 
upon fixing this issue.

If you need further information, feel free to ask.

Greetings,
David Schreiber

PS: You have to compile your application (or your downloader package) 
against api level 14+. This should work with all devices (but with the bug 
I described above)

Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia



-- 
You received this message because you are subscribed to the Google
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] Badlogic Framework

2012-03-16 Thread Ghost
Can anyone help me?
 My trouble is that i have searched in google but with no avail, I couldn't 
find the Android Game Framework from badlogic.
I am looking for it because i cant find the 
interface com.badlogic.androidgames.framework.FileIO.
 
Thank You

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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] Run android apps using emulator launched from linux shell

2012-03-16 Thread amit
Hi,

I downloaded the android source code and built it on a remote server
using ssh. I want to make changes to the source code, re-compile, and
test android apps using that built code. My eclipse is installed on my
local ubuntu linux machine. After compiling the source code through
shell, I run the emulator command, and the emulator comes up as
normal.

Now, I have an android app project in eclipse. When I try to run the
app, by selecting the device for running, I do not see the emulator
started from the shell as one of the running devices. My objective is
to run my apps using emulator from shell as I have to make changes to
the OS via shell using ssh.

Can someone please help.

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] Noobie here!! help plz

2012-03-16 Thread BalaJi
Hello  everyone!!

I am really glad to see a group like this. I am sure you are the
people who can help me out here. I am Bala, I am new to programming,
Actually i am a designer, But i need to create a simple application
for android. And i have little knowledge in JAVA. And Someone out
there If you can really help me out, I will be grateful.

Let me explain how the thing should work. The program actually does is
online form filling. The form will be sent to the user on sms request.
and user receives a simple form structure which prompts for their
information. These things gets stored somewere in online storage or
watever.

please give a basic overview of how it can be done. 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: CDMA home carrier

2012-03-16 Thread bkph


On Friday, December 4, 2009 1:45:40 PM UTC-5, Ken H wrote:


 But don't get me started on Android 2.0 and this CDMA stuff. Example: 
 the CdmaCellLocation has two methods (getBaseStationLatitude()  
 getBaseStationLongitude()) which, judging from the name return the LAT/ 
 LON of the site. Great, I'm thinking until I look at the datatype and 
 see that they are both INTs. Which, again, wouldn't be a problem if 
 they said, To get the decimal value divide by 1,000,000, but they 
 don't. Another beautiful mystery is that onSignalStrengthChanged has 
 been depracated, but they don't state what the replacement is. 


The CDMA latitude and longitude is an integer multiple of 1/4 seconds of 
arc (in other words 1/14400 of a degree).
If the value is 'not known' you get 0x7FFF instead.
On Android you can get see this value  directly by 'calling' *#*#4636#*#*
and then selecting 'Phone information  Signal Strength'.
Annoyingly, some carriers (e.g. Verizon Wireless) suppress this value so 
you don't know where the antenna is,
while others (e.g. U.S. Cellular) do provide it (and it is generally 
accurate to a few meters).
Also, femptocells must provide this value (even for Verizon Wireless) --- 
which is what they use the GPS receiver for.

Berthold


 Ken 


-- 
You received this message because you are subscribed to the Google
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] SocketTimeoutException is not thrown if device screen is locked

2012-03-16 Thread Anton
I implemented STUN client which sends requests to STUN server with
specified period and during this period listens for requests from STUN
server:

private void waitForNextRequest(int timeout) {
try {

  byte[] respData = new byte[1024];
  DatagramPacket bRespPacket = new DatagramPacket(respData,
respData.length);
  datagramSocket.setSoTimeout(timeout);
  datagramSocket.receive(bRespPacket);
  processReceivedData(bRespPacket.getData());

  } catch (Exception e) {
 // ignore
  }
}

If device goes into standby mode (when screen turns off) the program
execution freezes on datagramSocket.receive() and no
SocketTimeoutException is thrown until the screen becomes unlocked.
When the screen unlocks, SocketTimeoutException is successfully thrown
and program execution goes on.
What is the reason of such behavior? And how to make
SocketTimeoutException be thrown correctly all the time?

-- 
You received this message because you are subscribed to the Google
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] Please can i have source codes for tictactoe game for android?

2012-03-16 Thread Jane Kalu
Please can i have source codes for tictactoe game for 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] probleme android

2012-03-16 Thread Ayed Chamseddine
Couldn't get connection factory client

-- 
You received this message because you are subscribed to the Google
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] Database Foriegn Key Error.

2012-03-16 Thread abhijeet tomar
Hello,
In my project , a table have 3 foreign key and 1 primary key ...
when we entererd wrong foreign key value in SQLiteBrowser then it will
give me constraint violation errorbut that thing if i do in
Android Programming then it insert easily and no error occured it
should not be donewhere is the problem

Thanks in Advance...

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


Re: [android-developers] Contact search

2012-03-16 Thread asheesh arya
juzz go through this link..might be it help you stay blessed stay
healthy
http://www.pocketmagic.net/?p=1870

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

Re: [android-developers] Re: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-16 Thread Mark Murphy
You should file this on b.android.com, as it is unlikely that anyone
in position to do anything about it will notice it here.

On Thu, Mar 15, 2012 at 1:04 PM, David Schreiber
flashmasterd...@gmail.com wrote:
 Hello there,

 I just implemented the downloader service and have noticed some things (and
 one severe bug). First of all, documentation says the downloader service
 needs a minimum of API level 4. The service provides two different kinds of
 user notifications, one for API level 3+ one for API level 11+ - the latter
 should allow better looking notifications. But...!

 Sadly the provided SDK package just tests for the existence of the
 Notification.Builder class, which is available since API level 11. This is
 not enough for setting a progress via the setProgress() method, because this
 method was introduced with API level 14. Thus, devices with an API level of
 11, 12 and 13 will definitely not be able to use the downloader upon fixing
 this issue.

 If you need further information, feel free to ask.

 Greetings,
 David Schreiber

 PS: You have to compile your application (or your downloader package)
 against api level 14+. This should work with all devices (but with the bug I
 described above)

 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html).


 tia

 --
 You received this message because you are subscribed to the Google
 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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


Re: [android-developers] How to get Streetview in mapactivity

2012-03-16 Thread Android Developer
Hi

This method is already deprecated. i used it but its not working'.


Thanks
Mani

On Fri, Mar 16, 2012 at 4:21 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



  On Fri, Mar 16, 2012 at 4:15 PM, Android Developer 
 c2dmdevelo...@gmail.com wrote:

 Hi All,

 StreetView method in now depricated in mapactivity. how do we display
 the map with streetview.


 Add this to your code:

 *mapView.setStreetView(true); *

 --
 You received this message because you are subscribed to the Google
 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] Way to set android:vmSafeMode at runtime

2012-03-16 Thread Mark Murphy
On Fri, Mar 16, 2012 at 12:39 AM, William Ferguson
william.ferguson...@gmail.com wrote:
 I seem to have several devices running foul of the JIT compiler in
 Froyo (see http://code.google.com/p/android/issues/detail?id=9281)
 The solution appears to be setting android:vmSafeMode=true in my
 application element in the Manifest, and this seems to work well.

Note that this is a lightly-documented property on application, so
I'd keep a very close eye on future Android releases so make sure they
don't get rid of it, rename it, etc.

 But I don't really want to switch off JIT for everyone, just for the
 FROYO users.
 Does anyone know of a way to set vmSafeMode at runtime?

Create a boolean resource (e.g., @bool/safeModeEnabled). Define it in
res/values/ as true. Define it in res/values-v9/ as false. Use the
resource as the value of android:vmSafeMode. Then, at runtime, Android
will use the right value for the device. Technically, this uses safe
mode for API Level 8 *and lower*, but since I think JIT only showed up
in API Level 8, I doubt there will be an impact on lower API levels.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


Re: [android-developers] How to get Streetview in mapactivity

2012-03-16 Thread Narendra Singh Rathore
On Fri, Mar 16, 2012 at 4:55 PM, Android Developer
c2dmdevelo...@gmail.comwrote:

 Hi

 This method is already deprecated. i used it but its not working'.


Yes, I got your problem.

-- 
You received this message because you are subscribed to the Google
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: AudioManager setSpeakerPhoneOn does not work on Android 2.2 (Galaxy Tab GT-P1000) but on Android 2.3.5 (HTC Wildfire S)?

2012-03-16 Thread Pinny3
Hi there,

today I've set 

aM.setMode(AudioManager.MODE_IN_CALL); 

within the above mentioned code. Now the Galaxy Tab with Android 2.2 does 
not play any sound anymore if a Bluetooth Headset is connected and paired. 
I am confused. Can anybody help?

Regards,

Christian

On Tuesday, 13 March 2012 11:21:57 UTC+1, Pinny3 wrote:

 Hi there,

 I've got the following code running on a HTC Wildfire with Android 2.3.5 
 and it's working perfectly and as expected, i.e. playing the sound on the 
 internal speaker phone of the device if a bluetooth headset is paired and 
 connected:

 == SNIP ===
AudioManager aM = (AudioManager) 
 context.getSystemService(Context.AUDIO_SERVICE);
aM.setMode(AudioManager.MODE_NORMAL);
aM.setBluetoothScoOn(false);
aM.setBluetoothA2dpOn(false);
aM.setWiredHeadsetOn(false);
*aM.setSpeakerphoneOn(true);*
 == SNIP ===

 The funny thing is that the same code has no impact on the Galaxy Tab 7 
 (GT-P1000) running Android 2.2 - the sound is still played on the connected 
 and paired headset if I run my app on this Galaxy Tab.

 Is there anybody out there who knows the reason? Was there any change 
 within Android 2.3.x regarding the wanted functionality?

 Any help will be appreciated.

 Regards,

 Christian




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

Re: [android-developers] How to get Streetview in mapactivity

2012-03-16 Thread Narendra Singh Rathore
Have a look at the following link:

http://code.google.com/p/android/issues/detail?id=10317

-- 
You received this message because you are subscribed to the Google
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] probleme android

2012-03-16 Thread Jim Graham
On Wed, Mar 14, 2012 at 05:10:11AM -0700, Ayed Chamseddine wrote:
 Couldn't get connection factory client

Here are a few (hopefully) helpful suggestions for you:

1) Choose a subject line that describes the problem with your app;  the
   one you have chosen tells us NOTHING, and is likely to be ignored,
   or get only responses telling you to use a real subject line.  Also
   don't use subject lines like Hi which are equally meaningless and
   also very likely to be ignored.

2) Describe the problem in detail, and list the errors you are getting
   and when.

3) Post the relevant portions of your code, and the relevant portions
   of the logcat output.

4) Tell us what you've already done to try to solve the problem on your
   own.

problems android and couldn't get connection factory client don't
tell anyone anything at all.  A better translation program might also
help (nothing personal...just reality).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into laser with remaining eye.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
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] Please can i have source codes for tictactoe game for android?

2012-03-16 Thread Jim Graham
On Wed, Mar 14, 2012 at 06:56:03AM -0700, Jane Kalu wrote:
 Please can i have source codes for tictactoe game for android?

Sureif you can find it in an open source repository for Android.
Try google.

As an alternative, you might choose to PAY someone here to write it
for you.  You will probably find that to be rather expensive, though.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into laser with remaining eye.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
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] Badlogic Framework

2012-03-16 Thread Jim Graham
On Wed, Mar 14, 2012 at 02:39:42PM -0700, Ghost wrote:
 Can anyone help me?
  My trouble is that i have searched in google but with no avail, I couldn't 
 find the Android Game Framework from badlogic.

Let's see...badlogic ... that's libgdx, right?  Ok, do a google search for
libgdx.  Download it and you'll find some good examples.  Also make SURE
you check out the libgdx wiki for a vast amount of good information.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into laser with remaining eye.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
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: SQLite Collate UNICODE - not case sensitive in ICS??

2012-03-16 Thread Grunthos
On Mar 16, 8:19 pm, Mark Carter mjc1...@googlemail.com wrote:
 So you may want to verify the problem exists in SDK 3.0, but not in 2.3.3.

No, it's just Android 4.0.x

And the UNICODE stuff is, effectively, an extension to the core SQLite
code, so the problem is not likely to be related to SQLite version.

For some reason, someone decided to muck around with the default
UNICODE collator that Android provides to the native SQLite engine,

-- 
You received this message because you are subscribed to the Google
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] G1 android phone not detecting in Eclipse:

2012-03-16 Thread Perumss Naren
Hi ,

 In real device G1 android phone not detecting in my Eclipse what
plugin i need to add in my eclipse of in my windows xp.

 i searched in Google but not get good result still i cant solution
so please help me !!

Regards,
Perumal.N


-- 
Regards,

Perumal.N

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

[android-developers] Re: Android - gridview scrolling issue (very slow scroll or duplicate content)

2012-03-16 Thread Carreira david
t seems that micro_kind smooth the scrool but all image are in 96*96.

Any solutions please?

On Tuesday, March 13, 2012 11:26:41 AM UTC+1, Carreira david wrote:

 It's my first app so i am not use to code on java.

 I have a gridview wich display thumbnails from the sdcard, but i can't 
 have a smooth scroll.

 If I put the /* Treatment part*/ out of the if the scroll is like i want 
 but they are duplicate content and a part of the pics are not displayed.

 Here is my code:

 -Activity:


 code

 GridView gridview = (GridView) findViewById(R.id.gridview1);
  String[] projection = {MediaStore.Images.Media._ID};
  String path =/mnt/sdcard/Pictures;
  // Create the cursor pointing to the SDCard
  cursor = managedQuery( MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
  projection, 
  //MediaStore.Images.Media.DATA +  like ? ,
  //new String[] {%Pictures%Sopi%},  
  _data LIKE '% + path  + /%',
  null,
  MediaStore.Images.Media._ID);

 // Get the column index of the Media Image ID
 columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media._ID);

 gridview.setAdapter(new ImageAdapterTest(RoomRawActivity.this));

 /code

 -imageAdapater (get view):


 code

 public View getView(int position, View convertView, ViewGroup parent) {

 Log.v(adapter - getView,getView start!!);
 //Toast.makeText(mContext, getView start!!+position, 0).show();

 //Move cursor to current position
 RoomRawActivity.cursor.moveToPosition(position);

 ImageView picturesView;

 if (convertView == null) {

 picturesView = new ImageView(mContext);

 /* treatment */

 // Get the current value for the requested column
 int imageID = RoomRawActivity.cursor.getInt(RoomRawActivity.columnIndex);
 // obtain the image URI
 Uri uri = Uri.withAppendedPath( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, 
 Integer.toString(imageID) );
 String url = uri.toString();

 //Set the content of the image based on the image URI
 int originalImageId = Integer.parseInt(url.substring(url.lastIndexOf(/) + 
 1,   url.length()));
 Bitmap b = 
 MediaStore.Images.Thumbnails.getThumbnail(mContext.getContentResolver(),
  originalImageId, 
  MediaStore.Images.Thumbnails.MINI_KIND, 
  null);
 picturesView.setPadding(5, 5, 5, 5);
 picturesView.setBackgroundResource(R.drawable.border_grid_pics);

 picturesView.setImageBitmap(b);

 picturesView.setScaleType(ImageView.ScaleType.FIT_XY);
 /* END  treatment */
 }
 }else{
 picturesView = (ImageView) convertView;   
 }



 return picturesView;
 }

 /code

 Many thanks!

 David.


-- 
You received this message because you are subscribed to the Google
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 CFS work in Android? Difference from Linux

2012-03-16 Thread Deborah
I am trying to get a better understanding on ANDROID CFS. I have some
doubt on scheduler's behavior.

The difference between Android scheduler and Linux scheduler Scheduler
— 5 files — The Android kernel also contains slight changes to the CPU
process scheduler and time-keeping algorithms. We don’t know the
history of these changes, and the impact was not evident based on a
cursory examination.

Do you know which are this files?

If I understand, Process.THREAD_PRIORITY_DEFAULT or
Process.THREAD_PRIORITY_BACKGROUND are 'nice' value. How does Android
convert 'nice' value in 'timeslice'?

What is the initial value of 'virtual runtime' in Android and how to
calculate?

In Android, is 'cgroups' use to define scheduling classes? The
following application states: (i) Foreground process - Critical
priority; (ii) Visible process and Service process - High priority;
(iii) Background process and Empty process - Low priority; are three
scheduling classes ?

Thanks in advance,

Deborah

-- 
You received this message because you are subscribed to the Google
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 CFS work in Android? Difference from Linux

2012-03-16 Thread Mark Murphy
This list is for developing applications with the Android SDK. For
details about the firmware and Android source code, please visit
http://source.android.com.

On Fri, Mar 16, 2012 at 8:54 AM, Deborah falconedebo...@gmail.com wrote:
 I am trying to get a better understanding on ANDROID CFS. I have some
 doubt on scheduler's behavior.

 The difference between Android scheduler and Linux scheduler Scheduler
 — 5 files — The Android kernel also contains slight changes to the CPU
 process scheduler and time-keeping algorithms. We don’t know the
 history of these changes, and the impact was not evident based on a
 cursory examination.

 Do you know which are this files?

 If I understand, Process.THREAD_PRIORITY_DEFAULT or
 Process.THREAD_PRIORITY_BACKGROUND are 'nice' value. How does Android
 convert 'nice' value in 'timeslice'?

 What is the initial value of 'virtual runtime' in Android and how to
 calculate?

 In Android, is 'cgroups' use to define scheduling classes? The
 following application states: (i) Foreground process - Critical
 priority; (ii) Visible process and Service process - High priority;
 (iii) Background process and Empty process - Low priority; are three
 scheduling classes ?

 Thanks in advance,

 Deborah

 --
 You received this message because you are subscribed to the Google
 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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
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: How CFS work in Android? Difference from Linux

2012-03-16 Thread Deborah
Thanks for the suggestion, I join Android Linux Kernel Development
group.

On Mar 16, 1:57 pm, Mark Murphy mmur...@commonsware.com wrote:
 This list is for developing applications with the Android SDK. For
 details about the firmware and Android source code, please 
 visithttp://source.android.com.









 On Fri, Mar 16, 2012 at 8:54 AM, Deborah falconedebo...@gmail.com wrote:
  I am trying to get a better understanding on ANDROID CFS. I have some
  doubt on scheduler's behavior.

  The difference between Android scheduler and Linux scheduler Scheduler
  — 5 files — The Android kernel also contains slight changes to the CPU
  process scheduler and time-keeping algorithms. We don’t know the
  history of these changes, and the impact was not evident based on a
  cursory examination.

  Do you know which are this files?

  If I understand, Process.THREAD_PRIORITY_DEFAULT or
  Process.THREAD_PRIORITY_BACKGROUND are 'nice' value. How does Android
  convert 'nice' value in 'timeslice'?

  What is the initial value of 'virtual runtime' in Android and how to
  calculate?

  In Android, is 'cgroups' use to define scheduling classes? The
  following application states: (i) Foreground process - Critical
  priority; (ii) Visible process and Service process - High priority;
  (iii) Background process and Empty process - Low priority; are three
  scheduling classes ?

  Thanks in advance,

  Deborah

  --
  You received this message because you are subscribed to the Google
  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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
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] Installation 64-bit Windows 7

2012-03-16 Thread Bob Plantz
I'm running 64-bit Windows 7. I installed Eclipse Indigo in C:\Program
Files.

When I start installer_r16-windows.exe it wants to put my sdk in C:
\Program Files (x86)\Android\android-sdk. That is, in the 32-bit
Program Files folder.

I suspect it does not matter, but I'm inclined to put the sdk in C:
\Program Files\Android\android-sdk. If nothing else, this seems more
consistent with my Eclipse (64-bit) installation.

Is this okay?

BTW, I'm relatively new at developing on the Windows platform. I have
40+ years of software development experience, but I just started using
Windows a couple of years ago. Still learning my way around.

--Bob

-- 
You received this message because you are subscribed to the Google
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 native SIP stack

2012-03-16 Thread Jovan Novkovic
I have a question: Does android native SIP stack that is posible to
use from 2.3 version supports G.729 codec and how can we change it?
I'm new in this area and i need to create sip app that will use that
codec. Thanks for your time... :)

-- 
You received this message because you are subscribed to the Google
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: Downloading the Expansion Files

2012-03-16 Thread David Schreiber
Hello there, 

I posted yesterday, but my answer did not seem to get through. Yesterday I 
implemented my own expansion file downloader activity using the provided 
downloader library. The library (as stated in the documentation) supports 
expansion files from API level 4 onwards.

Sadly to mention, it seems that there is an severe bug preventing devices 
running API levels 11, 12 and 13 from using the service. The downloader 
provides useful notifications by using the android notification service. 
API level 11 introduced the Notification.Builder class, which allows to 
show even richer notifications. The service checks wheter this class is 
available or not, and chooses the right method of creating notifications. 
Although the new class was introduced with API level 11, one method (that 
is used by the downloader service), namely the setProgress() method, only 
exists on API level 14. The downloader service doesn't check if the method 
is available or not, thus resulting in a crash on devices that don't have 
this method (- API level 11, 12, 13). You can fix this bug, by adding a 
check for this method (either once, or every time the method gets called).

Hope this clears things up for you.

Regards,
David

Am Mittwoch, 14. März 2012 05:56:23 UTC+1 schrieb Nirbhay Garg:

 how to download the Expansion File in Android Application and step to 
 create two Expansion file which is used to upload application when the 
 size of Application exceed 50 MB 

-- 
You received this message because you are subscribed to the Google
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] Conversion to Dalvik format failed with error 1 when jython.rar is added to reference

2012-03-16 Thread Naga
Hi,
   I tried to add jython.rar found in android-sdk/tools as reference
in my android project and getting the following error during
compilation..


[2012-03-15 06:59:07 - FirstAndroid] Dx local variable type mismatch:
attempt to set or access a value of type int using a local variable of
type java.util.List. This is symptomatic of .class transformation
tools that ignore local variable information.

[2012-03-15 06:59:07 - FirstAndroid] Dx ...at bytecode offset 004f
locals[]: Lorg/python/antlr/PythonTree;
locals[0001]: I
locals[0002]: I
locals[0003]: Ljava/lang/Object;
locals[0004]: I
locals[0005]: Lorg/python/antlr/PythonTree;
locals[0006]: Lorg/python/antlr/PythonTree;
locals[0007]: invalid
locals[0008]: invalid
locals[0009]: invalid
locals[000a]: invalid
locals[000b]: invalid
locals[000c]: invalid
stack[top0]: I
...while working on block 004f
...while working on method replaceChildren:(IILjava/lang/Object;)V
...while processing replaceChildren (IILjava/lang/Object;)V
...while processing org/python/antlr/PythonTree.class

[2012-03-15 06:59:07 - FirstAndroid] Dx 1 error; aborting
[2012-03-15 06:59:07 - FirstAndroid] Conversion to Dalvik format
failed with error 1

Is there any other way to use the python classes in java??

Thanks,
Nagarathnam.

-- 
You received this message because you are subscribed to the Google
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: Help! No files return from apache commons net FTPClient

2012-03-16 Thread Ivan Kablar
I am encountering exactly the same issue.
I get a reply of 230 in both applications. The Java application returns all 
files from a getFiles() method call while the Android application returns 0 
with a negative 500 reply checking the reply code afterwards. I gave 
INTERNET permission in the manifest file.
 
Did anybody solve this problem?
 
Best Regards
 
Ivan

Am Montag, 7. Dezember 2009 16:33:57 UTC+1 schrieb Chander Pechetty:

 As far as I can tell, there is no compatibility problem. Enable server 
 logging and see if you get a 250 or [some number]  directory OK, and 
 hopefully its the same code you are running with the same account; it 
 could be a minor bug somewhere else:-) 


 -Chander 
 www.unisaran.com 

 On Dec 6, 8:26 pm, armstrong armstrongh...@gmail.com wrote: 
  Hi, all 
  
  I am writing a ftp client on android sdk 1.5 with apache-commons-net- 
  ftp-2.0. I can successfully connect to my testing ftp server but with 
  I use listFiles() it return an empty FTPFile[]. 
  
  I put the same code in a normal java program and it works fine. I 
  don't know where is wrong. Any compatible problem when apache-commons- 
  net-ftp-2.0 and android works together? 
  
  Here is my test code: 
  
  FTPClient ftpClient = new FTPClient(); 
  try { 
  ftpClient.connect(192.168.1.102, 21); 
  ftpClient.login(testftp, testftp); 
  Thread.currentThread().sleep(5000); 
  System.out.println(bb:  + 
 ftpClient.getReplyString()); 
  FTPFile[] ftpFiles = 
 ftpClient.listFiles(); 
  System.out.println(aa:  + 
 ftpFiles.length); 
  } catch (Exception e) { 
  e.printStackTrace(); 
  } 
  
  android output: 
  bb: 230 Login successfully. 
  aa: 0 
  
  j2se output: 
  bb: 230 Login successfully. 
  aa: 5 
  
  It is actually 4 files and 1 directory in the ftp root! 
  
  Maybe someone asked the same thing before. Some suggestion? 
  
  Thanks in advance! 


Am Montag, 7. Dezember 2009 16:33:57 UTC+1 schrieb Chander Pechetty:

 As far as I can tell, there is no compatibility problem. Enable server 
 logging and see if you get a 250 or [some number]  directory OK, and 
 hopefully its the same code you are running with the same account; it 
 could be a minor bug somewhere else:-) 


 -Chander 
 www.unisaran.com 

 On Dec 6, 8:26 pm, armstrong armstrongh...@gmail.com wrote: 
  Hi, all 
  
  I am writing a ftp client on android sdk 1.5 with apache-commons-net- 
  ftp-2.0. I can successfully connect to my testing ftp server but with 
  I use listFiles() it return an empty FTPFile[]. 
  
  I put the same code in a normal java program and it works fine. I 
  don't know where is wrong. Any compatible problem when apache-commons- 
  net-ftp-2.0 and android works together? 
  
  Here is my test code: 
  
  FTPClient ftpClient = new FTPClient(); 
  try { 
  ftpClient.connect(192.168.1.102, 21); 
  ftpClient.login(testftp, testftp); 
  Thread.currentThread().sleep(5000); 
  System.out.println(bb:  + 
 ftpClient.getReplyString()); 
  FTPFile[] ftpFiles = 
 ftpClient.listFiles(); 
  System.out.println(aa:  + 
 ftpFiles.length); 
  } catch (Exception e) { 
  e.printStackTrace(); 
  } 
  
  android output: 
  bb: 230 Login successfully. 
  aa: 0 
  
  j2se output: 
  bb: 230 Login successfully. 
  aa: 5 
  
  It is actually 4 files and 1 directory in the ftp root! 
  
  Maybe someone asked the same thing before. Some suggestion? 
  
  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] Standard Android XML Formatting from Command Line

2012-03-16 Thread Rit Li
Is there a command line tool for formatting xml like the Eclipse does?

-- 
You received this message because you are subscribed to the Google
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] Making my app as Default App

2012-03-16 Thread Rahul
Hello All,
I have developed a diagnostic app which is for company internal usage.
We build our own Android image to flash on to the target device.

This project has 2 JAR file generating projects, a JNI library
project(producing libX-if.so) and APK producing project. So,
Basically I need all these together to work as new App.
Fortunately, I am successful in building and working fine on the
target device.

Now I need to make this a default app in our custom Android builds for
internal usage. I mean to say, I would like to build this App into
image file system and when we flash images, the app is just there for
the users.

As I am new and tried a lot to do this without success, could you
please give me direction to make this. Like what are the files I need
to modify in Android build environment and is there anything I need to
change in application code itself.

Thanks very much in advance I appreciate you help

Cheers
Rahul

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


[android-developers] code to enable tethering(mobileap)

2012-03-16 Thread Harsha
i am on my final year project ..
can any one help how to enable mobileap through my app

-- 
You received this message because you are subscribed to the Google
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] XVID support by Mediaplayer, MediaRecorder class

2012-03-16 Thread Gavin Fang
Hi, Android develops:
I have a plan to porting the mediaplayer wich decode/encode with Xvid
and Divx format to Android. But I am NOT sure whether Mediaplayer,
MediaRecorder support Xvid or DivX format?
Thanks a lot!

BR
Gavin Fang

-- 
You received this message because you are subscribed to the Google
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 copy files from Android to PC?

2012-03-16 Thread Italo Mendonça Rocha
Hello,

Does anyoane know how to copy files from Android to PC programmatically?

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] Possible to detect Menu key press, outside an activity?

2012-03-16 Thread Olaf
So, I know that the Menu key is going away in 3.0, but I have an optional 
feature in mind for pre-3.0 devices.  It relies on detecting a press of the 
Menu key, outside of my activities (from the home screen, for example).  
I've searched far and wide for a solution, and it seems that the Menu key 
can only be detected by using the KeyEvent methods within the Activity 
class (onKeyDown, etc).  But those methods only function when the activity 
is in focus.

Before I give up on this feature, does anyone have ideas on how it can be 
done?  Or let me know if it definitely can't.  Thanks!

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

Re: [android-developers] Re: how to get the view size after orientation changed

2012-03-16 Thread Mike V
Interestingly I've noticed that even if you *do* subclass the layout 
manager (or any view on which setContentView is called) and implement 
onSizeChanged(), the first onSizeChanged after an orientation change will 
contain the old width/height, then it will immediately get another 
onSizeChanged with the correct width/height.  

I wrote up a simple test case and further explanation on Stack Overflow 
here:

http://stackoverflow.com/q/9696118/369658

Any idea why this happens?

thanks,
-mike


On Thursday, August 25, 2011 11:02:07 AM UTC-7, Dianne Hackborn wrote:

 You can do this yourself by just say subclassing a FrameLayout (or the 
 layout manager of your choice) and calling out.

 I really recommend implementing your own layout manager for this kind of 
 stuff, though, because it is important to fully participate in the layout 
 when you want UI elements to visually cooperate together.

 On Thu, Aug 25, 2011 at 10:44 AM, Doug beafd...@gmail.com wrote:

 On Aug 23, 10:05 am, Dianne Hackborn hack...@android.com wrote:
  You need to participate in the view hierarchy as a layout manager, do 
 get
  the onSizeChanged() calls and such.

 Since it's come up, it's actually been a thorn in my side to have to
 be a layout manager to know something simple such as the size of a
 view when it's changed size.  It comes up again and again for some
 things I do.  It would be a huge save of time and effort if I could
 just register a listener on a View to know when its onSizeChanged
 method has been called.

 For example, if I want to place an overlay on some arbitrary view as a
 callout or popup, I need to know its size and position the moment
 those things are known.  I can't do it during any of the activity
 lifecycle methods because layout is a different stream of computation
 than the lifecycle.  Same thing goes if I need to compute coordinates
 for an animation that happens at activity startup rather than on UI
 events.

 I've seen people hack up ugly polling looping to find out when layout
 completes!  And it seems like huge waste of time just to implement a
 custom View or LayoutManager just to make this work.  I hope that I'm
 just going about this the wrong way and that there is a more elegant
 solution.  In the absence of that, having a hook into a view's
 onSizeChanged would be a huge win, IMO.

 Doug


 --
 You received this message because you are subscribed to the Google
 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] Eclipse Problem

2012-03-16 Thread lokesh
When ever i open xml layout in eclipse , eclipse is totally closing
without saving.


can any one tell me whats the problem and how to resolve it..


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] app builder tool

2012-03-16 Thread Inon
I have a website that was design for mobile.I would like to create an
app that will only show my webpage (no native programming)
is there a way to create this APK file with the logo I want, and a
splash screen?

is there a good, simple and reliable tool that can do it?

I tried theappbuilder.com, but it just created heavy and slow app. is
there anything better?

Cheers,

Inon

-- 
You received this message because you are subscribed to the Google
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] What is the best API to start with in the SDK

2012-03-16 Thread redhoodtech
I am currently starting to develop android applications with Eclipse
and the Android SDK.  What is the best API to start with, and do I
have to create an individual app for each API?  I've noticed that the
Relative Layout function works better in API 15 rather than API 8.
When I try using the relative layout function in API 8 it doesn't seem
to function properly.

Thanks,
John R.

-- 
You received this message because you are subscribed to the Google
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] Difference in versions

2012-03-16 Thread mp
Hi,

I am new to android, and i want to know what is the difference between
the app done in 2.x and 3.x versions of 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] Newbie question - first attempt to run App on device gets Force Close

2012-03-16 Thread Mister Macaverty
My app runs fine on the device emulator.

When I connect it to my device, however, and I run it, it gets as far
as showing the app title then I get a Force Close message.

Any suggestions for the approach I should take for finding out what's
causing the problem?

Many thanks
MM

-- 
You received this message because you are subscribed to the Google
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] AlertDialog through server

2012-03-16 Thread Pavan Kumar
Hi,
Can anyone please let me know if it's possible to invoke a alertdialog
on android through a server?
if it is possible, tell me how to implement it.

Thanks

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


[android-developers] Possible bug in package installer

2012-03-16 Thread stipa
Hello,

I have encounter some weird behavior of  package installer. Easy to 
reproduce in 4.0, a bit more hassle in 2.x.

Preconditions:

1) Have any APK on device.
2) Have any file manager.

Steps to reproduce:

1) Tap on APK in file manager.
2) Tap Install on confirmation dialog.
3) During installation tap Home button on device so installer will go 
background.
4) After few seconds, when installer finishes its job in backgroup.
5) Run from console to trigger uninstall (for 2.x, for 4.0 enough to drop 
app icon to uninstall basket):
adb shell am start -a android.intent.action.DELETE -d 
package:com.my.package.name
6) Press OK on uninstall confirmation.
7) Press OK on uninstall finished confirmation.

Expected result:
 - nothing happens

Actual result:
1) Application installed confirmation with Open and Done buttons.
2) Tapping on Open button will crash com.android.packageinstaller. 

Is this some kind of known problem or should I file bug?

-Lev

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

[android-developers] Re: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-16 Thread Streets Of Boston
I haven't checked if the downloader services comes with the sources. But if 
so, just change the sources for the Notifications to your liking.
(we did that for our app, using the DownloadManager (and DownloadProvider) 
from the ICS source code and adding compatibility code ourselves 
(DRM/Notifcations))

On Thursday, March 15, 2012 1:04:56 PM UTC-4, David Schreiber wrote:

 Hello there,

 I just implemented the downloader service and have noticed some things 
 (and one severe bug). First of all, documentation says the downloader 
 service needs a minimum of API level 4. The service provides two different 
 kinds of user notifications, one for API level 3+ one for API level 11+ - 
 the latter should allow better looking notifications. But...!

 Sadly the provided SDK package just tests for the existence of the 
 Notification.Builder class, which is available since API level 11. This is 
 not enough for setting a progress via the setProgress() method, because 
 this method was introduced with API level 14. Thus, devices with an API 
 level of 11, 12 and 13 will definitely not be able to use the downloader 
 upon fixing this issue.

 If you need further information, feel free to ask.

 Greetings,
 David Schreiber

 PS: You have to compile your application (or your downloader package) 
 against api level 14+. This should work with all devices (but with the bug 
 I described above)

 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html
 ).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html
 ).


 tia


 Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL:

 I was playing with implementing the new expansion pack stuff, and kept
 running into things that make me think you need to use an api  10 if
 you want to use the downloader that comes with the sdk.  In fact, the
 library project seems to require api14.  Am I missing something
 trivial?  This is for stuff in the package
 com.google.android.vending.expansion.downloader.

 * TelephonyManager.NETWORK_TYPE_LTE - api11
 * TelephonyManager.NETWORK_TYPE_EHRPD - api11
 * TelephonyManager.NETWORK_TYPE_HSPAP - api13

 I really want to use the stuff out of the box from google here... but
 it looks like you need to finagle around this api stuff for the 87% of
 devices still on api8 or api10
 (http://developer.android.com/resources/dashboard/platform-versions.html
 ).


 tia



-- 
You received this message because you are subscribed to the Google
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] What is the best API to start with in the SDK

2012-03-16 Thread Mark Murphy
RelativeLayout has not changed much since API Level 4.

On Wed, Mar 14, 2012 at 8:07 PM, redhoodtech redhoodt...@gmail.com wrote:
 I am currently starting to develop android applications with Eclipse
 and the Android SDK.  What is the best API to start with, and do I
 have to create an individual app for each API?  I've noticed that the
 Relative Layout function works better in API 15 rather than API 8.
 When I try using the relative layout function in API 8 it doesn't seem
 to function properly.

 Thanks,
 John R.

 --
 You received this message because you are subscribed to the Google
 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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
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] Possible to detect Menu key press, outside an activity?

2012-03-16 Thread Mark Murphy
On Wed, Mar 14, 2012 at 5:55 PM, Olaf osweet...@gmail.com wrote:
 So, I know that the Menu key is going away in 3.0, but I have an optional
 feature in mind for pre-3.0 devices.  It relies on detecting a press of the
 Menu key, outside of my activities (from the home screen, for example).
 I've searched far and wide for a solution, and it seems that the Menu key
 can only be detected by using the KeyEvent methods within the Activity class
 (onKeyDown, etc).  But those methods only function when the activity is in
 focus.

 Before I give up on this feature, does anyone have ideas on how it can be
 done?  Or let me know if it definitely can't.  Thanks!

You cannot detect a MENU button press except from the foreground activity.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
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] Exchange Folders missing on sync of Ice cream sandwich

2012-03-16 Thread Richard Wilson
Hi, We have a load of Samsung Nexus at work and they are sync'd to
Exchange 2003. However some users are missing some Inbox sub folders.
We have removed the account and reloaded it but it is missing the same
folders. We've racked our heads, is this a bug? I notice someone else
had a similar issue

http://groups.google.com/group/android-developers/browse_thread/thread/e1015715c06dfbc2/e31471cbac8961fb?lnk=gstq=exchange+folders#e31471cbac8961fb

Any ideas?

Thanks in advance.

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


Re: [android-developers] How to read the large sized text file

2012-03-16 Thread TreKing
On Fri, Mar 16, 2012 at 3:32 AM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 I even tried that, but still faced the same exception.


Which you still have failed to elaborate on. What is the exception MESSAGE?
What does it tell you the problem is?

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

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

[android-developers] How to add more user into android developer account?

2012-03-16 Thread Winston Zhang
I have an android developer account, and want to add other team members to 
access the console for managing apk, viewing statistics etc. How can I do 
that?

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

[android-developers] Application Recycling

2012-03-16 Thread Trey
I'm trying to test my application's ability to be restored after my
phone reclaims it for memory. I'm unable to find a consistent way to
reproduce this behavior.

My first questions is:
What is the official term for this? Application Recycling doesn't
seem to help me find any information online.

Once I know what it's called I should be able to find some info, and
even search these forums accurately and find an answer; but if anyone
is willing to point me in the right direction I would appreciate that
as well!

Thanks,
Trey

-- 
You received this message because you are subscribed to the Google
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] Can't click on my button when changing activity

2012-03-16 Thread Dedess
Hello,

I'm a beginner in android development.
In my project i have two activities. The first activity has a button
where i call the Itent Class to start the other activity.
When i'm in the second activity, i have a new UI with a button but i
can't click on this. It's waiting and ask me if i want to restart or
wait.

Do you have any idea to help me ?
I've done a setOnclickListener, setFocusable(true), setEnable(true)
and setClickable(true) but nothing work.

Please help !

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 + Wcf + Asp.net Authentication

2012-03-16 Thread salcam_android
Hi to all,
can I authenticate from App Android to MySql Server via APS.NET 
Authentication? And how to?

My problem is that Wcf from Web.config must be deny to anonimous, when 
first I make an authentication, then I can use my Service WCF...

Thanks in advance,
*Salvo*

-- 
You received this message because you are subscribed to the Google
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] Need idea how to add animation in widget

2012-03-16 Thread Gunjan
I want to add an animation in one widget as same like as in weathe
widgets.
i.e. when user click on weathe widget its open in new big screen with
more details and in back ground it shows weathe animation.

Actually I am very much new in Android development so please give me
some suggestion or links. smaple code would be better help.

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] CalendarContract on Samsung's ICS update

2012-03-16 Thread roee88
Hi,

I'm using Intent.ACTION_INSERT exactly as described in
http://developer.android.com/guide/topics/providers/calendar-provider.html#intent-insert

It works fine on Galaxy Nexus and other ICS devices and ROMs.
On Samsung SGSII with their recent ICS update it simply doesn't do
anything.

The logs:
03-16 13:31:27.470 D/Instrumentation(11087):
checkStartActivityResult  :Intent { act=android.intent.action.INSERT
dat=content://com.android.calendar/events flg=0x1000 (has
extras) }
03-16 13:31:27.470 I/ActivityManager( 1992): START
{intent.toShortString} from pid 11087
03-16 13:31:27.470 D/PowerManagerService( 1992):
acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 120
uid : 1000  pid : 1992  tag : ActivityManager
03-16 13:31:27.470 W/ActivityManager( 1992): mDVFSLock.acquire()
03-16 13:31:27.475 D/Instrumentation(11087): checkStartActivityResult
inent is instance of inent:
03-16 13:31:27.480 I/ApplicationPolicy( 1992): isIntentDisabled
start :Intent { act=android.intent.action.INSERT dat=content://
com.android.calendar/events flg=0x1000 (has extras) }
03-16 13:31:27.490 I/ApplicationPolicy( 1992): isIntentDisabled
resolve info :null
03-16 13:31:27.490 I/ApplicationPolicy( 1992): isIntentDisabled
return :true

-- 
You received this message because you are subscribed to the Google
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] Excuse me,Do you solve this problem??

2012-03-16 Thread HankWang
I have the same problem in my android app.

Do you solve this problem??

-- 
You received this message because you are subscribed to the Google
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] Http request and http requests

2012-03-16 Thread Robert Gichohi
hi I wanted to incorporate Http request and http requests in my android
project and connect it to php server

-- 
You received this message because you are subscribed to the Google
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] WebView Transitions using FlipView. Getting: The specified child already has a parent. You must call removeView() on the child's parent first.

2012-03-16 Thread Josh Starrett
Hi I am very new to android development. I am currently working on a
webapp for an android tablet. I am trying to implement transitions
between pages using FlipView. However, every time I launch the app,
the process crashes. If anyone can take a look at my code and tell me
what I am doing wrong I would greatly appreciate it. Thank you.

Logs:

03-15 17:53:49.899: E/AndroidRuntime(970): FATAL EXCEPTION: main
03-15 17:53:49.899: E/AndroidRuntime(970): java.lang.RuntimeException:
Unable to start activity ComponentInfo{activity.java/
activity.java.CheckInKioskActivity}: java.lang.NullPointerException
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1815)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1831)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.ActivityThread.access$500(ActivityThread.java:122)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.os.Handler.dispatchMessage(Handler.java:99)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.os.Looper.loop(Looper.java:132)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.ActivityThread.main(ActivityThread.java:4123)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
java.lang.reflect.Method.invokeNative(Native Method)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
java.lang.reflect.Method.invoke(Method.java:491)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:841)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
dalvik.system.NativeStart.main(Native Method)
03-15 17:53:49.899: E/AndroidRuntime(970): Caused by:
java.lang.NullPointerException
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.view.ViewGroup.addView(ViewGroup.java:2850)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.view.ViewGroup.addView(ViewGroup.java:2837)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
activity.java.CheckInKioskActivity.onCreate(CheckInKioskActivity.java:
28)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.Activity.performCreate(Activity.java:4397)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1048)
03-15 17:53:49.899: E/AndroidRuntime(970):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1779)
03-15 17:53:49.899: E/AndroidRuntime(970):  ... 11 more


Main Activity:

package activity.java;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout;
import android.widget.ViewFlipper;

public class CheckInKioskActivity extends Activity {
/** Called when the activity is first created. */
//Init objects
WebView mWebView;
WebView mWebView2;
ViewFlipper flip;
Animation slide_in, slide_out;

//create
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//Configure objects
slide_in = AnimationUtils.loadAnimation(this,
R.anim.slide_in);
slide_out = AnimationUtils.loadAnimation(this,
R.anim.slide_out);
setViews();
flip.removeAllViews();
setFlip();
mWebView.loadUrl(http://www.thegamebridge.com/Nuesoft2/
Home.html);
mWebView.setWebViewClient(new FirstWebViewClient());
mWebView.setWebViewClient(new SecondWebViewClient());
}
//configure Flip
private void setFlip() {
flip = (ViewFlipper) findViewById(R.id.flipview);
flip.addView(mWebView, 0);
flip.addView(mWebView2, 1);
flip.setInAnimation(slide_in);
flip.setOutAnimation(slide_out);
flip.setDisplayedChild(0);
}
//configure webviews
private void setViews() {
mWebView = (WebView) findViewById(R.id.webview);
mWebView = (WebView) findViewById(R.id.webview2);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setJavaScriptEnabled(true);
}
//Make mWebView a WebViewClient
private class FirstWebViewClient extends WebViewClient {
//Tell mWebview how to handle URL loading.
@Override
public boolean shouldOverrideUrlLoading(WebView view, String
url) {
mWebView2.loadUrl(url);
flip.setDisplayedChild(1);
return true;
}
}

[android-developers] [HELP]CyanogenMod from source for Galaxy SII I9100G

2012-03-16 Thread Sayantan Guha Roy
Hey folks 

I'm trying to build CyanogenMod 7 from scratch for my Galaxy S 
II(GT-I9100G) following this Wiki 


http://wiki.cyanogenmod.com/wiki/Samsung_Galaxy_S_II:_Compile_CyanogenMod_%28Linux%29


Does anybody hopefully have an idea, what the problem might be? 

Also no extract-files.sh script is available for my device. I Need the 
files for a CM7 Port. 

-- 
You received this message because you are subscribed to the Google
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=ensayan@ArrogantPenguin:~/android/cyanogen$ . build/envsetup.sh  brunch 
galaxys2g
including device/advent/vega/vendorsetup.sh
including device/bn/encore/vendorsetup.sh
including device/geeksphone/one/vendorsetup.sh
including device/htc/ace/vendorsetup.sh
including device/htc/bravoc/vendorsetup.sh
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/click/vendorsetup.sh
including device/htc/desirec/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/espresso/vendorsetup.sh
including device/htc/glacier/vendorsetup.sh
including device/htc/heroc/vendorsetup.sh
including device/htc/hero/vendorsetup.sh
including device/htc/inc/vendorsetup.sh
including device/htc/legend/vendorsetup.sh
including device/htc/leo/vendorsetup.sh
including device/htc/liberty/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/htc/saga/vendorsetup.sh
including device/htc/speedy/vendorsetup.sh
including device/htc/supersonic/vendorsetup.sh
including device/htc/vision/vendorsetup.sh
including device/htc/vivo/vendorsetup.sh
including device/htc/vivow/vendorsetup.sh
including device/huawei/u8150/vendorsetup.sh
including device/huawei/u8220/vendorsetup.sh
including device/lge/p999/vendorsetup.sh
including device/malata/smb_a1002/vendorsetup.sh
including device/motorola/droid2/vendorsetup.sh
including device/motorola/droid2we/vendorsetup.sh
including device/motorola/jordan/vendorsetup.sh
including device/motorola/morrison/vendorsetup.sh
including device/motorola/motus/vendorsetup.sh
including device/motorola/olympus/vendorsetup.sh
including device/motorola/shadow/vendorsetup.sh
including device/motorola/sholes/vendorsetup.sh
including device/motorola/zeppelin/vendorsetup.sh
including device/samsung/captivatemtd/vendorsetup.sh
including device/samsung/cooper/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/epicmtd/vendorsetup.sh
including device/samsung/fascinatemtd/vendorsetup.sh
including device/samsung/galaxys2att/vendorsetup.sh
including device/samsung/galaxys2g/vendorsetup.sh
including device/samsung/galaxys2/vendorsetup.sh
including device/samsung/galaxysbmtd/vendorsetup.sh
including device/samsung/galaxysmtd/vendorsetup.sh
including device/samsung/mesmerizemtd/vendorsetup.sh
including device/samsung/showcasemtd/vendorsetup.sh
including device/samsung/tass/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including device/zte/v9/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh


PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=cyanogen_galaxys2g
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD



PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=cyanogen_galaxys2g
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD

Checking build tools versions...
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:32: warning: overriding commands for target 
`out/target/product/galaxys2g/root/init.rc'
system/core/rootdir/Android.mk:42: warning: ignoring old commands for target 
`out/target/product/galaxys2g/root/init.rc'
build/core/Makefile:32: warning: overriding commands for target 
`out/target/product/galaxys2g/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target 

[android-developers] How to fetch phone number from contact list

2012-03-16 Thread vaibs
I  try this code but here only we get Name are show
i want number also
public class test extends Activity
{
private EditText e;
Button bt;
private static final String DEBUG_TAG = InviteActivity;
private static final int CONTACT_PICKER_RESULT = 1001;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.test);
e=(EditText)findViewById(R.id.editText1);
bt=(Button)findViewById(R.id.button1);
}

public void doLaunchContactPicker(View view)
{

Intent contactPickerIntent = new
Intent(Intent.ACTION_PICK,ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(contactPickerIntent,
CONTACT_PICKER_RESULT);

}

@Override
protected void onActivityResult(int requestCode,int resultCode,Intent
data)
{
if(resultCode==RESULT_OK)
{
switch(requestCode)
{
case CONTACT_PICKER_RESULT:
Cursor cursor=null;
String phone=;
try
{ Uri result=data.getData();
   String id=result.getLastPathSegment();
 
cursor=getContentResolver().query(Phone.CONTENT_URI,null,
Phone.CONTACT_ID +=?,new String[] {id},null);
int phoneIdx=cursor.getColumnIndex(Phone.NUMBER);
if(cursor.moveToFirst())
{
phone=cursor.getString(phoneIdx);
}
if(phone.equals())
{
Toast.makeText(getBaseContext(),There is no phone
number for that contac, Toast.LENGTH_LONG).show();
}
else
{
e.setText(phone);
}
}
catch(Exception e)
{
Toast.makeText(getBaseContext(), Exception There is
no phone number for that contact, Toast.LENGTH_SHORT).show();
}

}


}

}

}

-- 
You received this message because you are subscribed to the Google
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 find which platform version an APK targets?

2012-03-16 Thread michael
I am trying find the paltform version in APK,

and find this one: uses-sdk android:minSdkVersion=3
android:targetSdkVersion=4 /


This only gives us the information. But in some apps, nothing is
found.  How could I identify the platform versions the apk targets?

-- 
You received this message because you are subscribed to the Google
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 Accelerometer data

2012-03-16 Thread Sylar
Hi,

I was testing some accelerometer application on my device.

I used some standard snippet available on the internet to read the
accelerometer values.

The code uses the FASTEST delay.

And I am able to log around 50 values per second.

Is this device specific? I read some earlier post that it is indeed
device specific and that FASTEST delay basically sets it to 0. The
rest delay is introduced by device. Is this true?

Is there any way, this can be changed to a faster value?

Any help is much 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


[android-developers] Re: Facebook integration

2012-03-16 Thread Sam Coe
Yes indeed there is.  We just released an SDK to support exactly that
and it includes social graph consolidation, messaging, and presence
detection of your FB friends from within your Android games.  It's a
white-label implementation and it's modular so you can pick and choose
what you need and wave it into your app very cleanly.   Look for full
doc on the API on the Viximo mobile developer site: http://mobile.viximo.com
or http://doc.mobile.viximo.com.

-Sam

On Mar 12, 5:55 am, Live Happy livehap...@gmail.com wrote:
 i have integrate face book in my android  application but it there a way to
 get the online friends and also can i write a message to the inbox not to
 the wall of friends ?
  thx  om advance

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


Re: [android-developers] How to read the large sized text file

2012-03-16 Thread Narendra Singh Rathore
On Fri, Mar 16, 2012 at 7:25 PM, TreKing treking...@gmail.com wrote:

 On Fri, Mar 16, 2012 at 3:32 AM, Narendra Singh Rathore 
 nsr.curi...@gmail.com wrote:

 I even tried that, but still faced the same exception.


 Which you still have failed to elaborate on. What is the exception
 MESSAGE? What does it tell you the problem is?


Well, the exception is same as I told you earlier. There isn't any change
in 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

Re: [android-developers] Facebook integration

2012-03-16 Thread Narendra Singh Rathore
On Mon, Mar 12, 2012 at 4:25 PM, Live Happy livehap...@gmail.com wrote:

 i have integrate face book in my android  application


Can you please suggest me how to integrate that in brief steps?

-- 
You received this message because you are subscribed to the Google
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] Snippets got snipped

2012-03-16 Thread bob
 

In one of my Android workspaces in Eclipse, there is a rich collection of 
maybe 100 Android snippets.  However, in my other Android workspace in 
Eclipse, there are only two categories of Snippets and only a total of 5 
snippets.  Has anyone else encountered this strangeness?


-- 
You received this message because you are subscribed to the Google
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] Are Google Play rankings stuck?

2012-03-16 Thread markusn82
I noticed that Google Play rankings haven't moved since Wednesday. How
often to do rankings update? The last time I checked they were updated
once a day. Has this changed in the last while or is there a bug in
the market?

-- 
You received this message because you are subscribed to the Google
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] Pinch and Zoom of Webview

2012-03-16 Thread TreKing
On Fri, Mar 16, 2012 at 1:59 AM, B.Arunkumar
awsnetworkrecor...@gmail.comwrote:

is it possible to somehow program the pinch and zoom as in Webview
 when we use an imageview embedded in a scrollview and
 horizontalscrollview? The Pinch and Zoom effect is not as smooth as
 what we find in WebView. How do we incorporate the bouncing effect as
 in WebView?


How about showing your image in a WebView ... ?

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

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

Re: [android-developers] Android native SIP stack

2012-03-16 Thread Marijan Milinovic
SIP doesnt support any codec. Your application has to support codec. SIP is
used only for make direct connection between 2 devices and for negotiation
for codec between 2 application on that devices (codec for video and codec
for sound).

On Fri, Mar 16, 2012 at 12:45 PM, Jovan Novkovic
jovannovkovi...@gmail.comwrote:

 I have a question: Does android native SIP stack that is posible to
 use from 2.3 version supports G.729 codec and how can we change it?
 I'm new in this area and i need to create sip app that will use that
 codec. Thanks for your time... :)

 --
 You received this message because you are subscribed to the Google
 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] Newbie question - first attempt to run App on device gets Force Close

2012-03-16 Thread Ted Scott
Double check that the emulator you run on is versioned  lower than your 
device.


Observe the launch with DDMS view which should report the exception.

Run it under the debugger on your device.

On 3/16/2012 5:14 AM, Mister Macaverty wrote:

My app runs fine on the device emulator.

When I connect it to my device, however, and I run it, it gets as far
as showing the app title then I get a Force Close message.

Any suggestions for the approach I should take for finding out what's
causing the problem?

Many thanks
MM



--
You received this message because you are subscribed to the Google
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] Http request and http requests

2012-03-16 Thread Justin Anderson
Then do it...
On Mar 16, 2012 7:59 AM, Robert Gichohi robert.gich...@gmail.com wrote:

 hi I wanted to incorporate Http request and http requests in my android
 project and connect it to php server

 --
 You received this message because you are subscribed to the Google
 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] Excuse me,Do you solve this problem??

2012-03-16 Thread Justin Anderson
What problem would that be exactly?
On Mar 16, 2012 7:58 AM, HankWang wenhen.w...@gmail.com wrote:

 I have the same problem in my android app.

 Do you solve this problem??

 --
 You received this message because you are subscribed to the Google
 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] Newbie question - first attempt to run App on device gets Force Close

2012-03-16 Thread Save My Life!
There is a problem in listview.which u have drag drop.
On Mar 16, 2012 7:51 PM, Ted Scott t...@hootinholler.com wrote:

 Double check that the emulator you run on is versioned  lower than your
 device.

 Observe the launch with DDMS view which should report the exception.

 Run it under the debugger on your device.

 On 3/16/2012 5:14 AM, Mister Macaverty wrote:

 My app runs fine on the device emulator.

 When I connect it to my device, however, and I run it, it gets as far
 as showing the app title then I get a Force Close message.

 Any suggestions for the approach I should take for finding out what's
 causing the problem?

 Many thanks
 MM


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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

  1   2   >