Android :: Attempted GCF App ?
Jun 15, 2010I am new to Android and am trying to create a very basic app that calculates and displays the GCF of two numbers entered by the user. Here is a copy of my GCF.java:
CODE:........................
I am new to Android and am trying to create a very basic app that calculates and displays the GCF of two numbers entered by the user. Here is a copy of my GCF.java:
CODE:........................
So i got to the step on XDAweb's guide to root 2.2 where: cd /data/local./flash_image misc /sdcard/mtd-eng.img then reboot the phone. it went through flawlessly and it rebooted. now, i have no video on the screen, its all black. i pulled the battery, i tried to abd to it, but it said device not found. i can hear the startup chime, feel the hauptic force feedback, so i know the phone itself is working, but for some reason the screen crapped out! I use this phone for work as an IT professional and im kinda up a creek.
View 4 Replies View RelatedI followed that Universal Root guide and have gotten stuck at the recovery console. Up + Power starts the phone's normal OS. When I try to boot from Down + Power and then push Vol + I can't get into the Amon recovery. Am I missing something here? It checks for something, then I have FASTBOOT, RECOVERY, CLEAR STORAGE, and SIMLOCK.
View 32 Replies View RelatedI have a Samsung Galaxy S2 SCH-R760.Tried to update phone from standard IceCreamSandwich to Jelly Bean via Samsung provided Simple Upgrade Tool. Very new to flashing phones, forgot to check model number, first attempt failed. Eventually got the right one (difficult to do with my model apparently), and the mobile network wouldn't work. Was told to reset APN, could not find it anywhere in the system.
Got fed up and decided to revert back to original OS, which failed. Waited overnight (it was late) with the phone off. Found the right file (just going to go back to Jelly Bean), however whenever I attempted to get into recovery mode it told me there was not enough power and to charge the phone. Phone was plugged in, this happened a couple of times. Now after the phone has been plugged in for well over 3 hours I cannot get the phone to power on or anything, it absolutely will not respond. Attempted to use Kies, will not recognize my phone model and is waiting for the phone to be connected anyway. When plugged in (trying/using various different cords) I have a little faint blue light flashing in the top left corner of the phone (not the phone screen).
The phone has been in excellent condition up until this point, and I have little reason to believe that my battery just suddenly went 100% bad after showing no signs of decay in recent weeks.
So my friend locked my phone out. I Knew the gmail account linked to the phone but i forgot the password. I resetted the password on a computer but when i enter the new password in the phone it doesn't work.
I tried all my various passwords, including the null and it didn't work.
I don't remember if my phone sends notifications for emails because i only made the gmail account when i bought the phone (therefore it isn't my primary account and no one sends emails to it).I have wifi connection and also 3g connection on the phone.
I am thinking the gmail account did not sync, therefore my new password isn't working. How can i sync the account, or do i have a workaround on getting this to work?
I just got a Galaxy (i7500) and I'm trying to connect it to the Samsung PC Studio 3, running on Asus EeePC 1000HE, Win XP Home.
1.) Model Number ? _Galaxy
2.) Firmware Version ? 1.5
3.) Baseband Version ? I7500JIIGC
4.) Kernel Version ? 2.6.27
5.) Build Number ? 76XXCSDCBALUM6375
I'm using the phone in Israel, provider is Cellcom, phone is unlocked.
Problem:
When trying to connect the phone to the netbook I attempted BT and USB - both failed.
In BT, the PC Studio finds the Galaxy and prompts to type a PIN to authenticate. I type 1234, hit 'Send'. On the handset I get a message saying another device is trying to connect, but with a random 6-digits PIN, which I cannot edit - hence pairing fails. I tried vice-versa (handset first, type the 6-digits to the PC Studio, hit 'Send') - same results.
In USB mode, PC Studio is always 'Not connected', even though the phone is connected, in Data Transfer mode. I also tried just connecting the USB without 'Data transfer' - same result. No connection.
I tried pairing Nokia E71 with the Galaxy, entered at the E71 1234 as the pin, then 1234 at the Galaxy - and it worked fine. Any idea how to fix the PC Studio problem? I want to sync my Contacts/Calendar from Outlook, and keeping them there (not importing all my data to Google..)
I was in the process of rooting.I've tried everything, looked at different threads from many different websites, turned it off, pulled battery, tried charging it via wall charger, everything. Am I totally bricked?
View 6 Replies View RelatedI connected my X10 to my computer two days ago and was prompted to perform a software update which I chose to do believing it would get rid of some ongoing issues I've been having with the phone
The computer found the phone ok, then PC companion prompted me to disconnect the phone from the USB cable, making sure the battery was at least 50% full (it was), switch off the phone and wait at least 5 seconds (waited 30), then plug it back into the USB while pressing and holding the "Back" key.
All of this I did according to instructions, and the information on the screen said it was downloading the update, but broke down and stated that an unexpected error occured during installation. I was prompted to try again, which I did, same thing happened.
At this point the phone just shut down and point blank refuses to turn back on. I tried removing the battery and putting it back in, nothing, I also tried to charge it thinking maybe it was drained during the attempted update (power surge?) and again, nothing.
When I try to switch it back on while it is not connected to a charger or the computer the light flashes red three times. When I connect it to the computer it turns green for a few seconds then goes off again. Currently it's flashing red every few seconds, but will still not switch on.
My biggest problem is - if I take it in to be serviced, will they be able to retrieve my contacts from the phone memory? A backup was done but I no longer have access to this either as I had to reinstall my computer system and this data disappeared (i have a bunch of empty SE folders on my backup disk)
I'm in Croatia and support here are very, very fond of flashing the software as the easiest way out and swearing blind there is nothing they can do to keep the data - if nothing else I'd appreciate feedback from anyone else who has experienced this problem and got their phone back with contacts intact so I can argue more coherently when I take it in to the store tomorrow
I honestly don't care about any of the other data than my contacts, the rest is replaceable, but I have no way of contacting a lot of the people to get their numbers again.
I attempted to use the new build.prop file to fix the market issue where some paid apps were not found for download.
Here is the process I used:
Download build.prop, place it on SD card. Use Root Explorer to copy build.prop into system/Deleted old build.prop file from system/ (I made a copy of the original and placed it in a folder on my SD card as a backup) Turned phone off. Turned phone back on and got to the Motorola logo, then the screen is black (backlight is still working, the screen is technically on, there just isn't anything on it).
Phone never gets to the boot animation and will not boot back up. Anyone know how I can fix this without having to flash the SBF 2.1 file again and re-root, install 2.2 update.zip, and download/setup all of my apps?
I am trying to get a friends Nexus 7 up and running. I recently rooted it and installed the custom recovery using my Mac with this guide while the tablet was on 4.3. All was well, but then my friend was given the option to install the 4.4 Kitkat update. After the update, the tablet has been unable to boot - it simply hangs at the startup animation. I am able to enter the recovery boot loader, and enter options to restore from a .zip, however I have no way of accessing the tablet's memory from my computer to put the original operating system back on it- although I think it could be done from Terminal, I am not well versed in command prompts.
View 3 Replies View Relatedtoday i meet the problem.i need technic can control the android machine from server.then i want send data from server to android with no request from android.
View 2 Replies View RelatedI'm trying to open a dialog window, but every time I try to open it it throws this exception:
CODE:.................
I'm creating it by calling showDialog with the display's id. The onCreateDialog handler logs fine and I can step through it without an issue, but I've attached it since it seems like I'm missing something:
CODE:............
Is there something missing from this? Some questions have talked about having this problem when creating a dialog from onCreate, which happen because the activity isn't created yet, but this is coming from a call from a menu object, and the appContext variable seems like it is correctly populated in the debugger.
I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not work properly. So I am running a test. I put a page out on my server which loads the FireBugLite javascript text. Its a lot of javascript and perfect to test and see if the Android WebView will load it. The WebView loads nothing, but the browser loads the Firebug Icon. What on earth would make the difference, why can it run in the browser and not in my WebView? Any suggestions.
More background information, in order to get the stinking backoffice application available on a Droid (or any other platform except windows) I needed to trick the bakcoffice application to believe what's accessing the website is Internet Explorer. I do this by modifying the WebView User Agent.Also for this application I've slimmed my landing page, so I could give you the source to offer me aid. package ksc.myKMB;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebSettings;
import android.webkit.WebViewClient;
import android.widget.Toast;
public class myKMB extends Activity {
I already have JavaScript on the web browser on, the problem is the web view is acting to different from the web browser.
I want to implement my own Tokenizer base on the file
"MultiAutoCompleteTextView.java",
but I encounter an error "com.android.internal.R cannot be resolved" when I try to
import "MultiAutoCompleteTextView.java" to my project.
code:.................
I haven't research any solutions to resolve this problem.How to correct "com.android.internal.R.attr.autoCompleteTextViewStyle" my own attr?
1- Does Android Browser (Éclair code base) support the "plug-in" or not?
2- Why "Google Gears" support is removed from the clair code base?
I searched the forum and came to know that earlier version of the Android does not support it at all? Here is the link for that, but this query asked in Dec'2008.
At first,I have a database created by using Ruby on rails.I just already implement insert function(HTTPPost) in my Android Application and it's work.But I don't know how to retrieve specific record from my databases and insert it back to specific record in Android (Like edit function in RoR)This is my insert code :
private void insertComment() {DefaultHttpClient client = new DefaultHttpClient();HttpPost post = new HttpPost("http://10.10.3.87:3000/comments");
// Configure the form parameters
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
nvps.add(new BasicNameValuePair("comment[content]", t_comment.getText().toString();
nvps.add(new BasicNameValuePair("comment[id_account]", "1"));
nvps.add(new BasicNameValuePair("comment[id_place]", Integer.toString(position)I really try many ways out but it doesn't work and it takes very long time to fight with this piece of code. Actually, I really don't know how to specify RowID to HTTPPost.
I am doing some android development, and now I need to send some android application generated data onto a remote server (a database)?How can I do that? can I use direct JDBC connection and sql?
View 1 Replies View RelatedSo i am making a android app, and i want it to be so if i call lets say 911 it sends my GPS coordinents to a certain IP, i know everything but how i make it so if i call 911 it sends the info and how i can make it send the info to the IP via 3g,
View 3 Replies View RelatedI released updates of my apps yesterday and they are being hidden from android 1.5 and 1.6 phones.
This is due to a Market bug which hides apps with bluetooth permissions from android 1.5 and 1.6.
Come on Google fix the market. We spend countless hours making are apps work on ALL android versions and now you do this...
This issue has been raised since June, but has only affected me since i made an update to the market yesterday.
What exactly are mock tests... I need to know the mock and performance tests available in android for testing android apps..what is the best tool for testing android apps and how..
View 1 Replies View RelatedI'd like to add a menu option to the Android camera app. Is this possible to do using the current SDK? I know I need to add an intent-filter tag in my activity. But I don't know what I should put in the mime type. I want to be able to process the live camera previews if the user selects the menu option. So what do I put into the type tag of the intent-filter? Also I suppose I won't be using ALTERNATIVE or SELECTED-ALTERNATIVE for the category as I want to deal with the whole intent?
View 3 Replies View RelatedI was wondering if the market checks if the application can be installed on the device. For example, if I have an Android 1.6 and if I try to install an application with :"<uses-sdk android:minSdkVersion="7" />" on its manifest. What will happend ?
View 4 Replies View RelatedI have a question about bluetooth RSSI functionality on the Android (either 2.0 or 2.1):
It's easy enough to get the RSSI value when a bluetooth connection is created, but how can you repeatedly get the RSSI value of a connection that is already active? It's really important to be able to do this, because this lets you determine if bluetooth devices are close to each other or far away, but I can't find any appropriate function calls in the Android API.
I am having a bit of a problem with my Android. So what happened was I downloaded "DroidRootPro" from the market. I rooted my phone with this, installed the 800MHZ ROM image, rebooted and the phone came up great. I was actually surprised on how fast it became. Once the phone came back up, I tried installing one of the custom themes that came with that app (I know I should have left it alone). The phone than rebooted and I was never able to bring it back up. It gets stuck in this endless loop where it tries to boot but doesn�t get past the "Droid" splash screen, it just keeps rebooting every time.
Things I have tried:
-Wipe data/factory reset (in recovery mode), no go.
-Wipe cach partition, no go
-Restore from a "nandroid" backup, no go. I tried pretty much every combination of restores and am unable to bring the phone up.
Is there anyway I can download the factory image that comes with the phone, put it on an SD card and restore to that? I have looked all over but cant find any information on this.
I am trying to develop an app to supplement the built-in music player. I've used git to download the com.android.music package and looked around at its code. I can launch the music player by copying some of its code and launching activities with intents.
Now what I need to do is get a handle to its current view. In the MusicUtils.java file, I see a line that says
View nowPlayingView = a.findViewById(R.id.nowplaying);
I'd like to do the same thing. Only I don't have access to the R.java file, so I can't write e.g. R.id.nowplaying. How do I do this? How do I reference the music players R.java? I do know the R.java stuff is declared public so that shouldn't be a problem. Right?
Is it even possible? I saw this related question and am now wondering: http://stackoverflow.com/questions/2437271/how-to-load-com-android-music-code-into-eclipse-and-compile
I'm working against the Android 2.2 SDK, but it'd be helpful to know if the answer is different for older versions such as 1.5.
I am developing an application using com.google.android.maps.jar It is OK to develop it with Eclipse SDK. but an build-error happens when building system.img with GMS licence (com.google.android.maps.jar is already installed at out/target/common/ obj/JAVA_LIBRARIES/com.google.android.maps.jar_intermediates/ com.google.android.maps.jar)
make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/ com.google.android.maps.jar_intermediates/javalib.jar', needed by `out/ target/common/obj/APPS/LifeStory_intermediates/classes-full- debug.jar'. Stop.
Here is my Android.mk
CODE:.............
I have a very simple AsyncTask implementation example and have problem to test it using Android JUnit framework. It works just fine when I instantiate and execute it in normal application. However when it's executed from any of Android Testing framework classes (i.e. AndroidTestCase, ActivityUnitTestCase, ActivityInstrumentationTestCase2 etc) it behaves sarngely:
- It executes doInBackground() method correctly
- However it doesn't invokes any of its notification methods (onPostExecute(), onProgressUpdate(), etc) --
just silently ignores them whitout showing any errors. This is very simple AsyncTask example................................
I was woundering if i bought a Cell Phone with out a Data Plan that had Android WiFi that i could still access the Android Network when I was in a WiFi area?Is Android WiFi Apps the same as Android Mobile Apps?
View 13 Replies View RelatedAndroid APK-Files are not binaries but byte-code-files. So is it possible to install the same APK-File on both - on x86-Android-Devices and ARM-Android-Devices? There are some x86-Netbooks with Android installed planned and I wonder if it is possible to run the APK-Files on both kinds of devices?
View 1 Replies View RelatedI started developing android applications. And am testing with the android emulator. Do I really need android phone before releasing it for public usage?
View 6 Replies View Related