Re: [android-developers] Xml file corrupted , how to recover xml file

2012-01-11 Thread tamil maran
delete and create new project

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Error while implementing CA Endless list. How to debug this error?

2012-01-11 Thread Satyajit Sarangi
I tried to implement the endless list but got this error on log chat:
http://pastebin.com/2WnnJ9KA

The error is caused due to not adding the package name
com.cware.endless in manifest.xml of my project. But, my project
already has its main package that is included in manifest.xml. Thus,
what changes should I do to seamlessly implement endlesslist?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] hi

2012-01-11 Thread Robinns
Can u post the logcat error?
On Jan 12, 2012 12:56 PM, "chowdary nani"  wrote:

> yes that is the link i need parse
> i am geetting error at reading the feeds
> i am unable to read the feeds i.e, i am getting empty eeds
>
> On Thu, Jan 12, 2012 at 12:27 PM, Robinns  wrote:
>
>> Is the link u want to parse is in RSS format
>> On Jan 12, 2012 12:35 PM, "chowdary nani" 
>> wrote:
>>
>>> Hi All,
>>> I am working on rss parsing i am unable to display the rss feeds and i
>>> am unable to find the problem.
>>> here is my code he feeds
>>>
>>> public class RSSReader extends Activity implements OnItemClickListener {
>>>
>>> public final String RSSFEEDOFCHOICE = "
>>> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_entries=20&feed_by=rss&isGUI=true&Submit.x=48&Submit.y=14
>>> ";
>>>
>>> private static final int SELECT = 0;
>>> private static final int REFRESH = 1;
>>>
>>> public final String tag = "RSSReader";
>>> private RSSFeed feed = null;
>>>
>>> /** Called when the activity is first created. */
>>>
>>> public void onCreate(Bundle icicle) {
>>> super.onCreate(icicle);
>>> setContentView(R.layout.main);
>>>
>>> // go get our feed!
>>> feed = getFeed(RSSFEEDOFCHOICE);
>>>
>>> // display UI
>>> UpdateDisplay();
>>>
>>> }
>>>
>>> private RSSFeed getFeed(String urlToRssFeed) {
>>> try {
>>> // setup the url
>>> URL url = new URL(urlToRssFeed);
>>>
>>> // create the factory
>>> SAXParserFactory factory = SAXParserFactory.newInstance();
>>> // create a parser
>>> SAXParser parser = factory.newSAXParser();
>>>
>>> // create the reader (scanner)
>>> XMLReader xmlreader = parser.getXMLReader();
>>> // instantiate our handler
>>> RSSHandler theRssHandler = new RSSHandler();
>>> // assign our handler
>>> xmlreader.setContentHandler(theRssHandler);
>>> // get our data via the url class
>>> InputSource is = new InputSource(url.openStream());
>>> // perform the synchronous parse
>>> xmlreader.parse(is);
>>> // get the results - should be a fully populated RSSFeed
>>> instance,
>>> // or null on error
>>> return theRssHandler.getFeed();
>>> } catch (Exception ee) {
>>> // if we have a problem, simply return null
>>> return null;
>>> }
>>> }
>>>
>>> public boolean onCreateOptionsMenu(Menu menu) {
>>> super.onCreateOptionsMenu(menu);
>>> menu.add(0, RSSReader.SELECT, 0, "Choose RSS Feed").setIcon(
>>> android.R.drawable.ic_menu_mapmode);
>>> // menu.add(0,0,"Choose RSS Feed");
>>> // menu.add(0,1,"Refresh");
>>> menu.add(0, RSSReader.REFRESH, 0, "Refresh").setIcon(
>>> android.R.drawable.ic_menu_mapmode);
>>> Log.i(tag, "onCreateOptionsMenu");
>>> return true;
>>> }
>>>
>>> @Override
>>> public boolean onMenuItemSelected(final int featureId, final
>>> MenuItem item) {
>>> switch (item.getItemId()) {
>>> case RSSReader.SELECT:
>>>
>>> Log.i(tag, "Set RSS Feed");
>>> return true;
>>> case RSSReader.REFRESH:
>>> Log.i(tag, "Refreshing RSS Feed");
>>> return true;
>>> }
>>> return false;
>>> }
>>>
>>> private void UpdateDisplay() {
>>> TextView feedtitle = (TextView) findViewById(R.id.feedtitle);
>>> TextView feedpubdate = (TextView) findViewById(R.id.feedpubdate);
>>> ListView itemlist = (ListView) findViewById(R.id.itemlist);
>>>
>>> if (feed == null) {
>>> feedtitle.setText("No RSS Feed Available");
>>> return;
>>> }
>>>
>>> feedtitle.setText(feed.getTitle());
>>> feedpubdate.setText(feed.getPubDate());
>>>
>>> ArrayAdapter adapter = new ArrayAdapter(this,
>>> android.R.layout.simple_list_item_1, feed.getAllItems());
>>>
>>> itemlist.setAdapter(adapter);
>>>
>>> itemlist.setOnItemClickListener(this);
>>>
>>> itemlist.setSelection(0);
>>>
>>> }
>>>
>>> public void onItemClick(AdapterView parent, View v, int position,
>>> long id) {
>>> Log.i(tag, "item clicked! [" + feed.getItem(position).getTitle()
>>> + "]");
>>>
>>> Intent itemintent = new Intent(this, ShowDescription.class);
>>>
>>> Bundle b = new Bundle();
>>> b.putString("title", feed.getItem(position).getTitle());
>>> b.putString("description",
>>> feed.getItem(position).getDescription());
>>> b.putString("link", feed.getItem(position).getLink());
>>> b.putString("pubdat

Re: [android-developers] Button on emulator looked "joined" with no padding

2012-01-11 Thread common user
Hi

Check this code

Image link :

http://www.freeimagehosting.net/d3xav

xml code:


http://schemas.android.com/apk/res/android";
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >



























On Wed, Jan 11, 2012 at 10:29 PM, jlau wrote:

> Hi
> I was trying to arrange 9 Buttons in TableLayout.(main.xml below)
>
> On the eclipse "Graphical Layout", it looked ok, Buttons spaced out
> nicely. Somehow on the emulator, all the 9 Buttons looked "joined"
>
> Here's the screenshot:
> http://www.freeimagehosting.net/sagst
>
> Yet to try on actual device but does anyone know why this is
> happening?
>
> Thanks in advance!
> --jason
>
> 
> http://schemas.android.com/apk/res/
> android"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:orientation="vertical" >
>
>android:id="@+id/score"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:gravity="center|bottom"
>android:text="@string/score"
>android:textSize="20dip" />
>
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:stretchColumns="0,1,2" >
>
>
>android:id="@+id/button1"
>/>
>android:id="@+id/button2"
>android:text="" />
>android:id="@+id/button3"
>android:text="" />
>
>
>android:id="@+id/button4"
>android:text="" />
>android:id="@+id/button5"
>android:text="" />
>android:id="@+id/button6"
>android:text="" />
>
>
>android:id="@+id/button7"
>android:text="" />
>android:id="@+id/button8"
>android:text="" />
>android:id="@+id/button9"
>android:text="" />
>
>
>
>android:id="@+id/rstButton"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:text="Restart" />
>
> 
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] hi

2012-01-11 Thread chowdary nani
yes that is the link i need parse
i am geetting error at reading the feeds
i am unable to read the feeds i.e, i am getting empty eeds

On Thu, Jan 12, 2012 at 12:27 PM, Robinns  wrote:

> Is the link u want to parse is in RSS format
> On Jan 12, 2012 12:35 PM, "chowdary nani" 
> wrote:
>
>> Hi All,
>> I am working on rss parsing i am unable to display the rss feeds and i am
>> unable to find the problem.
>> here is my code he feeds
>>
>> public class RSSReader extends Activity implements OnItemClickListener {
>>
>> public final String RSSFEEDOFCHOICE = "
>> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_entries=20&feed_by=rss&isGUI=true&Submit.x=48&Submit.y=14
>> ";
>>
>> private static final int SELECT = 0;
>> private static final int REFRESH = 1;
>>
>> public final String tag = "RSSReader";
>> private RSSFeed feed = null;
>>
>> /** Called when the activity is first created. */
>>
>> public void onCreate(Bundle icicle) {
>> super.onCreate(icicle);
>> setContentView(R.layout.main);
>>
>> // go get our feed!
>> feed = getFeed(RSSFEEDOFCHOICE);
>>
>> // display UI
>> UpdateDisplay();
>>
>> }
>>
>> private RSSFeed getFeed(String urlToRssFeed) {
>> try {
>> // setup the url
>> URL url = new URL(urlToRssFeed);
>>
>> // create the factory
>> SAXParserFactory factory = SAXParserFactory.newInstance();
>> // create a parser
>> SAXParser parser = factory.newSAXParser();
>>
>> // create the reader (scanner)
>> XMLReader xmlreader = parser.getXMLReader();
>> // instantiate our handler
>> RSSHandler theRssHandler = new RSSHandler();
>> // assign our handler
>> xmlreader.setContentHandler(theRssHandler);
>> // get our data via the url class
>> InputSource is = new InputSource(url.openStream());
>> // perform the synchronous parse
>> xmlreader.parse(is);
>> // get the results - should be a fully populated RSSFeed
>> instance,
>> // or null on error
>> return theRssHandler.getFeed();
>> } catch (Exception ee) {
>> // if we have a problem, simply return null
>> return null;
>> }
>> }
>>
>> public boolean onCreateOptionsMenu(Menu menu) {
>> super.onCreateOptionsMenu(menu);
>> menu.add(0, RSSReader.SELECT, 0, "Choose RSS Feed").setIcon(
>> android.R.drawable.ic_menu_mapmode);
>> // menu.add(0,0,"Choose RSS Feed");
>> // menu.add(0,1,"Refresh");
>> menu.add(0, RSSReader.REFRESH, 0, "Refresh").setIcon(
>> android.R.drawable.ic_menu_mapmode);
>> Log.i(tag, "onCreateOptionsMenu");
>> return true;
>> }
>>
>> @Override
>> public boolean onMenuItemSelected(final int featureId, final MenuItem
>> item) {
>> switch (item.getItemId()) {
>> case RSSReader.SELECT:
>>
>> Log.i(tag, "Set RSS Feed");
>> return true;
>> case RSSReader.REFRESH:
>> Log.i(tag, "Refreshing RSS Feed");
>> return true;
>> }
>> return false;
>> }
>>
>> private void UpdateDisplay() {
>> TextView feedtitle = (TextView) findViewById(R.id.feedtitle);
>> TextView feedpubdate = (TextView) findViewById(R.id.feedpubdate);
>> ListView itemlist = (ListView) findViewById(R.id.itemlist);
>>
>> if (feed == null) {
>> feedtitle.setText("No RSS Feed Available");
>> return;
>> }
>>
>> feedtitle.setText(feed.getTitle());
>> feedpubdate.setText(feed.getPubDate());
>>
>> ArrayAdapter adapter = new ArrayAdapter(this,
>> android.R.layout.simple_list_item_1, feed.getAllItems());
>>
>> itemlist.setAdapter(adapter);
>>
>> itemlist.setOnItemClickListener(this);
>>
>> itemlist.setSelection(0);
>>
>> }
>>
>> public void onItemClick(AdapterView parent, View v, int position,
>> long id) {
>> Log.i(tag, "item clicked! [" + feed.getItem(position).getTitle()
>> + "]");
>>
>> Intent itemintent = new Intent(this, ShowDescription.class);
>>
>> Bundle b = new Bundle();
>> b.putString("title", feed.getItem(position).getTitle());
>> b.putString("description",
>> feed.getItem(position).getDescription());
>> b.putString("link", feed.getItem(position).getLink());
>> b.putString("pubdate", feed.getItem(position).getPubDate());
>>
>> itemintent.putExtra("android.intent.extra.INTENT", b);
>>
>> // startSubActivity(itemintent,0);
>> startActivity(itemintent);
>> }
>>
>> }
>> p

Re: [android-developers] hi

2012-01-11 Thread Robinns
Is the link u want to parse is in RSS format
On Jan 12, 2012 12:35 PM, "chowdary nani"  wrote:

> Hi All,
> I am working on rss parsing i am unable to display the rss feeds and i am
> unable to find the problem.
> here is my code
>
> public class RSSReader extends Activity implements OnItemClickListener {
>
> public final String RSSFEEDOFCHOICE = "
> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_entries=20&feed_by=rss&isGUI=true&Submit.x=48&Submit.y=14
> ";
>
> private static final int SELECT = 0;
> private static final int REFRESH = 1;
>
> public final String tag = "RSSReader";
> private RSSFeed feed = null;
>
> /** Called when the activity is first created. */
>
> public void onCreate(Bundle icicle) {
> super.onCreate(icicle);
> setContentView(R.layout.main);
>
> // go get our feed!
> feed = getFeed(RSSFEEDOFCHOICE);
>
> // display UI
> UpdateDisplay();
>
> }
>
> private RSSFeed getFeed(String urlToRssFeed) {
> try {
> // setup the url
> URL url = new URL(urlToRssFeed);
>
> // create the factory
> SAXParserFactory factory = SAXParserFactory.newInstance();
> // create a parser
> SAXParser parser = factory.newSAXParser();
>
> // create the reader (scanner)
> XMLReader xmlreader = parser.getXMLReader();
> // instantiate our handler
> RSSHandler theRssHandler = new RSSHandler();
> // assign our handler
> xmlreader.setContentHandler(theRssHandler);
> // get our data via the url class
> InputSource is = new InputSource(url.openStream());
> // perform the synchronous parse
> xmlreader.parse(is);
> // get the results - should be a fully populated RSSFeed
> instance,
> // or null on error
> return theRssHandler.getFeed();
> } catch (Exception ee) {
> // if we have a problem, simply return null
> return null;
> }
> }
>
> public boolean onCreateOptionsMenu(Menu menu) {
> super.onCreateOptionsMenu(menu);
> menu.add(0, RSSReader.SELECT, 0, "Choose RSS Feed").setIcon(
> android.R.drawable.ic_menu_mapmode);
> // menu.add(0,0,"Choose RSS Feed");
> // menu.add(0,1,"Refresh");
> menu.add(0, RSSReader.REFRESH, 0, "Refresh").setIcon(
> android.R.drawable.ic_menu_mapmode);
> Log.i(tag, "onCreateOptionsMenu");
> return true;
> }
>
> @Override
> public boolean onMenuItemSelected(final int featureId, final MenuItem
> item) {
> switch (item.getItemId()) {
> case RSSReader.SELECT:
>
> Log.i(tag, "Set RSS Feed");
> return true;
> case RSSReader.REFRESH:
> Log.i(tag, "Refreshing RSS Feed");
> return true;
> }
> return false;
> }
>
> private void UpdateDisplay() {
> TextView feedtitle = (TextView) findViewById(R.id.feedtitle);
> TextView feedpubdate = (TextView) findViewById(R.id.feedpubdate);
> ListView itemlist = (ListView) findViewById(R.id.itemlist);
>
> if (feed == null) {
> feedtitle.setText("No RSS Feed Available");
> return;
> }
>
> feedtitle.setText(feed.getTitle());
> feedpubdate.setText(feed.getPubDate());
>
> ArrayAdapter adapter = new ArrayAdapter(this,
> android.R.layout.simple_list_item_1, feed.getAllItems());
>
> itemlist.setAdapter(adapter);
>
> itemlist.setOnItemClickListener(this);
>
> itemlist.setSelection(0);
>
> }
>
> public void onItemClick(AdapterView parent, View v, int position, long
> id) {
> Log.i(tag, "item clicked! [" + feed.getItem(position).getTitle() +
> "]");
>
> Intent itemintent = new Intent(this, ShowDescription.class);
>
> Bundle b = new Bundle();
> b.putString("title", feed.getItem(position).getTitle());
> b.putString("description",
> feed.getItem(position).getDescription());
> b.putString("link", feed.getItem(position).getLink());
> b.putString("pubdate", feed.getItem(position).getPubDate());
>
> itemintent.putExtra("android.intent.extra.INTENT", b);
>
> // startSubActivity(itemintent,0);
> startActivity(itemintent);
> }
>
> }
> public class RSSReader extends Activity implements OnItemClickListener {
>
> public final String RSSFEEDOFCHOICE = "
> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_

Re: [android-developers] hi

2012-01-11 Thread Robinns
Now u have the code.so far so good.
Now point us where u have error?
Check ur log?
Don't expect someone will copy paste ur code to run n find the error?
What abt ur manifest file?
Ur prermission?
On Jan 12, 2012 12:35 PM, "chowdary nani"  wrote:

> Hi All,
> I am working on rss parsing i am unable to display the rss feeds and i am
> unable to find the problem.
> here is my code
>
> public class RSSReader extends Activity implements OnItemClickListener {
>
> public final String RSSFEEDOFCHOICE = "
> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_entries=20&feed_by=rss&isGUI=true&Submit.x=48&Submit.y=14
> ";
>
> private static final int SELECT = 0;
> private static final int REFRESH = 1;
>
> public final String tag = "RSSReader";
> private RSSFeed feed = null;
>
> /** Called when the activity is first created. */
>
> public void onCreate(Bundle icicle) {
> super.onCreate(icicle);
> setContentView(R.layout.main);
>
> // go get our feed!
> feed = getFeed(RSSFEEDOFCHOICE);
>
> // display UI
> UpdateDisplay();
>
> }
>
> private RSSFeed getFeed(String urlToRssFeed) {
> try {
> // setup the url
> URL url = new URL(urlToRssFeed);
>
> // create the factory
> SAXParserFactory factory = SAXParserFactory.newInstance();
> // create a parser
> SAXParser parser = factory.newSAXParser();
>
> // create the reader (scanner)
> XMLReader xmlreader = parser.getXMLReader();
> // instantiate our handler
> RSSHandler theRssHandler = new RSSHandler();
> // assign our handler
> xmlreader.setContentHandler(theRssHandler);
> // get our data via the url class
> InputSource is = new InputSource(url.openStream());
> // perform the synchronous parse
> xmlreader.parse(is);
> // get the results - should be a fully populated RSSFeed
> instance,
> // or null on error
> return theRssHandler.getFeed();
> } catch (Exception ee) {
> // if we have a problem, simply return null
> return null;
> }
> }
>
> public boolean onCreateOptionsMenu(Menu menu) {
> super.onCreateOptionsMenu(menu);
> menu.add(0, RSSReader.SELECT, 0, "Choose RSS Feed").setIcon(
> android.R.drawable.ic_menu_mapmode);
> // menu.add(0,0,"Choose RSS Feed");
> // menu.add(0,1,"Refresh");
> menu.add(0, RSSReader.REFRESH, 0, "Refresh").setIcon(
> android.R.drawable.ic_menu_mapmode);
> Log.i(tag, "onCreateOptionsMenu");
> return true;
> }
>
> @Override
> public boolean onMenuItemSelected(final int featureId, final MenuItem
> item) {
> switch (item.getItemId()) {
> case RSSReader.SELECT:
>
> Log.i(tag, "Set RSS Feed");
> return true;
> case RSSReader.REFRESH:
> Log.i(tag, "Refreshing RSS Feed");
> return true;
> }
> return false;
> }
>
> private void UpdateDisplay() {
> TextView feedtitle = (TextView) findViewById(R.id.feedtitle);
> TextView feedpubdate = (TextView) findViewById(R.id.feedpubdate);
> ListView itemlist = (ListView) findViewById(R.id.itemlist);
>
> if (feed == null) {
> feedtitle.setText("No RSS Feed Available");
> return;
> }
>
> feedtitle.setText(feed.getTitle());
> feedpubdate.setText(feed.getPubDate());
>
> ArrayAdapter adapter = new ArrayAdapter(this,
> android.R.layout.simple_list_item_1, feed.getAllItems());
>
> itemlist.setAdapter(adapter);
>
> itemlist.setOnItemClickListener(this);
>
> itemlist.setSelection(0);
>
> }
>
> public void onItemClick(AdapterView parent, View v, int position, long
> id) {
> Log.i(tag, "item clicked! [" + feed.getItem(position).getTitle() +
> "]");
>
> Intent itemintent = new Intent(this, ShowDescription.class);
>
> Bundle b = new Bundle();
> b.putString("title", feed.getItem(position).getTitle());
> b.putString("description",
> feed.getItem(position).getDescription());
> b.putString("link", feed.getItem(position).getLink());
> b.putString("pubdate", feed.getItem(position).getPubDate());
>
> itemintent.putExtra("android.intent.extra.INTENT", b);
>
> // startSubActivity(itemintent,0);
> startActivity(itemintent);
> }
>
> }
> public class RSSReader extends Activity implements OnItemClickListener {
>
> public final String RSSFEEDOFCHOICE = "
> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?z

Re: [android-developers] hi

2012-01-11 Thread Raghav Sood
What exception are you getting? Post the appropriate part of the LogCat.

On Thu, Jan 12, 2012 at 12:19 PM, chowdary nani wrote:

> Hi All,
> I am working on rss parsing i am unable to display the rss feeds and i am
> unable to find the problem.
> here is my code
>
> public class RSSReader extends Activity implements OnItemClickListener {
>
> public final String RSSFEEDOFCHOICE = "
> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_entries=20&feed_by=rss&isGUI=true&Submit.x=48&Submit.y=14
> ";
>
> private static final int SELECT = 0;
> private static final int REFRESH = 1;
>
> public final String tag = "RSSReader";
> private RSSFeed feed = null;
>
> /** Called when the activity is first created. */
>
> public void onCreate(Bundle icicle) {
> super.onCreate(icicle);
> setContentView(R.layout.main);
>
> // go get our feed!
> feed = getFeed(RSSFEEDOFCHOICE);
>
> // display UI
> UpdateDisplay();
>
> }
>
> private RSSFeed getFeed(String urlToRssFeed) {
> try {
> // setup the url
> URL url = new URL(urlToRssFeed);
>
> // create the factory
> SAXParserFactory factory = SAXParserFactory.newInstance();
> // create a parser
> SAXParser parser = factory.newSAXParser();
>
> // create the reader (scanner)
> XMLReader xmlreader = parser.getXMLReader();
> // instantiate our handler
> RSSHandler theRssHandler = new RSSHandler();
> // assign our handler
> xmlreader.setContentHandler(theRssHandler);
> // get our data via the url class
> InputSource is = new InputSource(url.openStream());
> // perform the synchronous parse
> xmlreader.parse(is);
> // get the results - should be a fully populated RSSFeed
> instance,
> // or null on error
> return theRssHandler.getFeed();
> } catch (Exception ee) {
> // if we have a problem, simply return null
> return null;
> }
> }
>
> public boolean onCreateOptionsMenu(Menu menu) {
> super.onCreateOptionsMenu(menu);
> menu.add(0, RSSReader.SELECT, 0, "Choose RSS Feed").setIcon(
> android.R.drawable.ic_menu_mapmode);
> // menu.add(0,0,"Choose RSS Feed");
> // menu.add(0,1,"Refresh");
> menu.add(0, RSSReader.REFRESH, 0, "Refresh").setIcon(
> android.R.drawable.ic_menu_mapmode);
> Log.i(tag, "onCreateOptionsMenu");
> return true;
> }
>
> @Override
> public boolean onMenuItemSelected(final int featureId, final MenuItem
> item) {
> switch (item.getItemId()) {
> case RSSReader.SELECT:
>
> Log.i(tag, "Set RSS Feed");
> return true;
> case RSSReader.REFRESH:
> Log.i(tag, "Refreshing RSS Feed");
> return true;
> }
> return false;
> }
>
> private void UpdateDisplay() {
> TextView feedtitle = (TextView) findViewById(R.id.feedtitle);
> TextView feedpubdate = (TextView) findViewById(R.id.feedpubdate);
> ListView itemlist = (ListView) findViewById(R.id.itemlist);
>
> if (feed == null) {
> feedtitle.setText("No RSS Feed Available");
> return;
> }
>
> feedtitle.setText(feed.getTitle());
> feedpubdate.setText(feed.getPubDate());
>
> ArrayAdapter adapter = new ArrayAdapter(this,
> android.R.layout.simple_list_item_1, feed.getAllItems());
>
> itemlist.setAdapter(adapter);
>
> itemlist.setOnItemClickListener(this);
>
> itemlist.setSelection(0);
>
> }
>
> public void onItemClick(AdapterView parent, View v, int position, long
> id) {
> Log.i(tag, "item clicked! [" + feed.getItem(position).getTitle() +
> "]");
>
> Intent itemintent = new Intent(this, ShowDescription.class);
>
> Bundle b = new Bundle();
> b.putString("title", feed.getItem(position).getTitle());
> b.putString("description",
> feed.getItem(position).getDescription());
> b.putString("link", feed.getItem(position).getLink());
> b.putString("pubdate", feed.getItem(position).getPubDate());
>
> itemintent.putExtra("android.intent.extra.INTENT", b);
>
> // startSubActivity(itemintent,0);
> startActivity(itemintent);
> }
>
> }
> public class RSSReader extends Activity implements OnItemClickListener {
>
> public final String RSSFEEDOFCHOICE = "
> http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search

[android-developers] hi

2012-01-11 Thread chowdary nani
Hi All,
I am working on rss parsing i am unable to display the rss feeds and i am
unable to find the problem.
here is my code

public class RSSReader extends Activity implements OnItemClickListener {

public final String RSSFEEDOFCHOICE = "
http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_entries=20&feed_by=rss&isGUI=true&Submit.x=48&Submit.y=14
";

private static final int SELECT = 0;
private static final int REFRESH = 1;

public final String tag = "RSSReader";
private RSSFeed feed = null;

/** Called when the activity is first created. */

public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);

// go get our feed!
feed = getFeed(RSSFEEDOFCHOICE);

// display UI
UpdateDisplay();

}

private RSSFeed getFeed(String urlToRssFeed) {
try {
// setup the url
URL url = new URL(urlToRssFeed);

// create the factory
SAXParserFactory factory = SAXParserFactory.newInstance();
// create a parser
SAXParser parser = factory.newSAXParser();

// create the reader (scanner)
XMLReader xmlreader = parser.getXMLReader();
// instantiate our handler
RSSHandler theRssHandler = new RSSHandler();
// assign our handler
xmlreader.setContentHandler(theRssHandler);
// get our data via the url class
InputSource is = new InputSource(url.openStream());
// perform the synchronous parse
xmlreader.parse(is);
// get the results - should be a fully populated RSSFeed
instance,
// or null on error
return theRssHandler.getFeed();
} catch (Exception ee) {
// if we have a problem, simply return null
return null;
}
}

public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
menu.add(0, RSSReader.SELECT, 0, "Choose RSS Feed").setIcon(
android.R.drawable.ic_menu_mapmode);
// menu.add(0,0,"Choose RSS Feed");
// menu.add(0,1,"Refresh");
menu.add(0, RSSReader.REFRESH, 0, "Refresh").setIcon(
android.R.drawable.ic_menu_mapmode);
Log.i(tag, "onCreateOptionsMenu");
return true;
}

@Override
public boolean onMenuItemSelected(final int featureId, final MenuItem
item) {
switch (item.getItemId()) {
case RSSReader.SELECT:

Log.i(tag, "Set RSS Feed");
return true;
case RSSReader.REFRESH:
Log.i(tag, "Refreshing RSS Feed");
return true;
}
return false;
}

private void UpdateDisplay() {
TextView feedtitle = (TextView) findViewById(R.id.feedtitle);
TextView feedpubdate = (TextView) findViewById(R.id.feedpubdate);
ListView itemlist = (ListView) findViewById(R.id.itemlist);

if (feed == null) {
feedtitle.setText("No RSS Feed Available");
return;
}

feedtitle.setText(feed.getTitle());
feedpubdate.setText(feed.getPubDate());

ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, feed.getAllItems());

itemlist.setAdapter(adapter);

itemlist.setOnItemClickListener(this);

itemlist.setSelection(0);

}

public void onItemClick(AdapterView parent, View v, int position, long
id) {
Log.i(tag, "item clicked! [" + feed.getItem(position).getTitle() +
"]");

Intent itemintent = new Intent(this, ShowDescription.class);

Bundle b = new Bundle();
b.putString("title", feed.getItem(position).getTitle());
b.putString("description", feed.getItem(position).getDescription());
b.putString("link", feed.getItem(position).getLink());
b.putString("pubdate", feed.getItem(position).getPubDate());

itemintent.putExtra("android.intent.extra.INTENT", b);

// startSubActivity(itemintent,0);
startActivity(itemintent);
}

}
public class RSSReader extends Activity implements OnItemClickListener {

public final String RSSFEEDOFCHOICE = "
http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=XML&zone_by=Java&zone_by=Rational&zone_by=Linux&zone_by=Open+source&zone_by=WebSphere&type_by=Tutorials&search_by=&day=1&month=06&year=2007&max_entries=20&feed_by=rss&isGUI=true&Submit.x=48&Submit.y=14
";

private static final int SELECT = 0;
private static final int REFRESH = 1;

public final String tag = "RSSReader";
private RSSFeed feed = null;

/** Called when the activity is first created. */


public void onCreate(Bundle icicle) {
super.onCre

[android-developers] Frame Animation raises Memory leak error

2012-01-11 Thread Keyur
Hello all,

I am facing a problem in Frame Animation in which I am using
AnimationDrawable. I am having approx 200 png images inside drawable
folder for 10 different animation. I am having 10 buttons for this
animation. But its giving me outoferrormemory saying VM budget can't
allocate this much memory. Is there any other solution for this
problem. Please kindly help me to resolve this if anyone is having any
idea.

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: Credit card swiper with API

2012-01-11 Thread JP


On Jan 11, 11:32 am, JC  wrote:
> Hello Everyone,
>
> I have a task to create and Android application that reads the Credit
> Card information from a CC swiper and process the payment through a
> web service in our existing website. The reason for that is so that
> our sales people can simply select the product, swipe the card,  and
> the system does the rest: Charge card, create account, send welcome e-
> mail, and return a confirmation or error back to the device as a
> response.
>
> My issue is that I have not been able to find a swiper (hardware) that
> exposes and API that I can use to build my own application. All the
> swipers I find are tied to a service or gateway. Any suggestions will
> be appreciated.
>
> Thank you,
>
> JC


No offense, but from far it looks like neither your task sponsor
(boss?) or you have a clue what you're up against... Have you heard of
PCI?
At any rate though, not to discourage or anything, and considering
you've got to start somewhere...
As you've already found, there's the likes of Intuit, Square and
VeriFone out there. Their business is the kind of financial
transaction you are tasked with, and they have more (Verifone) or less
(Square) solid systems in place. It would seem unlikely you'll see an
API that would enable others to compete with them, but they might be
open to partnering. Ask them (or have your task sponsor ask them,
rather). Unless you have the time and resources to go down the path of
developing a CC reader and everything that goes along with it (think
PCI certification), partnering with one of these guys would be the
only viable option for you, IMHO anyways.
If you really really want to soldier on by yourself, you could go for
Square's reader for now. These are sold like candy, i.e. without
distribution control and sanctions, and have no encryption. Your API
in a sense would be based on the audio of the CC swipe coming in
through the headphone jack. Demodulate it into a bitstream and then
decode that into credit card number and expiration date. This would be
a difficult but straightforward exercise, because Square's reader does
not encrypt the unencrypted data on the magnetic CC strips. You do
risk however getting shut down by regulatory action down the road,
because you're building on a security hole that's so big you could fly
a jumbo jet through it, so there's a good chance these readers will go
away one day, leaving you high and dry.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] hi

2012-01-11 Thread Jim Graham
On Thu, Jan 12, 2012 at 11:16:13AM +0530, chowdary nani wrote:
> 
> I need help on rss feed parsing in android
> can any one help me please.

I'm assuming that second line is a question.  The answer is, no.
Nobody can help you at this time, because you haven't:

   A) told us what you are having trouble with;
   B) told us what you've done to try to debug and solve it prior
  to posting here;
   C) posted the bit of your code that isn't working;
   D) posted the associated portion of the logcat output.

Btw, just trying to be helpful here...it's "anyone" not "any one" and
questions don't end with a period ('.'), they end with a question mark
('?').  Again, just trying to be helpful, so don't take this the wrong
way.  When you turn a question into a statement like that, it changes
the meaning completely.  Oh, and "hi" is a horrible subject, as it has
NOTHING to do with your question.  A better choice would be something
like, "Question about parsing an RSS feed"

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

"sigh, once upon a time T-1 was fast"
   --seen in alt.sysadmin.net-abuse.email

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] ADT r15 Emulator Camera

2012-01-11 Thread Đan Lê
Hi,
Currently I am working on a project which require camera. I know in the new 
version of ADT, default camera works well, but if you try to do something 
like
Camera mCamera = Camera.open();
it still shows the black white box.
So can anyone tell me how they implemented the default camera, and is it 
using the native code?
I need the byte[] data array of onPreviewFrame so send an intent to camera 
is not quite possible.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] hi

2012-01-11 Thread Robinns
Please Google n find something n yes once u got error do request help u
surely ell be helped
On Jan 12, 2012 11:32 AM, "chowdary nani"  wrote:

> HI All,
>
>
> I need help on rss feed parsing in android
> can any one help me please.
>
>
>
>
> Thanks
> Naveen
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] hi

2012-01-11 Thread chowdary nani
HI All,


I need help on rss feed parsing in android
can any one help me please.




Thanks
Naveen

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Tool for localisation file handling (non XML)

2012-01-11 Thread Stephan Wiesner
Hi,
I am working on a App that supports several languages and got an offer to
have my strings.xml file translated into several languages. However, the
persons doing that are not technical and I would really prefer to give them
an Excel file or something like that.
Anybody using something else than a pure XML editor to handle translations?

Thanks and greetings from Lucerne,
Stephan Wiesner

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Search WiFi Subnet Devices Details (IP & MAC)

2012-01-11 Thread Rajeev Singh Chib
Hi All,

Please suggest 

Thanks,
Rajeev Singh
Email - rajeev16mca...@gmail.com


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Rajeev Singh
Sent: Wednesday, January 11, 2012 9:03 PM
To: Android Developers
Subject: [android-developers] Search WiFi Subnet Devices Details (IP & MAC)

Hi All,

Its very urgent query.
I am new in android development and struggling for finding all
devices(Network Printers) in WLAN.
In Market, Fing(http://www.over-look.org) is already existing application,
which is having same functionality as i want. But i want this feature in my
application, but dont know the way to do.

Thanks,
Rajeev Singh
Email - rajeev16mca...@gmail.com

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 the payment from amazon earning

2012-01-11 Thread a a
As title

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Credit card swiper with API

2012-01-11 Thread Jim Graham
On Wed, Jan 11, 2012 at 11:32:32AM -0800, JC wrote:

> My issue is that I have not been able to find a swiper (hardware) that
> exposes and API that I can use to build my own application. All the
> swipers I find are tied to a service or gateway. Any suggestions will
> be appreciated.

So you're writing the interface yourself, then?

What have you done so far as far as coding for your app?  What errors are
you seeing?  Post the relevant bits of code (that are failing) and the
associated logcat output.  Then, maybe, someone can help you with your
app.

As far as credit card readers, wrong group (obviously).

Later,
   --jim

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

Seen in alt.sysadmin.recovery:  "Priceless; that's better than telling
him to use the Read Manual command with the Real Fast option."

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] Pls take a look into this problem

2012-01-11 Thread Jim Graham
On Wed, Jan 11, 2012 at 11:29:33AM -0800, Biswaraj Phuyal wrote:
> Lmk if I am missing anything.
> 
> http://stackoverflow.com/questions/8766690/how-to-avoid-unnecessary-log-like-quickcontactservice-quickcontactwidget-quick

Looks like an insanely-long link, that should have been put through
TinyURL before posting here.  Aside from that, it looks like a properly
formed link.  Is that all you needed to know?

If there's some other problem, you might want to post it.  Post all
relevant code (not the whole app, just the bit that's failing) and
similarly, the relevant logcat output.  Also let us know what error
you're seeing, and what seems to cause it.  THEN we might be able to
help you.

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

"sigh, once upon a time T-1 was fast"
   --seen in alt.sysadmin.net-abuse.email

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] I need Google Map Application...

2012-01-11 Thread Jim Graham
On Wed, Jan 11, 2012 at 06:32:06AM -0800, Senthamizh S wrote:
> I need Google Map Full Coding...

Ok, start working on it.  If you get stuck, start with a combination of
Google and the developers guide.

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

"sigh, once upon a time T-1 was fast"
   --seen in alt.sysadmin.net-abuse.email

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] Re: Android fragmentation study

2012-01-11 Thread Christopher Van Kirk

Yeah, I would respectfully disagree with your assessment.

Making software is a business. An investment. To reap maximum rewards on 
that investment the product has to have as much reach as possible, 
meaning the OP is absolutely on point about OS upgrades. Who is going to 
spend 10k, 100k, 1m, etc, developing an app whose target market is less 
than 1% of active installs? 4.0 won't be an attractive target for 
developers until it commands at least 80% of the installed market, which 
will likely take at least a year to occur, perhaps longer.


Comparing handset differences with browser difference is just absurd. 
How many browser versions are there? Five maybe six? An average Android 
app has to deal with over 600 different devices today. That's a 
difference of 100x. This number is also growing at an exponential rate, 
so even if you can manage to test on all of those devices, in three 
months you'll probably have to do the same number again.


What you're apparently not appreciating is that unlike the PC/Mac world, 
the Android world lacks strong compatibility standards and more 
importantly, conformance testing. As a consequence, devices tend to have 
niggling and chronic differences that in aggregate make for an 
inconsistent and unstable feel for the platform. You really have to have 
a very large operation or have a very unambitious app to make an app 
with long reach in the Android world.


By contrast, the Apple approach is that one size fits all. From a small 
or independent developers perspective this really is preferable, because 
you know if you test it and it works on one device it's going to work on 
all of them, and there are millions of them out there. You simply don't 
have that guarantee in Android. It's no accident that the most 
profitable app market is to be found on Apple devices.


Don't get me wrong. I'm not an Apple fan. But having spent considerable 
time fighting with device peculiarities in the Android ecosystem instead 
of adding features to my app, I find that I long for the simplicity that 
the Apple ecosystem guarantees.


On 10/28/2011 12:01 AM, Studio LFP wrote:

Eh, it's not that bad.

If you look at the history of developers, we're already use to having 
to deal with a lot worse fragmentation issues than Android. Anyone 
that's ever developed a website correctly knows that supporting the 
available web browsers is a lot more of a challenge than with Android 
versions.


Windows, Mac OSX, a ton of server technologies, databases, etc., they 
all have tons of different versions available to support. Most 
companies stick with older versions because it is what they have and 
it is working. When it comes to Android, I've been pleasantly 
surprised at the efforts Google has gone through to help manufacturers 
upgrade. Even though 2.1, 2.2 and 2.3 are different, they aren't so 
much different that in most cases you can't treat them as 2.x. It 
seems to me that Android is more broken up in 1.x, 2.x, 3.x and now 
4.x instead of the individual versions themselves.


I'd rather a little fragmentation in Android than for them to pull an 
Apple and everyone is the exact same, right down to the hardware 
level. Variety is something we need in the mobile market, not a one 
device fits all concept.


Steven
Studio LFP
http://www.studio-lfp.com


On Thursday, October 27, 2011 10:36:24 AM UTC-5, Greg Donald wrote:


http://theunderstatement.com/post/11982112928/android-orphans-visualizing-a-sad-history-of-support




Wow.. I knew it was bad, but man.


"most app developers will end up targeting an ancient version of the
OS in order to maximize market reach."

I totally agree.. It will literally be years before I will begin to
care about the new 4.0.  I'm still supporting devices running 2.1 and
will be for some time to come.


-- 
Greg Donald


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] change of password in an android keystore

2012-01-11 Thread Nikolay Elenkov
On Thu, Jan 12, 2012 at 12:57 PM, bob  wrote:
> How do you change the password in an android keystore?

More details? Assuming by 'android keystore', you mean a Java keystore
file, load it first, and then specify a different password when you save it.

http://docs.oracle.com/javase/6/docs/api/java/security/KeyStore.html#store%28java.io.OutputStream,%20char[]%29

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Giving away my book: "Genius Android Marketing"

2012-01-11 Thread mot12
So I looked up your title and I read "Get rich by outsmarting the
Android market". Really? Yawn. If you are so rich, why waste the time
writing a book? I have an app with 500.000 downloads and 100.000 sales
in two years. I am not rich but it makes for a good living. And I have
several ideas for apps which I think would be successful but I lack
the time to do them as customer support for my successful apps is
demanding. If I had more time, I would program more apps, not write a
book about it. After 50-something comments "please give me something
for free" I felt a counterpoint was needed.

So you want to be rich? A book won't make you rich. A book may make
the writer rich but not you. If you have a good idea and there's not
too much competition for that in the market already, go for it. And
learn from the feed you get from users. Much of it is luck, no matter
what any book tells you.

Martin
mobitobi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] change of password in an android keystore

2012-01-11 Thread bob
How do you change the password in an android keystore?

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


Re: [android-developers] Re: android gps client sending coordinates to server only if within an area

2012-01-11 Thread Kristopher Micinski
On Wed, Jan 11, 2012 at 3:22 AM, Kasas  wrote:
> In order to send the less quantity of information as posible I
> recommend to use Sockets instead of REST Services or SOAP, however, it
> will be much easier to use these services...
>
> On the other hand, I think you cannot theorically do these kind of
> things... because in the practice everything could not work... you
> should test the code in order to see what problems you have.
>

What do you mean?  I don't see why this would be so hard, the only
problem is that the app might get killed off, in reality you might
want to use alarm manager to check periodically if you're 'near' the
hot spot.

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread JamesColeman
I must have missed something the first time I tried. This time it
worked the first time I tried it. I guess I must have have one of
those not so bright moments the first time I tried. Maybe it was late
at night.

Thank you VERY VERY much.  Since I already tried this and failed, it
would have taken me forever to figure this out on my own. You saved me
a LOT of time.

Enjoy and good luck with your endeavors!

On Jan 11, 8:05 pm, skink  wrote:
> JamesColeman wrote:
> > Thank you for your reply!!
>
> > I am not sure what doesn't make sense.  I was told from a developers
> > forum that  I HAVE to use the xml file and extend surfaceview to
> > accomplish my goals. So that is what I did.  It works, all I need to
> > do now is call a method.
>
> > The DrawingSurfaceView is created from the xml file, not my code, so I
> > don't know how to format a call to mymethod.
>
> > If it wasn't created from the xml file there are a couple of ways for
> > me to call mymethod. For example if I create the class from where I
> > want to make the call I can do the following.
>
> > DrawingSurfaceView MyView - new DrawingSurfaceView();
> > MyView.myMethod();
>
> > However, I never create the MyView. It is created form the xlm file.
>
> > I  do not think basic android questions involve xml layout files.
>
> its 4am so I'm sure i missed something, but uf not, what abiut sumpke:
>
> findViewById(R.id.DrawingSurfaceView)
>
> called in your activity?
>
> pskink

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


[android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread skink


JamesColeman wrote:
> Thank you for your reply!!
>
> I am not sure what doesn't make sense.  I was told from a developers
> forum that  I HAVE to use the xml file and extend surfaceview to
> accomplish my goals. So that is what I did.  It works, all I need to
> do now is call a method.
>
> The DrawingSurfaceView is created from the xml file, not my code, so I
> don't know how to format a call to mymethod.
>
> If it wasn't created from the xml file there are a couple of ways for
> me to call mymethod. For example if I create the class from where I
> want to make the call I can do the following.
>
> DrawingSurfaceView MyView - new DrawingSurfaceView();
> MyView.myMethod();
>
> However, I never create the MyView. It is created form the xlm file.
>
> I  do not think basic android questions involve xml layout files.
>

its 4am so I'm sure i missed something, but uf not, what abiut sumpke:

findViewById(R.id.DrawingSurfaceView)

called in your activity?

pskink

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


[android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread JamesColeman
In the SurfaceView that gets created I override onTouchEvent.  Setting
my DrawShape variable for the SurfaceView that gets created will
change the type of object being drawn on the canvas when the user
touches the screen.

I could swear that I have already tried to set the view id and get a
reference to it.  However, I have tried many different approaches.  If
the is the correct approach, I will try it again immediately and post
my results.

Thanks!
James

On Jan 11, 7:46 pm, Kristopher Micinski 
wrote:
> On Wed, Jan 11, 2012 at 9:36 PM, JamesColeman
>
>  wrote:
> > I draw various objects on the SurfaceView canvas.  I also have a
> > dialog screen defined with a xml file that has buttons. I just want to
> > use a dialog screen button to change the value of one variable,.
> > Following is the real myMethod.
>
> >    public void setDrawShape(int drawshape){
> >        DrawShape = drawshape;
> >    }
>
> Ah, sorry if I had taken your previously comment as an insult
> incorrectly.  I am correct in saying that setting that variable will
> then affect which button is drawn in your onDraw() method?  In general
> mixing the xml layouts and programmatically defined layouts probably
> isn't a good idea.  Can you not give the view an id in the layout,
> then use use getResourceById (or whatever) to get a reference to it?
> In general you shouldn't need to architect things this way, but I
> haven't used SurfaceView much so I may be a bit out of my element on
> this one.  I mean in the worst case scenario (which seems like a real
> hack), you can always make this a static method and use a static
> variable, but like I said, that's quite a bit of a hack.
>
> kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread Kristopher Micinski
Oh right, sorry, I was being dumb there.., haven't done gui stuff in a
while\dots, just assign the view an id and do a findViewById() to get
the instance, then call the method on the view.

http://stackoverflow.com/questions/5391089/how-to-make-surfaceview-transparent

shows an example.

kris

On Wed, Jan 11, 2012 at 9:46 PM, Kristopher Micinski
 wrote:
> On Wed, Jan 11, 2012 at 9:36 PM, JamesColeman
>  wrote:
>> I draw various objects on the SurfaceView canvas.  I also have a
>> dialog screen defined with a xml file that has buttons. I just want to
>> use a dialog screen button to change the value of one variable,.
>> Following is the real myMethod.
>>
>>
>>    public void setDrawShape(int drawshape){
>>        DrawShape = drawshape;
>>    }
>>
>
> Ah, sorry if I had taken your previously comment as an insult
> incorrectly.  I am correct in saying that setting that variable will
> then affect which button is drawn in your onDraw() method?  In general
> mixing the xml layouts and programmatically defined layouts probably
> isn't a good idea.  Can you not give the view an id in the layout,
> then use use getResourceById (or whatever) to get a reference to it?
> In general you shouldn't need to architect things this way, but I
> haven't used SurfaceView much so I may be a bit out of my element on
> this one.  I mean in the worst case scenario (which seems like a real
> hack), you can always make this a static method and use a static
> variable, but like I said, that's quite a bit of a hack.
>
> kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using an adapter from another class/activity

2012-01-11 Thread Kristopher Micinski
On Wed, Jan 11, 2012 at 9:46 PM, galapogos  wrote:
> Hi,
>
> I'm not aware of the singleton model. Are there any guides for it?
>
> Thanks.
>

the "singleton model" refers to a so called "design pattern" ..., You
can google it to find good examples:

http://en.wikipedia.org/wiki/Singleton_pattern

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When is the SurfaceTexture created within TextureView?

2012-01-11 Thread Romain Guy
The SurfaceTexture is created during the first layout pass. You need
to add the TextureView to the window first.

On Wed, Jan 11, 2012 at 4:09 PM, dcheng  wrote:
> When using the TextureView class, when is the SurfaceTexture created?
>
> I created a class that has a private member TextureView mTexture and
> implements TextureView.SurfaceTextureListener.
>
> In the constructor, I added these lines:
>
>        mTextureView = new TextureView(context);
>        mTextureView.setSurfaceTextureListener(this);
>
> Then I wait for the onSurfaceTextureAvailable(SurfaceTexture surface,
> int width, int height) callback for the SurfaceTexture but it never
> gets called.
>
> Is there something else required to trigger the
> onSurfaceTextureAvailable callback?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
romain...@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: Using an adapter from another class/activity

2012-01-11 Thread galapogos
Hi,

I'm not aware of the singleton model. Are there any guides for it?

Thanks.

On Jan 12, 2:50 am, Kai Cui  wrote:
> hi,
>    Have you try to create a singleton model for ArrayAdapter? All your 
> ArrayAdapters in different activities can share the same model.
> Kai,
>
> On Jan 11, 2012, at 4:19 PM, galapogos wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > How can I use an ArrayAdapter from another activity? I tried doing the
> > following in MyListActivity.onCreate():
> > setListAdapter(SomeOtherActivity.myAdapter);
> > where myAdapter is defined and initialized in SomeOtherActivity.
> > However, I get an empty list, even though I verified that
> > SomeOtherActivity.myAdapter is fully populated via a call to
> > SomeOtherActivity.myAdapter.getCount();
>
> > If I define and initialize my own adapter in MyListActivity with
> > setListAdapter(myLocalAdapter), it works. Once I switch it to
> > setListAdapter(SomeOtherActivity.myAdapter), I get an empty list.
>
> > Help please? Thanks.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread Kristopher Micinski
On Wed, Jan 11, 2012 at 9:36 PM, JamesColeman
 wrote:
> I draw various objects on the SurfaceView canvas.  I also have a
> dialog screen defined with a xml file that has buttons. I just want to
> use a dialog screen button to change the value of one variable,.
> Following is the real myMethod.
>
>
>    public void setDrawShape(int drawshape){
>        DrawShape = drawshape;
>    }
>

Ah, sorry if I had taken your previously comment as an insult
incorrectly.  I am correct in saying that setting that variable will
then affect which button is drawn in your onDraw() method?  In general
mixing the xml layouts and programmatically defined layouts probably
isn't a good idea.  Can you not give the view an id in the layout,
then use use getResourceById (or whatever) to get a reference to it?
In general you shouldn't need to architect things this way, but I
haven't used SurfaceView much so I may be a bit out of my element on
this one.  I mean in the worst case scenario (which seems like a real
hack), you can always make this a static method and use a static
variable, but like I said, that's quite a bit of a hack.

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread JamesColeman
Who did I insult

On Jan 11, 7:31 pm, Kristopher Micinski 
wrote:
> Wow, I'm guessing that insulting people trying to help you on forums is going 
> to
>   1) Really stop others from helping you
>   2) Building you bad web reputation..
>
> kris
>
> On Wed, Jan 11, 2012 at 9:28 PM, JamesColeman
>
>
>
>
>
>
>
>  wrote:
> > Wow! You are good. That is where I started from.
>
> > On Jan 11, 7:24 pm, Kristopher Micinski 
> > wrote:
> >>http://stackoverflow.com/questions/5203547/draw-surfaceview-from-layo...
>
> >> ??
>
> >> On Wed, Jan 11, 2012 at 9:18 PM, JamesColeman
>
> >>  wrote:
> >> > Thank you for your reply!!
>
> >> > I am not sure what doesn't make sense.  I was told from a developers
> >> > forum that  I HAVE to use the xml file and extend surfaceview to
> >> > accomplish my goals. So that is what I did.  It works, all I need to
> >> > do now is call a method.
>
> >> > The DrawingSurfaceView is created from the xml file, not my code, so I
> >> > don't know how to format a call to mymethod.
>
> >> > If it wasn't created from the xml file there are a couple of ways for
> >> > me to call mymethod. For example if I create the class from where I
> >> > want to make the call I can do the following.
>
> >> > DrawingSurfaceView MyView - new DrawingSurfaceView();
> >> > MyView.myMethod();
>
> >> > However, I never create the MyView. It is created form the xlm file.
>
> >> > I  do not think basic android questions involve xml layout files.
>
> >> > On Jan 11, 6:56 pm, Kristopher Micinski 
> >> > wrote:
> >> >> It doesn't make any sense to do this, unless you actually have an
> >> >> object of that class.  Unless the method should indeed be static.
> >> >> (This seems like a basic Java question, not an Android specific
> >> >> question.)
>
> >> >> Kris
>
> >> >> On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
>
> >> >>  wrote:
> >> >> > In my xml layout file I override surface view as follows
>
> >> >> > my.xlm
> >> >> >  >> >> >        android:id="@+id/DrawingSurfaceView"
> >> >> >        android:layout_width="fill_parent"
> >> >> >        android:layout_height="fill_parent"
> >> >> >        android:layout_weight="1" />
>
> >> >> > DrawingSurfaceView.java
> >> >> > public class DrawingSurfaceView extends SurfaceView implements
> >> >> > SurfaceHolder.Callback{
>
> >> >> > public void myMethod(){
> >> >> > }
> >> >> > }
>
> >> >> > How do I call MyMethod from another class?
>
> >> >> > --
> >> >> > You received this message because you are subscribed to the Google
> >> >> > Groups "Android Developers" group.
> >> >> > To post to this group, send email to 
> >> >> > android-developers@googlegroups.com
> >> >> > To unsubscribe from this group, send email to
> >> >> > android-developers+unsubscr...@googlegroups.com
> >> >> > For more options, visit this group at
> >> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread JamesColeman
I draw various objects on the SurfaceView canvas.  I also have a
dialog screen defined with a xml file that has buttons. I just want to
use a dialog screen button to change the value of one variable,.
Following is the real myMethod.


public void setDrawShape(int drawshape){
DrawShape = drawshape;
}



On Jan 11, 7:28 pm, Kristopher Micinski 
wrote:
> By the way, what is myMethod(), and what does it do?  More
> specifically, why do you need to call it?
>
> kris
>
> On Wed, Jan 11, 2012 at 9:24 PM, Kristopher Micinski
>
>
>
>
>
>
>
>  wrote:
> >http://stackoverflow.com/questions/5203547/draw-surfaceview-from-layo...
>
> > ??
>
> > On Wed, Jan 11, 2012 at 9:18 PM, JamesColeman
> >  wrote:
> >> Thank you for your reply!!
>
> >> I am not sure what doesn't make sense.  I was told from a developers
> >> forum that  I HAVE to use the xml file and extend surfaceview to
> >> accomplish my goals. So that is what I did.  It works, all I need to
> >> do now is call a method.
>
> >> The DrawingSurfaceView is created from the xml file, not my code, so I
> >> don't know how to format a call to mymethod.
>
> >> If it wasn't created from the xml file there are a couple of ways for
> >> me to call mymethod. For example if I create the class from where I
> >> want to make the call I can do the following.
>
> >> DrawingSurfaceView MyView - new DrawingSurfaceView();
> >> MyView.myMethod();
>
> >> However, I never create the MyView. It is created form the xlm file.
>
> >> I  do not think basic android questions involve xml layout files.
>
> >> On Jan 11, 6:56 pm, Kristopher Micinski 
> >> wrote:
> >>> It doesn't make any sense to do this, unless you actually have an
> >>> object of that class.  Unless the method should indeed be static.
> >>> (This seems like a basic Java question, not an Android specific
> >>> question.)
>
> >>> Kris
>
> >>> On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
>
> >>>  wrote:
> >>> > In my xml layout file I override surface view as follows
>
> >>> > my.xlm
> >>> >  >>> >        android:id="@+id/DrawingSurfaceView"
> >>> >        android:layout_width="fill_parent"
> >>> >        android:layout_height="fill_parent"
> >>> >        android:layout_weight="1" />
>
> >>> > DrawingSurfaceView.java
> >>> > public class DrawingSurfaceView extends SurfaceView implements
> >>> > SurfaceHolder.Callback{
>
> >>> > public void myMethod(){
> >>> > }
> >>> > }
>
> >>> > How do I call MyMethod from another class?
>
> >>> > --
> >>> > You received this message because you are subscribed to the Google
> >>> > Groups "Android Developers" group.
> >>> > To post to this group, send email to android-developers@googlegroups.com
> >>> > To unsubscribe from this group, send email to
> >>> > android-developers+unsubscr...@googlegroups.com
> >>> > For more options, visit this group at
> >>> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread Kristopher Micinski
Wow, I'm guessing that insulting people trying to help you on forums is going to
  1) Really stop others from helping you
  2) Building you bad web reputation..

kris

On Wed, Jan 11, 2012 at 9:28 PM, JamesColeman
 wrote:
> Wow! You are good. That is where I started from.
>
> On Jan 11, 7:24 pm, Kristopher Micinski 
> wrote:
>> http://stackoverflow.com/questions/5203547/draw-surfaceview-from-layo...
>>
>> ??
>>
>> On Wed, Jan 11, 2012 at 9:18 PM, JamesColeman
>>
>>
>>
>>
>>
>>
>>
>>  wrote:
>> > Thank you for your reply!!
>>
>> > I am not sure what doesn't make sense.  I was told from a developers
>> > forum that  I HAVE to use the xml file and extend surfaceview to
>> > accomplish my goals. So that is what I did.  It works, all I need to
>> > do now is call a method.
>>
>> > The DrawingSurfaceView is created from the xml file, not my code, so I
>> > don't know how to format a call to mymethod.
>>
>> > If it wasn't created from the xml file there are a couple of ways for
>> > me to call mymethod. For example if I create the class from where I
>> > want to make the call I can do the following.
>>
>> > DrawingSurfaceView MyView - new DrawingSurfaceView();
>> > MyView.myMethod();
>>
>> > However, I never create the MyView. It is created form the xlm file.
>>
>> > I  do not think basic android questions involve xml layout files.
>>
>> > On Jan 11, 6:56 pm, Kristopher Micinski 
>> > wrote:
>> >> It doesn't make any sense to do this, unless you actually have an
>> >> object of that class.  Unless the method should indeed be static.
>> >> (This seems like a basic Java question, not an Android specific
>> >> question.)
>>
>> >> Kris
>>
>> >> On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
>>
>> >>  wrote:
>> >> > In my xml layout file I override surface view as follows
>>
>> >> > my.xlm
>> >> > > >> >        android:id="@+id/DrawingSurfaceView"
>> >> >        android:layout_width="fill_parent"
>> >> >        android:layout_height="fill_parent"
>> >> >        android:layout_weight="1" />
>>
>> >> > DrawingSurfaceView.java
>> >> > public class DrawingSurfaceView extends SurfaceView implements
>> >> > SurfaceHolder.Callback{
>>
>> >> > public void myMethod(){
>> >> > }
>> >> > }
>>
>> >> > How do I call MyMethod from another class?
>>
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups "Android Developers" group.
>> >> > To post to this group, send email to android-developers@googlegroups.com
>> >> > To unsubscribe from this group, send email to
>> >> > android-developers+unsubscr...@googlegroups.com
>> >> > For more options, visit this group at
>> >> >http://groups.google.com/group/android-developers?hl=en
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread Kristopher Micinski
By the way, what is myMethod(), and what does it do?  More
specifically, why do you need to call it?

kris

On Wed, Jan 11, 2012 at 9:24 PM, Kristopher Micinski
 wrote:
> http://stackoverflow.com/questions/5203547/draw-surfaceview-from-layout-xml
>
> ??
>
> On Wed, Jan 11, 2012 at 9:18 PM, JamesColeman
>  wrote:
>> Thank you for your reply!!
>>
>> I am not sure what doesn't make sense.  I was told from a developers
>> forum that  I HAVE to use the xml file and extend surfaceview to
>> accomplish my goals. So that is what I did.  It works, all I need to
>> do now is call a method.
>>
>> The DrawingSurfaceView is created from the xml file, not my code, so I
>> don't know how to format a call to mymethod.
>>
>> If it wasn't created from the xml file there are a couple of ways for
>> me to call mymethod. For example if I create the class from where I
>> want to make the call I can do the following.
>>
>> DrawingSurfaceView MyView - new DrawingSurfaceView();
>> MyView.myMethod();
>>
>> However, I never create the MyView. It is created form the xlm file.
>>
>> I  do not think basic android questions involve xml layout files.
>>
>> On Jan 11, 6:56 pm, Kristopher Micinski 
>> wrote:
>>> It doesn't make any sense to do this, unless you actually have an
>>> object of that class.  Unless the method should indeed be static.
>>> (This seems like a basic Java question, not an Android specific
>>> question.)
>>>
>>> Kris
>>>
>>> On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  wrote:
>>> > In my xml layout file I override surface view as follows
>>>
>>> > my.xlm
>>> > >> >        android:id="@+id/DrawingSurfaceView"
>>> >        android:layout_width="fill_parent"
>>> >        android:layout_height="fill_parent"
>>> >        android:layout_weight="1" />
>>>
>>> > DrawingSurfaceView.java
>>> > public class DrawingSurfaceView extends SurfaceView implements
>>> > SurfaceHolder.Callback{
>>>
>>> > public void myMethod(){
>>> > }
>>> > }
>>>
>>> > How do I call MyMethod from another class?
>>>
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to android-developers@googlegroups.com
>>> > To unsubscribe from this group, send email to
>>> > android-developers+unsubscr...@googlegroups.com
>>> > For more options, visit this group at
>>> >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread JamesColeman
Wow! You are good. That is where I started from.

On Jan 11, 7:24 pm, Kristopher Micinski 
wrote:
> http://stackoverflow.com/questions/5203547/draw-surfaceview-from-layo...
>
> ??
>
> On Wed, Jan 11, 2012 at 9:18 PM, JamesColeman
>
>
>
>
>
>
>
>  wrote:
> > Thank you for your reply!!
>
> > I am not sure what doesn't make sense.  I was told from a developers
> > forum that  I HAVE to use the xml file and extend surfaceview to
> > accomplish my goals. So that is what I did.  It works, all I need to
> > do now is call a method.
>
> > The DrawingSurfaceView is created from the xml file, not my code, so I
> > don't know how to format a call to mymethod.
>
> > If it wasn't created from the xml file there are a couple of ways for
> > me to call mymethod. For example if I create the class from where I
> > want to make the call I can do the following.
>
> > DrawingSurfaceView MyView - new DrawingSurfaceView();
> > MyView.myMethod();
>
> > However, I never create the MyView. It is created form the xlm file.
>
> > I  do not think basic android questions involve xml layout files.
>
> > On Jan 11, 6:56 pm, Kristopher Micinski 
> > wrote:
> >> It doesn't make any sense to do this, unless you actually have an
> >> object of that class.  Unless the method should indeed be static.
> >> (This seems like a basic Java question, not an Android specific
> >> question.)
>
> >> Kris
>
> >> On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
>
> >>  wrote:
> >> > In my xml layout file I override surface view as follows
>
> >> > my.xlm
> >> >  >> >        android:id="@+id/DrawingSurfaceView"
> >> >        android:layout_width="fill_parent"
> >> >        android:layout_height="fill_parent"
> >> >        android:layout_weight="1" />
>
> >> > DrawingSurfaceView.java
> >> > public class DrawingSurfaceView extends SurfaceView implements
> >> > SurfaceHolder.Callback{
>
> >> > public void myMethod(){
> >> > }
> >> > }
>
> >> > How do I call MyMethod from another class?
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread Kristopher Micinski
http://stackoverflow.com/questions/5203547/draw-surfaceview-from-layout-xml

??

On Wed, Jan 11, 2012 at 9:18 PM, JamesColeman
 wrote:
> Thank you for your reply!!
>
> I am not sure what doesn't make sense.  I was told from a developers
> forum that  I HAVE to use the xml file and extend surfaceview to
> accomplish my goals. So that is what I did.  It works, all I need to
> do now is call a method.
>
> The DrawingSurfaceView is created from the xml file, not my code, so I
> don't know how to format a call to mymethod.
>
> If it wasn't created from the xml file there are a couple of ways for
> me to call mymethod. For example if I create the class from where I
> want to make the call I can do the following.
>
> DrawingSurfaceView MyView - new DrawingSurfaceView();
> MyView.myMethod();
>
> However, I never create the MyView. It is created form the xlm file.
>
> I  do not think basic android questions involve xml layout files.
>
> On Jan 11, 6:56 pm, Kristopher Micinski 
> wrote:
>> It doesn't make any sense to do this, unless you actually have an
>> object of that class.  Unless the method should indeed be static.
>> (This seems like a basic Java question, not an Android specific
>> question.)
>>
>> Kris
>>
>> On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
>>
>>
>>
>>
>>
>>
>>
>>  wrote:
>> > In my xml layout file I override surface view as follows
>>
>> > my.xlm
>> > > >        android:id="@+id/DrawingSurfaceView"
>> >        android:layout_width="fill_parent"
>> >        android:layout_height="fill_parent"
>> >        android:layout_weight="1" />
>>
>> > DrawingSurfaceView.java
>> > public class DrawingSurfaceView extends SurfaceView implements
>> > SurfaceHolder.Callback{
>>
>> > public void myMethod(){
>> > }
>> > }
>>
>> > How do I call MyMethod from another class?
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Retrieving Information from the ContactsContract API

2012-01-11 Thread Brad Kinnard
I have been spending quite some time today trying to find a suitable,
yet simple, example of using the ContactsContract API. I have found a
few posts here in the general area, but would really love someone just
to break it down as to how I can retrieve the contact name, email and
phone number, and store those in variables.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Draw on a WebView control.

2012-01-11 Thread Hydro Misco
Hello,

Is it possible to draw shapes, boxes, lines ... over a webview
control, as though it was a canvas?

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] When is the SurfaceTexture created within TextureView?

2012-01-11 Thread dcheng
When using the TextureView class, when is the SurfaceTexture created?

I created a class that has a private member TextureView mTexture and
implements TextureView.SurfaceTextureListener.

In the constructor, I added these lines:

mTextureView = new TextureView(context);
mTextureView.setSurfaceTextureListener(this);

Then I wait for the onSurfaceTextureAvailable(SurfaceTexture surface,
int width, int height) callback for the SurfaceTexture but it never
gets called.

Is there something else required to trigger the
onSurfaceTextureAvailable callback?

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


[android-developers] Re: Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread JamesColeman
Thank you for your reply!!

I am not sure what doesn't make sense.  I was told from a developers
forum that  I HAVE to use the xml file and extend surfaceview to
accomplish my goals. So that is what I did.  It works, all I need to
do now is call a method.

The DrawingSurfaceView is created from the xml file, not my code, so I
don't know how to format a call to mymethod.

If it wasn't created from the xml file there are a couple of ways for
me to call mymethod. For example if I create the class from where I
want to make the call I can do the following.

DrawingSurfaceView MyView - new DrawingSurfaceView();
MyView.myMethod();

However, I never create the MyView. It is created form the xlm file.

I  do not think basic android questions involve xml layout files.

On Jan 11, 6:56 pm, Kristopher Micinski 
wrote:
> It doesn't make any sense to do this, unless you actually have an
> object of that class.  Unless the method should indeed be static.
> (This seems like a basic Java question, not an Android specific
> question.)
>
> Kris
>
> On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
>
>
>
>
>
>
>
>  wrote:
> > In my xml layout file I override surface view as follows
>
> > my.xlm
> >  >        android:id="@+id/DrawingSurfaceView"
> >        android:layout_width="fill_parent"
> >        android:layout_height="fill_parent"
> >        android:layout_weight="1" />
>
> > DrawingSurfaceView.java
> > public class DrawingSurfaceView extends SurfaceView implements
> > SurfaceHolder.Callback{
>
> > public void myMethod(){
> > }
> > }
>
> > How do I call MyMethod from another class?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: App behavoir on simultaneous 3G and *filtered* WiFi connection

2012-01-11 Thread vic
As a follow up to this question, the functionality described above is
supposed to happen transparently to the apps; no code modifications
should be done to the apps. However, a service could be running in the
background to provision the traffic flows.

On Jan 11, 5:54 pm, vic  wrote:
> Consider this scenario:
> - 3G and wifi enabled.
> - Wifi associated with a restricted AP that filters traffic and only
> allows traffic to, say, a Hulu domain.
> - The filtering is such that disallowed traffic is simply dropped, and
> the filtering mechanism does not send any
>   data back to the app eg a "this page is blocked" response.
>
> In the above scenario, will disallowed traffic (say from the facebook
> app) be diverted to the 3G connection?
> Also, will the Hulu app traffic still remain on wifi, given that some
> apps cannot connect to it. How does
> the connectivity manager respond in such a situation? I've seen many
> folks asking questions of a similar vein
> on various forums, so I guess it's a mystery to many?
>
> Unrelated: This might be a stupid question, but I'll ask anyway; is
> there a way to provision traffic from certain
> apps to only flow through designated network connections?
>
> Thanks very much,

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


[android-developers] Search dialog

2012-01-11 Thread Sean751
Hi
I want to search html files on the SD Card. There are many small files
and it could just be searching the file names or ideally a full text
search of the files. I also think I remember seeing somewhere that
meta data can be put in the files with keywords used by search
programs. I have looked through the documents and searched for
examples but cannot see how it is done.
Can anyone help?
Thanks
Sean

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread Kristopher Micinski
It doesn't make any sense to do this, unless you actually have an
object of that class.  Unless the method should indeed be static.
(This seems like a basic Java question, not an Android specific
question.)

Kris

On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
 wrote:
> In my xml layout file I override surface view as follows
>
> my.xlm
>         android:id="@+id/DrawingSurfaceView"
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>        android:layout_weight="1" />
>
> DrawingSurfaceView.java
> public class DrawingSurfaceView extends SurfaceView implements
> SurfaceHolder.Callback{
>
> public void myMethod(){
> }
> }
>
> How do I call MyMethod from another class?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] App behavoir on simultaneous 3G and *filtered* WiFi connection

2012-01-11 Thread vic
Consider this scenario:
- 3G and wifi enabled.
- Wifi associated with a restricted AP that filters traffic and only
allows traffic to, say, a Hulu domain.
- The filtering is such that disallowed traffic is simply dropped, and
the filtering mechanism does not send any
  data back to the app eg a "this page is blocked" response.

In the above scenario, will disallowed traffic (say from the facebook
app) be diverted to the 3G connection?
Also, will the Hulu app traffic still remain on wifi, given that some
apps cannot connect to it. How does
the connectivity manager respond in such a situation? I've seen many
folks asking questions of a similar vein
on various forums, so I guess it's a mystery to many?

Unrelated: This might be a stupid question, but I'll ask anyway; is
there a way to provision traffic from certain
apps to only flow through designated network connections?

Thanks very much,

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


[android-developers] App behavoir on simultaneous 3G and *filtered* WiFi connection

2012-01-11 Thread vic
Consider this scenario:
- 3G and wifi enabled.
- Wifi associated with a restricted AP that filters traffic and only
allows traffic to, say, a Hulu domain.
- The filtering is such that disallowed traffic is simply dropped, and
the filtering mechanism does not send any
  data back to the app eg a "this page is blocked" response.

In the above scenario, will disallowed traffic (say from the facebook
app) be diverted to the 3G connection?
Also, will the Hulu app traffic still remain on wifi, given that some
apps cannot connect to it. How does
the connectivity manager respond in such a situation? I've seen many
folks asking questions of a similar vein
on various forums, so I guess it's a mystery to many?

Unrelated: This might be a stupid question, but I'll ask anyway; is
there a way to provision traffic from certain
apps to only flow through designated network connections?

Thanks very much,

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


[android-developers] Call Class Function / Method when created by overriding a view in xlm layout file

2012-01-11 Thread JamesColeman
In my xml layout file I override surface view as follows

my.xlm


DrawingSurfaceView.java
public class DrawingSurfaceView extends SurfaceView implements
SurfaceHolder.Callback{

public void myMethod(){
}
}

How do I call MyMethod from another class?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Hi

2012-01-11 Thread TreKing
On Wed, Jan 11, 2012 at 3:35 AM, chowdary nani wrote:

> i need help on sample code for passing the  parsed data to list view
> without
>

Without what?


> can any one help me for this
>

Depends - can you explain the specific problem you're having?
What have you done so far? What have you figured out from debugging? What
can't you figure out?

If you expect someone to read your code and figure out what is wrong with
it, you're going to be waiting a while.

-
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] How to store images in sdcard, at the time of downloading app.?

2012-01-11 Thread Kristopher Micinski
On Wed, Jan 11, 2012 at 6:08 PM, Jatin D Patel  wrote:
> How come downloading images is possible in iphone during application
> installation, from server and not possible in android.
>

Platforms are different

> Is it one of the limitation of Android?
>

I suppose you can call it a limitation if you aren't smart enough to
see that the changes required to do this take a few minutes..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 store images in sdcard, at the time of downloading app.?

2012-01-11 Thread TreKing
On Wed, Jan 11, 2012 at 5:08 PM, Jatin D Patel  wrote:

> How come downloading images is possible in iphone during application
> installation, from server and not possible in android.
>

I don't know, I don't work on iPhone, but I find it highly unlikely you can
download images *while the application is installing*.


> Is it one of the limitation of Android?
>

Seems like more of a security feature, if you ask me.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Get MMS Info.

2012-01-11 Thread Erik
My guess is that your service is running before the native messaging app 
has a chance to add the message to the content provider. Try removing the 
priority from the intent filter. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Controlling z-order in ImageSwitcher

2012-01-11 Thread cirion
Sorry, a correction: the real problem seems to be that the "scale"
animation is always drawn on top of the "translate" animation. In
other words, if I set the "zoom out" as my outAnimation, then it will
draw on top. It seems like zAdjustment should be able to fix this, but
so far it hasn't.

On Jan 11, 3:04 pm, cirion  wrote:
> Hi,
>
> I'm trying to create an effect where one image slides off the screen
> to the left while another zooms in from the background. I have this
> mostly working with an ImageSwitcher that has an inAnimation and
> outAnimation. However, the "in" image seems to always draw on top of
> the "out" image, instead of seeming to come from behind like I want.
>
> I've tried:
> * Setting android:zAdjustment="top" to my slide_left anim (both in the
>  and  elements)
> * Setting android:zAdjustment="bottom" to my zoom_in anim
> * Calling imageSwitcher.getCurrentView().bringToFront() right before
> my call to imageSwitcher.setCurrentResource(). This seems to make the
> "out" image invisible
>
> Does anyone know the right way to adjust z-order within an
> ImageSwitcher? I'd like to stick with ImageSwitcher if possible since
> it has otherwise been perfect.
>
> 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] Order numbering system changed in the market

2012-01-11 Thread John Coryat
Before Google Wallet, the numbering system for Google Order ID used the 
following format:

12345678901234567890.G.123456789012345

Where the Google Order Id passed in the in-app billing system is the 15 
digit number after the G.

This is the only identification information that was available to the user 
and the developer. It was easy to instruct the user to use this number to 
recover their premium access for unmanaged items by entering in their 
Google Order Id in a form inside the app. It worked flawlessly. We have the 
order number in our server and it's big enough that it's impossible to 
guess. No extra security or other means of identification are required, nor 
do we know who the user is. This has been a completely automated process up 
to now.

Google Wallet changed that. Instead, a new 50+ digit number is the order 
number and it isn't related nor searchable in the Google checkout developer 
console.

Example of the new format:

12345678901234567890123.07247902161068202818.1326318464.2

Now, a user cannot automatically recover their premium status when reseting 
or purchasing a new device. We have no way to tie this new number with 
their original purchase. The only way a user can recover their premium 
status now is for them to forward their invoice to us and we have to 
manually search by the date and time of the order to find it.

This is way too much work for a couple of dollars. It takes about ten 
minutes to just find the right order number. Once we do find the original 
order, we have to copy and paste the Google Order Id into an e-mail and the 
user has to do the automated process. 

I've filed a "bug" report with Google Checkout but as usual, that just 
disappeared into the ether. This is a real big problem for us as we get 
about 200 of these changes per month. That's 2,000 minutes of time to 
handle this per month, up from zero when it was automated.

The solution to this problem is incredibly simple. Either Google has to 
forward the new order number to us as part of the purchase information from 
the in-app billing api or (even simpler) pass the original Google Order Id 
to the user.

Has anyone else seen this problem?

-John Coryat


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 store images in sdcard, at the time of downloading app.?

2012-01-11 Thread Jatin D Patel
How come downloading images is possible in iphone during application
installation, from server and not possible in android.

Is it one of the limitation of Android?

On Wed, Jan 11, 2012 at 2:53 PM, TreKing  wrote:

> On Wed, Jan 11, 2012 at 1:34 PM, Jatin D Patel wrote:
>
>> How can we download images at the time of downloading app, in local
>> drive.?
>
>
> At time of downloading, you can't. At time of first run, detect if your
> images are available, if so, use them, if not, download them.
>
>
> -
> 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




-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Controlling z-order in ImageSwitcher

2012-01-11 Thread cirion
Hi,

I'm trying to create an effect where one image slides off the screen
to the left while another zooms in from the background. I have this
mostly working with an ImageSwitcher that has an inAnimation and
outAnimation. However, the "in" image seems to always draw on top of
the "out" image, instead of seeming to come from behind like I want.

I've tried:
* Setting android:zAdjustment="top" to my slide_left anim (both in the
 and  elements)
* Setting android:zAdjustment="bottom" to my zoom_in anim
* Calling imageSwitcher.getCurrentView().bringToFront() right before
my call to imageSwitcher.setCurrentResource(). This seems to make the
"out" image invisible

Does anyone know the right way to adjust z-order within an
ImageSwitcher? I'd like to stick with ImageSwitcher if possible since
it has otherwise been perfect.

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] Start activity from preference-headers

2012-01-11 Thread garaus
I'm implementing n-layer PreferenceActivities 1st layer
PreferenceActivity is loaded from preference-headers.

First header creates fragment of settings which is a
PreferenceFragment. Second is a browser activity (2nd is an example
from developer.android.com) which opens specified Url. The third one I
want to be a next level of PreferenceAtivity that also will be loaded
from preference-headers.

First two work fine but 3rd is crashing an app with the exception:

"android.content.ActivityNotFoundException: No Activity found to
handle Intent { act=android.intent.action.VIEW
dat=com.mycompany.myapp.ui.MyPreferenceActivity} "

MyPreferenceActivity declared in the manifest file. Probably
declaration of activity in main_headers.xml is wrong, but I didn't
find in references any tip how to do it correct. Tried several
variations, they didn't work.

Example I used: 
http://developer.android.com/reference/android/preference/PreferenceActivity.html

Any thoughts why it doesn't work for me or how the next
PreferenceActivity can be called? Basically I just need to start an
activity from header, that should be really simple but I'm missing
something.

public class MySettings extends PreferenceActivity
{
@Override
public void onBuildHeaders(List target)
{
loadHeadersFromResource(R.xml.main_headers, target);
}
}
main_headers.xml:


http://schemas.android.com/apk/res/android"; >




http://www.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


Re: [android-developers] Re: need help in coding for animation

2012-01-11 Thread Jatin D Patel
@syam,

I guess i am working on same concept.

Make use of AnimationDrwable.
I am not sure that it is the only solution. But i can think of solving your
problem, using that concept.



On Wed, Jan 11, 2012 at 3:10 AM, Ali Chousein wrote:

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



-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: J2ME vs Android Java

2012-01-11 Thread Kristopher Micinski
On Wed, Jan 11, 2012 at 3:59 PM, sparky  wrote:
> J2ME and Android are very different frameworks. You do not need to know
> anything about J2ME to write Android applications.  You can pretend J2ME
> doesn't exist.
>

Agreed: I would wager a fair amount of (probably: most) Android
developers have never used J2ME, simply because of the huge surge of
newcomers that have come to Android.

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: reading CDATA from xml?

2012-01-11 Thread Streets Of Boston
This is not android specific. Please google XML Parsing and CDATA and see 
what you can find there. 

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

Re: [android-developers] Re: Why do my post is not shown ?

2012-01-11 Thread Kristopher Micinski
Is that true?  I don't believe that it used to be..., perhaps the
rules have changed, but I would sort of doubt it based on the amount
of spam this list receives (ad for moving service in dubai, for
example, probably would not have made it past moderators...)

kris

On Wed, Jan 11, 2012 at 3:42 PM, sparky  wrote:
> All members' posts are moderated initially.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: I need Google Map Application...

2012-01-11 Thread sparky
http://developer.android.com/guide/tutorials/views/hello-mapview.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]

2012-01-11 Thread sparky
Try this one: http://developer.android.com/training/multiscreen/index.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] need help in compiling source code

2012-01-11 Thread TreKing
On Wed, Jan 11, 2012 at 12:34 AM, lambu0594  wrote:

> while compiling ice cream sandwich for vision


Find a list having to do with compiling the source - this one is for SDK
development.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: J2ME vs Android Java

2012-01-11 Thread sparky
J2ME and Android are very different frameworks. You do not need to know 
anything about J2ME to write Android applications.  You can pretend J2ME 
doesn't exist.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why do my post is not shown ?

2012-01-11 Thread sparky
All members' posts are moderated initially.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 environment variable and parent-child activities

2012-01-11 Thread Mark Murphy
http://stackoverflow.com/questions/8812090/android-environment-variable-and-parent-child-activities/8812586#8812586

On Wed, Jan 11, 2012 at 1:30 PM, nir apple  wrote:
> In Android, i am trying to figure out how can one activity see info
> changed by another
>
> to be more precise - the first activity changes the LD_LIBRARY_PATH
> environment variable.
>
> then activates a second activity which in turn reads that environment
> variable value.
>
> the value is not what i expect.
>
> two scenarios:
>
> 1.   The second activity is in the same application as the first
> activity, the environment variable value is blank.
>  2.  The second activity is in a different application from the first
> activity, the environment variable value is the
>      usual (didn't received the change): /system/lib:vendor/lib
>
> i am using:
>
> Intent i = new Intent();
> i.setClassName("Package", "Class name");
> startActivity(i);
>
> to start the second activity.
>
> does anyone know a way that the second activity will see the changes
> made by the first one?
>
> thank for the help
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 SDK Tools r16 and problems with Eclipse

2012-01-11 Thread DanielleM
Hello all:

I recently updated both the Eclipse SDK and the Android SDK Tools
(plus a bunch of other Android packages) and now when I run an app in
the emulator in Eclipse and then switch to the DDMS perspective in
order to get screen captures, Eclipse hangs.

Just to be thorough, I'm running Eclipse Helios Version 3.7.1, Android
SDK Tools r16, Android SDK Platform-tools r10, and I'm running on
Windows XP with Service Pack 3.

Before I did these upgrades, I was able to get screen captures with no
problem and Eclipse always ran fine without any hang ups. Has anyone
else had these problems as well?

I saw another post where the "Waiting for Debugger to Attach" kept
hanging after the person said they upgraded to r16. I also have this
same problem.

Any fix would be wonderful...but in the mean time I guess I may have
to roll back to an earlier version of the Android SDK.

Thanks,
Danielle M.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Button on emulator looked "joined" with no padding

2012-01-11 Thread jlau
Hi
I was trying to arrange 9 Buttons in TableLayout.(main.xml below)

On the eclipse "Graphical Layout", it looked ok, Buttons spaced out
nicely. Somehow on the emulator, all the 9 Buttons looked "joined"

Here's the screenshot:
http://www.freeimagehosting.net/sagst

Yet to try on actual device but does anyone know why this is
happening?

Thanks in advance!
--jason


http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >


























-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] I need Google Map Application...

2012-01-11 Thread Senthamizh S
Hi friends... I need Google Map Full Coding...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Pls take a look into this problem

2012-01-11 Thread Biswaraj Phuyal
Lmk if I am missing anything.

http://stackoverflow.com/questions/8766690/how-to-avoid-unnecessary-log-like-quickcontactservice-quickcontactwidget-quick

Thanks
Biswa

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Tracedmdump Issues

2012-01-11 Thread hongjuan zhang
HI,everyone
I've been trying to learn the android native code profiling.I start
emulator with 'emulator -trace foo',Then press F9 just before I start
the browser to start profiling Then press F9 after about 30 sec or so
to stop the profiling
I then quit the emulator Then I start dumping the trace with
'tracedmdump  tracedmdump ~/.android/avd/avd14.avd/traces/foo/'

I get the following errors:
generating dexlist output...
generating dmtrace data...
'Cannot read ELF header from '/home/zhj/android/out/target/product/
generic/symbols'
generating html file...
done, see /home/zhj/.android/avd/avd14.avd/traces/foo//dmtrace.html
for details
or run:
traceview /home/zhj/.android/avd/avd14.avd/traces/foo//dmtrace'

Does anyone know how this happened?I appreciate very much!

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


[android-developers] J2ME vs Android Java

2012-01-11 Thread YinKhwin.O
can someone clear my doubts.
does android have anything to do with J2ME?  Android has its core
java. J2ME is also meant for mobile phones. All are same and why am i
supposed to get confused by these two?  whatif i chose android
platform, do i necessarily need to deal with J2ME?

Thanks for help.

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


[android-developers] Re: It is possible to send a notification with C2DM to all the users of an App?

2012-01-11 Thread john_tower
To do this you should to store registration ID in your service
database. Send notification for each.

On 11 Січ, 14:33, saex  wrote:
> I'm checking this 
> link:http://android-developers.blogspot.com/2010/05/android-cloud-to-devic...
>
> there explains that to send a notification, you need to specify the
> register id of the device that will receive the notification.
>
> Ok, but... ¿what happens if i want to send a notification to all the
> users of an application and not to a simple device? ¿how can i do it?
>
> In Apple, you can send a notification to an app and all their users.
> ¿It is not possible to do it on Android???
>
> 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: Giving away my book: "Genius Android Marketing"

2012-01-11 Thread Robert Lash
Please but my name in the hat.


On Jan 5, 12:50 pm, scp89  wrote:
> I've recently finished writing the first full-length, android-specific
> book on Android Marketing. It covers tips, tricks, strategies,
> competitive analysis, and so much more. Everything I've learned in 2
> years selling android apps, I've put into this book. It is available
> via e-book OR softcover:
>
> E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
>
> Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
>
> GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
> reply to this thread, and 1 week from today I will randomly select 3
> members and PM you a link to your free download of the 130 page book.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 to microcontroller via bluetooth reconnection error

2012-01-11 Thread gamer_khan
As a part of an application i have to connect my android phone with a
bluetooth module called BlueLink, which is connected to a
microcontroller. When i first connected to that device, the connection
established and the application worked fine. After closing the
connection, when i try to reconnect with the same application, i get a
"service discovery failed" exception. This exception persists until i
restart the bluetooth module.

How can i solve this problem that happens while reconnecting bluetooth
module after the first connect ?
Do i need to add something additional to my code inorder to get rid of
this problem ?

I used createRfcommSocketToServiceRecord method to create socket with
UUID "1101--1000-8000-00805F9B34FB". Android version used is
2.1.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Credit card swiper with API

2012-01-11 Thread JC
Hello Everyone,

I have a task to create and Android application that reads the Credit
Card information from a CC swiper and process the payment through a
web service in our existing website. The reason for that is so that
our sales people can simply select the product, swipe the card,  and
the system does the rest: Charge card, create account, send welcome e-
mail, and return a confirmation or error back to the device as a
response.

My issue is that I have not been able to find a swiper (hardware) that
exposes and API that I can use to build my own application. All the
swipers I find are tied to a service or gateway. Any suggestions will
be appreciated.

Thank you,

JC

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Setting up ADB with Coby Kyros MID7024

2012-01-11 Thread androidteacher
I am using Windows XP and the Coby Kyros MID7024 tablet. I am trying
to setup the machine so that I can use it to debug applications. Does
anyone have a tutorial or know the process to complete this?

I already setup the driver (i think ??) but when I run adb devices it
says that no devices are attached.

I am able to get it working easily on Mac OS X using Eclipse, but I am
using these devices in a classroom setting, where the students have
access to Windows XP and Eclipse.

Any help or guidance is appreciated.

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


[android-developers] Widget does not appear in the widget menu after first installation

2012-01-11 Thread Filip
Hi,
I have strange issue with my widget. The widget does not appear in the
widget menu after first installation, but second installation or
device restart fix it, and everything works as expected then. (does
not matter if the installation is from market or eclipse)

Can anyone give some advice? I'm realy struggling with the issue.

Thank you
Filip Kolarik

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 environment variable and parent-child activities

2012-01-11 Thread nir apple
In Android, i am trying to figure out how can one activity see info
changed by another

to be more precise - the first activity changes the LD_LIBRARY_PATH
environment variable.

then activates a second activity which in turn reads that environment
variable value.

the value is not what i expect.

two scenarios:

1.   The second activity is in the same application as the first
activity, the environment variable value is blank.
 2.  The second activity is in a different application from the first
activity, the environment variable value is the
  usual (didn't received the change): /system/lib:vendor/lib

i am using:

Intent i = new Intent();
i.setClassName("Package", "Class name");
startActivity(i);

to start the second activity.

does anyone know a way that the second activity will see the changes
made by the first one?

thank for the help

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


[android-developers] Search WiFi Subnet Devices Details (IP & MAC)

2012-01-11 Thread Rajeev Singh
Hi All,

Its very urgent query.
I am new in android development and struggling for finding all
devices(Network Printers) in WLAN.
In Market, Fing(http://www.over-look.org) is already existing
application, which is having same functionality as i want. But i want
this feature in my application, but dont know the way to do.

Thanks,
Rajeev Singh
Email - rajeev16mca...@gmail.com

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


[android-developers] Real-time video streaming/disabling or configuring MediaPlayer caching-buffering

2012-01-11 Thread Brad O'Hearne
Hello, 

I am trying to play a real-time video stream with the Android MediaPlayer. The 
use case prioritizes real-time rendering to the screen over smooth playback. 
Restated, I am not interested in smooth un-interrupted playback such as 
watching a movie or YouTube video or webcast, where video is typically 
buffered, if even minimally, to achieve smooth playback. What I need to do is 
eliminate as much latency as possible between the video source stream and 
playback, so that the delay between a direct rendering at the source and the 
playback of the stream on an Android tablet is as small as possible. Presently, 
I have an app which plays an RTSP stream with the MediaPlayer, and I'm 
encountering a latency of around 4 seconds, which is unacceptable for this use 
case. I am seeking <1 second latency. 

I have been looking high and low for any way to configure the MediaPlayer, and 
it doesn't appear that there are really any knobs or switches on it to adjust. 
Specifically what I'd like to do is the following: 

1. Adjust or disable entirely caching and buffering within the MediaPlayer. 

2. Tell the MediaPlayer to ignore any processing for audio, which is not needed 
in this use case. 

3. Potentially be able to control or monitor the network transport of the 
stream (much less important than #1). 

4. It would be great to be able to get some statistical data on what part of 
the pipeline latency exists: network transport, buffering, decoding, rendering, 
etc. (again, much less important than #1). 

If anyone has any ideas or suggestions for the above, I'd really appreciate it. 
Even alternative solutions for accomplishing the need are welcome (though this 
is a commercial application, and so GPL source isn't an alternative), though 
the ideal solution would be to leverage the native MediaPlayer. 

Thanks in advance for your assistance.

Regards, 

Brad

Brad O'Hearne
Founder / Lead Developer
Big Hill Software LLC
http://www.bighillsoftware.com

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


Re: [android-developers] Why do my post is not shown ?

2012-01-11 Thread TreKing
On Tue, Jan 10, 2012 at 11:20 AM, freefly  wrote:

> I have posted a message and it is not shown in the group ???


This one?
https://groups.google.com/group/android-developers/browse_thread/thread/c58b43d5b43114e3


-
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] Creating drop-down, expandable views

2012-01-11 Thread DulcetTone
I see on occasion complex preference panels that have factored the
panel into expandable sections to reduce visual clutter and speed
loading time.

I see things in the SDK such as ViewStubs but see no visual
illustration of what they look like and whether they create the sort
of design I'd like to emulate.

Can someone point me to a tutorial or sample project that shows this
sort of interface and can permit me to know (before I start) that I am
pursuing the proper means to achieve the effect I've seen elsewhere?

tone

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 implement multiple Android versions to use different libraries?

2012-01-11 Thread Kostya Vasilyev
Replying back to the list.

I've made my builds scripts available here:

http://www.aqua-mail.com/download/buildsys.tar.gz

The "release" subdirectory contains the SDK's build.xml (renamed
build_android.xml) with some modifications, and an additional build
script, build_kman.xml.

My changes in build_android.xml are marked with "kman" or "" (for the most part :).

AquaMail is the main app project, has its own build.xml, and contains
references to the above files.

The two shell scripts to build the Android Market and alternate market
versions of the app are frel_gam.sh (gam == Google Android Market) and
frel_ppg.sh.

The market-specific source folder is picked in AquaMail/build.xml,
under "".

This should be enough to get you started on your own, perhaps similar, system.

-- Kostya

11 января 2012 г. 23:21 пользователь Ricardo Amaral
 написал:
> Hi,
>
> I really liked your answer and left you reply. Just in case you missed it:
> https://groups.google.com/d/msg/android-developers/8pRugcnzR_E/C4Vp-aI8RuMJ
>
> Sorry to bother you directly to your e-mail.
>
> Regards.
>
>
> On Tuesday, January 10, 2012 10:18:56 PM UTC, Kostya Vasilyev wrote:
>>
>> What I just did in a similar situation, is use additional source folders,
>> thus avoiding excessive use of libraries.
>>
>> I have two versions of the same app: one for Market and one for another
>> store.
>>
>> My source directory structure has:
>>
>> src
>>     package org.kman.FooBar.licensing
>>         SomeClass.java
>>
>> src-market
>>     package org.kman.FooBar.licensing
>>         SomeClassFactory.java
>>         SomeClass_Market.java
>>
>> src-another-store
>>     package org.kman.FooBar.licensing
>>         SomeClassFactory.java
>>         SomeClass_AnotherStore.java
>>
>> There are two versions of the same class, SomeClassFactory, in either
>> additional source folder, under the same name, in the same package, and so I
>> can just do "SomeClassFactory.create()" in the main body of application
>> code, without worrying about which one it is. The implementation of those
>> factories is different, each instantiating its own subclass of SomeClass -
>>  the one for Market or for AnotherStore.
>>
>> Now, the bulid setup:
>>
>> 1) In Eclipse: src-market and src-another-store are added as additional
>> source folders in the application project. Then src-another-store has an
>> exclude filter matching everything: "**/*.*".
>>
>> This way, both folders are accesible for browsing / editing / source
>> control, but only the sources inside "src-market" are compiled.
>>
>> 2) For command line builds: I have a modified build.xml, and use
>> "sourcepathref" with  when compiling, to supply one or the other
>> additional source folder, depending on which version I'm building.
>>
>> This additional path reference is set by a task that executes early in the
>> ant build setup sequence, and makes the decision based on a property passed
>> into the build script with "-Dbuildtype=market" or
>> "-Dbuildtype=anotherstore" on the ant command line.
>>
>> Finally, there are two very simple shell scripts that call ant with the
>> appropriate -D... flags.
>>
>> End result:
>>
>> - The sources for both versions are accessible in Eclipse
>> - The app can be built in Eclipse, defaulting to one of the two possible
>> configurations
>> - The main body of application code is not in a library, but rather a
>> regular application project so my change-compile-debug cycles are faster (I
>> think)
>> - Clean command line builds are just a simple shell command away, for
>> either configuration
>> - The Market version doesn't contain any code for the alternate store, and
>> vice versa.
>> - Command line builds name the build output with a suffix, something like
>> "FooBarApp-market-1.0.5.1.apk", where the version number is automatically
>> extracted from the manifest
>>
>> This message is overly long and too detailed, so sorry, but I hope it
>> can provide some ideas.
>>
>> -- Kostya
>>
>> 10 января 2012 г. 23:34 пользователь TreKing  написал:
>>>
>>> On Tue, Jan 10, 2012 at 12:55 PM, Ricardo Amaral
>>>  wrote:
>
> You could include both libraries into your one project, abstract both
> into concrete classes that are instantiated based on some static flag, and
> only instantiate and use the one you need based on the flag. Build, flip
> bit, rebuild.


 That's the kind of behavior I wanted to automate, instead of manually
 building the application twice...
>>>
>>>
>>> Replying back to the whole group. Careful with which button you click.
>>>
>>>
>>> I haven't used Ant but doing an in-file replace and rebuild is probably
>>> something you can easily do with it.
>>>
>>>
>>>
>>> -
>>> TreKing - Chicago transit tracking app for Android-powered devices
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group

[android-developers] Intercept POST requests in a WebView

2012-01-11 Thread randyv2
I have a WebView in my app.  This WebView displays a form which
submits its data via POST.  I would like to use something analogous to
shouldOverrideUrlLoading() to inspect the POST request, and react to
it.  I've done this on iOS with UIWebView's
shouldStartLoadWithRequest:navigationType, but I can't find anything
similar to it on Android (other than shouldOverrideUrlLoading(), which
doesn't catch POST requests).

Any suggestions on what I should do instead?

I've tried:

1. Overriding postUrl(), but this only affects posts originating from
my code; it doesn't handle posts originating from the displayed HTML
form.
2. Using shouldOverrideUrlLoading(), but this doesn't catch POST
requests.

Thanks for any help!

Randy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 store images in sdcard, at the time of downloading app.?

2012-01-11 Thread TreKing
On Wed, Jan 11, 2012 at 1:34 PM, Jatin D Patel  wrote:

> How can we download images at the time of downloading app, in local drive.?


At time of downloading, you can't. At time of first run, detect if your
images are available, if so, use them, if not, download them.

-
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] Problems with smooth scroll using ViewPager.

2012-01-11 Thread Krzysztof Głodowski
Hello,
I have two panels in my app which are quite complex views. A single
panel contains a ListView and some smaller views. I want them to
scroll horizontally as smooth as possible. I've decided to use the
ViewPager, but scrolling is not somooth as it should be. I have also
noticed a drop in performance of scrolling the ListView. When not in
the ViewPager the list scrolls very smooth, though.

I tried playing with drawing cache but it doesn't change anything. Or
maybe am I doing something wrong? Does the complexity of the view
makes difference? If yes, what should I do with that?

Here is the panel layout. There are two such panels in the ViewPager.

http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1">






























Any advices will be 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] How to detect if ICS device has soft buttons or not?

2012-01-11 Thread Doug
Anyone know how to do this?  I can't surface the information, if it is
even possible.

I am using View.setSystemUiVisibility to remove soft buttons for true
full screen display.  When this happens, ICS will snatch the next
touch screen event to cause the buttons to reappear, which is fine.  I
have found that if the device does not have soft buttons, ICS will
still snatch the next event anyway, which doesn't really make sense
and is annoying to the user.  If I can detect if the device has hard
buttons, then I can just not call View.setSystemUiVisibility so that
ICS won't unnecessarily steal my events for what is essentially a no-
op.

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


[android-developers] Re: How to set picture mode of camera?

2012-01-11 Thread Oriol
Ok, thanks! I took a look at camera's api and i didn't find a method
for that... :S

On 11 Gen, 13:59, sparky  wrote:
> There is not. You open the camera, then set the parameters to configure the
> mode you 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] Re: Giving away my book: "Genius Android Marketing"

2012-01-11 Thread scp89
The contest is now over! The PDFs have been sent to the 3 winners -
congrats to you guys!

You can still pick up the ebook on Amazon here:
http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B005WE7S3G/ref=sr_1_3?ie=UTF8&qid=1326310497&sr=8-3

As the softcover here:
http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/1463778406/ref=sr_1_2?ie=UTF8&qid=1326310552&sr=8-2

On Jan 10, 11:24 am, Eloy Mier Pérez  wrote:
> Hi Carlos, I would like to get a free copy of your bookthanks very much.
>
> Congrats for the book.
>
> Better luck for me
>
> 2012/1/10 Carlos Silva 
>
>
>
>
>
>
>
>
>
> > On Thu, Jan 5, 2012 at 15:50, scp89  wrote:
>
> >> I've recently finished writing the first full-length, android-specific
> >> book on Android Marketing. It covers tips, tricks, strategies,
> >> competitive analysis, and so much more. Everything I've learned in 2
> >> years selling android apps, I've put into this book. It is available
> >> via e-book OR softcover:
>
> >> E-book:
> >>http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
>
> >> Softcover:
>
> >>http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
>
> >> GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
> >> reply to this thread, and 1 week from today I will randomly select 3
> >> members and PM you a link to your free download of the 130 page book.
>
> > Hope I win ;) Good luck for me :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
>
> --
> VID : 225463http://eloy-mp.com
> eloyjose.mier.pe...@atsistemas.com
> emi...@gmail.com
> eloy.mier.pe...@gmail.com
> eloy.mierp.054...@correos.es
> skype: eloy.mier.perez
> msn: emi...@hotmail.com
> icq: 41709142
> Un saludo. Eloy Mier Pérez.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 store images in sdcard, at the time of downloading app.?

2012-01-11 Thread Jatin D Patel
Hi all,

How can we download images at the time of downloading app, in local drive.?

1. local drive. (i.e in Package of application /  sdcard) of mobile.
2. I have lots of images, so i cannot think of storing in res folder, as i
get exception.

Please help?

-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 provide call

2012-01-11 Thread TreKing
On Wed, Jan 11, 2012 at 8:36 AM, Live Happy  wrote:

> *how to make android application when the user click on the phone call
> button than the application provide itself to make call. as skype and viber
> * ?


Read the intent filter documentation.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Is there a similar tool to instruments for Android development?

2012-01-11 Thread Morrison Chang
Check this blog post:

http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html

also there are a variety of tools in the SDK to use:

http://developer.android.com/guide/developing/debugging/debugging-ui.html
http://developer.android.com/guide/developing/debugging/debugging-tracing.html

Don't think there is anything for the activity lifecycle specifically.
I just use log statements where I need them.

Morrison

On Jan 10, 2:13 pm, Grantland  wrote:
> I was wondering if there was a simple way to track Android process
> memory usage as well as state similar to the way iOS apps were tracked
> in this video:http://speirs.org/blog/2012/1/6/ios-multitasking-in-detail.html
>
> If there is, it would be very helpful for people to understand
> Activity lifecycles as it depicts them visually.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] world Class house shifting and office moving in Dubai Abu Dhabi Sharja Ajman all over the UAE visit our site www.unionmoversuae.com

2012-01-11 Thread unionmoversuae
Welcome
Enjoy world-class moving services at local rates!
www.unionmoversuae.com
Union Mover Dubai is the moving company created to make your moving
experience a stress free one. Our focus is on top notch customer
service, and fast, professional moving services. We aim to offer our
customers the quality of service they expect from the industry's
biggest names in removals, but at affordable prices.

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

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

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

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

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

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

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


Re: [android-developers] Calendar Interceptor In Android

2012-01-11 Thread Marcos Paulo
Yeah... You're right... Thanks anyway.

--
*Marcos Paulo Damasceno*
Software Developer.
@_marcospaulo_
http://devforfun.com/
http://github.com/marcospaulo




Em 11 de janeiro de 2012 16:03, Mark Murphy escreveu:

> I doubt it. First, there are many calendars. And I would expect all of
> those calendars to handle such Notifications internally, not via a
> documented and supported broadcast.
>
> On Wed, Jan 11, 2012 at 12:53 PM, Marcos Paulo
>  wrote:
> > Hey everyone,
> >
> > I need to build an application that intercepts the calendar reminder
> event
> > so
> > I can show a customized notification.
> >
> > I can do that in SMS and Phone Calls but I am not finding a way of doing
> > this
> > with the android calendar.
> >
> > Is that any possible?
> >
> > Thnks in advance.
> > --
> > Marcos Paulo Damasceno
> > Software Developer.
> > @_marcospaulo_
> > http://devforfun.com/
> > http://github.com/marcospaulo
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] .PLIST file - Android

2012-01-11 Thread Kostya Vasilyev
The parser is. The wiki mentions something about a binary format.
and has a few links to Apple's man pages.

But yeah, it's been about 15 years since last time I touched a Mac, sorry :)

-- Kostya

11 января 2012 г. 22:00 пользователь Mark Murphy
 написал:
> 2012/1/11 Kostya Vasilyev :
>> http://en.wikipedia.org/wiki/Property_list
>>
>> https://github.com/tenaciousRas/android-plist-parser/wiki/Android-PList-Parser
>
> Note that this appears to be for the XML flavor of .plist. There's
> another file format that Apple uses for .plist files as well IIRC.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Calendar Interceptor In Android

2012-01-11 Thread Mark Murphy
I doubt it. First, there are many calendars. And I would expect all of
those calendars to handle such Notifications internally, not via a
documented and supported broadcast.

On Wed, Jan 11, 2012 at 12:53 PM, Marcos Paulo
 wrote:
> Hey everyone,
>
> I need to build an application that intercepts the calendar reminder event
> so
> I can show a customized notification.
>
> I can do that in SMS and Phone Calls but I am not finding a way of doing
> this
> with the android calendar.
>
> Is that any possible?
>
> Thnks in advance.
> --
> Marcos Paulo Damasceno
> Software Developer.
> @_marcospaulo_
> http://devforfun.com/
> http://github.com/marcospaulo
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   3   >