[android-developers] Re: Add Email/Sync Account from an App

2012-07-19 Thread Matt Clark
Also, how would I request permission to use the account manager only when I click the button to add the account? On Thursday, July 19, 2012 8:35:22 PM UTC-4, Matt Clark wrote: > > I created an app that connects to my schools network and authenticates the > device when in range, using

[android-developers] Add Email/Sync Account from an App

2012-07-19 Thread Matt Clark
I created an app that connects to my schools network and authenticates the device when in range, using the users pre-configured username/password and the schools web based authentication. Several people have also approached me wondering how to configure their school email account on their device

[android-developers] Clearing a system set notification, can it be done?

2012-07-17 Thread Matt Clark
At my school we have an internet security system, that every time your network connection goes inactive, it disconnects you, and you have to use the web browser to log back into the network. I created an app for my campus that detects the disconnect, and loggs the user back in with broadcast re

[android-developers] Re: Per Google Terms of Service: Am I permitted to...?

2012-05-13 Thread Matt Clark
"The more you know" xD Well thanks anyway, I guess I will have to have an actual lawyer read over it for me. :p On Sunday, May 13, 2012 3:50:00 AM UTC-4, Matt Clark wrote: > > I am developing an android app that will utilize the Google Maps API. The > app is a Dispatc

[android-developers] Re: Android to PHP error- Unidentified Index

2012-05-13 Thread Matt Clark
e1, postData1); Code: /**/ /*** tinyClark Development 2011(Matt Clark)**/ /***ht

[android-developers] Per Google Terms of Service: Am I permitted to...?

2012-05-13 Thread Matt Clark
I am developing an android app that will utilize the Google Maps API. The app is a Dispatch Manager and Fleet Management system. It does all of the actual management system on my own server and SQL Databases using the GPS information from the phone, however, in the Google terms of service, it s

[android-developers] Distribution of App Containing Google Maps API

2012-05-13 Thread Matt Clark
Per Section 8.3, is it illegal to sell an app containing the Maps API without permission of Google? https://developers.google.com/maps/documentation/android/maps-api-signup -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: Confirmation with pressing back button

2012-05-12 Thread Matt Clark
> > Probably not the most efficient way to do things... but it works on all >> devices that I have used... Not neat.. but hey, it works. xD > > > boolean quitOnBack = false; public void onBackPressed() { if (quitOnBack) > { finish(); } else { quitOnBack = true; Toast.makeText(this, "Press {Back}

[android-developers] Re: Confirmation with pressing back button

2012-05-12 Thread Matt Clark
> > Probably not the most efficient way to do things... but it works on all > devices that I have used... Not neat.. but hey, it works. xD boolean quitOnBack = false; public void onBackPressed() { if (menuLayout.getVisibility() == View.VISIBLE) { menuLayout.startAnimation(Anim_SlideOut_Bottom)

[android-developers] Get SubView Location in MapView

2012-05-12 Thread Matt Clark
In my app I am using a mapView with ImageViews within. When I click on one of the contained imageviews, how would I get its location withing the mapView so that I can center the mapview on the clicked ImageView. -- You received this message because you are subscribed to the Google Groups "Andro

[android-developers] In App Navigation

2012-05-09 Thread Matt Clark
I am working on an app that will utilize navigation, but I have no idea where to start when it comes to this. Does anyone have ans suggestions on something to read on learning navigation on android? Or would it just be better to bring the user just into the native Android Navigation app? ~Matt

Re: [android-developers] How to force quit a Thread

2012-04-29 Thread Matt Clark
, Ankita wrote: > > stop(),destroy() etc. methods were deprecated by JDK versions, so must > have not got support now. To stop thread, you should try to use flags, > AFAIK. > > On Mon, Apr 30, 2012 at 9:34 AM, Matt Clark wrote: > >> I am creating an app that sends variou

[android-developers] How to force quit a Thread

2012-04-29 Thread Matt Clark
I am creating an app that sends various HTTP requests in seperate threads, while doing so brings up a loading screen. If the network request is taking longer then the user expects, I want them to be able to press the back button to force quit the thread, and dismiss the loading screen. I have my

[android-developers] Find Image Resource Id From Image View

2012-04-05 Thread Matt Clark
I have a screen full of image views, and depending on which one is clicked, it opens a second activity passing the values. I.E.: Java Code: public void gridClick(View v) { Intent gridInfo = new Intent(Master.this, GridInfo.class); ImageView img = (ImageView)findViewById(v.ge

Re: [android-developers] New Windows Install <- AdMob Errors

2012-03-23 Thread Matt Clark
.google.com/u/0/109385828142935151413/posts/RL91VJd1yti> > > On Fri, Mar 23, 2012 at 12:35 PM, Matt Clark > wrote: > > I just had to reformat my install of windows, but was lucky enough to be > > able to save all of my apps, however, whenever i try and build them now, > i > &

[android-developers] New Windows Install <- AdMob Errors

2012-03-23 Thread Matt Clark
paths, the AdMob SDK is included in the projects, but every one of my apps that utilizes AdMob now error, and I have no idea how to fit it... Any and all suggestions would be greatly appreciated as I am completely stuck... ~Matt Clark -- You received this message because you are subscribed to

Re: [android-developers] Adjust Screen Size When Soft Keyboard Shown

2012-03-05 Thread Matt Clark
Ahhh, i always wrap everything in scroll view, but did not know to set this property. 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

[android-developers] Adjust Screen Size When Soft Keyboard Shown

2012-03-04 Thread Matt Clark
Right now in my app, when the soft keyboard is shown, it does not resize my activity to the upper half of the screen that is not being covered by the keyboard, higing some important elements. How would I detect that the soft keyboard has been shown, and then change my layout to fit? ~tinyClark

[android-developers] Re: Manifest Not Building : android:configChanges="screenOrientation"

2012-02-20 Thread Matt Clark
Thanks for that. Now i am feeling pretty stupid. xD On Feb 20, 3:50 pm, Kostya Vasilyev wrote: > It's > >   "orientation" > > not "screenOrientation" > > http://developer.android.com/guide/topics/manifest/activity-element.h... > > -- K >

[android-developers] Manifest Not Building : android:configChanges="screenOrientation"

2012-02-20 Thread Matt Clark
I am trying to get my app to handle its own Screen Orientation changing as opposed to the app reloading the activity every time. I found that to get the app to do this I need to add android:configChanges="screenOrientation" however the Manifest will no longer build giving me this error: error: Erro

[android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-11 Thread Matt Clark
rameters.FLASH_MODE_OFF.equals(flashMode)) { >                             // Turn off the flash >                             if > (flashModes.contains(Parameters.FLASH_MODE_OFF)) { > > parameters.setFlashMode(Parameters.FLASH_MODE_OFF); >                                  

[android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread Matt Clark
ses, which frees > up the camera. > > Thanks > > 2012/2/8 v bobbywink > > > > > > > > > > > So strange, can u post all code in this activity? > > > 2012/2/8 Matt Clark > > >> Even using your code, in LogCat i get: > >>

[android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread Matt Clark
ters.FLASH_MODE_OFF.equals(flashMode)) { > // Turn off the flash > if (flashModes.contains(Parameters.FLASH_MODE_OFF)) { > > parameters.setFlashMode(Parameters.FLASH_MODE_OFF); > mCamera.setParameters(parameters); > mCamera.stopPreview(); >

[android-developers] Re: voice input for people with tremors (or large fingers)

2012-02-07 Thread Matt Clark
https://market.android.com/details?id=com.jb.gokeyboard ^ My favorite keyboard. There are hundreds, but this is one of the largest that i have seen, and they offer a lot of different themes, so it may be just as easy as to have the develop a new theme for it. On Feb 7, 1:24 pm, James Hadley wr

[android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread Matt Clark
Anything? On Feb 7, 12:14 am, Matt Clark wrote: > Even as hundreds of other have made them, i am trying my hand at a > flashlight app. I have the basic GUI and widget working and toggling, > and i just attempted to implement the actual flash from the phone. > I have found many plac

[android-developers] Re: Developing Android App For A Forum

2012-02-06 Thread Matt Clark
What I would do personally is, if you have access to the source of the forum, create small web scripts that will be called by the app. On the sever have a .php file that takes POST data and process it and returns a result to be processed by the app. I do however believe that vBulletin has an app of

[android-developers] Fail to connect to camera service <- Camera.open();

2012-02-06 Thread Matt Clark
Even as hundreds of other have made them, i am trying my hand at a flashlight app. I have the basic GUI and widget working and toggling, and i just attempted to implement the actual flash from the phone. I have found many places that this is most easily done with this snippet of code: Camera mCame

[android-developers] Re: Debugging native code using eclipse apart from Sequoyah/ndk guide

2012-01-22 Thread Matt Clark
What do you mean by 'native code' as in the OS itself? Or your application? If for your application code, on the left of the code. right click and click add breakpoint where you wish to start the debugging. When you deploy your code to your device, click the button to the left of the RUN button, wh

[android-developers] Dynamic Layout In Array

2012-01-22 Thread Matt Clark
I am making an application that takes data from a database and outputs it on the screen in various ways, one of the ways is that i need to take from a long list of strings, and put them into a homemade list, ie: TextView[] teamNumbers; TextView[] teamNames; TextView[] teamFavorites; RelativeLayout

[android-developers] Re: Dynamic ImageButtons

2012-01-22 Thread Matt Clark
What i am currently doing with my app, is using a PHP script on my server, that access an SQL Server to retrieve spectific information ,ad nthe it is returned to the device, allowing me to change global setting, such as allowing the app to run without a valid license, etc. You could do something li

[android-developers] Re: Database Access from Android Application

2012-01-22 Thread Matt Clark
AM, Matt Clark wrote: > > Is there some kind of SQL library that i could > > just use insted of sending HTTP requests parsed by PHP files? > > That is not a good idea, for security reasons. That would mean that > your database is open for the script kiddies of the world to

[android-developers] Re: ScrollView (fill_parent)

2012-01-22 Thread Matt Clark
As in my method worked? Or you are still experiencing a problem? On Jan 22, 4:08 am, "John" wrote: > This does appear to be the behavior. > > From: android-developers@googlegroups.com > [mailto:android-developers@googlegroups.com] On Behalf Of TreKing > Sent: Sunday, January 22, 2012 2:41 AM > To

[android-developers] Re: Dynamic ImageButtons

2012-01-22 Thread Matt Clark
So in short you need just 6 buttons (with images) that you can dynamically change their action? ImageView img_01 = (ImageView)findViewById(R.id.img_01); img_01.setClickable(true); img_01.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { switch(action){ ca

[android-developers] Re: ScrollView (fill_parent)

2012-01-22 Thread Matt Clark
I use RelativeLayout for everything, so i do not know if it works for LinearLayout, but you could try android:layout_alignParentBottom="true" On Jan 22, 1:55 am, "John" wrote: > Hi, > > I have a scroll view with height="fill_parent".  The child is a LinearLayout > with height="fill_parent".  I th

[android-developers] Database Access from Android Application

2012-01-22 Thread Matt Clark
I am making an application for users to take notes about other teams they are competing against at robotics competitions, which will be collaborative will all member of the same team across devices, so all information will be stored in an SQL database on my webhost. My first question is what would

[android-developers] Re: if() Statement Not Working Correctly...

2011-12-15 Thread Matt Clark
Wow... I feel pretty stupid right now... Thanks haha... Long Night xD On Dec 15, 11:20 pm, Kristopher Micinski wrote: > Pick up a Java book... :-)... > > you can't compare strings with == in java...  use .equals()... > > kris > > > > > > > > On Thu,

[android-developers] if() Statement Not Working Correctly...

2011-12-15 Thread Matt Clark
I am currently writing an application to easily retrieve the bus schedule for my school. I have a series of intents and content views that get information from the user such as Bus From Bus To Day The variables are passed to a final intent, where depending on what the user has selected it will cho

[android-developers] Re: getString in a class with no context <- Runtime Error Resource Not Found

2011-12-03 Thread Matt Clark
public String getString(int Rid, Context passedContext){ Context masterContext = passedContext; return (String)masterContext.getResources().getText(Rid); } Woo, finally got it! Thanks for all the help! -- You received this message because you are subscribed to the Google Groups "Android Develope

[android-developers] Re: getString in a class with no context <- Runtime Error Resource Not Found

2011-12-03 Thread Matt Clark
ontext("your.package.name.here"...). Note the double quotes. > > Don't think you need the "ignore security" flag in this case, just to load > the resources. > > -- Kostya > > 3 декабря 2011 г. 22:45 пользователь Matt Clark > написал: > > > > > > &

[android-developers] Re: getString in a class with no context <- Runtime Error Resource Not Found

2011-12-03 Thread Matt Clark
I have no idea how to set that up, I found an example that would use: Context r = Context.createPackageContext(tinyClark.android.libraries.LanguagePack,Context.CONTEXT_IGNORE_SECURITY); But i get an error that tinyClark.android.libraries.LanguagePack cannot be resolved to a variable, and when i t

[android-developers] Re: getString in a class with no context <- Runtime Error Resource Not Found

2011-12-03 Thread Matt Clark
So what else do i need to use? That was just an example i found on referencing strings outside the main class. On Dec 3, 1:17 pm, Kostya Vasilyev wrote: > Why getSystem? > > You strings are in the language pack, not in the Andorid framework. > > 3 декабря 2011 г. 22:13 пользова

[android-developers] getString in a class with no context <- Runtime Error Resource Not Found

2011-12-03 Thread Matt Clark
I am making a multi-langual app that calls on a LanguagePack class to get all of the strings from the resources, which picks what it needs depending on the selected language, i have the LanguagePack class in a seperate librarise folder, and the problem that i am having is that i can not use this.ge

[android-developers] Re: setOnClickListener Problems Crashing Application

2011-10-22 Thread Matt Clark
Ahhh Clean worked wonderfully. Thanks so much! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+uns

[android-developers] Re: setOnClickListener Problems Crashing Application

2011-10-21 Thread Matt Clark
http://tinyclark.com/master.java.txt Full Source ^ On Oct 21, 10:07 pm, Matt Clark wrote: > 103: login_btn_submit.setOnClickListener(new View.OnClickListener() { -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] Re: setOnClickListener Problems Crashing Application

2011-10-21 Thread Matt Clark
103: login_btn_submit.setOnClickListener(new View.OnClickListener() { -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to and

[android-developers] Re: setOnClickListener Problems Crashing Application

2011-10-21 Thread Matt Clark
10-21 20:52:07.157: ERROR/AndroidRuntime(11123): FATAL EXCEPTION: main 10-21 20:52:07.157: ERROR/AndroidRuntime(11123): java.lang.RuntimeException: Unable to start activity ComponentInfo{tinyclark.robotics/tinyclark.robotics.Master}: java.lang.NullPointerException 10-21 20:52:07.157: ERROR/AndroidR

[android-developers] Re: setOnClickListener Problems Crashing Application

2011-10-21 Thread Matt Clark
10-21 20:48:34.710: DEBUG/AndroidRuntime(11060): >> AndroidRuntime START com.android.internal.os.RuntimeInit << 10-21 20:48:34.710: DEBUG/AndroidRuntime(11060): CheckJNI is OFF 10-21 20:48:34.720: DEBUG/dalvikvm(11060): creating instr width table 10-21 20:48:34.910: DEBUG/AndroidRuntime(110

[android-developers] setOnClickListener Problems Crashing Application

2011-10-21 Thread Matt Clark
I have an application that once a user enters a username and password, they press a button which authenticates them with the system. I have used buttons before without problem... But for some reason i am now getting problems... I have this code in for a while and it has been working no problem.. bu

[android-developers] Re: Google Development phones

2011-08-15 Thread Matt Clark
If you will just be developing on them market apps, i would recommend buying one off of ebay with a bad esn, or if you want it for a phone as well go from your carrier, you will spend less. The only difference in these phones is that they are not assigned to any specific carrier. -- You receiv

[android-developers] Re: recommended icon size.

2011-08-15 Thread Matt Clark
The phone will only load that icon on an HDPI device. In your Res: folder there are 3 folders. drawable-ldpi drawable-mdpi drawable-hdpi, each with their own icon.png file. This is where the icons will be taken from depending on the screen resolution. -- You received this message because you a

[android-developers] Clickable ImageView

2011-08-15 Thread Matt Clark
I have an application which implements a clickable image view, however, when i add the following code: team_background = (ImageView) findViewById(R.id.home_background); team_background.setClickable(true); team_background.setOnClickListener(new View.OnClickListener() { @Override public vo

[android-developers] VideoView only works on some devices

2011-08-14 Thread Matt Clark
I am developing an application which implements a videoview on one of the pages. I have the video load automatically onCreate, and it imediatly begins to play. On my HTC Evo Shift, and Archos 101 Tablet the video loads with no problems, but after sending the app to others for beta testing, Some

[android-developers] Re: Tricky layout

2011-08-13 Thread Matt Clark
If you use instead of or you can use [android:layout_x="xx:px"][android:layout_y="xx:px"] to move your stuff around, you will also be able to layer things based on the order in the XML. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Re: Home screen's Icon

2011-08-13 Thread Matt Clark
Your post is not very clear, what would you like to do? Change the programs icon? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Call Function When Intent Closed

2011-08-13 Thread Matt Clark
I have a program where the background has a video in it, when i click on an icon it open a new intent, but when i hit the back button to close the intent the video does not resume playing. Is there a listener to set up to see when the intent closes, where it can then restart the videoview? Thanks M

[android-developers] Re: Test Project Question

2011-08-11 Thread Matt Clark
Try this and let me know how it works. This is the method that i use: final Button button = (Button) findViewById(R.id.textbutton); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //Put your button press code here. }

[android-developers] Re: Cheap Bluetooth devices sought

2011-08-11 Thread Matt Clark
wow... i may have to pick myself up a few of those xD if you are doing high density data transfer may i also suggest WiFi? http://www.sparkfun.com/products/10004 I have this and it works great. It is a bit more, but it works great, and i am sure that you can get other similar devices for less.

Re: [android-developers] Multiple Activity Problems

2011-08-10 Thread Matt Clark
lbl_team228.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Master.this.startActivity(new Intent(Master.this, Team228.class)); } }); lbl_about.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Mas

Re: [android-developers] Multiple Activity Problems

2011-08-10 Thread Matt Clark
what do you mean missing break in switch? I launch one, press back, and then go into the next. I also tred using: final TextView lbl_teamhometext = (TextView) findViewById(R.id.lbl_teamhometext); lbl_teamhometext.setText(R.string.info_firsthome); and: final TextView lbl_infoabout = (Tex

[android-developers] Re: Android Beginner Having Problems

2011-03-23 Thread Matt Clark
wow.. thanks. dont know what i was missing but it works now. I just used: import android.view.*; ~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

[android-developers] Android Beginner Having Problems

2011-03-21 Thread Matt Clark
I tried using the MenuInflation off of the android developers site: @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu); return true; } with an xml in the res/meno directory by the name of game_m