[android-developers] Re: Buy valium, xanax, tramadol, lorazepam, oxycodone, zopiclone, nitrazepam, zolpidem etc at good prices call/text/whatsapp..... +237672292013

2019-10-19 Thread Kyle Hopkins
Buy Oxycodone Online NO PRESCRIPTION | Roxies 30mg Overnight Delivery | Buy 
Subutex Online | Roxycodone 30Mg for Sale  Buy Subutex 8Mg Online 
Roxycodone 30Mg for Sale | Buy Subutex 8Mg Buy Oxycodone Online, Buy 
Buprenorphine, Codeine and Hydrocodone  Buy Oxycontin 80mg, Percocet, Buy 
Dilaudid,Dilaudid 4mg and 8mg  Ketamine for sale OTHER MEDICATIONS BUY LEAN 
ONLINE BUY ROXYCODONE ONLINE  PURPLE DRANK LEAN FOR SALE BUY SUBUTEX ONLINE 
BUY PERCOCET ONLINE BUY OXYCODONE ONLINE 
SHIPPING And DELIVERY Packaging is vacuum sealed; thus, very discreet 100%. 
Shipment is shipped as a "DIPLOMATIC PARCEL" 
CALL/TEXT/ +1(802) 526-9168 | Wickr- miles4 | WHATSAPP +1(937)705-0862 

https://www.alphamedsstore.com
https://www.legitonlineopioidpharmacy.com 
https://www.legitonlineopioidpharmacy.com/product/buy-oxycodone-hcl-30-mg-x120-pills/
 

https://www.legitonlineopioidpharmacy.com/product/buy-actavis-promethazine-syrup/
 

https://www.legitonlineopioidpharmacy.com/product/buy-fentanyl-online-transdermal-patch/
 

https://www.legitonlineopioidpharmacy.com/product/buy-percocet-10mg-online-120-pills/
 

https://www.legitonlineopioidpharmacy.com/product/buy-dilaudid-8mg-100-pills/ 

https://www.legitonlineopioidpharmacy.com/product/buy-morphine-online-ship-overnight/
 

https://buyoxycondoneonline.webstarts.com/ 
https://toplegitdocuments.com/buy-high-quality-real-fake-passports/
https://pillschemist.to
https://toplegitdocuments.com
https://www.ccbanklogsdumps.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/920efa16-7d94-4138-bc4c-9096642d4b3e%40googlegroups.com.


[android-developers] Re: Buy valium, xanax, tramadol, lorazepam, oxycodone, zopiclone, nitrazepam, zolpidem etc at good prices call/text/whatsapp..... +237672292013

2019-10-17 Thread Kyle Hopkins
 

*Buy Subutex 8mg Online | +1 802 526 9168*

Buy Subutex Online | Roxycodone 30Mg for Sale | Buy Subutex 8Mg Online

Buy Oxycodone Online, Buy Buprenorphine, Codeine and Hydrocodone, Buy 
Lortab, Opana,Buy Oxycontin, Percocet and Roxycodone, Buy Soma, Tramadol, 
Vicodin ES, Buy Dilaudid,Dilaudid 4mg and Dilaudid 8mg, Buy Subutex online, 
Ketamine for sale


Wickr- miles4 

Whatapp: +1 937 705-0862

call/text: +1 802 526-9168



OTHER MEDICATIONS

BUY ACTAVIS ONLINE

BUY ROXYCODONE ONLINE

PURPLE DRANK LEAN FOR SALE

BUY SUBUTEX ONLINE

BUY PERCOCET ONLINE

BUY OXYCODONE ONLINE

BUY OPANA ONLINE

BUY DILAUDID ONLINE

BUY QUAALUDES ONLINE


https://www.alphamedsstore.com

https://www.legitonlineopioidpharmacy.com


https://www.alphamedsstore.com/product/buy-endocet-online-no-script/


https://www.alphamedsstore.com/product/buy-methadone-hcl-40mg/


https://www.alphamedsstore.com/product/zolpidem-ambien-10mg/


https://www.alphamedsstore.com/product/buy-diazepam-10mg-actavis/


https://www.alphamedsstore.com/product/buy-restoril-temazepam-30mg/


https://www.alphamedsstore.com/product/buy-buprenorphine-bunex-0-20mg/


https://buyoxycondoneonline.webstarts.com/
https://toplegitdocuments.com/buy-high-quality-real-fake-passports/


https://pillschemist.to

https://toplegitdocuments.com

https://www.ccbanklogsdumps.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/69976cd7-ab8b-4418-be0f-99aa835f6ce8%40googlegroups.com.


[android-developers] wifi splash page not disappearing

2017-02-24 Thread Kyle Lam


Hi all,

 

I am trying to add a splash page/ wifi landing page/ wifi agreement page 
(or whatever the name is) to my network by modifying my dns server.

We know this is not the so call "correct" way to do it, and will not block 
attacks in a meaningful way. (as they can always use a better DNS server)

 

Here is how my implementation works:

1) DHCP point device to use my DNS server

2) DNS server reslove all request as an local ip address, in which it host 
a web server for the agreement page

3) After user agree to the terms, DNS server will start resloving the 
request correctly, thus, user will be able to get to the web

 

It works on computers, however, when I tested it on Android devices, here's 
what happen

1) connect Android to wifi network

2) Android tried resolve a number of sites to determine if the system has 
internet connection

3) DNS server reslove all these request as a local web server's ip address, 
with ttl=1

4) splash page comes up on iPhone

5) user click I agree, and DNS server starts giving out correct ip, the 
page also redirect user to an internet address

These all works as expected, however, the splash page does not go away 
after connect.

The user would have to click the option: use this network without internet 
access (or something like that) to dismiss the page. (Clicking home here 
will results in disconnecting from the network)

 

I wonder if there is a special (javascript?) method I can call in the page, 
or some package I need to send to the device?

 

Thanks a lot,

Kyle

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/52a91435-6295-48ea-8596-0fad5f72af30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Sketching out the Graphical Interfance

2017-01-19 Thread Kyle Williams
I'm wondering what the mob dev pros use to sketch our their apps interface 
before they code it. Kind of like mapping out your objects on draw.io but 
just for the interface so you can get an idea for what you want it to look 
like. Maybe the word "blueprints" fits here. Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e46bae00-a0c6-4720-8835-0b31050587dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] UI Automation

2017-01-12 Thread Kyle Wolff
We are using SeeTest and I just started using appium for our UI Automation 
tests. 

I was curious into if there is a way to show custom values if it is a 
custom widget when the inspectors run on a view. 

Right now we can see the basics:  

*content-desc:* 

*type:* 

*text:* 

*index:* 

*enabled:*

*location:* 

*size:* 

*checkable:*

*checked:*

*focusable:*

*clickable:*

*long-clickable:*

*package:* 

*password:*

*resource-id:* 

*scrollable:*

*selected:*

*xpath:*

I would like to add custom attributes here if our QA needs them. Is this 
possible? 

I found @ViewDebug.ExportedProperty and this works when using the Android 
Device monitor and look at View Properties but not using these automation 
tools. 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6f0877fb-ef5d-47ae-9d70-824283fd9bed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Duplicate Jar files

2016-11-15 Thread Kyle
Happy to provide more screen shots if that is helpful. I'm right at the end 
of my project and I know it is a simple fix but any helpful tricks would be 
much appreciated! At this point, I'm unzipping all files and trying to find 
any duplicates which is painfully slow. 

On Tuesday, November 15, 2016 at 11:21:27 AM UTC-8, Kyle wrote:
>
> I'm trying to compile an APK for release from a working test build in the 
> debug environment but this error message keeps popping up. Can anyone help?
>
>
>
>
> <https://lh3.googleusercontent.com/-MjXHHEYJJ5k/WCtfbnUrecI/Eo0/uyCkn9ZJ_WsJJsLN3mlQDWEzKyHrl7VXgCLcB/s1600/Screen%2BShot%2B2016-11-15%2Bat%2B11.15.11%2BAM.png>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f3bd3504-6c86-424e-9caa-bd0d07be6428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Duplicate Jar files

2016-11-15 Thread Kyle


I'm trying to compile an APK for release from a working test build in the 
debug environment but this error message keeps popping up. Can anyone help?





-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c5c2cd29-e732-442b-84e3-e9bea30926ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Iterate Over JSONArray and update Arraylist Hashmap Android

2014-03-10 Thread Kyle Phillips
I create an `Arraylist Hashmap` (shown below) by parsing a JSON response 
from Google Places API. Than I take the "id" strings and send them to my 
server to look for users with matching ids in my DB. Any matches I return 
the users in a JSON response (shown below). 

Now what I need to do is iterate over the JSON response and count the 
number of ID matches and update the "numbercheck" value in the hashmap to 
the appropriate number. For example in the JSON Response there is 2 
occurrences of the id "339fd8e9a6aee4567764275e4d0827568fb499e5" so I would 
update numbercheck from null to 2 on Place 1. I'm not sure how to go about 
this. Should I parse the JSON response into its own map and than compare 
the two maps? Any help would appreciated. 

`Arraylist Hashamp Example:`

[
{
lastcheck=null,
id=339fd8e9a6aee4567764275e4d0827568fb499e5,
vicinity=1314NWGlisanSt,
New York,
numbercheck=null,
name=Place 1
},
{
lastcheck=null,
id=d42061acd095772c3e646819fb47aea5b03e4705,
vicinity=1338NWHoytSt,
Portland,
numbercheck=null,
name=Place 2
}
]

`JSON Response Example:`

{
"tag": "userList",
"success": 1,
"error": 0,
"placeMatches": {
"userObjects": [
{
"id": "339fd8e9a6aee4567764275e4d0827568fb499e5",
"dob": "2014-06-06",
"gender": "Female",
"status": "NoSay",
"image": "image/image.jpg",
"lastcheck": "26:30:29"
},
{
"id": "339fd8e9a6aee4567764275e4d0827568fb499e5",
"dob": "2014-01-11",
"gender": "Female",
"status": "Taken",
"image": "image/image.jpg",
"lastcheck": "26:30:29"
},
{
"id": "d42061acd095772c3e646819fb47aea5b03e4705",
"dob": "2014-04-16",
"gender": "Male",
"status": "NoSay",
"image": "image/image.jpg",
"lastcheck": "26:30:29"
},
{
"id": "d42061acd095772c3e646819fb47aea5b03e4705",
"dob": "2013-04-19",
"gender": "Female",
"status": "NoSay",
"image": "image/image.jpg",
"lastcheck": "26:30:29"
},
{
"id": "d42061acd095772c3e646819fb47aea5b03e4705",
"dob": "2014-01-29",
"gender": "Female",
"status": "Single",
"image": "image/image.jpg",
"lastcheck": "26:30: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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Saving Images to SD Cards on All Devices

2012-10-25 Thread Kyle Dalrymple
Hello all,

My app involves selecting an image from the device's gallery and then 
saving a smaller version of that image to a folder on the SD Card. The 
problem I'm running into is that some users are reporting that the images 
aren't getting saved to the folder. Most users, however, report that the 
app is working fine and I can't tell what is happening to these other few 
users. So far, the devices that are reported to be running into the issue 
are as follows: Huawei T-Mobile myTouch, Samsung GT-S5830i, HTC Evo 4G, and 
the Samsung Galaxy S2. I myself have a Motorola Atrix 2 and I've had no 
such issue.

My manifest has the tag in it already. Most of my code comes from 
stackoverflow solutions to get an image from the gallery and then save it 
to the sd card.

Getting image from gallery:

public void onActivityResult(int requestCode, int resultCode, Intent data) 
{
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) 
{
 switch(requestCode) 
 {
case SELECT_IMAGE:
 image_dir = getPath(data.getData());

 Bitmap myBitmap = decodeFile(new File(image_dir));

 resizedBitmap = Bitmap.createScaledBitmap(myBitmap, 
(int)(myBitmap.getWidth()/2), (int)(myBitmap.getHeight()/2), true);
 break;
 }
}
else
{
 image_dir = "None";
}
}

Saving the image to the SD Card:

OutputStream fOut = null;
File file = new 
File(Environment.getExternalStorageDirectory()+"/MyApp",imgname+".jpg");
fOut = new FileOutputStream(file);

resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);
fOut.flush();
fOut.close();

And this all seems to work out fine for most users, but for some users the 
image isn't getting saved. Could this be a permissions issue or some sort 
of setting I've overlooked in the code itself? Any help is appreciated.

Thanks,

Kyle

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

[android-developers] changing path

2012-07-10 Thread Kyle Lanmon
I have a Mac running 10.6.8 and I am trying to set up the SDK but I do
not know how to update the PATH environment variable. If someone could
teach me or point me to a tutorial that would be great!

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


[android-developers] DatePicker in a fragment

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

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

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

After reading various sources online, I know "showDialog" is
deprecated and the recommendation is to use the DialogFragment.
However, is there an option to generate a date picker dialog with this
implementation?  I've been unable to find any good examples of anyone
trying this - so if there are resources available to merge the
(deprecated) example on the Android Developer web site with an actual
DialogFragment implementation, I would really appreciate it.

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


[android-developers] Re: App appears to be missing for a number of devices on Android Market

2011-09-22 Thread Kyle
I would advise not using "android:maxSdkVersion='12'".  In fact I believe it 
tells you in the documentation not to.

I can't even think of a reason why you would use that...

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

[android-developers] Re: Question about integrating Facebook/Twitter

2011-09-22 Thread Kyle
Yes, its quite easy to do both.  Check out the Facebook and Twitter API 
documentation (I have done Facebook before, not Twitter yet).

On Tuesday, September 20, 2011 10:58:22 AM UTC+4:30, Randy wrote:
>
> I am developing an application for a local LAN Gaming company who uses 
> Twitter/Facebook to send out most of their new updates and 
> developments.  I am new to integrating Facebook/Twitter and wondering 
> if the following is possible: 
>
> 1)  Allow my application to provide a list of recent updates to a 
> Facebook Group and follow Tweets in a similar fashion? 
>
> 2)  Provide buttons that are direct links to the Facebook Group and 
> Twitter Page. 
>
>
> - 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

[android-developers] Re: Android is worst os mobile is this true

2011-09-22 Thread Kyle
Because then you would have every crap manufacturer putting 3.0 on a phone, 
calling it "The most updated Android phone", its going to run like crap, 
people will buy it, think its crap and extend that perception to all of 
Android.

I for one, applaud Google for standing up on this.

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

[android-developers] Activities in Tabs

2011-07-26 Thread Kyle
I am creating an app which has 4 tabs. I have been following tutorials
like this one 
http://androidgenuine.com/?feed=rss2&tag=tabhost-nested-activity-android
. That is how i set up my app, one main class that extends TabActivity
and 4 different tabs that extend ActivityGroup. so everytime i want to
add an activity to the tab i do something like this. This is not my
code its from the example.

Intent i = new Intent(this, ShowCity.class);
String city_name = (String)
getListAdapter().getItem(position);
i.putExtra("city_name", city_name);

// Create the view using FirstGroup's LocalActivityManager
View view = FirstGroup.group.getLocalActivityManager()
.startActivity("show_city", i
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();

 // Again, replace the view
FirstGroup.group.replaceView(view);

So by the looks of it, it creates a new Intent and makes it into a
View then replaces the tab view with this one. The problem is that
methods in the new Activity like Onback, onResume, and all the other
ones are not being called by the current activity in the tab. Those
methods get called by the tab itself. So the tab Onback, onResume ect.
will always be the same for each activity being shown on the tab. Is
there a way so those methods get called by the current activity being
shown, not the tab itself? Also on the back method there is a
problem.

// back
public void back() {
if(history.size() > 0) {
history.remove(history.size()-1);
setContentView(history.get(history.size()-1));
}else {
finish();
}
}

it works but none of the activity get finish() or destroyed. So the
heap keeps on getting bigger as more activity are being called.


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

2011-06-18 Thread Kyle Szklenski
I've found that the guy at the following website has produced tons of
really, really useful beginner tutorials on game development for
Android, with code and I believe he's done some 3D stuff for it too:

http://obviam.net/


Have a good one,

Kyle


On Jun 17, 11:51 am, BY SmartApps  wrote:
> Greetings,
>
> I have started thinking to develop games for Android. I have a good
> background in standard programming using Java, C & C++. But I have
> never tried to develop a game before.
>
> Basically, I would like to know how to begin developing 2d & 3D games
> for Android.
>
> I have downloaded tools like Eclipse, Blender, and Unity3d. I need
> your help in this. For starting, how can I kick off? Are there
> tutorials for 2d game development like “Angry Birds” ?
> Please guide me.
>
> Thanks & Regards,
>
> Badar Al Raisi

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

2011-06-15 Thread Kyle Szklenski
Typically, this isn't done by mocking those classes directly, but
rather by wrapping those classes in interfaces and then mocking said
interfaces. For example, consider the following code (I'm not claiming
this is good code - just a way to use and fix things that you're
trying):


public boolean DeleteTemporaryFiles()
{
boolean result = false;

File rootDir = Environment.getRootDirectory(); // This line sucks
because it can't be mocked
File[] files = rootDir.listFiles();
for(File file : files)
{
if (file.getName() == "tmp.txt")
{
result = file.delete();
}
}

return result;
}


So how do you get around the issue of having the
Environment.getRootDirectory() call in there? The easiest way is to
create a simple interface like so:


public interface EnvironmentWrapper
{
File getRootDirectory();
// ... other required functions
}

public boolean DeleteTemporaryFiles(EnvironmentWrapper
environment)
{
boolean result = false;

File rootDir = environment.getRootDirectory(); // Now you depend
on an interface, not the static class. This is called dependency
inversion, because you're pushing the dependency to the caller of the
function, which is "above" this one.
File[] files = rootDir.listFiles();
for(File file : files)
{
if (file.getName() == "tmp.txt")
{
result = file.delete();
}
}

return result;
}


You can take this further, such as with mocking the File calls and
what not, but it may not be necessary in your particular case.

Kyle


On Jun 13, 8:46 am, Sunil Chandra  wrote:
> Hi All,
>
> > I am pretty new to Android and trying to write an application that stores
> > some data on external storage.
> > I figure that Environment.getxxxState are the functions to check before
> > assuming their presence.
>
> > Now, since these are system enforced objects, how do I mock them for
> > testing various scenarios without actually using a phone.
> > (Another reason to not rely on physical device is that  certain phone e.g.
> > Nexus S do not support removal of external storage and I have already made
> > that choice :(  )
>
> > Regards,
> > Sunil

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


[android-developers] Licensing with Google street views?

2011-06-09 Thread Kyle Szklenski
Hi,

I'm relatively new to Android dev and was wondering: In a pay-to-play
Android app, are there any licensing issues with using Google Map's
street views? What, in general, are the restrictions on using stuff
like that from the web in paid apps? Much thanks.

Kyle

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

2011-03-22 Thread Kyle Hendricks
Is there any estimate on when the next Android Compatibility Package release 
will be that fixes fragment animations?

Also, is there a google code page for the compatibility package?

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

[android-developers] Is there any way to unsubscribe from "https://review.source.android.com/"?

2011-03-09 Thread Kyle Lee
I made a mistake of setting different username from my email id. So I
cannot upload my source code to AOSP gerrit review system.
Unfortunately, the gerrit review system does not allow to change
username.

I think the only solution is that I unsubscribe first and register
again with correct settings. But I cannot find a way to unsubscribe
"https://review.source.android.com/";.

Please let me know if anybody knows the way to solve my problem.
Best Regards.

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


[android-developers] Is there possible way to get the statistical information about the music on android?

2011-01-19 Thread Kyle
As the top 100 played songs, most rated songs, etc.

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: Making a playlist based on 'genre'

2011-01-03 Thread Kyle
Yes, I am also wanting some advices on this.


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

[android-developers] get the genre name with most songs from the music library

2010-12-29 Thread Kyle
I am trying to get the genre with most songs by using the media store and 
failed to get it, as well as I can get the artist with most songs.

Any one has good idea.

Thanks.
Kyle

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

[android-developers] need the meta data of the music library

2010-12-28 Thread Kyle
I just use the mediastore to get the meta information of the music.
Now I can get the total number of songs, albums, genres.
How can I get the genre with the most songs. There are only two fields
(Genre_id and Genre_name) in the table of generes.

Besides, is there a possible way to get the top played music
playlist?

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


[android-developers] WebView Authentication help

2010-11-18 Thread Kyle
Hello Everyone!


I've created an application which loads a WebView. In order to login,
the website requires basic authentication. When i try to access the
website
via the default browser, I get a pop up box prompting me to enter my
user name
and password.

If I try to access the website via my application, I get error 401 and
no pop up.
I was wondering if someone could help me out?

Thanks
-Kyle

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

2010-11-02 Thread Kyle
Wound up finding a much better way of doing this. Someone turned onto
an easy way to use MediaPlayer for this function:

MediaPlayer ring =
MediaPlayer.create(this,Settings.System.DEFAULT_RINGTONE_URI);
ring.prepare();
ring.start();

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


[android-developers] Playing default ringtone with SoundPool or MediaPlayer

2010-11-01 Thread Kyle
Apologies in advance for asking a question I should be able to figure
out, but I've been banging my head for hours on this and have
obviously got crossed wires in my brain.

How do I get the default ringtone to play? I've tried using SoundPool
(preferred method) and MediaPlayer to play it but I'm getting nowhere.
I've done so many dumb things, I'll just include the last fail. In the
following snippet:

String ringtone = Settings.System.DEFAULT_RINGTONE_URI.getPath();
SoundPool ringPhone = new SoundPool(1, AudioManager.STREAM_RING, 0);
int soundID =
ringPhone.load(Settings.System.DEFAULT_RINGTONE_URI.getPath(), 1);
ringPhone.play(soundID, 0.99f, 0.99f, 1, 0, 1.0f);

loads but plays nothing. When I display
Settings.System.DEFAULT_RINGTONE_URI.getPath(), it's returning /system/
ringtone

Anything that would get me pointed in the right direction would be
greatly appreciated. Thanks,

kyle

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

2010-09-27 Thread Kyle
I'm trying to translate the accelerometer values from the device
coordinates to the world coordinates.
It's not clear how to do this.
I guess getRotationMatrix method can do sth about this,and I use the
matrix R the method generated multiply accelerometer values but I did
not get what I expected.

Here is my code:

public void onSensorChanged(SensorEvent event) {

if(event.sensor.getType()==Sensor.TYPE_ACCELEROMETER){
t1.setText("X:"+event.values[0]);
t2.setText("Y:"+event.values[1]);
t3.setText("Z:"+event.values[2]);
e1=event.values.clone();
b=true;

}
if(event.sensor.getType()==Sensor.TYPE_MAGNETIC_FIELD)
{
t8.setText("X:"+event.values[0]);
t9.setText("Y:"+event.values[1]);
t10.setText("Z:"+event.values[2]);
e2=event.values.clone();
b=true;
}
if(event.sensor.getType()==Sensor.TYPE_ORIENTATION){
t11.setText("X:"+event.values[0]);
t12.setText("Y:"+event.values[1]);
t13.setText("Z:"+event.values[2]);

}
if(e1!=null&e2!=null&b==true){
float[] R=new float[9];
float[] I=new float[9];
float[] outR=new float[9];
float[] e3=new float[3];
boolean b=SensorManager.getRotationMatrix(R,I,
e1, e2);
float[] result=new float[3];
result[0]=R[0]*e1[0]+R[1]*e1[1]+R[2]*e1[2];
result[1]=R[3]*e1[0]+R[4]*e1[1]+R[5]*e1[2];
result[2]=R[6]*e1[0]+R[7]*e1[1]+R[8]*e1[2];

t19.setText("X:"+e3[0]);
t20.setText("Y:"+e3[1]);
t21.setText("Z:"+e3[2]);

if(result[0]>10.0f|result[1]>10.0f){
Log.i("aaa", "X:"+result[0]+"
Y:"+result[1]+" Z:"+result[2]);
}
b=false;
}
}

The above code seems can do sth expected.When the device stays
statically,result[0] and result[1] approach 0 and result[2] approaches
standard gravity.But when you give the device a acceleration in any
direction,result[0] and result[1] are still 0 while result[2] varies a
lot.
Any help would 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] Re: intent to play mp4 problems

2010-08-02 Thread Kyle
Here is my code that I'm currently using:
final class MyWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String
url) {
if (url.endsWith(".mp4"))  {
Intent intent = new
Intent("android.intent.action.VIEW", Uri.parse(url));
view.getContext().startActivity(intent);
return true;
} else {
return super.shouldOverrideUrlLoading(view, url);
}
}
}


On Aug 2, 3:00 pm, Matty  wrote:
> Are you calling intent.setDataAndType(Uri Data, String Type)
> ?
>
> Sometimes specifying the right mime type makes a big difference.
>
> On Aug 2, 1:26 am, Kyle  wrote:
>
> > Hey,
> > I've created a WebView which loads a webpage and will play any file
> > that ends in mp4 on click. The problem is, is that when the
> > application is loaded on Android 2.2 and I click a mp4 link, it will
> > open the web browser and immediately close. I can take that same link
> > and manually enter it into the web browser and the media player will
> > launch and play the file properly. What I'm wondering is how can I get
> > my application to properly load the media player and play the video?
>
>

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


[android-developers] intent to play mp4 problems

2010-08-02 Thread Kyle
Hey,
I've created a WebView which loads a webpage and will play any file
that ends in mp4 on click. The problem is, is that when the
application is loaded on Android 2.2 and I click a mp4 link, it will
open the web browser and immediately close. I can take that same link
and manually enter it into the web browser and the media player will
launch and play the file properly. What I'm wondering is how can I get
my application to properly load the media player and play the video?

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


[android-developers] Complete Newbie - Looking for some help :)

2010-05-12 Thread Matty Kyle
Hi there.

Well i decided today that I want to create a very simple app to
compliment my website at http://www.gameworldplus.com.

I basically want to make a simple app with nice looking buttons,
leading to the different areas of help/tutorial, then work from there.

I have installed everything need, Eclipse etc and have made my first
"hello world" app in the process.

I am no stumped as to where to go next. So hoping for some friendly
advice :)

Cheers

Matt

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

2010-03-18 Thread kyle smith
what are you using for the recording functions?

On Thu, Mar 18, 2010 at 9:54 AM, manigault  wrote:

> Hi i have an application that records audio and i want to add an
> indicator which shows the volume of the recorded audio ( in real
> time ). Any ideas how to do is. Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] LogCat reports"Could not find method foo"

2010-02-18 Thread Kyle
I am trying to use the backport.android.bluetooth library.  I wonder
if I have the library configured correctly.

Here's what I did in Eclipse 3.5:

1) Created Android project.
2) Added backport-android-bluetooth2.jar to my reference libraries
3) Wrote some code that called
backport.android.bluetooth.BluetoothAdapter.getDefaultAdapter()
4) Compiled successfully
5) Did "Run as..." so it was running on my G1 device
6) Saw this error in LogCat


How is it that I can compile successfully, but can't find a method at
run time?  (I have >10 years low level programming experience, but am
new to Java)

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


[android-developers] Geo intent and walking directions (2.0 SDK)

2009-11-24 Thread Kyle
I'm new to Android development, so in order to learn the API, I've
been working on a sample application that (in theory) would allow
college students to access their course schedule and then locate the
building where that class it being held.  I've got all of the parts
and pieces put together (courses, longitude and latitude of the
buildings, etc) and have successfully launched the "geo intent" on my
Motorola Droid to pinpoint the specific building I want.

However, the next step is where I'm running into problems, and
wondering if the current 2.0 version of the SDK allows for this...

Using the longitude and latitude of the building (since they aren't
all on a street with a physical address), I want to allow the student
to "get walking directions" from their point of origin to the
building.

Is there a way, once I have the building pinpointed, to allow the
student to use the menu, select "Directions" and get the walking
directions from point A to point B?  Right now, if I long press on the
building, it will popup the closest street address and I can "get
directions" to that, but its not specific to the location I want...

Any help, comments or suggestions would be greatly appreciated.

Kyle

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

2009-09-15 Thread Kyle

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



[android-developers] Re: Android Physics Engine

2009-04-27 Thread Kyle


The http://www.filedropper.com/apedroid link is down.  Any other place
I can download the code?
Has anybody else had any luck optimizing Phys2D or Box2D with fixed
numbers and less memory allocation?

Kyle

On Apr 3, 8:24 am, mscwd01  wrote:
> I have thrown together a quick example of theAPEPhysics engine
> (www.cove.org/ape/) running on Android.
>
> As you can see, simulating 30 or so circles results in a solid 15fps,
> which looks acceptable.
>
> The bad news, which I didn't realise before porting it to Android, 
> isAPE'slack of simulating rotation of bodies. I.e. if you simulate
> boxes their x,y positions are calculated but they never rotate. I'm
> pretty sure I haven't overlooked this feature but i'd be surprised if
> it wasn't part of theAPEengine, maybe someone else could confirm
> this?
>
> Anyway,APEis a lot nicer to use than JBox2D and is on a par with
> Phys2D for ease of use. I just wish Phys2D performed well on Android
> then all my problems would be solved!
>
> With all the attention this topic has brought I hope we can find a
> solution in the not-to-distant future...
>
> Here's the Eclipse Project:http://www.filedropper.com/apedroid
> When running 20 initial circles are created, you can create more by
> clicking the down button.
> Also you will find lots of commented out code, you can experiment with
> this if you wish...
>
> On Apr 3, 12:35 pm, Stoyan Damov  wrote:
>
> > + googol
>
> > On Fri, Apr 3, 2009 at 1:43 PM, Mariano Kamp  wrote:
> > > Romain,
>
> > >   I am sure you are, but as with the Cupcake issue from the other thread
> > > with Al, it is not transparent at all. The road map
> > > (http://source.android.com/roadmap) doesn't contain much and doesn't seem 
> > > up
> > > to date.
>
> > >   And don't get me started on the lack of transparency and predictability
> > > regarding *all* things Android Market.
>
> > >   Don't get me wrong though. This is not meant in any way as a personal
> > > attack against you or in me laying the blame onto you. My point is that 
> > > the
> > > communications sucks and that your, Dianne's and JBQ's life would be 
> > > easier
> > > as well when someone offical from Google would put more effort into proper
> > > communications.
>
> > > Cheers,
> > > Mariano
>
> > > On Fri, Apr 3, 2009 at 10:29 AM, Romain Guy  wrote:
>
> > >> We're aware of the shortcomings of the current garbage collector and
> > >> believe me, it's one of the things we'd really love to see improved as
> > >> soon as possible :)
>
> > >> On Fri, Apr 3, 2009 at 2:04 AM, Mariano Kamp 
> > >> wrote:
> > >> > Anton, thanks. Very interesting.
> > >> > On Fri, Apr 3, 2009 at 2:24 AM, Anton  wrote:
>
> > >> >>    Check out
>
> > >> >>http://android-developers.blogspot.com/2009/02/track-memory-allocatio...
>
> > >> >>    Romain Guy points out in this post that the android garbage
> > >> >> collector cannot optimize small short lived objects.  These are
> > >> >> exactly the sort of objects that could be created in a physics engine
> > >> >> when it needs to generate dynamic collision constraints.  A good
> > >> >> solution in this case is to use a pool of constraint objects because
> > >> >> they are all going to be the same size/object.  The best solution in
> > >> >> my mind would be for the compiler to do escape analysis on the objects
> > >> >> and stack allocate them when it sees that they will never escape the
> > >> >> function.  I have been told that the Java byte code can't reference an
> > >> >> object on the stack.  It's possible that the Dalvik byte code can, I
> > >> >> don't know.
>
> > >> >>    I don't have a reference for this, but I assume that Dalvik's
> > >> >> inability to optimize small short lived object comes from the fact
> > >> >> that it uses a mark and sweep GC.  On all of my profiling, I see the
> > >> >> GC take at least 100ms to run.  For a game that means you miss from
> > >> >> three to 10 frames of animation and it makes for a pretty noticeable
> > >> >> hick up.  And I don't think it's my application that is causing the
> > >> >> garbage collector to fire.  Unless the OpenGL ES calls do some memory
> &

[android-developers] Re: Problem installation Android Development Tools

2009-04-20 Thread Kyle

I'm encountering this same problem.

Anyone have a solution?

On Apr 17, 7:23 am, thewilli  wrote:
> Hi!
>
> I wanted to install ADT using my Eclipse 3.4 Ganymede and the internal
> update function. I added the site "http://dl-ssl.google.com/android/
> eclipse/" and chose to install it.But directly after confirming the
> installation I got the following error message:
>
> An error occurred during provisioning.
> Failed to prepare partial IU: [R]com.android.ide.eclipse.ddms
> 0.8.0.v200809220836-110569.
>
> Do you know what the reason of that error might be?
>
> Thank you in advance!

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



[android-developers] Re: Manipulate Drawable Resource

2009-01-11 Thread Kyle

Thanks for all of the responses guys. I am referring to the actual
notification icons that show up in the title bar. I know that a
Drawable can be manipulated in many ways and that's what I would like
to do in order to update the icon but the main problem here is that
the Notification object constructor only takes a resource id of a
drawable that was already predefined. Therefore this limits you to
icons that were added to the application before compilation. It would
be nice if I could change the drawable programmatically in my
application and then pass that as the notification icon but it seems
that it's not possible. I was hoping there was a way to do this but I
haven't had much luck finding a solution since I posted this.

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



[android-developers] Re: Manipulate Drawable Resource

2008-11-30 Thread Kyle

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



[android-developers] Re: Proper way of handling orientation change + async thread

2008-11-06 Thread Kyle

Does anyone have anymore examples of handling this? I've been trying
everything including zl25drexel's workaround and I've had no luck. I
tried dismissing the dialog in my onDestory() method and then used
onRestoreState() to redisplay the dialog but it still never gets
dismissed. Any help would 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Manipulate Drawable Resource

2008-10-31 Thread Kyle

Anyone else have any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Manipulate Drawable Resource

2008-10-27 Thread Kyle

Hey Kevin,

Thanks for the response. The icon I'm trying to update would be a
placeholder image that I would store in the resources of my
application. I was hoping I would be able to change this within my
program based on certain conditions and have the status bar reflect
the changes when the icon gets updated. (i.e. Say you wanted to keep
an icon of the current temperature in the titlebar and be able to
change that icon in your resources with new text as the temperature
changes.) I know you can customize the view for the window shade but
I'd like to be able to change the actual icon that displays in the
status bar. Notifications only take a drawable resource so I wouldn't
be able to use setImageResource(int resource id) to change that. Would
this be possible at all?

Thanks,
Kyle

On Oct 27, 9:09 am, cyntacks <[EMAIL PROTECTED]> wrote:
> Hi Kyle,
>
> Where does the icon "live" that you are trying to update? Is it inside
> of your app, or is it on the Android home screen? From what I can
> gather the SDK does not allow one to update the icon on the home
> screen during runtime (at least that is what I read here on the board
> when attempting to do that), instead you have to use the notification
> layer and post a message to the title bar.
>
> On the other hand, if you are attempting to change an image/icon
> inside of the app, this is pretty standard. Just grab the current
> ImageButton and call .setImageResource(int resource id). Now, if you
> are getting fancy and just adding a "badge" or something, it will be
> slightly more complicate, but this should get you up in the right
> direction. Take a look at the draw() methods as well
>
> Does that help?
>
> Kevin
>
> On Oct 26, 12:20 pm, Kyle <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I'm trying to find a way to programmatically change a drawable
> > resource within my application so that I can display this updated icon
> > as a notification. Would this be possible? If not is there another way
> > to go about doing something like this? I figured a notification object
> > might be able to take a bitmap or drawable but it looks like you can
> > only pass a resource id.
>
> > Thanks for any help.
> > Kyle
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Manipulate Drawable Resource

2008-10-26 Thread Kyle

Hello,

I'm trying to find a way to programmatically change a drawable
resource within my application so that I can display this updated icon
as a notification. Would this be possible? If not is there another way
to go about doing something like this? I figured a notification object
might be able to take a bitmap or drawable but it looks like you can
only pass a resource id.

Thanks for any help.
Kyle

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



[android-developers] Re: Problem Centering and Padding Buttons in Layout

2008-04-29 Thread Kyle R

Thank you.

On Apr 29, 10:21 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> Oops, sent too fast. Used android:layout_marginTop="XXdip" or
> android:layout_marginBottom="XXdip", depending on whether you put this
> attribute on Button 4 or Button 3.
>
>
>
>
>
> On Tue, Apr 29, 2008 at 7:13 PM, Kyle R <[EMAIL PROTECTED]> wrote:
>
> > Is there a way to space the last button so its placed further from the
> > top 3?  It's not the padding option.  It would therefore look like:
>
> > <- - - - ->
>
> >     1
> >     2
> >     3
>
> >     4
>
> > <- - - - ->
>
> > Thanks again for your help.
>
> > On Apr 29, 9:51 pm, Kyle R <[EMAIL PROTECTED]> wrote:
> >> That worked perfectly, thank you very much.
>
> >> On Apr 29, 9:05 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> >> > Kyle R wrote:
> >> > > I cannot figure out how to make 4 buttons, arranged vertically in a
> >> > > row, centered both vertically and horizontally on the screen.  I don't
> >> > > get why this is so difficult.  Is there a complete list of button
> >> > > attributes for the xml file and what they accomplish somewhere?
>
> >> > > What I am trying to achieve would look like:
>
> >> > > <- - - - ->
>
> >> > >      1
> >> > >      2
> >> > >      3
> >> > >      4
>
> >> > > <- - - - ->
>
> >> > Try this:
>
> >> > 
> >> > http://schemas.android.com/apk/res/android";
> >> >         android:orientation="vertical"
> >> >         android:layout_width="fill_parent"
> >> >         android:layout_height="fill_parent"
> >> >         android:gravity="center"
>
> >> >          >> >                 android:orientation="vertical"
> >> >                 android:layout_width="fill_parent"
> >> >                 android:layout_height="wrap_content"
> >> >                 android:gravity="center"
>
> >> >                  >> >                           android:id="@+id/btn1"
> >> >                           android:layout_width="300px"
> >> >                           android:layout_height="50px"
> >> >                           android:textAlign="center"
> >> >                           android:padding="15px"
> >> >                           android:text="1"/>
> >> >                  >> >                           android:id="@+id/btn2"
> >> >                           android:layout_width="300px"
> >> >                           android:layout_height="50px"
> >> >                           android:textAlign="center"
> >> >                           android:padding="15px"
> >> >                           android:text="2"/>
> >> >                  >> >                           android:id="@+id/btn3"
> >> >                           android:layout_width="300px"
> >> >                           android:layout_height="50px"
> >> >                           android:textAlign="center"
> >> >                           android:padding="15px"
> >> >                           android:text="3"/>
> >> >                  >> >                           android:id="@+id/btn4"
> >> >                           android:layout_width="300px"
> >> >                           android:layout_height="50px"
> >> >                           android:textAlign="center"
> >> >                           android:padding="15px"
> >> >                           android:text="4"/>
> >> >         
> >> > 
>
> >> > I'll admit I'm not 100% certain why both gravity:"center" attributes are
> >> > needed -- I'd've expected the one on the outer-most LinearLayout would
> >> > have done the trick. But, this seems to give the visual effect you're
> >> > looking for, if I understood you correctly.
>
> >> > --
> >> > Mark Murphyhttp://commonsware.com
> >> > The Busy Coder's Guide to Android Development -- coming in June 2008!- 
> >> > Hide quoted text -
>
> >> > - Show quoted text -- Hide quoted text -
>
> >> - Show quoted text -
>
> --
> Romain Guywww.curious-creature.org- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem Centering and Padding Buttons in Layout

2008-04-29 Thread Kyle R

Is there a way to space the last button so its placed further from the
top 3?  It's not the padding option.  It would therefore look like:

<- - - - ->


 1
 2
 3

 4


<- - - - ->

Thanks again for your help.

On Apr 29, 9:51 pm, Kyle R <[EMAIL PROTECTED]> wrote:
> That worked perfectly, thank you very much.
>
> On Apr 29, 9:05 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
>
>
> > Kyle R wrote:
> > > I cannot figure out how to make 4 buttons, arranged vertically in a
> > > row, centered both vertically and horizontally on the screen.  I don't
> > > get why this is so difficult.  Is there a complete list of button
> > > attributes for the xml file and what they accomplish somewhere?
>
> > > What I am trying to achieve would look like:
>
> > > <- - - - ->
>
> > >      1
> > >      2
> > >      3
> > >      4
>
> > > <- - - - ->
>
> > Try this:
>
> > 
> > http://schemas.android.com/apk/res/android";
> >         android:orientation="vertical"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent"
> >         android:gravity="center"
> >         >
> >          >                 android:orientation="vertical"
> >                 android:layout_width="fill_parent"
> >                 android:layout_height="wrap_content"
> >                 android:gravity="center"
> >                 >
> >                  >                           android:id="@+id/btn1"
> >                           android:layout_width="300px"
> >                           android:layout_height="50px"
> >                           android:textAlign="center"
> >                           android:padding="15px"
> >                           android:text="1"/>
> >                  >                           android:id="@+id/btn2"
> >                           android:layout_width="300px"
> >                           android:layout_height="50px"
> >                           android:textAlign="center"
> >                           android:padding="15px"
> >                           android:text="2"/>
> >                  >                           android:id="@+id/btn3"
> >                           android:layout_width="300px"
> >                           android:layout_height="50px"
> >                           android:textAlign="center"
> >                           android:padding="15px"
> >                           android:text="3"/>
> >                  >                           android:id="@+id/btn4"
> >                           android:layout_width="300px"
> >                           android:layout_height="50px"
> >                           android:textAlign="center"
> >                           android:padding="15px"
> >                           android:text="4"/>
> >         
> > 
>
> > I'll admit I'm not 100% certain why both gravity:"center" attributes are
> > needed -- I'd've expected the one on the outer-most LinearLayout would
> > have done the trick. But, this seems to give the visual effect you're
> > looking for, if I understood you correctly.
>
> > --
> > Mark Murphyhttp://commonsware.com
> > The Busy Coder's Guide to Android Development -- coming in June 2008!- Hide 
> > quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem Centering and Padding Buttons in Layout

2008-04-29 Thread Kyle R

That worked perfectly, thank you very much.

On Apr 29, 9:05 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Kyle R wrote:
> > I cannot figure out how to make 4 buttons, arranged vertically in a
> > row, centered both vertically and horizontally on the screen.  I don't
> > get why this is so difficult.  Is there a complete list of button
> > attributes for the xml file and what they accomplish somewhere?
>
> > What I am trying to achieve would look like:
>
> > <- - - - ->
>
> >      1
> >      2
> >      3
> >      4
>
> > <- - - - ->
>
> Try this:
>
> 
> http://schemas.android.com/apk/res/android";
>         android:orientation="vertical"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>         android:gravity="center"
>         >
>                          android:orientation="vertical"
>                 android:layout_width="fill_parent"
>                 android:layout_height="wrap_content"
>                 android:gravity="center"
>                 >
>                                            android:id="@+id/btn1"
>                           android:layout_width="300px"
>                           android:layout_height="50px"
>                           android:textAlign="center"
>                           android:padding="15px"
>                           android:text="1"/>
>                                            android:id="@+id/btn2"
>                           android:layout_width="300px"
>                           android:layout_height="50px"
>                           android:textAlign="center"
>                           android:padding="15px"
>                           android:text="2"/>
>                                            android:id="@+id/btn3"
>                           android:layout_width="300px"
>                           android:layout_height="50px"
>                           android:textAlign="center"
>                           android:padding="15px"
>                           android:text="3"/>
>                                            android:id="@+id/btn4"
>                           android:layout_width="300px"
>                           android:layout_height="50px"
>                           android:textAlign="center"
>                           android:padding="15px"
>                           android:text="4"/>
>         
> 
>
> I'll admit I'm not 100% certain why both gravity:"center" attributes are
> needed -- I'd've expected the one on the outer-most LinearLayout would
> have done the trick. But, this seems to give the visual effect you're
> looking for, if I understood you correctly.
>
> --
> Mark Murphyhttp://commonsware.com
> The Busy Coder's Guide to Android Development -- coming in June 2008!- Hide 
> quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem Centering and Padding Buttons in Layout

2008-04-29 Thread Kyle R

I cannot figure out how to make 4 buttons, arranged vertically in a
row, centered both vertically and horizontally on the screen.  I don't
get why this is so difficult.  Is there a complete list of button
attributes for the xml file and what they accomplish somewhere?

What I am trying to achieve would look like:

<- - - - ->

 1
 2
 3
 4

<- - - - ->

I would like a vertical spacing of about 15 pixels per button.  The
xml code I've got looks like the following, which doesn't work at all.

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

 

 



 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Emulator does not start with additional emulator command line arguments

2008-04-29 Thread Kyle R

It was the "program files" part.  Thanks.

On Apr 29, 5:16 pm, "John P." <[EMAIL PROTECTED]> wrote:
> I'm not sure about including quotes when specifying the argument.  I
> also think you may need to escape the space in "program files".  Try
> testing on a terminal with
>     emulator 
>
> On Apr 29, 4:07 pm, Kyle R <[EMAIL PROTECTED]> wrote:
>
>
>
> > Under Run-Dialog / Target Tab / Additional Emulator command line
> > arguments I have ""-sdcard c:\program files\eclipse\Android\tools
> > \sd.img".  The emulator won't start with this additional argument.
> > The console says it's launching the emulator, and nothing.  No error.
>
> > I have a valid 128M SD Card image I made containing 6 MP3 files.  Any
> > ideas?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Emulator does not start with additional emulator command line arguments

2008-04-29 Thread Kyle R

Under Run-Dialog / Target Tab / Additional Emulator command line
arguments I have ""-sdcard c:\program files\eclipse\Android\tools
\sd.img".  The emulator won't start with this additional argument.
The console says it's launching the emulator, and nothing.  No error.

I have a valid 128M SD Card image I made containing 6 MP3 files.  Any
ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapController.centerToMap(Point, boolean) is not applicable for the arguments (Point, boolean)

2008-04-16 Thread Kyle R

You sir are a genious.  Thanks!

On Apr 16, 4:51 pm, tanin <[EMAIL PROTECTED]> wrote:
> My guess is Point class is from the wrong package.
>
> There are two Point class in the Android Library.
>
> On Apr 16, 4:25 am, Kyle R <[EMAIL PROTECTED]> wrote:
>
>
>
> > Any idea what is causing this?  I'm trying to use the map services
> > directly from another example, and the function is not recognizing the
> > documented arguments.
>
> > Code inside the main class is ...
>
> > @Override
> >     public void onCreate(Bundle icicle)
> >     {
> >         super.onCreate(icicle);
>
> >         MapView mapView = new MapView(this);
> >         mMapController = mapView.getController();
> >         mOverlayController = mapView.createOverlayController();
>
> >         mLocationManager =
> > (LocationManager)getSystemService(Context.LOCATION_SERVICE);
>
> >         setContentView(mapView);
>
> >         mMapController.zoomTo(15);
>
> >         updateView();
>
> >     }
>
> >     public void updateView()
> >     {
> >         android.location.Location mCurrentLocation =
>
> > (android.location.Location)mLocationManager.getCurrentLocation("gps");
>
> >         Double lat = mCurrentLocation.getLatitude()*1E6;
> >         Double lng = mCurrentLocation.getLongitude()*1E6;
> >         mPoint = new Point(lat.intValue(), lng.intValue());
>
> >         // This is unrecognized
> >         mMapController.centerMapTo(mPoint, false);
>
> >         MyLocationOverlay myLocationOverlay = new MyLocationOverlay(lat,
> > lng);
> >         mOverlayController.add(myLocationOverlay, true);
> >    }- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] MapController.centerToMap(Point, boolean) is not applicable for the arguments (Point, boolean)

2008-04-15 Thread Kyle R

Any idea what is causing this?  I'm trying to use the map services
directly from another example, and the function is not recognizing the
documented arguments.

Code inside the main class is ...

@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);

MapView mapView = new MapView(this);
mMapController = mapView.getController();
mOverlayController = mapView.createOverlayController();

mLocationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);

setContentView(mapView);

mMapController.zoomTo(15);

updateView();

}

public void updateView()
{
android.location.Location mCurrentLocation =

(android.location.Location)mLocationManager.getCurrentLocation("gps");

Double lat = mCurrentLocation.getLatitude()*1E6;
Double lng = mCurrentLocation.getLongitude()*1E6;
mPoint = new Point(lat.intValue(), lng.intValue());

// This is unrecognized
mMapController.centerMapTo(mPoint, false);

MyLocationOverlay myLocationOverlay = new MyLocationOverlay(lat,
lng);
mOverlayController.add(myLocationOverlay, true);
   }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---