[Q] noob with some *simple?* questions - RAZR HD Q&A, Help & Troubleshooting

Hi all, I'm new to android app development and I'm really not looking to make anything for anyone other than myself. I am basically trying to do a couple of easy apps to help me see if the power is on at my house so I know my fish tank has power and to be able to remotely monitor the conditions of the tank from my phone. Nothing amazing or difficult but just for my own peace of mind. What seems that it should be simple has been very frustrating over the last few days. I do have a background which includes some programming, nothing extensive, but I really didn't bat an eye at the proposition of doing what I'm looking to do. I really thought I could bang something crude but usable out in a few hours with what experience I do have.
I found a how-to that shows a foundation for an app I'd like to be able to modify for my own use. It can be viewed at http (colon) (slash) (slash) media (dot) pragprog (dot) com (slash) titles (slash) mrhome (slash) light.pdf (skip to page 10) for anyone interested. I have installed eclipse and have become quite familiar with the interface. I can run the app exactly as the how-to instructs you to create it and it works flawlessly. Http requests can be seen at the server for whatever I tell it to send. However, when I export the app and install it on my phone the app loads and appears to be working fine but when I tail the web server logs to view them no incoming requests are coming from my phone. I can see the incoming http requests from the emulator but not from the phone. There are also no errors during compiling nor during running it in debug mode on the phone in eclipse via a usb cable. The common answer to similar questions to mine seems to be if the permissions are set up correctly in the Manifest file which they are AFAIK.
My suspicion is that there is something in the phone blocking outgoing http requests but there are no errors whatsoever to indicate this. I'm wondering if it is because it is an unsigned app regardless of whether or not I have the phone in debug more and regardless of the user-permissions in the Manifest file. Is there anyone who can give me a hand to understand what I might be doing wrong or differently than the author of the aforementioned pdf file? The most confusing thing is how it works flawlessly on the emulator and seems to work flawlessly on the phone until you look at the web server logs and see no incoming requests from the phone but from the emulator you see the incoming requests to the remote web server. The phone has internet access and I can even ssh to the web server or access it through a browser on the phone. It is only my app that I made that cannot access the web server. Any ideas?
Thanks.

Related

Photo Swap?

Description- Looking at something worth taking a picture of? Use PhotoSwap and send your picture immediately to another randomly selected PhotoSwap user. In exchange, you'll get a picture from him. You can reply to each picture you receive with another picture. PhotoSwap lets you engage in a real photo-based conversation.
Each picture taken has one and only one recipient. Be surprised by a unique glimpse into someone elses life.
Any thing like this for Windows Mobile??
Could something like this be made?
I like this but dont want to get an iphone to use this app,
i'd put money on it that people would start sending 18+ images. Problem with that is that kids will start to use the service so they can get dirty images.
Haha they have u get like banned for like a week on the version from the iphone. E-mailed the Maker of the App. Says there considering it but no plan of action yet..
Sounds like MMS......
I would love for an Android PhotoSwap clone. That would be awesome.
is there now an app like photoswap?
greetings from Ger
there is always pic swap, but needs updating badly.
(not so) long time reader, first time poster
Ive been working on a Photoswap clone for Android recently after being annoyed at how much Picswap crashes. While not 100% complete, the only real issue so far is that it relies upon a php/mysql web host for hosting the images during transit, which I don't have the funds for. Im going to look at free php/mysql hosts, however I don't know how far they can be trusted. The app so far works better than Picswap, as it offers (without force closing) the following:
- Take a photo and swap it with someone elses
- Send a reply photo back to the person who you last received a photo from, and receive reply photos from others
- Press the 'search' button to autofocus the camera
- All commands available by pressing the menu button, they do not take up screen real estate
The app still needs some polishing, as do the PHP scripts that run on a web server to handle the transfer of files, but otherwise its ready to go (if/when I can afford/find a suitable host for it)
On another note:
I ran wireshark and figured out how picswap operates and could easily make a copy of my app that interfaces with picswaps server, although it would lose out on photo replies. When picswap seems to say the image is corrupt, it looks like the image is not actually corrupt, it is just picswap not able to process it. Ive been able to access the picswap network via a php script to upload an image to it, and receive an image from it, and all images that I have received from it load fine (although some are very high resolution, while others are much smaller in size)
wow this will be really cool, i hope it is just as good as on the iPhone, and "your" programm also receive pictures of iphones!
sry 4 my english !
Greeings from germany
redbull320 said:
wow this will be really cool, i hope it is just as good as on the iPhone, and "your" programm also receive pictures of iphones!
Click to expand...
Click to collapse
It won't send/receive photos with iPhone users as I don't have details of how the iPhone app communicates If you have an iPhone (or have access to one) and you are able to run a packet sniffer on the app, Id be happy to look at modifying my app to interface with the iPhone photoswap server
I have uploaded the neccessary scripts to run from a free web host for now, however I cannot post a link to the APK here yet as a new forum user. As there are (obviously) no users of it yet, there arent many images available (Im seeding some into it myself), but with enough users I don't foresee any issues with a lack of photos being seeded into it.
The apps also not complete, and given that its running off a free web host I don't know how long it will currently run before they shut-off the hosting In which case I would need to recompile it with a new host setup. I have developed the app using the Android 2.1 SDK and tested only on a HTC Legend (unrooted). I don't believe there is anything present that would stop it working on other Android handsets/versions, but as I have not tested on anything else I cannot guarantee compatibility.
As Im a new user, Im not able to post links to outside sites until I have been verified by a moderator, however if you PM me your email address I'll be happy to email you APK file (not sure if Im able to PM links to outside sites?)
This sounds great! I'm excited to see how it turns out. Especially if you can get it to interface with the iPhone users as well. If you could send me the APK file, Ciela, that would be really awesome. I have a Droid, so Ill definitely let you know how well it works with that. Ill PM you my email address now. Looking forward to seeing it in its completed form as well.
Ive sent it across to you now
Apparently the app does not run well on the Samsung Galaxy S, whether or not it is related to the lag issues that SGS has is unknown though. It runs fine on my HTC Legend, and I assume it will run fine on other HTC devices as well. Hopefully works well on other non-HTC devices
If I can get access to an iPhone to run a packet sniffer on Photoswap, I don't imagine it would be difficult to integrate with that.
Hi Ciela,
I've got access to an iPhone with Photoswap, and all the tools I require to dump all the packets you'd ever need from Photoswap's transactions. I've also got access to a Galaxy S and a HTC Desire to use for testing.
If you need a hand, give me a shout and I'll devote a fair chuck of my time to helping you get this off the ground, be it by cloning Photoshop or starting something new from the ground up.
It may be wise that if you decide to clone Photoswap, that you get in touch with the developers and see if they're happy for you to go ahead. It'd sure give the Android Photoswap community a great head-start, being merged with the iPhone community. You never know, they may be happy to divulge the API data to you if they like the idea. Without yet dumping any packets, I'd imagine it's all done over HTTPS though, so Padadaz's co-operation would probably be a good thing.
If you decide to go your own way, I've got about 750GB HDD space free on my Xen node, so could spin you up a Debian VM if you need one.
Shout me if you need anything,
Chris
I too would like a copy to test, I have a rooted Desire and Galaxy Tab
I used to use PhotoSwap when I had an iPhone

[Q] Writing app to send information to the computer

Hey there,
I'm trying to write an app that will send various kinds of information to my computer, and another app, on the computer, that will read and present me that information.
For example, I want to write an app for android that will read my sms, and instead of presenting that information on my android screen, I want it to display it on the app on my computer instead.
This will all be done by cable, I'm hoping I can make my app use the wireless connection, but it's not a priority right now(first I have to figure out how to code the information transfer xD).
Now, I know there are apps like airdroid, and tons of others out there that have similar functionalities. I know them, but I'm trying to make something different, and native to the 3 main OSs on the market (Linux, OS X, Windows).
I'm hoping someone can point me in the right direction, because I've googled a few keywords and I have yet to find a relevant page...
Thanks

Newbie looking for big push to move ahead

Hello developers,
I’ve landed here for an emergency case as I have stuck with my project for long time and could not move further a step. So, I came here wishing to find the ones with the secret key to the locked door
Any way let’s see what we got here:
I’m working in Android system-Such an obvious beginning yet might be essential to make things clear - that gives the user information( textual and video ) about one certain matter-means there is a DB- there is a web forum as well as a website that comes along the development of this project.
The purpose of the web forum is for users to discuss issues related to the matter that android app. Provides info. about , where did you put your web forum? It’s a phpBB forum installed in my laptop using XAMPP alongside with the website from Word Press, where both using same MySQL DB.
The purpose of the website is providing almost the same content as the android app. However, the android app. Users must create and account ahead before start browsing through the content and get the info. From the app.
So that’s Sooo clear.. But I cannot see any problem makes you stuck buddy!!!!!!!
Ok let me tell you where I got stuck
My problem is that since the three dudes (the Android app. The web-forum and the website) all of the them are utilizing the same single DB in my XAMPP server I NEED TO CONNECT MY ANDROID APPLOCATION TO MYSQL DB TO MAKE SURE THAT MY SYSTEM WORKS FINE. So, user signup and login can be performed using the MySQL DB.
I hope it’s clear enough dudes I really need to make an urgent moves, hope to hear from you soon
Thanks
Please provide clear description on whatever you are talking about.
__________________
Sweet Devil >_<
GT-P3100 | Android 4.0.4 ICS | Sun Cellular
PM me if you need help
OptimusLove said:
Please provide clear description on whatever you are talking about.
__________________
Sweet Devil >_<
GT-P3100 | Android 4.0.4 ICS | Sun Cellular
PM me if you need help
Click to expand...
Click to collapse
what I need is how to connect my android app. with mySQL database in my local server so user can retrieve the information form the database and view it in his android app. also for the user account details to be stored for signup and login
I hope it looks better now
please do let me know what part of my description looks not clear so I can explain it better
thanks a lot

[Q] Total NOOB needs some help :)

Hi all,
My name is Fabian, and I have a strong background in C. (Done a CS course in C).
I want to do an Android app for my final project(nothing too fancy or complicated but I have to at least have some interface ) and I'm a little stuck with how to proceed from here.
I watched the Java essential course on Lynda and I did understand a little the difference between C in Java, however I don't know how to proceed from here to actual Android development.
If anyone can recommend me finding a crash course, a book or any other resource that could get me up and running as soon as possible, I would really appreciate it.
I don't mind spending money on it.
Thanks in advance.
Fabian
fabiansc said:
Hi all,
My name is Fabian, and I have a strong background in C. (Done a CS course in C).
I want to do an Android app for my final project(nothing too fancy or complicated but I have to at least have some interface ) and I'm a little stuck with how to proceed from here.
I watched the Java essential course on Lynda and I did understand a little the difference between C in Java, however I don't know how to proceed from here to actual Android development.
If anyone can recommend me finding a crash course, a book or any other resource that could get me up and running as soon as possible, I would really appreciate it.
I don't mind spending money on it.
Thanks in advance.
Fabian
Click to expand...
Click to collapse
A great resource for Android development is the official Android training documentation from Google, as well as these tutorials. Let me know if you still have questions I'll be happy to help.
thanks little question regrading databases
shimp208 said:
A great resource for Android development is the official Android training documentation from Google, as well as these tutorials. Let me know if you still have questions I'll be happy to help.
Click to expand...
Click to collapse
Hi,
Thanks for your help I learned a lot and I'm already planning my app
I just have one question that could really help.
I want to make an app where people on different devices can interact and send each other tasks. I guess I need a kind of SQL server that supports Android, right? Is there a better or at least more economic way to do it if I will have around 1000 users where each one can add people to send tasks to?
Many thanks,
Fabian
And one more question
Is there any way to do a phone number authentication (like Whatsapp) instead of user name and password which I think is a little to tedious for my planned app ?
Thanks in advance
Hola, for the task sending. Would you like to make all task public? Or should you send it like a message?
But when i need access to a server, i use php scripts. But we can take that later, when you have answered my last question
For the phone number authentication, you have to have a online database, with all phone numbers. User inserts their phone number, the first time they starts the app. Then you can retrieve it from the database. But we can also take that later.
I´m glad if i helped.
(Sorry for my bad english.. )
Hola
Well I want it to be like a manager that gives a task to his employee. I want the task to be between them and only they can close it.
Likewise, it would be a problem if I make a simple phone number insertion if there's no validation. I was thinking about a number verification (like whatsapp) to prevent other people from accessing the tasks.
Do you think it's possible or should I go with username and password?
Thanks
fabiansc said:
Hi,
Thanks for your help I learned a lot and I'm already planning my app
I just have one question that could really help.
I want to make an app where people on different devices can interact and send each other tasks. I guess I need a kind of SQL server that supports Android, right? Is there a better or at least more economic way to do it if I will have around 1000 users where each one can add people to send tasks to?
Many thanks,
Fabian
Click to expand...
Click to collapse
I am using OpenShift - https://www.openshift.com/developers - which is a open source cloud architecture in that they offer packages like NodeJS and DB's. They allow you to have 'gears' which I guess is their name for services running on their cloud. The free account has 3 gears.
I currently only have a NodeJS server running to deliver files however (as far as I understand it) you can have MySQL and others as a backend. I would think that whatever devices you develop on would simply log into the DB and look up messages/tasks etc. I would also think that your app could insert those things. The best part is it is free until you reach Enterprise level or so. I would check it out since free is good. Offhand, I do not know what DB's Android supports via java but MySQL is probably one of them.
Just some info for you to examine.
Good luck
Hola, of course its possible! But maybe Username and Password is easiest.
You can use e-mail validation.
I actually worked on a application, there store products in databases. So i have tried it before. Ask if you are confused
And Sum1nil, sqlite is implemented in android, so for local database, use sqlite.
But for online database access, i use php

Web Login hack?!?

Hey guys, not sure if this is the "right" place to post this question, but Im sure some of you guys have knowledge about this. I Been researching into hacking into web login sites (not emails, or to do anything bad) but to pretty much get access to photos and such on particular websites. Some of them Im sure have a FTP login around the basic web form login. Some are usernames, some are email logins and I do have a good idea on some for sure emails. Brute forcing is what Im seeing as I research, doing some look ups on hydra, and etc. They are press sites for the media for "affiliates" tv etc. I want access to the press photos for selective tv series. nothing brutally harming, I just want the photos from these sites. What are the best routes, tutorials and such for going about this (other then being in the media, and working for the station) lol... I know some domain researching is required. I do have access to KALI linux if that is a good starting point?!? Any real help would be greatly appreciated. I am willing to donate $$$$$ for help if necessary. Thanks bunches!

Categories

Resources