Android :: Loading APK File On Device For QA / Testing

Sep 7, 2010

I'd love to get some ideas on best practices for testing our Android software, especially for AT&T devices. We're using a Samsung Captivate, on AT&T. As you know, AT&T disables sideloading (no Unknowns Sources option in Settings->Applications). We need to have our QA team load our apk file onto these devices as part of our testing and validation process. We're willing to install the SDK if needed, and upload the apk file via USB. We are not willing to root the phone.

Android :: Loading APK File on Device for QA / Testing


Android :: Testing On Every Possible Device?

Nov 13, 2009

We have many phones, but we don't--and probably never will--have all of them.

It's frustrating that some phones cannot see our apps in the market, and we'd like to know which phones those are.

We'd like to have a simple way to have our app tested on each phone, but at this point there's no easy way to do that.

My question is: what would we as developers be willing to do to get these needs met? Is there enough demand for someone to buy all possible Android devices and charge a nominal fee for these services?

We would pay a small fee to have out app accessed and downloaded on all phones--this would give us a report of which phones could access our app. We would pay a fee to have a step-by-step test ran on each possible device so we could know it worked on that device, at least minimally.

View 3 Replies View Related

Android :: Testing Applications On Device

Feb 11, 2010

I'm trying to make my application (compiled against 2.1) compatible with the 1.5 platform. I've handled all of the res/ folder issues, and have been able to run the app on all platforms without problems. I can run it fine on all emulators, and all devices/OS systems running 1.6 or higher. But on the only 1.5 device I have (HTC Hero), I get intermittent problems.

The only 1.5 device I have is an HTC Hero phone I got free at the Sprint developer conference a few months ago. When I test the app on that device, I have occasionally encountered a bug I've not seen anywhere, and can't find any information about.

I can install the application via the adb install command (although I get two messages about unknown commands), but after installing the app, the icon can disappear from the home screen, replaced either with a different icon or no icon.

When the app is launched in this state, rather than seeing my application name in the title bar, it reads "60.0dip". I don't use this value anywhere in my application.

I have never observed this problem on any other phone I've tested on (G1, myTouch, two Motorola Droids, Nexus One), but as I said I've only got one device running 1.5.

View 9 Replies View Related

Android :: Best Device For Testing Development?

May 7, 2010

I am starting android development which phone is good for testing? or is emulator good enough? I am doing game development.

View 6 Replies View Related

Android :: Testing Game On Real Device

Mar 13, 2009

I am making an android game, but i do not have the money to buy a developer phone. The game is not finished but i should it is testable.. and if i dont test it know i may have a big problem later... it is playable though. Is there somebody who has a real device and wants to test the game for me, just starting it up and playing it a little bit is good enough. It's a 2d airplane shoot gane, much like the old raptor game. If someone is interested please reply, i will sent you the (singed) APK and with some things i want to test (using both the buttons as well as touch screen for gameplay).

View 7 Replies View Related

General :: How To Emulate Android Device On SDK For Rom Testing

Feb 9, 2014

I want to decrypt this xml file:

23.239.111.10 / videoChannel.xml

i don't know if it is encrypted or compressed. i know that i have an apk that does the decryption of the file.

View 1 Replies View Related

Android :: Need Testing Service To Use Real Debug Information From A Device?

Dec 5, 2009

I need test my Android app on a Motorola Cliq but don't have one. Is there a testing service that will let me make a debug connection to that device so I can run some tests and find out where the code is failing. Video connections won't tell me that.

View 2 Replies View Related

Android :: Unit Testing & Using A Different Database File

Mar 30, 2010

I'm trying to start unit testing on my application (should have done so from the beginning). I've got an Eclipse project structure set up and everything seems to work well, but...

I'm subclassing SQLiteOpenHelper to access the application database. This works well for the application, but when using the same class in the unit tests, it writes to the same database as the actual application. This is obviously rather irritating, since unit test data shows up when developing and testing the actual application.

What's the best way to make the SQLiteOpenHelper class write to a different database file when being called from the unit tests?

View 2 Replies View Related

Android :: Testing Problem With ActivityInstrumentationTestCase2 - T - Error When Trying To Access Activity Under Testing

Feb 24, 2010

I wrote a simplest test based on android.test.ActivityInstrumentationTestCase2.

CODE:..............

View 2 Replies View Related

Android :: Loading From Compiled XML File

Jun 30, 2010

I have some xml files with a custom format (based on the scxml specifications) that I want my program to read. I've already written the code to read it, but I'm running into problems actually reading the file itself. I want the file to be compiled with the apk, as it will not be changed at all during run time. So I put the file (test.xml) in the res/xml/ folder, and got the inputstream by using:

getResources().openRawResource(R.xml.test);
But when I read in this inputstream it is complete jibberish, which makes me suspect it is being read in binary, as openRawResource() is often used for binary files like images, if I am correct. What is the correct way to do this?

View 11 Replies View Related

Android :: Root Permission - Loading Data On Real Device

Jun 12, 2010

I have got an htc hero device and would like to install my apk on it. It successfully installs my apk but without the database it is using. My database is populated prior to running the application, so it runs ok on the emulator. But I couldn't load my data on the real device and the apk is displaying forse close error. How to load my data on the data folder of the device including every detailed steps?

View 2 Replies View Related

Android :: Monkey Testing On Android Device

Jan 6, 2010

I am executing Monkey testing on a Android device. The command i am using is "adb shell monkey -p com.android.calculator2 -v 50000000 > monkey-calculator.txt" When we execute this command i suppose it should send 50000000 events to the device. In my case after sending event #150900 it stopped and i see a message: ":Dropped: keys=0 pointers=0 trackballs=0 flips=0" What does this message tell me?

View 2 Replies View Related

Android :: Dynamically Loading JAR File At Runtime

Mar 18, 2009

I am storing the required test.jar file in the /sdcard. I want to load it dynamically at runtime and want to execute a function xyz() resides in that. For this purpose I had written following code:
But got ClassCastException : dalvik.system.PathClassLoader

Following is my code ,
import java.io.File; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.URL; import java.net.URLClassLoader;

import android.app.Activity; import android.os.Bundle; import android.util.Log;
public class Collabera extends Activity {
/** Called when the activity is first created. */
private static final Class[] parameters = new Class[] { URL.class };
public static void loadURLClass(String classPathURL) throws IOException {
File f = new File(classPathURL);
URL url = f.toURL();
URLClassLoader systemLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();
Class systemLoaderClass = URLClassLoader.class;
try { Method method = systemLoaderClass.getDeclaredMethod("addURL", parameters);
method.setAccessible(true);
method.invoke(systemLoader, new Object[] { url });
} catch (Throwable t) { t.printStackTrace();
throw new IOException( "Error, could not add URL to system classloader");
} }
@Override
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.i("See","**************Before Loading Class Path**************");
try { Class.forName("test.Test1");
} catch (ClassNotFoundException e) { System.out.println(" Test Class Not Found ....");
} Log.i("See","**************After Loading Class Path**************");
try { loadURLClass("//sdcard//test.jar");
Class c = Class.forName("test.Test1");
Log.i("See"," Test Class Found ....");
Method method = c.getMethod("xyz", null);
Object o = c.newInstance();
String s = (String) method.invoke(o);
Log.i("See","Got method: " + s);
} catch (ClassNotFoundException e) { System.out.println(" Test Class Not Found ....");
} catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace();
} } }

View 9 Replies View Related

Android :: Loading HTML File On View

Nov 2, 2010

I have one html file and I want to load that html file in view for loading ping images. I was doing:
android:background="@drawable/tips"
This in xml file but how to load html file in view?

View 8 Replies View Related

Android :: Loading More Than One Layout File For An Activity

Apr 29, 2010

How can we use more than one layout file. I have implemented a cutom dialog.That means i have created an layout file for dialog. And one layout file for my activity. But whatever the UI items in dialog layout ile if iam using them by findViewById it is giving me null

I will explain in details here @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); applicationContext=getApplicationContext();

Dialog folder=new Dialog(this); folder.setTitle("Creating folder"); folder.setContentView(R.layout.create_folder); TextView tv=findViewById(R.id.folder_text); //Here folder_text is in my second layoutfile ie in create_folder.xml //In the above statemet i got the null to tv variable. folder.show();

View 5 Replies View Related

Android :: Loading HTML File From SD Card In Web Browser

Jan 19, 2009

How to load simple html file present in sd mmc card from web browser. It is mentioned in the net that due to security reasons this is not allowed. Is there any way to access the file from sdcard? Tried modifying private String homeUrl =
"file:///sdcard/index.html";
in BrowserSettings.java file but browser throws an error "could not be loaded".

View 4 Replies View Related

Android :: Loading HTML File From Local RES Directory

Sep 29, 2010

This should be very simple, but I can't find the answer anywhere. How do I load an html file (which I assume I keep in res/raw folder) into a webview?
neither mWebView.loadUrl("file:///raw/about");
or
mWebView.loadUrl("file:///raw/about.htmal");
works.
What's the correct syntax or arrangement.

View 3 Replies View Related

Android :: Dynamic Loading Of Complete Layout File

Jul 1, 2010

I'm dealing with a problem you guys might not have faced earlier. I'm having a use-case in my Android application where the actual screen that I want to show to user is not stored in any layout file of my application. The layout of the of the screen is designed by server in this case, based on selection made by user on first screen.

Let me elaborate here,
1st Screen : List of check box with different biller names. (Imagine I've selected 2 billers from this screen)
2nd Screen : (The screen that server has decided how it should look like)
* Header,
* 1st Biller name (Label)
* Amount for 1st Biller TextBox
* Image (a Separator image)
* 2st Biller name (Label)
* Amount for 2st Biller TextBox.
* Here there can be a checbox/radio/another TextBox anything.
* Image (a Separator image)
* Button (to submit above form back to server)

I hope makes some sense in what I'm planning to design. The current issues I'm dealing with are as below.
1). How to draw this dynamic widgets?
2). How to fetch user Inputs from this dynamically created widgets?

View 3 Replies View Related

Android :: Loading 3D Models - OBJ File Into My Own Model Class

Mar 11, 2009

How are people here loading in their models? I'm just manually parsing a OBJ file into my own model class and drawing that.

View 4 Replies View Related

General :: Facebook - No Pictures Loading On Device

Dec 22, 2012

Is there a fix for Facebook that allows you to view all pictures. Almost no pictures load on my device, even when I have the Brest connection I could possibly get.

~~~~~~~~~~~~~~~~~~~~~
Samsung galaxy s2
Rom: Jedi knight 6
kernel: Jedi kernel 2
~~~~~~~~~~~~~~~~~~~~~

View 2 Replies View Related

Android :: Loading Raw Resource Text File / Out Of Memory Error

Sep 15, 2010

I use this method couples of occasion to load text file to display as help file. But I don't know why the following code didn't work. It seems to hang and logcat says "OutOfMemoryError"? All I did was break this out as an separate activity.

---xml---
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/helptab"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/helptext"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</ScrollView>

---code---
import java.io.DataInputStream;
import java.io.IOException; import java.io.InputStream;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Help extends Activity {
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.help);
InputStream iFile = getResources().openRawResource(R.raw.help);
try { TextView helpText = (TextView) findViewById(R.id.helptext);
String strFile = inputStreamToString(iFile);
helpText.setText(strFile);
} catch (Exception e) {
} }
public String inputStreamToString(InputStream is) throws IOException {
StringBuffer sBuffer = new StringBuffer();
DataInputStream dataIO = new DataInputStream(is);
String strLine = "";
while ((strLine = dataIO.readLine()) != "") {
sBuffer.append(strLine + " ");
} dataIO.close();
is.close();
return sBuffer.toString();
}

View 6 Replies View Related

Android :: Loading External Data On Local File In WebView

May 27, 2009

when I load external web page, image or javascript file from local webpage. I can't see external image and can't load javascript or webpage. But I can only see local image. Why I can't load external javascript, webpage or image? Here is the HTML source. (of course, I filled right [daum open API key])

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta
http-equiv ="Content-Type" content="text/html;
charset=UTF-8"> <title>Daum 지도 API</title>
<script type="text/javascript"
src="http://apis.daum.net/maps/maps.js?
apikey=[daum open API key]" charset="utf-8"></script> </head> <body>
<div id="map" style="width:600px;
height:400px;
" style="border:1px solid #000">
</div> <img src="http://4.bp.blogspot.com/_2-7AdSkZA7I/RlCnDhD3ZfI/ AAAAAAAAE9U/LEHMtyVLdY8/s400/CutyTale10.jpg">
<img src="file:///android_asset/coffeebean.jpg">
<script type="text/javascript">
var map = new DMap("map", {point:new DLatLng(37.48879895934866, 127.03130020103005), level:2} );
</script> <iframe src="http://www.daum.com" width="300" height="150"></iframe> </body> </html>

and I use this Activity source
package bo.my.android.test;
import android.app.Activity;
import android.os.Bundle; import android.webkit.WebView;
public class OpenAPITest extends Activity {
WebView webView;
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.main);
webView = (WebView) findViewById(R.id.webView1);
webView.setWebViewClient(new DaumMapClient());
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("file:///android_asset/daummap.html");
//webView.loadUrl("http://www.daum.net");
} }

View 3 Replies View Related

Android :: Loading String Values From File Instead Of List In Class

Nov 1, 2010

I think I have a pretty easy problem to solve, but I have been beating my head against the wall for hours trying to get past it! I have an adapter that loads a list of URLS:
adapter=new MyAdapter(this, lStrings);
list.setAdapter(adapter);

The list of URLS looks like this:
private String[] lStrings={
"http://www.domain.com/file1.jpg",
"http://www.domain.com/file2.jpg",
"http://www.domain.com/file3.jpg",
};

What I want instead is to load these values from a text file that lies on the SD card. For that matter, I would be okay with loading the values from a text file into a String, and then load the String into the list as I imagine that would be the "cleaner approach". However, all attempts to do this have failed. For instance, I replaced the above snippet with this:

private String[] lStrings=
{ MainActivity.this.getString(R.string.myurllist) };
but then I get a Forced Close on loading.

I'm a bit new to Java, Android, and development in general.

View 1 Replies View Related

How To Program / Write Code On Webview In Android For Loading HTML File

May 8, 2012

how to program/write code on a "webview" in Android for loading a html file?

View 2 Replies View Related

Android :: Android Functional Testing - Testing Multiple Activities

Apr 16, 2009

I've been exploring the Android test package and I'm very confused on how to implement functional testing for endpoint-to-endpoint.

Consider the example below, I have 4 activities: 1. A Contact List Activity 2. A View Contact Activity 3. An Add/Edit Contact Activity 4. A Sync Contact List activity

I want to automate a few tests that will go through multiple test cases simulating a user experience: From launching the application, to selecting 'Add contact;' opening the add contact activity, entering data, saving it, going back to the list activity, and verifying the new contact was saved properly.

As I understand it, ActivityInstrumentationTestCase<T extends Activity> and ActivityUnitTestCase<T extends Activity>, are only useful for testing single activity functionality.

But what if I need to switch between 2 or more activities inside a single functional test case?

View 5 Replies View Related

Samsung Galaxy S :: Loading Link - Animated GIF File

Sep 19, 2010

I want to be able to play this animated gif file on my captivate.
http://belo.bimedia.net/KMOV/weather/animated-loops/radar-adi.gif

I can load the file but it only shows the first image and will not show all the views, and most importantly not the last image. This the site it is from -
St. Louis News, Weather, Sports | KMOV.com | St. Louis Weather, News and More | St. Louis Radars

I have flash 10.1 installed and of the few site I have visited, like this one - 2Advanced v5 - Attractor - Flash content seems to work fine on Dolphin hd browser and the standard browser.

View 6 Replies View Related

Android :: Android - Loading External JS File Into Webview And Functions Access

Oct 19, 2010

I have a JS file that has functions to search a document for substrings. I want to access functions inside this file by passing parameters to it (the search keyword). I know we can use .loadUrl("javascript:~~~~~) but I'm not clear on how to do it using multiple functions.

View 1 Replies View Related

Android :: Android Out Of Memory Error - Loading JSON File

May 22, 2010

The app I am working on needs to read a JSON file that may be anywhere from 1.5 to 3 MB in size. It seems to have no problem opening the file and converting the data to a string, but when it attempts to convert the string to a JSONArray, OutOfMemoryErrors are thrown. The exceptions look something like this:

E/dalvikvm-heap( 5307): Out of memory on a 280-byte allocation.
W/dalvikvm( 5307): Exception thrown (Ljava/lang/OutOfMemoryError;
) while throwing internal exception (Ljava/lang/OutOfMemoryError;)

One strange thing about this is that the crash only occurs every 2nd or 3rd time the app is run, leaving me to believe that the memory consumed by the app is not being garbage collected each time the app closes. I'm not quite sure what the best approach is for such a task.

View 2 Replies View Related

HTC Droid Eris :: Recovery Mode / Loading Pkopaleks Cricket File Ruin?

Jul 17, 2010

I have a droid eris that's flashed to cricket & everything works except my apps. I searched around the forum & found Pkopaleks thread on how to finish the full flash to get working apps. The store I got my phone flashed at said it was impossible to get working apps because the apps are verizons (lies) & now I'm disappointed their not working. My question is that do all stores that flash phones root phones before the flash? If so will going to recovery mode and loading pkopaleks cricket file ruin what has already been done? Lastly if the store didn't have to root to flash how will I fix this problem?

View 3 Replies View Related

Android :: Loading Only Part Of Bitmap File In Android

Mar 30, 2010

I would like to load a cropped version of a bitmap image into a Bitmap object, without loading the original bitmap as well. Is this at all possible without writing custom loading routines to handle the raw data?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved